maint.mk: avoid extra forks
[gnulib.git] / ChangeLog
1 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2
3         maint.mk: avoid extra forks
4         * top/maint.mk (_cfg_mk): The GNU make manual documents that
5         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
6         So use that instead of "$(shell test -f FILE && echo FILE)".
7
8 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9
10         vasnprintf: fix ASCII_ONLY typo
11         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
12         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
13         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
15         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
16
17 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18
19         list, oset, xlist, xoset: fix extern inline issue with C99
20         This was introduced by my recent changes for 'inline'.
21         Problem reported for gettext by Daiki Ueno in
22         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
23         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
24         (gl_list_nx_create, gl_list_size, gl_list_node_value)
25         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
26         (gl_list_previous_node, gl_list_get_at)
27         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
28         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
29         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
30         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
31         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
33         (gl_list_iterator_free, gl_sortedlist_search)
34         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36         (gl_sortedlist_remove):
37         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
38         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
39         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
40         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
41         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
42         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
43         (gl_list_add_at, gl_sortedlist_add):
44         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
45         Wrap these extern decls inside "#if 0", because they are implemented
46         as inline functions, and extern inline is not what's wanted here.
47         It would simplify these .h files to remove the extern decls entirely,
48         although a downside would be less-clear separation between
49         specification and implementation.
50
51 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52
53         sys_stat: no 'static inline'
54         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
55         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
56
57         extern-inline: no 'static inline'
58         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
59         Do not require AC_C_INLINE.
60         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
61         'static inline', for older compilers.
62
63         snippet/warn-on-use: no 'static inline'
64         * build-aux/snippet/warn-on-use.h:
65         Remove unnecessary 'inline' in comment.
66
67         rbtree-list, rbtreehash-list: no 'static inline'
68         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
69         * lib/gl_anytree_list2.h (node_at):
70         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
71         (gl_oset_first, add_nodes_to_buckets):
72         Now static, not static inline.
73
74         regex: no 'static inline'
75         * lib/regex_internal.c (calc_state_hash):
76         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
77         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
78         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
79         Now static, not static inline.
80         (inline) [__GNUC__ < 3 && _LIBC]:
81         Remove macro; no longer needed.
82
83         xvasprintf: no 'static inline'
84         * lib/xvasprintf.c (xstrcat):
85         Now static, not static inline.
86         * m4/xvasprintf.m4 (gl_XVASPRINTF):
87         Do not require AC_C_INLINE.
88
89         parse-datetime, parse-duration: no 'static inline'
90         * lib/parse-datetime.y (to_uchar):
91         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
92         (scale_n_add):
93         Now static, not static inline.
94         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
95         * modules/parse-duration (configure.ac):
96         Do not require AC_C_INLINE.
97
98         getaddrinfo: no 'static inline'
99         * lib/getaddrinfo.c (validate_family):
100         Now static, not static inline.
101         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
102         Do not require AC_C_INLINE.
103
104         ftruncate, fts, lstat, openat, raise: no 'static inline'
105         * lib/ftruncate.c (chsize_nothrow):
106         * lib/fts.c (opendirat, diropen):
107         * lib/lstat.c (orig_lstat):
108         * lib/openat.c (orig_openat):
109         * lib/raise.c (raise_nothrow):
110         Now static, not static inline.
111         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
112         * m4/fts.m4 (gl_FUNC_FTS_CORE):
113         * m4/lstat.m4 (gl_PREREQ_LSTAT):
114         * m4/openat.m4 (gl_PREREQ_OPENAT):
115         * m4/raise.m4 (gl_PREREQ_RAISE):
116         Do not require AC_C_INLINE.
117
118         fflush, stat: no 'static inline'
119         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
120         (clear_ungetc_buffer, disable_seek_optimization)
121         (restore_seek_optimization, update_fpos_cache):
122         * lib/stat.c (orig_stat):
123         Now static, not static inline.
124         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
125         (update_fpos_cache):
126         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
127         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
128         * m4/stat.m4 (gl_PREREQ_STAT):
129         Do not require AC_C_INLINE.
130
131         error, filevercmp: no 'static inline'
132         * lib/error.c (is_open, flush_stdout):
133         * lib/filevercmp.c (order):
134         Now static, not static inline.
135         * m4/error.m4 (gl_PREREQ_ERROR):
136         * modules/filevercmp (configure.ac):
137         Do not require AC_C_INLINE.
138
139         dup, execute, fatal-signal, etc.: no 'static inline'
140         * lib/dup.c (dup_nothrow):
141         * lib/execute.c (nonintr_close, nonintr_open):
142         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
143         * lib/fopen.c (orig_fopen):
144         * lib/freadseek.c (freadptrinc):
145         * lib/freopen.c (orig_freopen):
146         * lib/fstat.c (orig_fstat, fstat_nothrow):
147         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
148         (get_rusage_as_via_iterator):
149         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
150         * lib/getdtablesize.c (_setmaxstdio_nothrow):
151         * lib/isatty.c (_isatty_nothrow):
152         * lib/open.c (orig_open):
153         * lib/read.c (read_nothrow):
154         * lib/sigprocmask.c (signal_nothrow):
155         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
156         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
157         * lib/wait-process.c (unregister_slave_subprocess):
158         * lib/write.c (write_nothrow):
159         Now static, not static inline.
160         * lib/spawn-pipe.c (nonintr_open): Define only if
161         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
162         * m4/dup.m4 (gl_PREREQ_DUP):
163         * m4/execute.m4 (gl_EXECUTE):
164         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
165         * m4/fopen.m4 (gl_PREREQ_FOPEN):
166         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
167         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
168         * m4/fstat.m4 (gl_PREREQ_FSTAT):
169         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
170         * m4/isatty.m4 (gl_PREREQ_ISATTY):
171         * m4/open.m4 (gl_PREREQ_OPEN):
172         * m4/read.m4 (gl_PREREQ_READ):
173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
174         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
176         * m4/wait-process.m4 (gl_WAIT_PROCESS):
177         * m4/write.m4 (gl_PREREQ_WRITE):
178         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
179         Do not require AC_C_INLINE.
180
181         c-strtod, memcoll, readutmp: no 'static inline'
182         * lib/c-strtod.c (c_locale):
183         * lib/memcoll.c (strcoll_loop):
184         * lib/readutmp.c (desirable_utmp_entry):
185         Now static, not static inline.
186         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
187         * m4/memcoll.m4 (gl_MEMCOLL):
188         * m4/readutmp.m4 (gl_READUTMP):
189         Do not require AC_C_INLINE.
190
191         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
192         * lib/arctwo.c (to_uchar):
193         * lib/md4.c (set_uint32):
194         * lib/md5.c (set_uint32):
195         * lib/sha1.c (set_uint32):
196         * lib/sha256.c (set_uint32):
197         * lib/sha512.c (set_uint64):
198         Now static, not static inline.  This is a bit simpler, and doesn't
199         affect performance with GCC and default optimization.
200         * m4/arctwo.m4 (gl_ARCTWO):
201         * m4/md4.m4 (gl_MD4):
202         * m4/md5.m4 (gl_MD5):
203         * m4/sha1.m4 (gl_SHA1):
204         * m4/sha256.m4 (gl_SHA256):
205         * m4/sha512.m4 (gl_SHA512):
206         Do not require AC_C_INLINE.
207
208         cond, lock, thread: better 'inline'
209         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
210         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
211         New macros.  Use them instead of static inline, for header functions.
212         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
213         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
214         * lib/glthread/lock.c (gl_waitqueue_init)
215         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
216         * lib/glthread/thread.c (get_current_thread_handle):
217         Change 'static inline' to 'inline'.
218         * lib/glthread/cond.h, lib/glthread/thread.h:
219         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
220         * m4/cond.m4 (gl_COND):
221         * m4/lock.m4 (gl_PREREQ_LOCK):
222         * m4/thread.m4 (gl_THREAD):
223         Do not require AC_C_INLINE.
224         * modules/cond, modules/thread (Depends-on): Add extern-inline.
225
226         chdir-long, cycle-check, savewd: better 'inline'
227         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
228         (find_non_slash):
229         * lib/cycle-check.c (is_zero_or_power_of_two):
230         * lib/savewd.c (savewd_delegating):
231         Change 'static inline' to 'inline'.
232         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
233         Replace all remaining uses of 'static inline' with it.
234         * lib/savewd.h:
235         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
237         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
238         * m4/savewd.m4 (gl_SAVEWD):
239         Do not require AC_C_INLINE.
240         * modules/savewd (Depends-on): Add extern-inline.
241
242         base32, base64: no need for 'inline'
243         * lib/base32.c (to_uchar, get_8, decode_8):
244         * lib/base64.c (to_uchar, get_4, decode_4):
245         Change 'static inline' to 'inline'.
246         * m4/base32.m4 (gl_PREREQ_BASE32):
247         * m4/base64.m4 (gl_PREREQ_BASE64):
248         Do not require AC_C_INLINE.
249
250         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
251         * lib/gl_array_oset.c (gl_array_nx_add_at):
252         (gl_array_remove_at):
253         * lib/gl_linkedhash_list.c (hash_resize_after_add)
254         (add_to_bucket, remove_from_bucket):
255         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
256         Change 'static inline' to 'static', as it's simpler to omit
257         'inline' unless there's a significant performance advantage.
258
259         list, oset, xlist, xoset, xsublist: simplify via extern inline
260         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
261         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
262         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
263         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
264         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
265         New macro.  Replace all uses of 'static inline' with it.
266         [HAVE_INLINE]: Implement functions as *_INLINE functions,
267         instead of as macros FOO that are defined to static inline
268         functions FOO_inline.
269         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
270         * lib/gl_xsublist.c:
271         Reimplement from scratch, by defining the corresponding *_INLINE
272         macro and including the corresponding .h file.  This is simpler.
273         * modules/list, modules/oset, modules/xlist, modules/xoset:
274         (Files): Remove m4/gl_list.m4.
275         (configure.ac): Remove gl_LIST.
276         * m4/gl_list.m4: Remove.
277         * modules/list, modules/oset, modules/xlist, modules/xoset:
278         * modules/xsublist:
279         (Depends-on): Depend on extern-inline, not inline.
280
281         xalloc: better 'inline'
282         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
283         New macro.  Replace all uses of 'static inline' with it.
284         (static_inline): Remove.
285         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
286         Let 'extern inline' do the work automatically, instead of doing
287         it by hand.
288         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
289         Remove.  All uses removed.
290         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
291
292         gethrxtime: better 'inline'
293         * lib/xtime.c: New file.
294         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
295         * lib/xtime.h (XTIME_INCLUDE):
296         New macros.  Replace all uses of 'static inline' with them.
297         * lib/gethrxtime.c (gethrxtime): Define only if
298         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
299         this source file is now always compiled, because of the extern inline.
300         * lib/gethrxtime.h, lib/xtime.h:
301         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
302         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
303         if gethrtime works, as they're not needed in that case.
304         (gl_XTIME): Do not require AC_C_INLINE.
305         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
306         compiled now.  Move the check into gl_GETHRXTIME.
307         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
308         (Depends-on): Add extern-inline.
309         (configure.ac): gethrxtime is always compiled now.
310         (lib_SOURCES): Add gethrxtime.c.
311
312         wctype-h: better 'inline'
313         * lib/wctype-h.c: New file.
314         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
315         New macro.  Replace all uses of 'static inline' with it.
316         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
317         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
318         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
319         (Depends-on): Add extern-inline.
320
321         unistd: better 'inline'
322         * lib/unistd.c: New file.
323         * lib/unistd.in.h (_GL_UNISTD_INLINE):
324         New macro.  Replace all uses of 'static inline' with it.
325         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
326         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
327         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
328         (Depends-on): Add extern-inline.
329
330         sys_socket: better 'inline'
331         * lib/sys_socket.c: New file.
332         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
333         New macro.  Replace all uses of 'static inline' with it.
334         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
336         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
337         (Depends-on): Add extern-inline.
338
339         stdio: better 'inline'
340         * lib/stdio.c: New file.
341         * lib/stdio.in.h (_GL_STDIO_INLINE):
342         New macro.  Replace all uses of 'static inline' with it.
343         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
344         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
345         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
346         (Depends-on): Add extern-inline.
347
348         sigaction: better 'inline'
349         * lib/sig-handler.c: New file.
350         * lib/sig-handler.h (SIG_HANDLER_INLINE):
351         New macro.  Replace all uses of 'static inline' with it.
352         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
353         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
354         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
355         (Depends-on): Add extern-inline.
356
357         selinux-h: better 'inline'
358         * lib/se-context.c, lib/se-selinux.c: New files.
359         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
360         * lib/se-context.in.h (SE_CONTEXT_INLINE):
361         New macro.  Replace all uses of 'static inline' with it.
362         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
363         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
364         New macro.  Replace all uses of 'static inline' with it.
365         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
366         * modules/selinux-h (Files, lib_SOURCES):
367         Add lib/se-context.c, lib/se-selinux.c.
368         (Depends-on): Add extern-inline.
369         (configure.ac): Do not require AC_C_INLINE.
370
371         pthread: better 'inline'
372         * lib/pthread.c: New file.
373         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
374         New macro.  Replace all uses of 'static inline' with it.
375         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
376         * m4/pthread.m4 (gl_PTHREAD_CHECK):
377         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
378         * modules/pthread (Files): Add lib/pthread.c.
379         (Depends-on): Add extern-inline.
380
381         math: better 'inline'
382         * lib/math.c: New file.
383         * lib/math.in.h (_GL_MATH_INLINE):
384         New macro.  Replace all uses of 'static inline' with it.
385         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
386         * m4/math_h.m4 (gl_MATH_H):
387         Do not require AC_C_INLINE.
388         * modules/math (Files, lib_SOURCES):
389         Add lib/math.c.
390         (Depends-on): Add extern-inline.
391
392         count-one-bits: better 'inline'
393         * lib/count-one-bits.c: New file.
394         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
395         New macro.  Replace all uses of 'static inline' with it.
396         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
397         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
398         Do not require AC_C_INLINE.
399         * modules/count-one-bits (Files, lib_SOURCES):
400         Add lib/count-one-bits.c.
401         (Depends-on): Add extern-inline.
402
403         count-leading-zeros: better 'inline'
404         * lib/count-leading-zeros.c: New file.
405         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
406         New macro.  Replace all uses of 'static inline' with it.
407         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
408         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
409         Do not require AC_C_INLINE.
410         * modules/count-leading-zeros (Files, lib_SOURCES):
411         Add lib/count-leading-zeros.c.
412         (Depends-on): Add extern-inline.
413
414         bitrotate: better 'inline'
415         * lib/bitrotate.c: New file.
416         * lib/bitrotate.h (BITROTATE_INLINE):
417         New macros.
418         Replace all uses of 'static inline' with them.
419         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
420         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
421         (Depends-on): Add extern-inline.
422         (configure.ac): Do not require AC_C_INLINE.
423
424 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
425
426         maint.mk: avoid gratuitous failure
427         Reported by Stefano Lattarini in
428         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
429         * top/maint.mk (public-submodule-commit): Quote more safely.
430
431 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
432
433         canonicalize, canonicalize-lgpl: support MS-Windows file names
434         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
435         for test cases, which it'd be nice to add at some point.
436         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
437         * lib/canonicalize.c (canonicalize_filename_mode):
438         * lib/canonicalize-lgpl.c (__realpath):
439         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
440         slash is at the beginning of the file name.  Use ISSLASH, instead
441         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
442         the first character with '/'.  Test for
443         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
444         with a drive letter.
445         * lib/canonicalize.c (SLASHES): New macro.
446         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
447
448 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
449
450         fts: introduce FTS_VERBATIM
451         * lib/fts_.h (FTS_VERBATIM): New bit flag.
452         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
453         * lib/fts.c (fts_open): Honor it.
454
455 2012-11-09  Pádraig Brady  <P@draigBrady.com>
456
457         getlogin-tests: allow errno == ENXIO
458         * tests/test-getlogin.c (main): Skip tests if getlogin fails
459         with errno == ENXIO (No controlling tty).
460         getlogin_r-tests: Likewise. Also allow errno == ENOENT
461         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
462         with errno == ENOENT.  This was reported to happen in various
463         situations on GNU/Linux.
464
465 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
466
467         getlogin-tests: allow errno == ENOENT
468         * tests/test-getlogin.c (main): Skip tests if getlogin fails
469         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
470         when running a test in an Emacs shell buffer.
471
472 2012-11-08  Jim Meyering  <jim@meyering.net>
473
474         tests/nap.h: avoid warning about unused variable
475         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
476
477         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
478         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
479         white space before each of the special-cased file names, to avoid
480         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
481         in http://bugs.gnu.org/12830.
482
483 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
484
485         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
486         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
487         fails with errno == EBADF when fd is opened with O_PATH.
488         Reported by Jim Meyering in
489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
490         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
491         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
492
493 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
494
495         test-utimens: speed up by taking shorter naps
496         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
497         New functions.
498         (nap): Use them, to do a better job of guessing the delay.
499         On Fedora 17 with ext4 atop md atop hard disks, this made
500         test-utimens run 10x faster, because the test napped for
501         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
502         <http://bugs.gnu.org/12820#11>.
503
504 2012-11-07  Jim Meyering  <jim@meyering.net>
505
506         mountlist.c: fix a compilation failure
507         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
508         I introduced while transforming commit v0.0-7683-g613bcb6
509
510 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
511
512         errno: port to LynxOS 178 2.2.2
513         Problem reported by Joel Brobecker in
514         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
515         * doc/posix-headers/errno.texi (errno.h): Document this.
516         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
517         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
518         Supply a string for EILSEQ.
519         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
520
521 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
522
523         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
524         Linux kernel 2.6.39 introduced O_PATH (see
525         <http://lwn.net/Articles/433854/>) and this is a better fallback
526         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
527         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
528         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
529         * lib/fcntl.in.h (O_ACCMODE):
530         * tests/test-fcntl-h.c (main):
531         Do not reject O_ACCMODE merely because it has more than the
532         minimal number of bits, as POSIX allows extensions here.
533
534 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
535
536         mountlist: do not classify a bind-mounted dir entry as "dummy"
537         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
538         the "none"-testing clause.
539         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
540         exception for bind-mounted directories.
541
542 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
543
544         quote: provide a means to escape strings with nul characters
545         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
546         (quote, quote_n): Rename formal arguments for consistency with
547         quotearg.
548
549 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
550
551         test-raise: don't assume 199 is an invalid signal
552         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
553
554         sh-quote-tests: port to Solaris 9
555         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
556         Problem reported by Dagobert Michelsen in
557         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
558
559 2012-10-28  Jim Meyering  <jim@meyering.net>
560
561         maint.mk: rename a new configurable variable
562         * top/maint.mk (_gl_translatable_string_re): Rename from
563         translation-markers: _gl_ prefix to insulate from user Makefile code,
564         and the _re suffix to inform that it's a regular expression.
565
566 2012-10-26  Eric Blake  <eblake@redhat.com>
567
568         maint.mk: let packages tweak sc_po_check pattern
569         * top/maint.mk (sc_po_check): Add translation-markers, to allow
570         finding files with other translation markers.
571
572 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
573
574         euidaccess: speed up 'configure' on GNU hosts
575         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
576         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
577         it's needed only in this case.  Use AC_CHECK_DECLS, not
578         AC_CHECK_DECLS_ONCE.
579         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
580         or AC_REQUIRE for AC_FUNC_GETGROUPS.
581
582         * lib/regexec.c (re_search_internal): Fix grammar in comment.
583
584 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
585
586         fchmodat, fchownat, fstatat: port to non-inlining compilers
587         Problem reported for FreeBSD 9 by Jim Meyering in
588         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
589         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
590         New files, which define FCHMODAT_INLINE etc.
591         * lib/fchmodat.c (FCHMODAT_INLINE):
592         * lib/fchownat.c (FCHOWNAT_INLINE):
593         * lib/fstatat.c (FSTATAT_INLINE):
594         Remove, as chmodat.c etc. now do this.
595         * modules/fchmodat (Files): Add lib/chmodat.c.
596         * modules/fchownat (Files): Add lib/chownat.c.
597         * modules/fstatat (Files): Add lib/statat.c.
598
599 2012-10-15  Jim Meyering  <jim@meyering.net>
600
601         fchmodat.c, fchownat.c: compile-impeding typos
602         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
603         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
604         Introduced in commit v0.0-7636-gd202279.
605
606 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
607
608         fcntl-h: support GNU flags like O_IGNORE_CTTY
609         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
610         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
611         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
612         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
613         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
614         Define to 0 if not already defined.
615         * tests/test-fcntl-h.c: Test these new flags.
616
617 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
618
619         faccessat, etc.: support AT_FDCWD-only use
620         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
621         this function only if its first argument is AT_FDCWD.
622         Emacs wants faccessat for AT_EACCESS but not for any first-arg
623         values other than AT_FDCWD, so it doesn't want all the openat
624         machinery with fchdir etc.
625         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
626         * modules/fstatat, modules/mkdirat, modules/openat (Files):
627         * modules/unlinkat (Files):
628         Remove lib/openat-priv.h, as at-internal supplies this file.
629         Removing this file here allows us to support programs like Emacs
630         that avoid at-internal.
631
632         faccessat: speed up 'configure' on mainstream hosts
633         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
634         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
635         since it's only on unusual platforms that we need to check for
636         'access', and it's better not to slow 'configure' down on all
637         platforms.
638
639         faccessat: port to Solaris 10
640         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
641         Needed on Solaris 10, which doesn't have AT_EACCESS,
642         so we need the Gnulib fcntl.h, which defines it.
643
644 2012-10-14  Pádraig Brady  <P@draigBrady.com>
645         canonicalize: fix C89 compilation
646         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
647         declarations so C89 is supported.  Also remove the comment
648         referencing memorty allocation as the suggested feature could
649         not be implemented as suggested.
650         Reported by Michael Goffioul.
651
652 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
653
654         group-member: omit unnecessary dependencies
655         This is for Emacs, which has its own allocator and where we
656         don't want to use xalloc.
657         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
658         since we no longer use xmalloc.  Do not include stdbool.h, since
659         the changes below happen to remove the only use of bool.
660         (GROUPBUF_SIZE): New constant.
661         (struct group_info): Remove n_groups member.  Add groupbuf member.
662         This lets us get the groups without using malloc, usually.
663         (free_group_info, get_group_info): Adjust to this.
664         (get_group_info): Return the number of groups found, or -1 on error.
665         Use plain malloc not xmalloc, and treat its failure as if there
666         are no groups, as the user already loses in case of error.
667         (group_member): Simplify, based on changes to get_group_info.
668         * modules/group-member (Depends-on): Remove dependencies on
669         xalloc and stdbool.  Add dependency on xalloc-oversized.
670
671 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
672
673         gethrxtime: port to C++
674         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
675
676 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
677
678         ptsname: fix macro-name typo
679         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
680
681 2012-10-03  Simon Josefsson  <simon@josefsson.org>
682
683         inttostr: Relax license.
684         * modules/inttostr (License): Change from LGPL to LGPLv2+.
685
686 2012-10-03  Eric Blake  <eblake@redhat.com>
687
688         ptsname_r: support ptys returned by FreeBSD posix_openpt
689         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
690         lives in /dev/pts/.
691
692 2012-10-02  Eric Blake  <eblake@redhat.com>
693
694         pselect: reject invalid file descriptors
695         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
696         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
697         * modules/pselect (Depends-on): Add dup2.
698         * doc/posix-functions/pselect.texi (pselect): Document this.
699
700         select: reject invalid file descriptors
701         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
702         * lib/select.c (rpl_select) [!win32]: Work around it.
703         * modules/select (Depends-on): Add dup2.
704         * doc/posix-functions/select.texi (select): Document this.
705
706         select: enhance test
707         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
708         New functions.
709         (test_function): Enhance test.
710         (do_select_bad_fd): Avoid any stale errno values.
711
712         ptsname: reject invalid file descriptors
713         http://www.austingroupbugs.net/view.php?id=503
714         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
716         * modules/stdlib (Makefile.am): Replace witness.
717         * lib/stdlib.in.h (ptsname): Allow for replacement.
718         * modules/ptsname (configure.ac): Trigger replacement.
719         * doc/posix-functions/ptsname.texi (ptsname): Document this.
720
721 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
722
723         hash-pjw-bare: new module
724         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
725         * lib/hash-pjw-bare.h: Likewise.
726         * modules/hash-pjw-bare: New file.
727         * MODULES.html.sh (Misc): Add it.
728
729 2012-10-02  Eric Blake  <eblake@redhat.com>
730
731         manywarnings: cater to more gcc infelicities
732         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
733         -Wuninitialized without -O.
734
735 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
736
737         select, poll tests: Make setsockopt invocation effective.
738         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
739         the bind() call.
740         * tests/test-select.h (open_server_socket): Likewise.
741
742 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
743
744         sockets, sys_stat: restore AC_C_INLINE
745         This undoes the 2012-09-22 patch.
746         * m4/sockets.m4 (gl_SOCKETS):
747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
748         Restore AC_C_INLINE, since MSVC requires __inline or _inline
749         and does not support plain 'inline'.  Reported by Bruno Haible in
750         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
751
752 2012-09-30  Bruno Haible  <bruno@clisp.org>
753
754         localeconv tests: Avoid test failure on OpenIndiana.
755         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
756         skip the 'grouping' and 'mon_grouping' tests.
757         Reported by Jim Meyering.
758
759 2012-09-30  Bruno Haible  <bruno@clisp.org>
760
761         havelib: Follow libtool developments.
762         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
763         Suggested by Simon Josefsson.
764
765 2012-09-29  Jim Meyering  <meyering@redhat.com>
766
767         fstatat.c: fix a compile-impeding typo
768         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
769         Introduced in commit v0.0-7636-gd202279.
770         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
771
772 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
773
774         extern-inline: provide a -Wundef safe config.h
775         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
776         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
777         to produce a -Wundef warning free config.h.
778
779 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
780
781         hash-pjw: relax license to LGPLv2+
782         * modules/hash-pjw (License): Relax, with consent of author.
783
784 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
785
786         maint.mk: fix strict vs. lazy variable issues with RELEASE
787         * top/maint.mk (_equal): New function.
788         (member_check): Strip the result to avoid spurious spaces.
789         (url_dir_list): Do not use ifeq, which is strict, as it will
790         require RELEASE_TYPE to be defined.
791         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
792         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
793         (announcement_Cc_alpha,announcement_mail_headers_alpha)
794         (announcement_Cc_beta,announcement_mail_headers_beta)
795         (announcement_Cc_stable,announcement_mail_headers_stable): these.
796         (release): Do not depend on $(release-type), as it forces its
797         evaluation.  Bounce to it.
798
799 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
800
801         maint.mk: formatting changes
802         * top/maint.mk: Indent bodies of if's.
803
804 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
805
806         maint.mk: factor the validation of RELEASE_TYPE
807         With help from Jim Meyering.
808         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
809         * top/maint.mk (_empty, _sp): Move their definition earlier.
810         (member-check, release-type): New.
811         Use the latter instead of $(RELEASE_TYPE).
812         Remove now useless local checks.
813
814 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
815
816         maint.mk: provide "make upload" to ease uploading
817         See
818         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
819         Do not depend simply on the current $(VERSION), as there may have been
820         new commits since the tarball generation.  Rather, rely on $(RELEASE),
821         as "make release-commit" already does.
822
823         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
824         "make TYPE".
825
826         * top/maint.mk (upload_command, upload, release): New.
827         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
828         (VERSION): first word of $(RELEASE) is always right.
829         (emit_upload_commands): Adjust.
830         * top/README-release: Update.
831
832 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
833
834         maint.mk: silent rules
835         With help from Stefano Lattarini.
836         * top/maint.mk (writable-files): Use $(AM_V_GEN).
837         (announcement): Use $(AM_V_at).
838
839 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
840
841         localename: port gl_locale_name_thread_unsafe to FreeBSD
842         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
843         and use the simpler FreeBSD implementation on Mac OS X as well.
844         Original idea suggested by Ed Maste in
845         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
846
847 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
848
849         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
850         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
851         * lib/mbuiter.c, lib/xsize.c: New files.
852         * lib/binary-io.h (BINARY_IO_INLINE):
853         * lib/eealloc.h (EEALLOC_INLINE):
854         * lib/mbfile.h (MBFILE_INLINE):
855         * lib/mbiter.h (MBITER_INLINE):
856         * lib/mbuiter.h (MBUITER_INLINE):
857         * lib/xsize.h (XSIZE_INLINE):
858         New macros.
859         Replace all uses of 'static inline' with them.
860         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
861         * m4/eealloc.m4 (gl_EEALLOC):
862         * m4/mbfile.m4 (gl_MBFILE):
863         * m4/mbiter.m4 (gl_MBITER):
864         * m4/xsize.m4 (gl_XSIZE):
865         Do not require AC_C_INLINE.
866         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
867         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
868         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
869         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
870         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
871         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
872         * modules/binary-io, modules/eealloc, modules/mbfile:
873         * modules/mbiter, modules/mbuiter:
874         (Depends-on): Add extern-inline.
875
876         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
877         * lib/pipe-filter-aux.c: New file.
878         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
879         Replace all uses of 'static inline' with it.
880         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
881         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
882         (filter_retcode): No real need for inline here.
883         * modules/pipe-filter-gi, modules/pipe-filter-ii:
884         (Files): Add lib/pipe-filter-aux.c.
885         (Depends-on): Add extern-inline.
886         (configure.ac): Do not require AC_C_INLINE.
887         (lib_SOURCES): Add pipe-filter-aux.c.
888
889         fdutimensat: omit unnecessary AC_C_INLINE
890         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
891
892         fchmodat, fchownat, fstatat: use extern-inline
893         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
894         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
895         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
896         New macros.
897         * lib/openat.h:
898         Replace all uses of 'static inline' with them.
899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
900         * modules/fchmodat, modules/fchownat, modules/fstatat:
901         * modules/openat-h:
902         (Depends-on):
903         Add extern-inline.
904         (configure.ac): Remove AC_C_INLINE.
905
906         acl, mbchar, priv-set: use extern-inline
907         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
908         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
909         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
910         New macros.
911         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
912         Replace all uses of 'static inline' with it.
913         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
914         * m4/acl.m4 (gl_FUNC_ACL):
915         * m4/mbchar.m4 (gl_MBCHAR):
916         * m4/priv-set.m4 (gl_PRIV_SET):
917         Remove AC_C_INLINE, since 'inline' is no longer used directly.
918         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
919         Add extern-inline.
920
921         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
922         * m4/sockets.m4 (gl_SOCKETS):
923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
924         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
925         environments where it's already guaranteed to work, so we needn't
926         check for it at 'configure'-time.
927
928         tls-tests: omit unnecessary 'inline'
929         * tests/test-tls.c (perhaps_yield): No longer inline.
930         Simplicity and portability trump efficiency in test cases.
931
932         utimens-tests: avoid unnecessary 'inline'
933         * modules/fdutimensat-tests (configure.ac):
934         * modules/futimens-tests (configure.ac):
935         * modules/utimens-tests (configure.ac):
936         * modules/utimensat-tests (configure.ac):
937         Remove AC_C_INLINE.
938         * tests/test-utimens-common.h (ctime_compare):
939         No longer inline.  Simplicity and portability trump efficiency here.
940
941         misc: don't limit commentary to inline functions
942         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
943         * lib/xalloc-oversized.h, lib/xsize.h:
944         Contrast macros to functions in general, not just to inline functions,
945         when the commentary does not apply only to inline functions.
946
947 2012-09-20  Jim Meyering  <meyering@redhat.com>
948
949         non-recursive-gnulib-prefix-hack: new module
950         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
951         the file that originated in Bison.
952         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
953         largely copied from a snippet that resided in bison's configure.ac.
954         * modules/non-recursive-gnulib-prefix-hack: New file.
955         * MODULES.html.sh (Support for maintaining and releasing projects):
956         Add it.
957
958 2012-09-18  Jim Meyering  <meyering@redhat.com>
959
960         maint.mk: generalize _gl_tight_scope for non-recursive make
961         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
962         that *.h would describe additional .h files in the directory
963         specified by $(_gl_TS_dir).  I.e., add this...
964         (_gl_TS_other_headers): New variable.
965
966         maint.mk: exempt trailing blanks found in "binary" files
967         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
968         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
969         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
970
971 2012-09-17  Jim Meyering  <meyering@redhat.com>
972
973         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
974         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
975         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
976         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
977
978 2012-09-17  Jim Meyering  <meyering@redhat.com>
979
980         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
981         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
982         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
983         It is not in the same category as "exit (0)" or "exit (1)", and
984         besides, I know of no symbolic name for that 77.  Reported by
985         Richard W.M. Jones in
986         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
987
988 2012-09-17  Jim Meyering  <meyering@redhat.com>
989
990         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
991         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
992         all uses of #define, not just those that start in column 1.
993         Richard W.M. Jones reported a false positive in
994         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
995
996 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
997
998         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
999         * lib/localcharset.c (locale_charset) [DARWIN7]:
1000         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1001         as these two values are incompatible.  Problem reported by Max Horn.
1002         For more discussion, please see
1003         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1004
1005         doc: document sticky-EOF issue
1006         * doc/posix-functions/fgetc.texi (fgetc):
1007         * doc/posix-functions/fgets.texi (fgets):
1008         * doc/posix-functions/fread.texi (fread):
1009         * doc/posix-functions/fscanf.texi (fscanf):
1010         * doc/posix-functions/getc.texi (getc):
1011         * doc/posix-functions/getchar.texi (getchar):
1012         * doc/posix-functions/scanf.texi (scanf):
1013         Mention that glibc and default Solaris do not conform to
1014         C99 and POSIX-2001 or later, with respect to how getchar
1015         etc. behave when feof reports nonzero.
1016
1017 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1018
1019         poll: fix poll(0, NULL, msec)
1020         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1021         but nfd is 0.  In that case poll should behave like select.
1022
1023 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1024             Paolo Bonzini <bonzini@gnu.org>
1025
1026         poll: fix for systems that can't recv() on a non-socket
1027         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1028         is readable.  In this case POLLHUP will not be supported.
1029         * doc/posix-functions/poll.texi: Document this.
1030
1031 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1032
1033         poll/select: document portability problems not fixed by Gnulib.
1034         * doc/posix-functions/poll.texi: poll does not work well on
1035         pipes under Windows.  It has the same limitations as select on
1036         BeOS.
1037         * doc/posix-functions/select.texi: select does not work well
1038         on pipes under Windows.
1039
1040 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1041
1042         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1043         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1044         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1045         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1046
1047 2012-09-06  Eric Blake  <eblake@redhat.com>
1048
1049         net_if: give more details about the bug being fixed
1050         * doc/posix-headers/net_if.texi: Add clarification.
1051
1052 2012-09-05  Eric Blake  <eblake@redhat.com>
1053
1054         net_if: new module
1055         * modules/net_if: New module, borrowing ideas from netinet_in.
1056         * m4/net_if_h.m4: New file.
1057         * lib/net_if.in.h: Likewise.
1058         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1059         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1060         * tests/test-net_if.c: Make function checks conditional.
1061         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1062
1063 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1064
1065         readutmp: fix non-portable UT_PID use
1066         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1067         Use `UT_PID (u) > 0' as absolute condition.
1068
1069 2012-09-04  Jim Meyering  <meyering@redhat.com>
1070
1071         fts: reduce two or more trailing spaces to just one, usually
1072         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1073         or more slashes, trim all but the final one.  But if a name consists
1074         solely of two slashes, don't modify it.  If it consists solely of
1075         three or more slashes, strip all but one.
1076
1077         This is part of the solution to a minor problem with rm:
1078         it would print a bogus ELOOP diagnostic when failing to remove
1079         the slash-decorated name of a symlink-to-directory:
1080
1081             $ mkdir d && ln -s d s && env rm -r s/
1082             rm: cannot remove 's': Too many levels of symbolic links
1083
1084         With the change below and a trivial don't-trim-trailing-slashes
1085         adjustment to remove.c, it does this:
1086
1087             $ env rm -r s/
1088             rm: cannot remove 's/': Not a directory
1089
1090         Improved by: Eric Blake
1091
1092         fts: when there is no risk of overlap, use memcpy, not memmove
1093         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1094
1095 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1096
1097         stdbool: be more compatible with mixed C/C++ compiles
1098         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1099         Define to bool, true, false, respectively, as GCC's builtin
1100         stdbool.h does.  Problem reported by Michael Goffioul in
1101         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1102
1103 2012-08-28  Jim Meyering  <meyering@redhat.com>
1104
1105         revert last change: it was not needed
1106         * tests/test-vc-list-files-git.sh: There's already a test for
1107         a working git, just below.
1108
1109 2012-08-28  Jim Meyering  <meyering@redhat.com>
1110
1111         tests: test-vc-list-files-git.sh: skip if git is not available
1112         * tests/test-vc-list-files-git.sh: Skip this test when git is
1113         not available.
1114
1115 2012-08-26  Bruno Haible  <bruno@clisp.org>
1116
1117         gnulib-tool: Remove no-op option --no-changelog.
1118         * gnulib-tool (func_usage): Don't mention --no-changelog.
1119         (do_changelog): Remove variable.
1120         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1121
1122 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         doc: remove fdl-1.2.texi
1125         It is no longer used or maintained, and its use of @acronym
1126         is problematic.  See the thread containing
1127         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1128         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1129         * doc/old-licenses/fdl-1.2.texi: Remove.
1130
1131         execinfo: port to FreeBSD
1132         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1133         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1134         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1135         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1136
1137 2012-08-23  Jim Meyering  <meyering@redhat.com>
1138
1139         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1140         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1141         to placate gcc's -Wold-style-declaration.
1142
1143 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         doc: do not use @acronym
1146         * doc/inet_ntoa.texi (inet_ntoa):
1147         * doc/parse-datetime.texi (Seconds since the Epoch)
1148         (Specifying time zone rules):
1149         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1150         Don't use @acronym.  Problem reported by John Darlington in
1151         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1152
1153 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1154
1155         stdnoreturn: port to newer GCCs
1156         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1157         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1158         Problem reported by Jim Meyering in
1159         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1160         Also, rename the 'test' function to a void a clash with the
1161         already-supplied 'main' function; this fixes a bug that incorrectly
1162         rejected GCC 4.7.1's <stdnoreturn.h>.
1163         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1164         Document GCC problem.
1165
1166 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1167
1168         pipe-filter: fix comment typo
1169         * lib/pipe-filter.h: Mention correct function.
1170
1171 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         execinfo: new module
1174         This is for Emacs.  Currently, it provides a no-effect stub
1175         on all platforms where it does not already work.
1176         It already works on glibc-based systems, and on Solaris 11.
1177         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1178         New files.
1179         * doc/glibc-headers/execinfo.texi (execinfo.h):
1180         * MODULES.html.sh (Misc): Document it.
1181
1182 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1183
1184         extern-inline: support old GCC 'inline'
1185         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1186         if available.  This applies to GCC versions 2.7 through 4.2, or
1187         when newer GCC is using -fgnu89-inline.  The goal is to address
1188         some of the performance issues mentioned by Bruno Haible in
1189         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1190
1191 2012-08-20  Eric Blake  <eblake@redhat.com>
1192
1193         maint.mk: avoid redundant file name in message
1194         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1195         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1196         (sc_makefile_path_separator_check): Remove bogus $(ME).
1197
1198 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1199
1200         timer-time: fix link order when static linking on glibc
1201         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1202         _after_ -lrt so that it's significant.
1203
1204 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1205
1206         timespec: omit unnecessary AC_C_INLINE
1207         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1208
1209         stat-time: omit unnecessary AC_C_INLINE
1210         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1211         Do not require AC_C_INLINE.
1212
1213         ignore-value: omit unnecessary AC_C_INLINE
1214         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1215
1216         sys_select: avoid 'static inline'
1217         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1218
1219         mktime: avoid 'static inline'
1220         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1221         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1222
1223 2012-08-19  Bruno Haible  <bruno@clisp.org>
1224
1225         gnulib-tool: Improve coding style.
1226         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1227         func_emit_lib_Makefile_am.
1228         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1229
1230 2012-08-19  Bruno Haible  <bruno@clisp.org>
1231
1232         gnulib-tool: Fix indentation.
1233         * gnulib-tool (func_import): Fix indentation.
1234
1235 2012-08-19  Bruno Haible  <bruno@clisp.org>
1236
1237         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1238         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1239         on the list of removed files.
1240
1241 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1242
1243         test-parse-datetime: avoid glibc leap-second glitch
1244         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1245         with the 2012 rules.  Problem reported by Bruce Dubbs in
1246         <http://bugs.gnu.org/12206>.
1247
1248 2012-08-14  Bruno Haible  <bruno@clisp.org>
1249
1250         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1251         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1252         from argument.
1253         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1254
1255 2012-08-14  Eric Blake  <eblake@redhat.com>
1256
1257         ldexp: relax license
1258         * modules/ldexp (License): Trivial relax, since the module only
1259         provides a permissively licensed m4 file.
1260
1261 2012-08-13  Bruno Haible  <bruno@clisp.org>
1262
1263         gnulib-tool: Fix persistence of --witness-c-macro option.
1264         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1265         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1266
1267 2012-08-11  Eric Blake  <eblake@redhat.com>
1268
1269         count-leading-zeros: use a lookup table on non-gcc compilers
1270         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1271         alternate implementation, suggested by Jim Meyering.
1272
1273 2012-08-10  Eric Blake  <eblake@redhat.com>
1274
1275         count-leading-zeros: new module
1276         * modules/count-leading-zeros: New module.
1277         * m4/count-leading-zeros.m4: New file.
1278         * lib/count-leading-zeros.h: Likewise.
1279         * modules/count-leading-zeros-tests: New test.
1280         * tests/test-count-leading-zeros.c: New file.
1281         * MODULES.html.sh (Integer arithmetic functions): Document it.
1282
1283 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1284             Jim Meyering  <meyering@redhat.com>
1285
1286         maintainer-makefile: Fix syntax error with dash.
1287         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1288         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1289
1290 2012-08-05  Jim Meyering  <meyering@redhat.com>
1291
1292         extern-inline: also ignore -Wmissing-declarations
1293         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1294         required with gcc-4.8.0-to-be.
1295
1296         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1297         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1298         for /error ?([^,]*)/.  This avoids false-positives for strings like
1299         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1300
1301 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1302
1303         gnumakefile: better interaction with Automake-NG
1304         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1305         Automake-NG always contain a definition of VPATH, even in non-VPATH
1306         builds (its value being simply '.' in that case).  So, in the
1307         'clean-GNUmakefile' rule, to determine whether running under a
1308         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1309         '$(VPATH)' expands to the empty string.
1310
1311 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1312
1313         base64: Use extern C scope in header file, for C++.
1314         * lib/base64.h: Add C++ namespace protection.
1315
1316 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1317
1318         stat-time, timespec, u64: support naive out-of-dir builds
1319         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1320         Use '#include "foo.h"', not '#include <foo.h>', when including
1321         one's own interface.  This works better when configuring with
1322         out-of-directory builds, since packages need not add an
1323         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1324
1325 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1326
1327         utimens: use extern-inline
1328         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1329         * lib/utimens.h: Add copyright notice, since this is now large enough
1330         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1331         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1332         * modules/utimens (Depends-on): Add extern-inline.
1333
1334         u64: use extern-inline
1335         * lib/u64.c: New file.
1336         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1337         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1338         * modules/u64 (Files): Add lib/u64.c.
1339         (Depends-on): Add extern-inline.
1340         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1341         does that now.
1342         (lib_SOURCES): Add u64.c.
1343
1344         timespec: use extern-inline
1345         * lib/timespec.c: New file.
1346         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1347         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1348         * modules/timespec (Files): Add lib/timespec.c.
1349         (Depends-on): Add extern-inline.
1350         (lib_SOURCES): Add timespec.c.
1351
1352         stat-time: use extern-inline
1353         * lib/stat-time.c: New file.
1354         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1355         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1356         * modules/stat-time (Files): Add lib/stat-time.c.
1357         (Depends-on): Add extern-inline.
1358         (lib_SOURCES): Add stat-time.c.
1359
1360         extern-inline: new module
1361         * modules/extern-inline, m4/extern-inline.m4: New files.
1362         This is for better support of 'extern inline' a la ISO C99,
1363         with a portable alternative on compilers that do not support
1364         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1365         of the Emacs executable, when compiled with debugging disabled,
1366         which is a typical way that Emacs is built while developing.
1367
1368 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1369
1370         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1371         * build-aux/do-release-commit-and-tag: Move variable definitions
1372         together.
1373         ($branch): Instead of defaulting to "master", default to the current
1374         branch (as gnu-web-doc-update does).
1375         (help): Display the current values of the option arguments.
1376         * top/maint.mk (release-commit): New.
1377         * top/README-release: Simplify the corresponding step.
1378
1379 2012-07-30  Eric Blake  <eblake@redhat.com>
1380
1381         passfd: fix comment on recvfd
1382         * lib/passfd.c (recvfd): Fix comment.
1383         Reported by Jann Horn <jannhorn@googlemail.com>.
1384
1385 2012-07-30  Jim Meyering  <meyering@redhat.com>
1386
1387         maint.mk: avoid a sub-shell
1388         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1389
1390 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1391
1392         maint.mk: use silent-rules support from Automake
1393         * top/maint.mk (news-check, vc-diff-check, announcement)
1394         (no-submodule-changes, alpha beta stable, release-prep)
1395         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1396
1397 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1398
1399         maint.mk: provide a web-manual-update target
1400         * top/maint.mk: here.
1401         * top/README-release: Use it to simplify the web manual update step.
1402
1403 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1404
1405         README-release: shorten the circuit to post a news
1406         * top/README-release: Point directly to the news submission form.
1407
1408 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1409
1410         gnu-web-doc-update: fix --help
1411         * build-aux/gnu-web-doc-update: The information "top level" was written
1412         twice.
1413
1414 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1415
1416         maint.mk: absolute VPATH issue
1417         * top/maint.mk (release-prep): Help Git find .git/.
1418         From Jim Meyering.
1419
1420 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1421
1422         gitlog-to-changelog: fix previous change
1423         * build-aux/gitlog-to-changelog: Fix condition.
1424         Add missing ";".
1425
1426 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1427
1428         gitlog-to-changelog: don't expect .git to be in $srcdir
1429         Reported by Bruno Haible.
1430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1431         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1432         Use it.
1433
1434 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1435
1436         maint.mk: absolute VPATH build fix
1437         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1438         $(srcdir) is not a parent of $(builddir).
1439
1440 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1441
1442         clean-temp: Fix memory leak.
1443         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1444         'files' members of tmpdir.
1445
1446 2012-07-27  Jim Meyering  <meyering@redhat.com>
1447
1448         maint.mk: new rule: refresh-gnulib-patches
1449         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1450         Use this rule to refresh them.
1451         * top/maint.mk (refresh-gnulib-patches): New rule.
1452
1453 2012-07-24  Bruno Haible  <bruno@clisp.org>
1454
1455         gnulib-tool: Fix handling of inctests variable.
1456         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1457         Reported by Nick Bowler <nbowler@elliptictech.com>.
1458
1459 2012-07-22  Bruno Haible  <bruno@clisp.org>
1460
1461         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1462         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1463         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1464         Remove exemption for getpass.h.
1465         Suggested by Eric Blake.
1466
1467 2012-07-20  Eric Blake  <eblake@redhat.com>
1468
1469         verify: document conflict with -Wnested-externs
1470         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1471
1472         maint.mk: forbid exit(-1)
1473         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1474
1475 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1476
1477         fsusage: port back to Solaris
1478         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1479         error (fsd not declared) on Solaris 10.  Reported privately by
1480         Andrew Borodin.
1481
1482 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1483
1484         gnu-web-doc-update: fix error messages
1485         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1486
1487         gnu-web-doc-update: check the requirements.
1488         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1489         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1490         * build-aux/bootstrap (find_tool): Comment change.
1491
1492 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1493
1494         maint.mk: minor simplication.
1495         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1496         for default values.
1497
1498 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1499
1500         gitlog-to-changelog: VPATH build issues
1501         If builddir is not a subdirectory of srcdir, running git from it will
1502         fail.
1503         * build-aux/gitlog-to-changelog (--srcdir): New option.
1504
1505 2012-07-15  Bruno Haible  <bruno@clisp.org>
1506
1507         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1508         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1509         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1510         Remove exemption for fpending.h.
1511         Suggested by Eric Blake.
1512
1513 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         pthread_sigmask: fix bug on FreeBSD 9
1516         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1517         Include string.h.
1518         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1519         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1520         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1521         but pthread_sigmask (1729, NULL, NULL) returns zero.
1522         See <http://bugs.gnu.org/11884>.
1523         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1524         by inspecting whether the main call changed the old mask.
1525
1526 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1527
1528         README-release: make it more legible
1529         * top/README-release: Improve typography slightly.
1530
1531 2012-07-15  Jim Meyering  <meyering@redhat.com>
1532
1533         maint: require that each sc_... command start with "@"
1534         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1535         "make sc_maint" helps us avoid this nit.
1536
1537 2012-07-15  Jim Meyering  <meyering@redhat.com>
1538
1539         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1540         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1541
1542 2012-07-13  Eric Blake  <eblake@redhat.com>
1543
1544         maint.mk: new syntax check for HAVE_DECL checks
1545         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1546         * cfg.mk
1547         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1548         Exempt some false positives.
1549         Based on a report by Karel Zak.
1550
1551         argp: make HAVE_DECL usage consistent
1552         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1553         macros, not whether they are defined.
1554         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1555         convention with other declaration checks.
1556         Reported by Karel Zak, with suggestions from Paul Eggert.
1557
1558         stat-time: relax license to LGPLv2+
1559         * modules/stat-time (License): Relax, with consent of all authors.
1560
1561         strndup: fix m4 usage error
1562         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1563         defined, to either 0 or 1.
1564         Reported by Karel Zak.
1565
1566 2012-07-11  Jim Meyering  <meyering@redhat.com>
1567
1568         maint: enable the sc_avoid_if_before_free syntax-check rule
1569         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1570         (if_before_free_offenders_): Define.
1571         (if_before_free_basename_re_): Define.
1572         Exempt current files with useless if-before-free.
1573
1574 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1575
1576         gettext: do not assume '#define ... defined ...' behavior
1577         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1578         Do not use '#define FOO ... defined BAR ...', as the C standard says
1579         it's not portable to expect that this works after macro expansion.
1580         Problem reported for gzip by Steven M. Schweda in
1581         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1582
1583 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1584
1585         getloadavg: clean out old Emacs and Autoconf cruft
1586         See Glenn Morris in <http://bugs.gnu.org/11905>.
1587         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1588         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1589         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1590         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1591
1592 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1593
1594         bootstrap: let warn be like tests/init.sh's warn_
1595         Reported by Jim Meyering.
1596         * build-aux/bootstrap (warn): Remove, replaced by...
1597         (warnf_, warn_): these.
1598         Adjust callers.
1599         Shorten messages that no longer fit in 80 columns.
1600
1601 2012-07-09  Bruno Haible  <bruno@clisp.org>
1602
1603         getopt: Simplify after Emacs changed.
1604         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1605         (gl_GETOPT_IFELSE): Remove macro.
1606
1607 2012-07-09  Jim Meyering  <meyering@redhat.com>
1608
1609         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1610         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1611
1612         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1613         Bugs in both of those conspired to make the
1614         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1615         _sc_search_regexp's handling of non-empty $in_files would filter
1616         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1617         choice of in_files value meant there would be no match in most
1618         projects, due to the presence of two or more Makefile.in files.
1619         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1620         Fix a bug in how a non-empty $$in_files was processed:
1621         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1622         in spite of the name, it's a regexp, not a list of file names.
1623
1624 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1625
1626         getloadavg, getopt: fix commentary re configure.in
1627         Autoconf is deprecating the name 'configure.in', so change it to
1628         to the new name 'configure.ac' in a couple of places.
1629         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1630         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1631         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1632         Emacs has renamed it to configure.ac, and it no longer refers
1633         to these macros anyway.
1634
1635         timespec: mark functions with const attributes
1636         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1637         Mark with _GL_ATTRIBUTE_CONST.
1638
1639 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1640
1641         canonicalize[-lgpl]: handle "guessing" values when cross-building
1642         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1643         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1644         matches "*yes" instead of just "yes".  Regression introduced in commit
1645         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1646
1647 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1648             Bruno Haible  <bruno@clisp.org>
1649
1650         canonicalize: make the right guess when cross-compiling to GNU
1651         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1652         determine whether cross-compiling to glibc systems, so as to
1653         include GNU/Hurd.
1654
1655 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1656
1657         timespec-sub: avoid duplicate include
1658         * lib/timespec-sub.c: Do not include <config.h> twice.
1659         Reported by Juanma Barranquero.
1660
1661 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1662
1663         bootstrap: use a more consistent error reporting scheme
1664         * build-aux/bootstrap (warn, die): New.
1665         Use them.
1666
1667 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         sys_time: allow too-wide tv_sec
1670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1671         timeval even if tv_sec is wider than time_t.  This allows
1672         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1673         as without this patch gnulib replaces struct timeval
1674         and OpenBSD futimes therefore has a type mismatch.
1675         * doc/posix-headers/sys_time.texi: Mention this.
1676
1677         pthread: check for both pthread_create and pthread_join
1678         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1679         alter the check so that it tests for both pthread_create and
1680         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1681         Suggested by Bruno Haible and Richard Yao in
1682         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1683
1684         parse-datetime: doc tuneup
1685         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1686         spacing issues.
1687
1688 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1689
1690         do-release-commit-and-tag: fix the previous commit
1691         * build-aux/do-release-commit-and-tag: Actually the test was right,
1692         but the comment and the error message were misleading.
1693         Fix comment, and improve error message.
1694         Perform check first, so that NEWS is not modified uselessly.
1695
1696         do-release-commit-and-tag: fix typo
1697         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1698         _not_ start with a stub.
1699
1700 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1701
1702         pthread: check for pthread_create, not pthread_join
1703         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1704         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1705         pthread_join in libc.  I hope this removes the need for all the
1706         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1707         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1708
1709 2012-07-04  Jim Meyering  <meyering@redhat.com>
1710
1711         parse-datetime: fix failure to diagnose invalid input
1712         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1713         rather than diagnosing the invalid input.  Now it reports this:
1714         date: invalid date '\260'
1715         * lib/parse-datetime.y (to_uchar): Define.
1716         (yylex): Don't sign-extend "other" bytes.
1717         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1718         Thanks to Bruno Haible for the patch to this file.
1719         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1720         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1721
1722 2012-07-03  Jim Meyering  <meyering@redhat.com>
1723
1724         bootstrap: do not require now-removed build-aux/missing
1725         Now that build-aux/missing is, er, missing, bootstrap would
1726         silently fail.
1727         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1728         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1729         no longer part of gnulib.
1730         Diagnose the failure.
1731
1732 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1733
1734         alloca: add support for HP NonStop TNS/E native
1735         * lib/alloca.in.h (alloca): Support the new host.
1736         From a suggestion by Joachim Schmitz in
1737         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1738
1739 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1740
1741         fsusage: remove code not needed on non GNU/Linux systems.
1742
1743         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1744         Don't include headers no longer needed in this case.
1745         * lib/fsusage.c [STAT_STATVFS &&
1746         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1747         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1748
1749 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1750
1751         fsusage: include files needed for glibc 2.6 fallback
1752         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1753         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1754         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1755         Problem reported by Ludovic Courtès in
1756         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1757
1758         fsusage: avoid needless check on GNU/Linux
1759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1760         on GNU/Linux systems, since it can't possibly work.
1761
1762 2012-07-01  Bruno Haible  <bruno@clisp.org>
1763
1764         log: Fix an autoconf >= 2.64 warning.
1765         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1766         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1767
1768 2012-06-28  Bruno Haible  <bruno@clisp.org>
1769
1770         log10f: Fix possible configuration problem.
1771         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1772         $LOGF_LIBM.
1773         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1774
1775 2012-06-28  Bruno Haible  <bruno@clisp.org>
1776
1777         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1778         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1779         not gl_cv_func_unlink_works.
1780         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1781
1782 2012-06-27  Eric Blake  <eblake@redhat.com>
1783
1784         config: drop scripts that automake says are not independent
1785         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1786         * build-aux/elisp-comp: Delete.
1787         * build-aux/missing: Likewise.
1788         * build-aux/ylwrap: Likewise.
1789         * modules/elisp-comp: Likewise.
1790         * MODULES.html.sh: Drop mention of elisp-comp.
1791         * NEWS: Mention this.
1792
1793 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1794
1795         root-uid: new module
1796         This is for portability to Tandem's NonStop Kernel.
1797         * lib/root-uid.h, modules/root-uid: New files.
1798         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1799         * lib/write-any-file.c, tests/test-sethostname2.c:
1800         Include "root-uid.h".
1801         * lib/euidaccess.c (euidaccess):
1802         * lib/pt_chown.c (main):
1803         * lib/unlinkdir.c (cannot_unlink_dir):
1804         * lib/write-any-file.c (can_write_any_file):
1805         * m4/mknod.m4 (gl_FUNC_MKNOD):
1806         * tests/test-sethostname2.c (geteuid, main):
1807         Don't assume ROOT_UID == 0.
1808         * modules/euidaccess (Depends-on):
1809         * modules/pt_chown (Depends-on):
1810         * modules/sethostname-tests (Depends-on):
1811         * modules/unlinkdir (Depends-on):
1812         * modules/write-any-file (Depends-on):
1813         Add root-uid.
1814
1815         regex: use locale-independent comparison for codeset name
1816         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1817         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1818         for codeset name.
1819         * lib/regex_internal.h: Do not include <strings.h>, since we
1820         no longer use strcasecmp.
1821         * modules/regex (Depends-on): Remove strcase.
1822
1823 2012-06-23  Bruno Haible  <bruno@clisp.org>
1824
1825         getopt-posix: No longer guarantee that option processing is resettable.
1826         * doc/posix-functions/getopt.texi: Drop description of problem with
1827         internal state. Fix info about mingw and msvc9.
1828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1829         option processing by getopt(). Run three test programs instead of one.
1830         Simplify cross-compilation guess.
1831         * NEWS: Mention the change.
1832         Reported by Rich Felker <dalias@aerifal.cx>.
1833
1834 2012-06-26  Bruno Haible  <bruno@clisp.org>
1835
1836         argp, regex: Ensure strcasecmp gets declared.
1837         * lib/argp-help.c: Include <strings.h>.
1838         * lib/regex_internal.h: Likewise.
1839         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1840
1841 2012-06-24  Bruno Haible  <bruno@clisp.org>
1842
1843         ptsname_r: Make it consistent with ptsname on AIX.
1844         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1845         implementation as for OSF/1.
1846         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1847         a pty master.
1848
1849         ptsname_r: Make it consistent with ptsname on OSF/1.
1850         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1851         OSF/1.
1852
1853 2012-06-24  Bruno Haible  <bruno@clisp.org>
1854
1855         ttyname_r: Fix result on OSF/1, Solaris.
1856         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1857
1858 2012-06-24  Bruno Haible  <bruno@clisp.org>
1859
1860         ptsname_r: Add support for Solaris.
1861         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1862         Solaris.
1863
1864         ptsname_r: Fix test failure on native Windows.
1865         * modules/ptsname_r (Depends-on): Add isatty.
1866
1867         ptsname_r: Fix test failures on IRIX, Solaris.
1868         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1869         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1870         accordingly.
1871         * lib/ptsname_r.c: Include <fcntl.h>.
1872         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1873         set errno if fd is invalid.
1874         * tests/test-isatty.c (main): Update comments.
1875
1876 2012-06-24  Bruno Haible  <bruno@clisp.org>
1877
1878         ptsname test: Extend test.
1879         * tests/test-ptsname.c: Include <errno.h>.
1880         (main): Test behaviour with invalid file descriptor.
1881
1882 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1883
1884         time: fix obsolete comment
1885         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1886         reference to HAVE_STRUCT_TIMESPEC in comment.
1887
1888 2012-06-23  Bruno Haible  <bruno@clisp.org>
1889
1890         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1892         does not handle abbreviated long options with equivalent
1893         disambiguations, set gl_replace_getopt to yes.
1894         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1895
1896 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         time_r: fix typo that always overrode localtime_r decl
1899         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1900         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1901         not in a standard include.
1902
1903 2012-06-22  Bruno Haible  <bruno@clisp.org>
1904
1905         Write "Mac OS X" instead of "MacOS X".
1906         * README: Write "Mac OS X" instead of "MacOS X".
1907         * build-aux/bootstrap: Likewise.
1908         * build-aux/install-reloc: Likewise.
1909         * lib/acl-internal.h: Likewise.
1910         * lib/acl_entries.c: Likewise.
1911         * lib/argp-ba.c: Likewise.
1912         * lib/argp-pv.c: Likewise.
1913         * lib/config.charset: Likewise.
1914         * lib/copy-acl.c: Likewise.
1915         * lib/csharpexec.c: Likewise.
1916         * lib/euidaccess.c: Likewise.
1917         * lib/fbufmode.c: Likewise.
1918         * lib/fflush.c: Likewise.
1919         * lib/file-has-acl.c: Likewise.
1920         * lib/filemode.h: Likewise.
1921         * lib/fpurge.c: Likewise.
1922         * lib/freadable.c: Likewise.
1923         * lib/freadahead.c: Likewise.
1924         * lib/freading.c: Likewise.
1925         * lib/freadptr.c: Likewise.
1926         * lib/freadseek.c: Likewise.
1927         * lib/fseeko.c: Likewise.
1928         * lib/fseterr.c: Likewise.
1929         * lib/fsusage.c: Likewise.
1930         * lib/fwritable.c: Likewise.
1931         * lib/fwriting.c: Likewise.
1932         * lib/get-rusage-as.c: Likewise.
1933         * lib/get-rusage-data.c: Likewise.
1934         * lib/getdomainname.c: Likewise.
1935         * lib/idpriv-drop.c: Likewise.
1936         * lib/idpriv-droptemp.c: Likewise.
1937         * lib/localcharset.c: Likewise.
1938         * lib/locale.in.h: Likewise.
1939         * lib/localename.c: Likewise.
1940         * lib/mbsrtowcs-state.c: Likewise.
1941         * lib/nproc.c: Likewise.
1942         * lib/passfd.c: Likewise.
1943         * lib/posix_openpt.c: Likewise.
1944         * lib/printf-parse.c: Likewise.
1945         * lib/progreloc.c: Likewise.
1946         * lib/safe-read.h: Likewise.
1947         * lib/safe-write.h: Likewise.
1948         * lib/sched.in.h: Likewise.
1949         * lib/set-mode-acl.c: Likewise.
1950         * lib/signal.in.h: Likewise.
1951         * lib/stdint.in.h: Likewise.
1952         * lib/stdio-impl.h: Likewise.
1953         * lib/stdlib.in.h: Likewise.
1954         * lib/strtod.c: Likewise.
1955         * lib/sys_select.in.h: Likewise.
1956         * lib/tcgetsid.c: Likewise.
1957         * lib/unistd.in.h: Likewise.
1958         * lib/unlockpt.c: Likewise.
1959         * lib/vasnprintf.c: Likewise.
1960         * lib/vma-iter.c: Likewise.
1961         * lib/wcsrtombs-state.c: Likewise.
1962         * m4/acl.m4: Likewise.
1963         * m4/acosl.m4: Likewise.
1964         * m4/asinl.m4: Likewise.
1965         * m4/atanl.m4: Likewise.
1966         * m4/c-stack.m4: Likewise.
1967         * m4/cosl.m4: Likewise.
1968         * m4/expl.m4: Likewise.
1969         * m4/extensions.m4: Likewise.
1970         * m4/fdatasync.m4: Likewise.
1971         * m4/fmal.m4: Likewise.
1972         * m4/frexp.m4: Likewise.
1973         * m4/frexpf.m4: Likewise.
1974         * m4/frexpl.m4: Likewise.
1975         * m4/fsusage.m4: Likewise.
1976         * m4/getdomainname.m4: Likewise.
1977         * m4/getloadavg.m4: Likewise.
1978         * m4/getopt.m4: Likewise.
1979         * m4/gettext.m4: Likewise.
1980         * m4/gnulib-common.m4: Likewise.
1981         * m4/intdiv0.m4: Likewise.
1982         * m4/intlmacosx.m4: Likewise.
1983         * m4/largefile.m4: Likewise.
1984         * m4/ldexpl.m4: Likewise.
1985         * m4/link-follow.m4: Likewise.
1986         * m4/locale-ar.m4: Likewise.
1987         * m4/locale-fr.m4: Likewise.
1988         * m4/locale-ja.m4: Likewise.
1989         * m4/locale-tr.m4: Likewise.
1990         * m4/locale-zh.m4: Likewise.
1991         * m4/locale_h.m4: Likewise.
1992         * m4/lock.m4: Likewise.
1993         * m4/logl.m4: Likewise.
1994         * m4/mathfunc.m4: Likewise.
1995         * m4/minus-zero.m4: Likewise.
1996         * m4/mktime.m4: Likewise.
1997         * m4/mmap-anon.m4: Likewise.
1998         * m4/multiarch.m4: Likewise.
1999         * m4/nanosleep.m4: Likewise.
2000         * m4/nocrash.m4: Likewise.
2001         * m4/poll.m4: Likewise.
2002         * m4/printf-frexpl.m4: Likewise.
2003         * m4/printf.m4: Likewise.
2004         * m4/signbit.m4: Likewise.
2005         * m4/sinl.m4: Likewise.
2006         * m4/sqrtl.m4: Likewise.
2007         * m4/strerror_r.m4: Likewise.
2008         * m4/tanl.m4: Likewise.
2009         * m4/threadlib.m4: Likewise.
2010         * m4/ttyname_r.m4: Likewise.
2011         * m4/unlink.m4: Likewise.
2012         * m4/visibility.m4: Likewise.
2013         * m4/wcwidth.m4: Likewise.
2014         * tests/minus-zero.h: Likewise.
2015         * tests/test-alloca-opt.c: Likewise.
2016         * tests/test-copy-acl.sh: Likewise.
2017         * tests/test-copy-file.sh: Likewise.
2018         * tests/test-fdatasync.c: Likewise.
2019         * tests/test-file-has-acl.sh: Likewise.
2020         * tests/test-flock.c: Likewise.
2021         * tests/test-fsync.c: Likewise.
2022         * tests/test-localename.c: Likewise.
2023         * tests/test-malloca.c: Likewise.
2024         * tests/test-nonblocking-pipe.h: Likewise.
2025         * tests/test-nonblocking-socket.h: Likewise.
2026         * tests/test-openpty.c: Likewise.
2027         * tests/test-posix_openpt.c: Likewise.
2028         * tests/test-ptsname.c: Likewise.
2029         * tests/test-ptsname_r.c: Likewise.
2030         * tests/test-sameacls.c: Likewise.
2031         * tests/test-select.h: Likewise.
2032         * tests/test-set-mode-acl.sh: Likewise.
2033         * tests/test-snprintf-posix.h: Likewise.
2034         * tests/test-sprintf-posix.h: Likewise.
2035         * tests/test-strtod.c: Likewise.
2036         * tests/test-time.c: Likewise.
2037         * tests/test-vasnprintf-posix.c: Likewise.
2038         * tests/test-vasprintf-posix.c: Likewise.
2039         * doc/acl-resources.txt: Likewise.
2040         * doc/**/*.texi: Likewise.
2041         Reported by Max Horn <max@quendi.de>.
2042
2043 2012-06-22  Bruno Haible  <bruno@clisp.org>
2044
2045         grantpt: Relax requirement regarding invalid file descriptors.
2046         * lib/grantpt.c: Don't include <fcntl.h>.
2047         (grantpt): Don't verify the validity of the file descriptor.
2048         * modules/grantpt (Depends-on): Remove fcntl-h.
2049         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2050         file descriptors.
2051         * doc/posix-functions/grantpt.texi: Document more platforms on which
2052         grantpt succeeds for invalid file descriptors.
2053         Reported by Rich Felker <dalias@aerifal.cx>.
2054
2055 2012-06-22  Bruno Haible  <bruno@clisp.org>
2056
2057         fbufmode test: Don't test unportable behaviour.
2058         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2059         (main): Invoke it three times.
2060         Reported by Szabolcs Nagy <nsz@port70.net>
2061         and Rich Felker <dalias@aerifal.cx>.
2062
2063 2012-06-21  Bruno Haible  <bruno@clisp.org>
2064
2065         gnulib-tool: Refactor inctests variable.
2066         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2067         (func_modules_transitive_closure,
2068         func_modules_transitive_closure_separately,
2069         func_import, func_create_testdir): Update.
2070
2071         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2072         * gnulib-tool: Accept option --without-tests.
2073         (func_usage): Document --without-tests option. Rearrange.
2074         (inctests): Normalize according to the mode.
2075         * NEWS: Mention the change.
2076         Suggested by Simon Josefsson.
2077
2078 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2079
2080         parse-duration test: Avoid spurious output.
2081         * tests/test-parse-duration.sh: Reindent with leading tabs.
2082
2083 2012-06-21  Jim Meyering  <meyering@redhat.com>
2084
2085         maint: disable the strncpy prohibition
2086         * cfg.mk: Do not prohibit strncpy here.
2087
2088 2012-06-21  Bruno Haible  <bruno@clisp.org>
2089
2090         nonblocking: Avoid compilation error on mingw64.
2091         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2092         fscanf.
2093         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2094         * modules/vfscanf (configure.ac): Likewise.
2095         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2096         definition only if stdio.h has prepared it.
2097         Reported by Daniel P. Berrange <berrange@redhat.com>.
2098
2099 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2100
2101         gnulib-tool: Use readlink if it is available.
2102         * gnulib-tool (func_readlink): Choose function more appropriately.
2103
2104 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         posixtm-tests: port to buggy compiler
2107         Problem reported by Simon Josefsson in
2108         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2109         * modules/posixtm-tests (Depends-on): Add stdint.
2110         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2111         Now of type int_least64_t, not int64_t, both because that's
2112         what INT64_C returns and because int_least64_t works even
2113         on 72-bit hosts.
2114         (T): Use INT64_C on constants outside the traditional int range,
2115         to work around compiler bug noted by Simon.
2116
2117         mktime: fix integer overflow in 'configure'-time test
2118         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2119         after integer overflow.  Problem reported by Rich Felker in
2120         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2121         Also, don't look for further instances of a bug if we've already
2122         found one instance; this helps 'configure' run faster.
2123
2124 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2125
2126         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2127         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2128         GetVersionEx correctly.
2129         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2130
2131 2012-06-20  Bruno Haible  <bruno@clisp.org>
2132
2133         fdopen: Allow implementations that don't reject invalid fd arguments.
2134         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2135         succeeds.
2136         Reported by Rich Felker <dalias@aerifal.cx>.
2137
2138 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2139
2140         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2141         bring in LIBINTL.
2142
2143 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2144
2145         init.sh: do not rely on autoupated PWD
2146         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2147         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2148         Although Nelson's bug was not necessarily fixed by this patch,
2149         it seems wise to make the change for safety.
2150         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2151         automagically after 'cd'; this is not reliable on older shells.
2152         (setup_): Fail if we cannot cd to temporary directory.
2153
2154 2012-06-19  Bruno Haible  <bruno@clisp.org>
2155
2156         stat, fstat: Avoid warnings on mingw64.
2157         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2158         redefining.
2159         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2160         Reported by Daniel P. Berrange <berrange@redhat.com>.
2161
2162 2012-06-19  Bruno Haible  <bruno@clisp.org>
2163
2164         stdioext: Add support for musl libc.
2165
2166         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2167         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2168
2169         * m4/fseterr.m4: New file.
2170         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2171         function exists.
2172         * modules/fseterr (Files): Add m4/fseterr.m4.
2173         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2174         __fseterr does not exist.
2175         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2176
2177         * lib/freadable.h: Update comment.
2178
2179         * lib/fwritable.h: Update comment.
2180
2181         * lib/freading.h: Update comment.
2182
2183         * lib/fwriting.h: Update comment.
2184
2185         * m4/freadahead.m4: New file.
2186         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2187         that function exists.
2188         * modules/freadahead (Files): Add m4/freadahead.m4.
2189         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2190         __freadahead does not exist.
2191         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2192
2193         * m4/freadptr.m4: New file.
2194         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2195         function exists.
2196         * modules/freadptr (Files): Add m4/freadptr.m4.
2197         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2198         __freadptr does not exist.
2199         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2200
2201         * m4/freadseek.m4: New file.
2202         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2203         exists.
2204         * modules/freadseek (Files): Add m4/freadseek.m4.
2205         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2206
2207         * lib/fpurge.c (fpurge): Update comment.
2208
2209         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2210
2211 2012-06-19  Bruno Haible  <bruno@clisp.org>
2212
2213         *printf-posix: Put more info into config.log.
2214         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2215         exit code into config.log.
2216
2217 2012-06-19  Bruno Haible  <bruno@clisp.org>
2218
2219         getopt-gnu: Fix exit code overflow in autoconf test.
2220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2221         to keep them below < 128.
2222
2223 2012-06-17  Jim Meyering  <meyering@redhat.com>
2224
2225         maint.mk: fix typo in code to derive GPG key at release time
2226         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2227
2228 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         regex: avoid warning when pointers are not long
2231         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2232         and uintptr_t, not long, for portability to hosts where pointers and
2233         long have different sizes.  Issue noted by Daniel P. Berrange in
2234         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2235         and fix suggested by Bruno Haible in
2236         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2237
2238 2012-06-17  Bruno Haible  <bruno@clisp.org>
2239
2240         dummy: Relicense into the public domain.
2241         * modules/dummy (License): Set to "public domain".
2242         Suggested by Reuben Thomas.
2243
2244 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2245
2246         announce-gen: VPATH issues
2247         * build-aux/announce-gen (--srcdir): New option, used to trim the
2248         $srcdir part of the path from $builddir to NEWS.
2249         * top/maint.mk (announcement): Adjust.
2250
2251 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2252
2253         gnu-web-doc-update: VPATH builds
2254         * build-aux/gnu-web-doc-update (--builddir): New option.
2255         Revamp the handling of options.
2256         Prefer $(...) to `...`.
2257         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2258         the template, and it is GNU mktemp specific.
2259         Prefer set -e to long series of &&.
2260         Restore the initial git branch, not "master".
2261         Properly initialize submodules (don't rely only on bootstrap).
2262         Do not reconfigure blindly, use config.status.
2263         * top/README-release: Update instructions for gnu-web-doc-update.
2264
2265 2012-06-11  Jim Meyering  <meyering@redhat.com>
2266
2267         maint.mk: revert most of the previous change re "all these"
2268         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2269         For rationale, see the discussion at
2270         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2271
2272 2012-06-10  Karl Berry  <karl@gnu.org>
2273
2274         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2275
2276         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2277
2278 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2279
2280         parse-duration: Relicense under LGPLv2+.
2281         * modules/parse-duration (License): Change to LGPLv2+.
2282
2283 2012-06-10  Jim Meyering  <meyering@redhat.com>
2284
2285         maint.mk: prohibit common grammar error: "all these"
2286         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2287         the list of prohibited word sequences.  It should be "all of these".
2288         * lib/tempname.c (__gen_tempname): Fix one of them.
2289
2290 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2291
2292         do-release-commit-and-tag: support VPATH builds
2293         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2294         (noteworthy): Defined earlier to factor its value.
2295         (noteworthy_stub): New.
2296         Use it to factor.
2297         (help_version): Split into...
2298         (help, version): these.
2299         Adjust the option processing part.
2300         Support "--option=value" in addition to "--option value".
2301         (builddir): New.
2302         (--builddir): New option.
2303         * top/README-release: Document this.
2304         Reword slightly so that the reader cannot understand that he
2305         has to do these steps before calling do-release-commit-and-tag.
2306
2307 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2308
2309         readme-release: also require announce-gen and maintainer-makefile
2310         * modules/readme-release (Depends-on): here.
2311         * modules/announce-gen, modules/do-release-commit-and-tag,
2312         modules/gnu-web-doc-update, modules/maintainer-makefile
2313         (Description): Point to readme-release.
2314
2315 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2316
2317         maint.mk: fix VPATH issues.
2318         * top/maint.mk (news-check): GNU Make understand $< very well.
2319         (release-prep): NEWS is in $(srcdir).
2320
2321 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2322
2323         readme-release: require the promoted modules.
2324         * modules/readme-release (Depends-on): Add
2325         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2326         in this text.
2327
2328 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2329             Bruno Haible  <bruno@clisp.org>
2330
2331         error, strerror-override: Support mingw64 from Fedora 17.
2332         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2333         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2334         EINPROGRESS.
2335         * lib/strerror-override.h (strerror_override): Test it.
2336         * lib/strerror-override.c (strerror_override): Likewise.
2337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2338
2339 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2340             Bruno Haible  <bruno@clisp.org>
2341
2342         error, strerror-override: Support mingw64 from Fedora 17.
2343         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2344         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2345         * lib/strerror-override.h (strerror_override): Test it.
2346         * lib/strerror-override.c (strerror_override): Likewise.
2347
2348 2012-06-03  Bruno Haible  <bruno@clisp.org>
2349
2350         error, strerror-override: Support new errno values from POSIX:2008.
2351         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2352         ENOTRECOVERABLE.
2353         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2354         platforms.
2355         * lib/strerror-override.c (strerror_override): Conditionalize the
2356         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2357         * lib/strerror-override.h (strerror_override): Declare also if
2358         GNULIB_defined_EOWNERDEAD is defined.
2359         * tests/test-errno.c (e130, e131): New variables.
2360         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2361         ENOTRECOVERABLE.
2362         Reported by Paolo Bonzini.
2363
2364 2012-05-31  Jim Meyering  <meyering@redhat.com>
2365
2366         savewd: add missing dependency on sys_wait module
2367         * modules/savewd (Depends-on): Add sys_wait, needed at least
2368         for MSVC.  Report and suggested change by Michael Goffioul.
2369
2370 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2371
2372         system-quote-tests: port to CentOS 5
2373         Problem reported by Tom G. Christensen in
2374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2375         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2376
2377 2012-05-29  Jim Meyering  <meyering@redhat.com>
2378
2379         maint: fix typos in comments and ChangeLog
2380         Culprits identified and fixed mostly automatically using these commands:
2381         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2382         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2383         using http://github.com/lyda/misspell-check
2384         * ChangeLog: Fix typos.
2385         * doc/solaris-versions: Likewise.
2386         * lib/regexec.c (re_search_stub): Likewise.
2387         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2388
2389 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2390
2391         manywarnings: remove duplicate -Wmultichar entry
2392         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2393         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2394         so keep the entry marked as documented.
2395
2396 2012-05-27  Karl Berry  <karl@gnu.org>
2397
2398         * config/srclist.txt (mktime.c): remove last libc sync,
2399         perhaps just temporarily.
2400
2401 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2402
2403         regex: don't assume uint64_t or uint32_t
2404         * lib/regcomp.c (init_word_char): Don't assume that the types
2405         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2406         them, and on some 32-bit compilers there is no uint64_t.
2407         Problem reported by Gianluigi Tiesi in
2408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2409
2410 2012-05-25  Jim Meyering  <meyering@redhat.com>
2411
2412         maint.mk: add strncpy-prohibiting syntax-check rule
2413         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2414
2415 2012-05-24  Jim Meyering  <meyering@redhat.com>
2416
2417         maint.mk: compute $(gpg_key_ID) more portably
2418         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2419         That use of sed is not portable to some fringe systems.
2420         Reported by Paul Eggert in
2421         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2422
2423 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2424
2425         mktime: sync from glibc
2426         * config/srclist.txt: Uncomment mktime.c.
2427         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2428         First, indent with tabs, since glibc uses tabs and doesn't want to
2429         change and we'd rather be identical to glibc.  Also, two small
2430         coding changes:
2431         (isdst_differ): Use &&, not &, as && is the usual style.
2432         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2433         for clarity.
2434
2435 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2436
2437         announce-gen: du -h is more portable than du --human
2438         * build-aux/announce-gen (sizes): Invoke du with -h instead
2439         of --human.  Accept leading white space in its output.
2440
2441 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2442
2443         announce-gen: Improve diagnostics.
2444         * build-aux/announce-gen: When parsing command line options,
2445         prefer "announce-gen: option --release-type requires an argument"
2446         to "Option release-type requires an argument".
2447
2448 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2449
2450         maint.mk: gpg_key_ID: use sed more portably
2451         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2452         the closing brace.
2453         (refresh-po): Fuse two sed invocations into one.
2454
2455 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2456
2457         gitlog-to-changelog: support the log message format used in Bison.
2458         * build-aux/gitlog-to-changelog: Support --strip-tab and
2459         --strip-cherry-picked.
2460
2461 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2462
2463         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2464         the rest of the current time slice to another thread in the current
2465         process. So if the thread that feeds the file decscriptor we're
2466         polling is not in the current process, we get busy-waiting.
2467         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2468         Patch from Theodore Leblond.
2469         * lib/select.c: Split polling out of the loop that sets the output
2470         fd_sets.  Check for zero result and loop if the wait timeout is
2471         infinite.
2472
2473 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2474
2475         select: Fix build error on IRIX 6.5.
2476         * lib/select.c: Include stddef.h for NULL.
2477
2478 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2479
2480         gc: fix libgcrypt detection on older machines.
2481         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2482         copyright years because the file has been distributed every year
2483         since it was created.
2484
2485 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2486
2487         crypto: fix bug in large buffer handling
2488         Problem reported by Serge Belyshev for glibc in
2489         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2490         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2491         * lib/md4.c (md4_process_block):
2492         * lib/md5.c (md5_process_block):
2493         * lib/sha1.c (sha1_process_block):
2494         * lib/sha256.c (sha256_process_block):
2495         Don't assume the buffer length is less than 2**32.
2496         * lib/sha512.c (sha512_process_block): Likewise.
2497         Here, the bug is present only in the rare case where the host does
2498         not support uint64_t or where size_t is wider than 64 bits.
2499         Use u64size to work around the problems.
2500         * lib/u64.h (u64size): New macro.
2501
2502 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2503
2504         fsusage: fix block size returned on older Linux 2.6
2505
2506         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2507         which is available since Linux 2.6.
2508         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2509         when the member is available so it can be used as a fallback.
2510         * doc/posix-functions/statvfs.texi: Mention the hang issue
2511         on Linux < 2.6.36.
2512
2513 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2514
2515         bootstrap: suppress stderr chatter
2516         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2517         Omit unnecessary chatter to stderr.  The main program chatter
2518         was there only inadvertantly.
2519
2520         bootstrap: .gitignore files created by autopoint, libtool
2521         I ran into this problem when bootstrapping the latest diffutils.
2522         After './bootstrap', 'git status' reported lots of untracked files
2523         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2524         autopoint and do not need to be version-controlled.
2525         * build-aux/bootstrap: Put into .gitignore the files that
2526         autopoint and libtool create, by keeping track of files that exist
2527         after but not before these programs are run.
2528         (version_controlled_file): Move up.  2nd arg is now full file
2529         name, not base name; this is more convenient.  Put CVS at the end,
2530         as it's now somewhat deprecated.
2531
2532 2012-05-14  Jim Meyering  <meyering@redhat.com>
2533
2534         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2535         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2536         definition.  Reported by Bruno Haible.
2537
2538 2012-05-13  Bruno Haible  <bruno@clisp.org>
2539             Paul Eggert  <eggert@cs.ucla.edu>
2540
2541         binary-io: Define set_binary_mode function.
2542         * lib/binary-io.h (set_binary_mode): New function.
2543         (SET_BINARY): Define in terms of set_binary_mode.
2544         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2545         * tests/test-binary-io.c (main): Accept an argument, and test either
2546         set_binary_mode or SET_BINARY depending on the argument.
2547         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2548         argument. Clean up also t-bin-out0.tmp.
2549
2550 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2551
2552         bootstrap: take advantage of POSIX shell features
2553
2554         The 'bootstrap' script offered by Gnulib script already uses POSIX
2555         shell features (like $((...)) arithmetic expansions) that are not
2556         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2557         means that bootstrap must already be run using a proper POSIX shell,
2558         which will thus provide more features, like ${var#pattern} parameter
2559         expansion or inversion of a command exit status with '!'.  We can
2560         thus use these features to improve the clarity and the performances
2561         of the bootstrap script.
2562
2563         Suggested by Eric Blake.
2564
2565         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2566         of sed/expr plus command substitutions, to save some forks.  While
2567         we are at it, prefer the POSIX $(...) form of command substitution,
2568         rather than the legacy form `...` (since the former is visually
2569         clearer and interacts better with quoting), and prefer the idiom:
2570           "if ! CMD; then ACTION ..."
2571         over the idiom:
2572           "if CMD; then :; else ACTION ..."
2573         which was required by legacy Bourne shells not supporting '!'.
2574
2575 2012-05-12  Bruno Haible  <bruno@clisp.org>
2576
2577         system-quote: Add more comments.
2578         * lib/system-quote.h: Add more comments about wilcards and limitations.
2579         Suggested by Eli Zaretskii <eliz@gnu.org>.
2580
2581         sh-quote, system-quote: Add comments about wildcards.
2582         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2583         * lib/system-quote.h: Likewise.
2584         Reported by Eli Zaretskii <eliz@gnu.org>.
2585
2586 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2587
2588         fsusage: check for GNU/Linux statvfs problem dynamically
2589         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2590         Define STAT_STATFS2_BSIZE too, since in this case the code now
2591         checks dynamically whether statvfs is reliable, falling back on
2592         Linux-style statfs otherwise.
2593         (statvfs_works): New function, for dynamically testing statvfs.
2594         (get_fs_usage) [STAT_STATVFS]: Use it.
2595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2596         statvfs on GNU/Linux hosts, since it's now done dynamically.
2597
2598 2012-05-10  Bruno Haible  <bruno@clisp.org>
2599
2600         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2601         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2602         '?' character.
2603         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2604         * tests/test-system-quote-main.c (check_all): Check also strings like
2605         "??????????".
2606         Reported by Eli Zaretskii <eliz@gnu.org>.
2607
2608 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2609
2610         _Noreturn: port config.h to gcc -Wundef
2611         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2612         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2613         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2614
2615 2012-05-10  Bruno Haible  <bruno@clisp.org>
2616
2617         system-quote: Refactor.
2618         * lib/system-quote.h (system_quote_copy): Fix comment.
2619         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2620         New functions, extracted from system_quote_copy.
2621         (system_quote_length, system_quote_copy): Use these functions.
2622         Reported by Paul Eggert.
2623
2624 2012-05-08  Bruno Haible  <bruno@clisp.org>
2625
2626         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2627         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2628
2629 2012-05-08  Bruno Haible  <bruno@clisp.org>
2630
2631         Tests for module 'system-quote'.
2632         * modules/system-quote-tests: New file.
2633         * tests/test-system-quote.sh: New file.
2634         * tests/test-system-quote-main.c: New file.
2635         * tests/test-system-quote-child.c: New file.
2636
2637         New module 'system-quote'.
2638         * lib/system-quote.h: New file.
2639         * lib/system-quote.c: New file.
2640         * modules/system-quote: New file.
2641
2642 2012-05-08  Bruno Haible  <bruno@clisp.org>
2643
2644         sh-quote: Make C++ safe and allow multiple inclusion.
2645         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2646         declarations in extern "C".
2647
2648 2012-05-08  Bruno Haible  <bruno@clisp.org>
2649
2650         sh-quote tests: Make tests stricter.
2651         * tests/test-sh-quote.c (check_one): Check the return value of
2652         shell_quote_copy.
2653         (main): Check a string with a CR character. Check a string that
2654         contains UCHAR_MAX.
2655
2656 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2657
2658         warnings.m4: provide a means to specify the program to compile.
2659         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2660         (gl_WARN_ADD): here.
2661         Use gl_AS_VAR_APPEND.
2662         Support an argument to specify the program to compile.
2663         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2664         AC_SUBST the WARN_CFLAGS when they are used.
2665         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2666         leave this to gl_WARN_ADD.
2667
2668 2012-05-08  Eric Blake  <eblake@redhat.com>
2669
2670         doc: recommendations on gettext version
2671         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2672         choice between versions.
2673         * DEPENDENCIES (gettext): Cover both approaches.
2674
2675 2012-05-08  Jim Meyering  <meyering@redhat.com>
2676
2677         init.sh: explain why EXEEXT support uses aliases rather than functions
2678         * tests/init.sh: Add a comment.
2679
2680         init.sh: don't let bash aliases interfere with tests
2681         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2682         is bash.  This avoids problems for those who alias standard commands to
2683         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2684         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2685
2686 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         stdint: be more consistent with glibc, SunOS libc
2689         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2690         (gl_int_fast16_t, gl_uint_fast16_t)
2691         (gl_int_fast32_t, gl_uint_fast32_t)
2692         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2693         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2694         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2695         Be consistent with glibc by default, and with SunOS 5.10 and later
2696         if __sun is defined.  This lessens the likelihood of clashes if
2697         code compiled for older hosts is combined with code compiled for
2698         newer ones.  Problem reported by Niels Möller in
2699         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2700
2701 2012-05-07  Eric Blake  <eblake@redhat.com>
2702
2703         isatty: relax license to LGPLv2+
2704         * modules/isatty (License): Relax license.
2705
2706 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2707
2708         stat-size: comment fix
2709         * lib/stat-size.h: Remove obsolete comment about indenting.
2710
2711 2012-05-06  Bruno Haible  <bruno@clisp.org>
2712
2713         Tests for module 'sh-quote'.
2714         * modules/sh-quote-tests: New file.
2715         * tests/test-sh-quote.c: New file.
2716
2717 2012-05-06  Bruno Haible  <bruno@clisp.org>
2718
2719         sh-quote: Improve shell_quote_argv's signature.
2720         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2721         * lib/sh-quote.c (shell_quote_argv): Likewise.
2722
2723 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2724
2725         stdint: document issues with int_fast8_t etc.
2726         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2727         stdint.h substitutes may define these types differently.  See
2728         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2729
2730 2012-05-05  Bruno Haible  <bruno@clisp.org>
2731
2732         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2734         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2735         or 'guessing no (mishandles large arguments)'.
2736
2737 2012-05-05  Bruno Haible  <bruno@clisp.org>
2738
2739         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2740         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2741         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2742         set gl_cv_func_link_follows_symlink to "guessing no".
2743
2744 2012-05-05  Bruno Haible  <bruno@clisp.org>
2745
2746         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2747         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2748         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2749         "guessing no".
2750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2751
2752 2012-05-05  Bruno Haible  <bruno@clisp.org>
2753
2754         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2755         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2756         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2757         set gl_cv_struct_dirent_d_ino to "guessing yes".
2758
2759 2012-05-05  Bruno Haible  <bruno@clisp.org>
2760
2761         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2762         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2763         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2764         "guessing yes".
2765
2766 2012-05-05  Bruno Haible  <bruno@clisp.org>
2767
2768         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2769         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2770         compiling to a glibc system, set gl_cv_func_signbit and
2771         gl_cv_func_signbit_gcc to "guessing yes".
2772
2773 2012-05-05  Bruno Haible  <bruno@clisp.org>
2774
2775         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2776         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2777         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2778         to "guessing yes".
2779         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2780         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2781
2782 2012-05-05  Bruno Haible  <bruno@clisp.org>
2783
2784         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2785         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2786         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2787         gl_cv_func_realpath_works to "guessing yes".
2788
2789 2012-05-05  Bruno Haible  <bruno@clisp.org>
2790
2791         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2792         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2793         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2794
2795 2012-05-04  Bruno Haible  <bruno@clisp.org>
2796
2797         Tweak last commit.
2798         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2799         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2800
2801 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2802
2803         unistd_h: make it easier to avoid sys_types_h
2804         This is useful for Emacs, which has its own method of porting to
2805         Windows, and which therefore does not need the sys_types_h module.
2806         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2807         code moved here from gl_SYS_TYPES_H.
2808         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2809         using the code directly.
2810         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2811         gl_SYS_TYPES_H.
2812         * modules/sys_types (Files):
2813         * modules/unistd (Files): Add m4/off_t.m4.
2814
2815 2012-05-03  Bruno Haible  <bruno@clisp.org>
2816
2817         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2818         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2819         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2820         "guessing yes" or "guessing no".
2821         (gl_FUNC_LSTAT): Update.
2822         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2823         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2824         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2825
2826 2012-05-03  Bruno Haible  <bruno@clisp.org>
2827
2828         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2829         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2830         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2831         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2832         cross-compiling, choose the first alternative on glibc systems.
2833         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2834
2835 2012-05-03  Bruno Haible  <bruno@clisp.org>
2836
2837         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2838         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2839         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2840
2841 2012-05-03  Bruno Haible  <bruno@clisp.org>
2842
2843         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2844         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2845
2846 2012-05-03  Bruno Haible  <bruno@clisp.org>
2847
2848         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2849         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2850         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2851         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2852         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2853         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2854         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2855         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2856         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2857         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2858         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2859         gl_cv_func_chown_ctime_works to "guessing yes".
2860         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2861         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2862         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2863         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2864         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2866         compiling to glibc systems, set gl_cv_func_open_directory_works to
2867         "guessing yes".
2868         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2870         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2871         "guessing yes".
2872         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2873         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2874         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2875         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2876         "guessing yes".
2877         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2878         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2879         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2880         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2881         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2882         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2883         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2884         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2885         "guessing yes".
2886         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2887         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2888         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2889         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2890         "guessing yes".
2891         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2892         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2893         "guessing yes".
2894         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2895         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2896         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2897         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2898         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2899         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2900         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2901         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2902         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2903         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2904         "guessing yes".
2905         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2906         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2907         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2908         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2909         "guessing yes".
2910         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2911         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2912         "guessing yes".
2913         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2914         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2915         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2916         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2917         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2918         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2919         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2920         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2921         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2922         "guessing yes".
2923         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2924         compiling to glibc systems, set gl_cv_func_mknod_works to
2925         "guessing yes".
2926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2927         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2928         "guessing yes".
2929         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2930         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2931         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2932         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2933         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2934         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2935         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2936         compiling to glibc systems, set gl_cv_func_svid_putenv to
2937         "guessing yes".
2938         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2939         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2940         "guessing yes".
2941         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2942         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2943         "guessing yes".
2944         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2945         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2946         to "guessing yes".
2947         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2948         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2949         to "guessing yes".
2950         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2951         compiling to glibc systems, set gl_cv_func_rmdir_works to
2952         "guessing yes".
2953         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2954         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2955         gl_cv_func_unlink_parent_fails to "guessing yes".
2956         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2957         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2958         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2959         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2960         gl_cv_func_rename_dest_works to "guessing yes".
2961         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2962         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2963         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2964         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2965         "guessing yes".
2966         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2967         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2968         "guessing yes".
2969         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2970         compiling to glibc systems, set gl_cv_func_setenv_works to
2971         "guessing yes".
2972         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2973         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2974         "guessing yes".
2975         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2976         compiling to glibc systems, set gl_cv_func_sleep_works to
2977         "guessing yes".
2978         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2979         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2980         "guessing yes".
2981         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2982         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2983         "guessing yes".
2984         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2985         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2986         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2987         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2988         "guessing yes".
2989         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2990         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2991         "guessing yes".
2992         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2993         compiling to glibc systems, set gl_cv_func_usleep_works to
2994         "guessing yes".
2995         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2996         compiling to glibc systems, set gl_cv_func_futimesat_works to
2997         "guessing yes".
2998
2999 2012-05-03  Bruno Haible  <bruno@clisp.org>
3000
3001         Say "guessing yes" or "guessing no" when cross-compiling.
3002         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3003         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3004         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3005         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3006         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3007         am_cv_func_working_getline to "guessing yes" or "guessing no".
3008         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3009         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3010         (gl_FUNC_MEMMEM): When cross-compiling, set
3011         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3013         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3014         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3015         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3016         "guessing no".
3017         (gl_FUNC_STRCASESTR): When cross-compiling, set
3018         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3019         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3020         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3021         (gl_FUNC_STRSTR): When cross-compiling, set
3022         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3023         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3024         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3025         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3026         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3027
3028 2012-05-01  Bruno Haible  <bruno@clisp.org>
3029
3030         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3031         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3032         * build-aux/reloc-ldflags: Likewise.
3033         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3034
3035 2012-05-01  Bruno Haible  <bruno@clisp.org>
3036
3037         gnulib-tool: Remove transitional code.
3038         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3039         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3040
3041 2012-05-01  Bruno Haible  <bruno@clisp.org>
3042
3043         getcwd: Fix misindentation.
3044         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3045
3046 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3047
3048         exclude: process exclude and include directives in order
3049         This restores the pre-2009 behavior, and is part of a fix of a
3050         grep bug reported by Quentin Arce in
3051         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3052         * lib/exclude.c (struct exclude): Remove 'tail' member.
3053         (new_exclude_segment): Prepend the new segment instead of appending.
3054         Return void, since that's now more convenient.
3055         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3056         (file_name_matches): Renamed from excluded_file_name_p.
3057         (file_pattern_matches, file_name_matches):
3058         Return true if the pattern matches, not if it excludes.
3059         All callers changed.
3060         (excluded_file_name): Process the list in reverse order;
3061         since the list is now reversed this restores the pre-2009 behavior.
3062         (add_exclude): Adjust to new reversed-order list.  Use local var
3063         rather than macro, for clarity.
3064         * tests/test-exclude7.sh: Adjust to corrected behavior.
3065
3066         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3067         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3068         it's not possible here.  Handle the case of \ at end of pattern
3069         without dumping core.
3070         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3071
3072         _Noreturn: future-proof non-GNU and non-MSVC compilers
3073         * build-aux/snippet/_Noreturn.h (_Noreturn):
3074         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3075         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3076         C11 or later.  This is more likely to work with random future C
3077         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3078         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3079
3080         exclude: handle wildcards with FNM_EXTMATCH
3081         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3082         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3083         comment that "has wildcards" really means "has or may have
3084         wildcards".  Simplify by avoiding the need to call strcspn.
3085
3086 2012-04-29  Bruno Haible  <bruno@clisp.org>
3087
3088         gnulib-tool: Fix list of authors.
3089         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3090
3091 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3092
3093         bootstrap: support Automake-NG in $buildreq
3094         * bootstrap (check_versions): Handle automake and aclocal from
3095         Automake-NG specially.  They can be specified as respectively
3096         the "automake-ng" and "aclocal-ng" requirements.
3097
3098 2012-04-25  Eric Blake  <eblake@redhat.com>
3099
3100         bootstrap: only force latest Makefile.in.in for gettext module
3101         * build-aux/bootstrap (with_gettext): Only install latest
3102         Makefile.in.in for projects requesting bleeding edge gettext.
3103
3104 2012-04-22  Bruno Haible  <bruno@clisp.org>
3105
3106         doc: Mention reason for replacement on glibc/Linux systems.
3107         * doc/posix-functions/dprintf.texi: Mention the problem with special
3108         'long double' values.
3109         * doc/posix-functions/fprintf.texi: Likewise.
3110         * doc/posix-functions/printf.texi: Likewise.
3111         * doc/posix-functions/snprintf.texi: Likewise.
3112         * doc/posix-functions/sprintf.texi: Likewise.
3113         * doc/posix-functions/vdprintf.texi: Likewise.
3114         * doc/posix-functions/vfprintf.texi: Likewise.
3115         * doc/posix-functions/vprintf.texi: Likewise.
3116         * doc/posix-functions/vsnprintf.texi: Likewise.
3117         * doc/posix-functions/vsprintf.texi: Likewise.
3118         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3119         platforms with F_DUPFD_CLOEXEC problems.
3120         * doc/posix-functions/glob.texi: Mention which platforms are affected
3121         by the problem with symbolic links.
3122         * doc/posix-functions/linkat.texi: Mention the problem with
3123         AT_SYMLINK_FOLLOW on Linux.
3124
3125 2012-04-22  Bruno Haible  <bruno@clisp.org>
3126
3127         pwrite: Don't replace on all platforms.
3128         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3129
3130 2012-04-22  Bruno Haible  <bruno@clisp.org>
3131
3132         rint* tests: Avoid gcc warnings.
3133         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3134         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3135         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3136
3137 2012-04-21  Bruno Haible  <bruno@clisp.org>
3138
3139         users.txt: Update.
3140         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3141         switched from CVS to git, bzr, or svn.
3142
3143 2012-04-21  Bruno Haible  <bruno@clisp.org>
3144
3145         Large File Support for native Windows platforms.
3146
3147         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3148         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3149
3150         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3151         type.
3152         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3153         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3154         * doc/posix-headers/sys_types.texi: Mention the effect of the
3155         'largefile' module.
3156
3157         * lib/fcntl.in.h: Add comments about off_t.
3158         * modules/fcntl-h (Depends-on): Add sys_types.
3159
3160         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3161         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3162         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3163         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3164         * modules/unistd (Depends-on): Add sys_types.
3165         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3166
3167         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3168         instead of lseek.
3169         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3170         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3171         * modules/lseek (Depends-on): Add sys_types.
3172
3173         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3174         msvc-nothrow.h.
3175         (SetFileSize): New function.
3176         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3177         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3178         if Large File Support is requested.
3179         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3180         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3181
3182         * lib/stdio.in.h: Add comments about off_t.
3183         * modules/stdio (Depends-on): Add sys_types.
3184
3185         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3186         instead of ftello.
3187         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3188         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3189         (gl_PREREQ_FTELLO): New macro.
3190         * modules/ftello (Depends-on): Add sys_types.
3191         (configure.ac): Incoke gl_PREREQ_FTELLO.
3192
3193         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3194         instead of fseeko.
3195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3196         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3197         (gl_PREREQ_FSEEKO): New macro.
3198         * modules/fseeko (Depends-on): Add sys_types.
3199         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3200
3201         * lib/sys_stat.in.h: Add comments about off_t.
3202         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3203         64-bit integer for st_size in 'struct stat'.
3204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3205         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3206         * modules/sys_stat (Depends-on): Add sys_types.
3207         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3208
3209         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3210         instead of stat or _stat.
3211
3212         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3213         'struct _stati64' instead of fstat and 'struct stat'.
3214         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3215         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3216
3217         Reported by Ray Satiro <raysatiro@yahoo.com>.
3218
3219 2012-04-19  Eric Blake  <eblake@redhat.com>
3220
3221         bootstrap: accommodate older libtool
3222         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3223         Reported by Daniel P. Berrange.
3224
3225 2012-04-19  Jim Meyering  <meyering@redhat.com>
3226
3227         announce-gen: avoid failure due to lack of Digest::SHA1
3228         Even with the preferred Digest::SHA available, this script
3229         would fail when the backup module, Digest::SHA1, was not installed.
3230         * build-aux/announce-gen: Quote the conditional use of "use".
3231         Reported by Reuben Thomas in:
3232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3233
3234         bootstrap: don't let a user's CDPATH setting affect this script
3235         When CDPATH is set, cd will sometimes generate output.
3236         When "cd" is run in a subshell whose output matters, that
3237         surprising-to-some output can cause malfunction.
3238         Unsetting CDPATH turns off this shell "feature."
3239         * build-aux/bootstrap (CDPATH): Unset.
3240         Reported by Reuben Thomas in:
3241         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3242         and inspired by his patch here:
3243         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3244
3245 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3246         and Jim Meyering  <meyering@redhat.com>
3247
3248         maint.mk: catch "see @xref{}" and similar
3249         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3250         prohibit "See also @xref{", "Also see @pxref{", and similar.
3251
3252 2012-04-16  Jim Meyering  <meyering@redhat.com>
3253
3254         bootstrap: really use gnulib's po/Makefile.in.in
3255         * build-aux/bootstrap: Correct the source file name in previous change.
3256         Reported by Akim Demaille.
3257
3258         configmake: correct minor inconsistency in Makefile rule
3259         * modules/configmake (Makefile.am): All other rules like this one
3260         run the final "mv -f ..." in the same backslash-continued command
3261         as the one that does everything else.  This one put the mv -f ...
3262         command on a separate, non-backslash-continued line.
3263         Make it like the others.
3264
3265         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3266         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3267         the one from gettext.  Reported by Akim Demaille.
3268
3269 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3270
3271         Fix recursion of install-* into po directories.
3272         Bison's install-pdf bug reported by Hans Aberg at
3273         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3274         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3275         (install-info, install-pdf, install-ps): New targets.
3276
3277 2012-04-16  Jim Meyering  <meyering@redhat.com>
3278
3279         maint: avoid spurious "make sc_maint" failure
3280         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3281         exempt all *.class file names, for lib/javaversion.class.
3282
3283 2012-04-15  Bruno Haible  <bruno@clisp.org>
3284
3285         lseek: Make configure test independent of environment.
3286         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3287         Windows, we know that lseek() on pipes is broken; skip the runtime
3288         test.
3289
3290 2012-04-14  Bruno Haible  <bruno@clisp.org>
3291
3292         stat: Bypass buggy override in mingw64.
3293         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3294         * lib/stat.c (stat) [mingw64]: Define to _stat.
3295         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3296
3297 2012-04-14  Bruno Haible  <bruno@clisp.org>
3298
3299         pathmax: Fix compilation error on MSVC 9.
3300         * modules/pathmax (Depends-on): Add unistd.
3301
3302 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3303
3304         README: document pointer comparison assumption
3305         * README (Portability guidelines): Document assumption about
3306         pointer comparisons, in response to a recent bug-gnulib comment by
3307         Jeffrey Kegler.
3308
3309 2012-04-12  Bruno Haible  <bruno@clisp.org>
3310
3311         Tests for module 'getrusage'.
3312         * modules/getrusage-tests: New file.
3313         * tests/test-getrusage.c: New file.
3314
3315         New module 'getrusage'.
3316         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3317         warn-on-use.h.
3318         (getrusage): New declaration.
3319         * lib/getrusage.c: New file.
3320         * m4/getrusage.m4: New file.
3321         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3322         is declared.
3323         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3324         HAVE_GETRUSAGE.
3325         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3326         snippet/c++defs, snippet/warn-on-use.
3327         (Makefile.am): Update generation of sys/resource.h. Substitute
3328         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3329         * modules/getrusage: New file.
3330         * doc/posix-functions/getrusage.texi: Mention the new module.
3331
3332 2012-04-12  Bruno Haible  <bruno@clisp.org>
3333
3334         Tests for module 'sys_resource'.
3335         * modules/sys_resource-tests: New file.
3336         * tests/test-sys_resource.c: New file.
3337
3338         New module 'sys_resource'.
3339         * lib/sys_resource.in.h: New file.
3340         * m4/sys_resource_h.m4: New file.
3341         * modules/sys_resource: New file.
3342         * doc/posix-headers/sys_resource.texi: Mention the new module.
3343
3344 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3345
3346         ioctl: Fix compilation error on mingw.
3347         * lib/ioctl.c: Include <windows.h>.
3348         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3349
3350 2012-04-04  Jim Meyering  <meyering@redhat.com>
3351
3352         regex: correct #pragma guard expression
3353         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3354         not 4.3.  Correct its cpp guard expression.
3355
3356 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3357
3358         regex: remove unnecessary type punning
3359         Problem reported by Vladimir Serbinenko in
3360         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3361         * lib/regex.h (struct re_pattern_buffer): Change the type of
3362         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3363         Fix comment to match code.
3364         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3365         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3366         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3367         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3368         (set_regs):
3369         Omit no-longer-necessary casts.
3370
3371 2012-04-03  Bruno Haible  <bruno@clisp.org>
3372
3373         Tests for module 'ilogbl'.
3374         * modules/ilogbl-tests: New file.
3375         * tests/test-ilogbl.c: New file.
3376
3377         New module 'ilogbl'.
3378         * lib/math.in.h (ilogbl): New declaration.
3379         * lib/ilogbl.c: New file.
3380         * m4/ilogbl.m4: New file.
3381         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3383         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3384         Split sed invocation, to avoid the limit of 100 substitutions of
3385         HP-UX 'sed'.
3386         * modules/ilogbl: New file.
3387         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3388         * doc/posix-functions/ilogbl.texi: Mention the new module.
3389
3390 2012-04-03  Bruno Haible  <bruno@clisp.org>
3391
3392         Tests for module 'ilogbf'.
3393         * modules/ilogbf-tests: New file.
3394         * tests/test-ilogbf.c: New file.
3395
3396         New module 'ilogbf'.
3397         * lib/math.in.h (ilogbf): New declaration.
3398         * lib/ilogbf.c: New file.
3399         * m4/ilogbf.m4: New file.
3400         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3402         REPLACE_ILOGBF.
3403         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3404         REPLACE_ILOGBF.
3405         * modules/ilogbf: New file.
3406         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3407         * doc/posix-functions/ilogbf.texi: Mention the new module.
3408
3409 2012-04-03  Bruno Haible  <bruno@clisp.org>
3410
3411         Tests for module 'ilogb'.
3412         * modules/ilogb-tests: New file.
3413         * tests/test-ilogb.c: New file.
3414         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3415         tests/test-logb-ieee.h.
3416
3417         New module 'ilogb'.
3418         * lib/math.in.h (ilogb): New declaration.
3419         * lib/ilogb.c: New file.
3420         * m4/ilogb.m4: New file.
3421         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3423         REPLACE_ILOGB.
3424         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3425         REPLACE_ILOGB.
3426         * modules/ilogb: New file.
3427         * tests/test-math-c++.cc: Check the declaration of ilogb.
3428         * doc/posix-functions/ilogb.texi: Mention the new module.
3429
3430 2012-04-03  Bruno Haible  <bruno@clisp.org>
3431
3432         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3433         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3434         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3435         (main): Check their values.
3436         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3437         problem.
3438
3439 2012-04-03  Bruno Haible  <bruno@clisp.org>
3440
3441         Tests for module 'logbl-ieee'.
3442         * modules/logbl-ieee-tests: New file.
3443         * tests/test-logbl-ieee.c: New file.
3444
3445         New module 'logbl-ieee'.
3446         * modules/logbl-ieee: New file.
3447
3448         Tests for module 'logb-ieee'.
3449         * modules/logb-ieee-tests: New file.
3450         * tests/test-logb-ieee.c: New file.
3451
3452         New module 'logb-ieee'.
3453         * modules/logb-ieee: New file.
3454
3455         Tests for module 'logbf-ieee'.
3456         * modules/logbf-ieee-tests: New file.
3457         * tests/test-logbf-ieee.c: New file.
3458         * tests/test-logb-ieee.h: New file.
3459
3460         New module 'logbf-ieee'.
3461         * modules/logbf-ieee: New file.
3462
3463 2012-04-03  Bruno Haible  <bruno@clisp.org>
3464
3465         Tests for module 'logbl'.
3466         * modules/logbl-tests: New file.
3467         * tests/test-logbl.c: New file.
3468
3469         New module 'logbl'.
3470         * lib/math.in.h (logbl): New declaration.
3471         * lib/logbl.c: New file.
3472         * m4/logbl.m4: New file.
3473         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3475         REPLACE_LOGBL.
3476         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3477         REPLACE_LOGBL.
3478         * modules/logbl: New file.
3479         * tests/test-math-c++.cc: Check the declaration of logbl.
3480         * doc/posix-functions/logbl.texi: Mention the new module.
3481
3482 2012-04-02  Bruno Haible  <bruno@clisp.org>
3483
3484         Tests for module 'logbf'.
3485         * modules/logbf-tests: New file.
3486         * tests/test-logbf.c: New file.
3487
3488         New module 'logbf'.
3489         * lib/math.in.h (logbf): New declaration.
3490         * lib/logbf.c: New file.
3491         * m4/logbf.m4: New file.
3492         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3494         REPLACE_LOGBF.
3495         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3496         REPLACE_LOGBF.
3497         * modules/logbf: New file.
3498         * tests/test-math-c++.cc: Check the declaration of logbf.
3499         * doc/posix-functions/logbf.texi: Mention the new module.
3500
3501 2012-04-02  Bruno Haible  <bruno@clisp.org>
3502
3503         logb tests: More tests.
3504         * tests/test-logb.h: New file, based on tests/test-logb.c and
3505         tests/test-frexp.h.
3506         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3507         (main): Just invoke test_function.
3508         * modules/logb-tests (Files): Add tests/test-logb.h,
3509         tests/minus-zero.h, tests/randomd.c.
3510         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3511
3512         logb: Provide replacement and workarounds.
3513         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3514         is 1.
3515         * lib/logb.c: New file.
3516         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3517         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3519         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3520         * modules/logb (Files): Add lib/logb.c.
3521         (Depends-on): Add isfinite, frexp, isnand.
3522         (configure.ac): Compile the replacement code logb.c if needed.
3523         * tests/test-math-c++.cc: Check the declaration of logb.
3524         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3525         with subnormal numbers.
3526
3527 2012-04-02  Bruno Haible  <bruno@clisp.org>
3528
3529         log10* tests: Speed up.
3530         * tests/test-log10.h (test_function): Reduce amount of random numbers
3531         to test.
3532
3533 2012-04-01  Bruno Haible  <bruno@clisp.org>
3534
3535         logf-ieee: Fix test whether logf works.
3536         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3537
3538 2012-04-01  Bruno Haible  <bruno@clisp.org>
3539
3540         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3541         * lib/log10l.c: Include <float.h>
3542         (log10l): On IRIX, normalize the +Infinity value.
3543         * modules/log10l (Depends-on): Add 'float'.
3544         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3545         +Infinity.
3546
3547         log10f-ieee: Work around test failure on NetBSD 5.1.
3548         * m4/log10f-ieee.m4: New file.
3549         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3550         test whether log10f works with a negative argument. Replace it if not.
3551         * lib/log10f.c (log10f): For negative arguments, return NaN.
3552         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3553         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3554         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3555
3556         log10f-ieee: Work around test failure on Solaris 9.
3557         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3558         (configure.ac): Require gl_FUNC_LOG10F.
3559
3560         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3561         * m4/log10-ieee.m4: New file.
3562         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3563         whether log10 works with a negative argument. Replace it if not.
3564         * lib/log10.c (log10): For negative arguments, return NaN.
3565         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3566         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3567         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3568
3569         Tests for module 'log10l-ieee'.
3570         * modules/log10l-ieee-tests: New file.
3571         * tests/test-log10l-ieee.c: New file.
3572
3573         New module 'log10l-ieee'.
3574         * modules/log10l-ieee: New file.
3575
3576         Tests for module 'log10-ieee'.
3577         * modules/log10-ieee-tests: New file.
3578         * tests/test-log10-ieee.c: New file.
3579
3580         New module 'log10-ieee'.
3581         * modules/log10-ieee: New file.
3582
3583         Tests for module 'log10f-ieee'.
3584         * modules/log10f-ieee-tests: New file.
3585         * tests/test-log10f-ieee.c: New file.
3586         * tests/test-log10-ieee.h: New file.
3587
3588         New module 'log10f-ieee'.
3589         * modules/log10f-ieee: New file.
3590
3591 2012-04-01  Bruno Haible  <bruno@clisp.org>
3592
3593         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3594         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3595         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3596         workaround.
3597         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3598         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3600         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3601         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3602         (Depends-on): Update conditions.
3603         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3604         IRIX 6.5, OSF/1 5.1 problems.
3605
3606 2012-04-01  Bruno Haible  <bruno@clisp.org>
3607
3608         log10f: Work around OSF/1 5.1 bug.
3609         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3610         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3611         workaround.
3612         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3613         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3615         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3616         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3617         (Depends-on): Update conditions.
3618         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3619
3620 2012-04-01  Bruno Haible  <bruno@clisp.org>
3621
3622         log10: Work around OSF/1 5.1 bug.
3623         * lib/math.in.h (log10): New declaration.
3624         * lib/log10.c: New file.
3625         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3626         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3627         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3629         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3630         * modules/log10 (Files): Add lib/log10.c.
3631         (Depends-on): Add math.
3632         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3633         * tests/test-math-c++.cc: Check the declaration of log10.
3634         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3635
3636 2012-03-31  Bruno Haible  <bruno@clisp.org>
3637
3638         log10l tests: More tests.
3639         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3640         tests/minus-zero.h, tests/randoml.c.
3641         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3642         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3643         (main): Invoke test_function.
3644
3645         log10f tests: More tests.
3646         * modules/log10f-tests (Files): Add tests/test-log10.h,
3647         tests/minus-zero.h, tests/randomf.c.
3648         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3649         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3650         (main): Invoke test_function.
3651
3652         log10 tests: More tests.
3653         * tests/test-log10.h: New file.
3654         * modules/log10-tests (Files): Add tests/test-log10.h,
3655         tests/minus-zero.h, tests/randomd.c.
3656         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3657         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3658         (main): Invoke test_function.
3659
3660 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3661
3662         fflush: Fix syntax error.
3663         * lib/fflush.c: Include unused-parameter.h, needed for
3664         _GL_UNUSED_PARAMETER.
3665         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3666
3667 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3668
3669         regex: pacify GCC when compiling GRUB
3670         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3671         a diagnostic.  Reported by Vladimir Serbinenko in
3672         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3673
3674 2012-03-29  Eric Blake  <eblake@redhat.com>
3675
3676         stdio: don't assume gets any more
3677         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3678         support.
3679         * modules/stdio (Makefile.am): Likewise.
3680         * lib/stdio-read.c (gets): Likewise.
3681         * tests/test-stdio-c++.cc: Likewise.
3682         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3683         * lib/stdio.in.h (gets): Make warning occur in more places.
3684         * doc/posix-functions/gets.texi (gets): Update documentation.
3685         Reported by Christer Solskogen.
3686
3687         maint.mk: fix syntax checks without exclusions
3688         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3689         Reported by Daniel P. Berrange.
3690
3691         strerror_r: avoid compiler warning
3692         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3693         level.
3694
3695         fflush: avoid compiler warning
3696         * lib/fflush.c (update_fpos_cache): Mark variables that are
3697         potentially unused.
3698
3699 2012-03-25  Bruno Haible  <bruno@clisp.org>
3700
3701         Tests for module 'localeconv'.
3702         * modules/localeconv-tests: New file.
3703         * tests/test-localeconv.c: New file.
3704
3705         New module 'localeconv'.
3706         * lib/locale.in.h (localeconv): New declaration.
3707         * lib/localeconv.c: New file.
3708         * m4/localeconv.m4: New file.
3709         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3710         REPLACE_LOCALECONV.
3711         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3712         REPLACE_LOCALECONV.
3713         * modules/localeconv: New file.
3714         * modules/nl_langinfo (Depends-on): Add localeconv.
3715         * modules/human (Depends-on): Likewise.
3716         * doc/posix-functions/localeconv.texi: Mention the new module.
3717
3718 2012-03-25  Bruno Haible  <bruno@clisp.org>
3719
3720         locale: Provide a complete 'struct lconv'.
3721         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3722         'struct lconv' does not contain int_p_cs_precedes.
3723         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3724         * doc/posix-headers/locale.texi: Update.
3725
3726         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3727         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3728         * doc/posix-headers/locale.texi: Update.
3729
3730         locale: Provide a working 'struct lconv'.
3731         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3732         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3733         'struct lconv' does not even contain decimal_point.
3734         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3735         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3736         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3737         * doc/posix-headers/locale.texi: Mention the problems with
3738         'struct lconv'.
3739         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3740
3741 2012-03-24  Bruno Haible  <bruno@clisp.org>
3742
3743         Enable common subexpression optimization in GCC.
3744         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3745         macros.
3746         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3747         GCC attribute 'const'.
3748         (uc_locale_language): Declare with GCC attribute 'pure'.
3749         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3750         with GCC attribute 'const'.
3751         * lib/unictype.in.h (uc_is_general_category_withtable,
3752         uc_combining_class, uc_combining_class_name,
3753         uc_combining_class_long_name, uc_bidi_class_name,
3754         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3755         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3756         uc_decimal_value, uc_digit_value, uc_numeric_value,
3757         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3758         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3759         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3760         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3761         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3762         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3763         Declare with GCC attribute 'const'.
3764         (uc_general_category_name, uc_general_category_long_name,
3765         uc_general_category_byname, uc_general_category,
3766         uc_is_general_category, uc_combining_class_byname,
3767         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3768         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3769         Declare with GCC attribute 'pure'.
3770         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3771         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3772         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3773         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3774         with GCC attribute 'pure'.
3775         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3776         'const'.
3777         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3778         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3779         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3780         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3781         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3782         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3783         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3784         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3785         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3786         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3787         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3788         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3789         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3790         GCC attribute 'pure'.
3791         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3792         'const'.
3793         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3794         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3795         u32_strwidth): Declare with GCC attribute 'pure'.
3796
3797         Enable common subexpression optimization in GCC.
3798         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3799         (alphasort): Declare with GCC attribute 'pure'.
3800         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3801         (atoll): Declare with GCC attribute 'pure'.
3802         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3803         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3804         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3805         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3806         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3807         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3808         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3809
3810 2012-03-24  Bruno Haible  <bruno@clisp.org>
3811
3812         gnulib-tool: Avoid unintended error output from 'cmp'.
3813         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3814         "cmp -s", not "cmp > /dev/null".
3815
3816 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3817
3818         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3819
3820         It's not just Automake versions < 1.9b that creates an empty
3821         pkgdatadir at installation time if pkgdata_DATA is specified
3822         to empty; modern automake versions do this as well, at least
3823         until automake 1.11.4 (not yet released at the moment of writing,
3824         but soon to appear).  That behaviour was generally considered a
3825         feature rather than a bug, at least until this discussion:
3826         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3827
3828         See also automake bugs #10997 and #11030.
3829
3830         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3831         reference to relevant automake bug numbers.
3832         (func_emit_tests_Makefile_am): Likewise.
3833
3834 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3835
3836         announce-gen: use Digest::SHA when possible
3837         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3838         back to Digest::SHA1 if necessary.
3839
3840 2012-03-20  Jim Meyering  <meyering@redhat.com>
3841
3842         tests: avoid gcc warnings about argv vs. const initializers
3843         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3844         warnings about discarding 'const' qualifier from pointer target type.
3845         * tests/test-posix_spawn2.c (main): Likewise.
3846
3847 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3848
3849         README-release: simplify slightly
3850         * top/README-release: Run "git checkout master" only once.
3851
3852 2012-03-15  Mark Wielaard  <mark@klomp.org>
3853
3854         git-merge-changelog: add specific example on how to use with hg.
3855         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3856
3857 2012-03-18  Mark Wielaard  <mark@klomp.org>
3858
3859         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3860
3861 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3862
3863         git-version-gen: don't let "prefix" envvar cause trouble
3864         * build-aux/git-version-gen (prefix): Initialize properly,
3865         so as not to use a value specified via the environment.
3866         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3867
3868 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3869
3870         regex: diagnose too-large repeat counts in EREs
3871         Previously, the code did not diagnose the too-large repeat count
3872         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3873         as if it were 'b\{1000000000}', which is unexpected.
3874         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3875         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3876         is a reasonable one for this problem.  Another option would be to
3877         create a new REG_OVERFLOW error for repeat counts that are too large.
3878         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3879         count is too large, so that the caller can distinguish the two cases.
3880         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3881         "Too large" return code, and that repeat counts are one example of this.
3882
3883 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3884
3885         doc: some glibc x32 integer width issues
3886         * doc/posix-headers/sys_types.texi (sys/types.h):
3887         * doc/posix-headers/time.texi (time.h):
3888         Mention that glibc x32 does not conform to POSIX in a couple of
3889         areas related to integer widths.
3890
3891 2012-03-15  Bruno Haible  <bruno@clisp.org>
3892
3893         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3894         * lib/fma.c (VOLATILE): New macro.
3895         (FUNC): Use it to work around a GCC compiler bug.
3896
3897 2012-03-13  Bruno Haible  <bruno@clisp.org>
3898
3899         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3900         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3901         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3902         REPLACE_HYPOTL to 1.
3903         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3904
3905 2012-03-13  Bruno Haible  <bruno@clisp.org>
3906
3907         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3908         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3909         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3910         REPLACE_REMAINDERL to 1.
3911         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3912         bug.
3913
3914 2012-03-13  Bruno Haible  <bruno@clisp.org>
3915
3916         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3917         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3918         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3919         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3920         too big rounding errors.
3921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3922         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3923         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3924         (Depends-on): Update conditions.
3925         * tests/test-sqrtl.c (my_ldexpl): New function.
3926         (main): Add test of a particular value.
3927         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3928
3929 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3930
3931         doc: Update timer_* platform portability notes.
3932         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3933         that always return ENOSYS.
3934         * doc/posix-functions/timer_delete.texi: Likewise.
3935         * doc/posix-functions/timer_gettime.texi: Likewise.
3936         * doc/posix-functions/timer_settime.texi: Likewise.
3937
3938 2012-03-13  Bruno Haible  <bruno@clisp.org>
3939
3940         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3941         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3942         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3943         REPLACE_CBRTL to 1.
3944         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3945
3946 2012-03-13  Bruno Haible  <bruno@clisp.org>
3947
3948         remainderl: Avoid compilation error on AIX >= 5.2.
3949         * lib/math.in.h (remainderl): Undefine macro from the system header.
3950
3951 2012-03-13  Bruno Haible  <bruno@clisp.org>
3952
3953         Avoid compilation errors with MSVC option -fp:strict.
3954         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3955         * lib/cbrtf.c: Likewise.
3956         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3957
3958 2012-03-12  Bruno Haible  <bruno@clisp.org>
3959
3960         uninorm: Don't crash in out-of-memory conditions.
3961         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3962         gracefully.
3963         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3964         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3965
3966 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3967
3968         quote: fix syntax-check
3969         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3970         also exports quote_quoting_options.
3971
3972 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3973
3974         Collapse list of copyright years to ranges.  See
3975         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3976         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3977         build-aux/csharpexec.sh.in, build-aux/gnupload,
3978         build-aux/install-reloc, build-aux/javacomp.sh.in,
3979         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3980         build-aux/move-if-change, build-aux/reloc-ldflags,
3981         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3982
3983 2012-03-11  Bruno Haible  <bruno@clisp.org>
3984
3985         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3986         * m4/log2f-ieee.m4: New file.
3987         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3988         whether log2f works with a minus zero argument. Replace it if not.
3989         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3990         (Depends-on): Add log2-ieee.
3991         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3992         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3993
3994         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3995         * m4/log2-ieee.m4: New file.
3996         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3997         whether log2 works with a minus zero argument. Replace it if not.
3998         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3999         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4000         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4001
4002         Tests for module 'log2l-ieee'.
4003         * modules/log2l-ieee-tests: New file.
4004         * tests/test-log2l-ieee.c: New file.
4005
4006         New module 'log2l-ieee'.
4007         * modules/log2l-ieee: New file.
4008
4009         Tests for module 'log2-ieee'.
4010         * modules/log2-ieee-tests: New file.
4011         * tests/test-log2-ieee.c: New file.
4012
4013         New module 'log2-ieee'.
4014         * modules/log2-ieee: New file.
4015
4016         Tests for module 'log2f-ieee'.
4017         * modules/log2f-ieee-tests: New file.
4018         * tests/test-log2f-ieee.c: New file.
4019         * tests/test-log2-ieee.h: New file.
4020
4021         New module 'log2f-ieee'.
4022         * modules/log2f-ieee: New file.
4023
4024 2012-03-11  Bruno Haible  <bruno@clisp.org>
4025
4026         Tests for module 'log2l'.
4027         * modules/log2l-tests: New file.
4028         * tests/test-log2l.c: New file.
4029
4030         New module 'log2l'.
4031         * lib/math.in.h (log2l): New declaration.
4032         * lib/log2l.c: New file.
4033         * m4/log2l.m4: New file.
4034         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4036         REPLACE_LOG2L.
4037         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4038         REPLACE_LOG2L.
4039         * modules/log2l: New file.
4040         * tests/test-math-c++.cc: Check the declaration of log2l.
4041         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4042         and OSF/1 problems.
4043
4044 2012-03-11  Bruno Haible  <bruno@clisp.org>
4045
4046         Tests for module 'log2f'.
4047         * modules/log2f-tests: New file.
4048         * tests/test-log2f.c: New file.
4049
4050         New module 'log2f'.
4051         * lib/math.in.h (log2f): New declaration.
4052         * lib/log2f.c: New file.
4053         * m4/log2f.m4: New file.
4054         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4056         REPLACE_LOG2F.
4057         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4058         REPLACE_LOG2F.
4059         * modules/log2f: New file.
4060         * tests/test-math-c++.cc: Check the declaration of log2f.
4061         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4062         and OSF/1 and Cygwin problems.
4063
4064 2012-03-11  Bruno Haible  <bruno@clisp.org>
4065
4066         Tests for module 'log2'.
4067         * modules/log2-tests: New file.
4068         * tests/test-log2.c: New file.
4069         * tests/test-log2.h: New file.
4070
4071         New module 'log2'.
4072         * lib/math.in.h (log2): New declaration.
4073         * lib/log2.c: New file.
4074         * m4/log2.m4: New file.
4075         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4077         REPLACE_LOG2.
4078         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4079         REPLACE_LOG2.
4080         * modules/log2: New file.
4081         * tests/test-math-c++.cc: Check the declaration of log2.
4082         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4083         and OSF/1 and Cygwin problems.
4084
4085 2012-03-11  Bruno Haible  <bruno@clisp.org>
4086
4087         exp2* tests: More tests.
4088         * tests/test-exp2.h (test_function): Test all integral arguments that
4089         don't need to overflow or denormalized numbers.
4090         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4091         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4092         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4093
4094 2012-03-10  Bruno Haible  <bruno@clisp.org>
4095
4096         log1pl-ieee: Work around test failure on AIX 7.1.
4097         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4098
4099         log1pl-ieee: Work around test failure on IRIX 6.5.
4100         * m4/log1pl-ieee.m4: New file.
4101         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4102         test whether log1pl works with a minus zero argument. Replace it if
4103         not.
4104         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4106         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4107         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4108         (Depends-on): Update conditions.
4109         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4110         m4/signbit.m4.
4111         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4112         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4113
4114         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4115         * m4/log1pf-ieee.m4: New file.
4116         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4117         test whether log1pf works with a minus zero argument. Replace it if
4118         not.
4119         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4120         m4/signbit.m4.
4121         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4122         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4123
4124         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4125         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4126         (configure.ac): Require gl_FUNC_LOG1PF.
4127
4128         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4129         * m4/log1p-ieee.m4: New file.
4130         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4131         whether log1p works with a minus zero argument. Replace it if not.
4132         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4134         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4135         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4136         (Depends-on): Update conditions.
4137         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4138         m4/signbit.m4.
4139         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4140         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4141
4142         Tests for module 'log1pl-ieee'.
4143         * modules/log1pl-ieee-tests: New file.
4144         * tests/test-log1pl-ieee.c: New file.
4145
4146         New module 'log1pl-ieee'.
4147         * modules/log1pl-ieee: New file.
4148
4149         Tests for module 'log1p-ieee'.
4150         * modules/log1p-ieee-tests: New file.
4151         * tests/test-log1p-ieee.c: New file.
4152
4153         New module 'log1p-ieee'.
4154         * modules/log1p-ieee: New file.
4155
4156         Tests for module 'log1pf-ieee'.
4157         * modules/log1pf-ieee-tests: New file.
4158         * tests/test-log1pf-ieee.c: New file.
4159         * tests/test-log1p-ieee.h: New file.
4160
4161         New module 'log1pf-ieee'.
4162         * modules/log1pf-ieee: New file.
4163
4164 2012-03-10  Bruno Haible  <bruno@clisp.org>
4165
4166         Tests for module 'log1pl'.
4167         * modules/log1pl-tests: New file.
4168         * tests/test-log1pl.c: New file.
4169
4170         New module 'log1pl'.
4171         * lib/math.in.h (log1pl): New declaration.
4172         * lib/log1pl.c: New file.
4173         * m4/log1pl.m4: New file.
4174         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4176         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4177         * modules/log1pl: New file.
4178         * tests/test-math-c++.cc: Check the declaration of log1pl.
4179         * doc/posix-functions/log1pl.texi: Mention the new module.
4180
4181 2012-03-10  Bruno Haible  <bruno@clisp.org>
4182
4183         Tests for module 'log1pf'.
4184         * modules/log1pf-tests: New file.
4185         * tests/test-log1pf.c: New file.
4186
4187         New module 'log1pf'.
4188         * lib/math.in.h (log1pf): New declaration.
4189         * lib/log1pf.c: New file.
4190         * m4/log1pf.m4: New file.
4191         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4193         REPLACE_LOG1PF.
4194         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4195         REPLACE_LOG1PF.
4196         * modules/log1pf: New file.
4197         * tests/test-math-c++.cc: Check the declaration of log1pf.
4198         * doc/posix-functions/log1pf.texi: Mention the new module.
4199
4200 2012-03-10  Bruno Haible  <bruno@clisp.org>
4201
4202         log1p tests: More tests.
4203         * tests/test-log1p.h: New file.
4204         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4205         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4206         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4207         (main): Invoke test_function.
4208
4209         log1p: Provide replacement for Minix and MSVC.
4210         * lib/math.in.h (log1p): New declaration.
4211         * lib/log1p.c: New file.
4212         * m4/log1p.m4: New file.
4213         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4215         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4216         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4217         (Depends-on): Add math, isnand, log, round.
4218         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4219         HAVE_LOG1P is 0.
4220         * tests/test-math-c++.cc: Check the declaration of log1p.
4221         * doc/posix-functions/log1p.texi: Mention the replacement.
4222
4223 2012-03-10  Bruno Haible  <bruno@clisp.org>
4224
4225         math tests: Small simplification.
4226         * tests/test-exp.h (test_function): Use the same err_bound for
4227         'double' on platforms with sizeof (long double) == sizeof (double)
4228         than on platforms with sizeof (long double) > sizeof (double).
4229         * tests/test-exp2.h (test_function): Likewise.
4230         * tests/test-expm1.h (test_function): Likewise.
4231         * tests/test-log.h (test_function): Likewise.
4232
4233 2012-03-10  Bruno Haible  <bruno@clisp.org>
4234
4235         Fix some comments.
4236         * lib/expl.c: Fix an ambiguous comment.
4237         * lib/expm1.c: Likewise.
4238         * lib/expm1l.c: Likewise.
4239         * lib/exp2.c: Likewise.
4240         * lib/exp2l.c: Likewise.
4241
4242 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4243
4244         regex: allow inclusion of <regex.h> before <limits.h>
4245         Without this patch, portable programs had to include <limits.h> before
4246         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4247         I ran into this problem with a test version of GNU grep on Solaris 8.
4248         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4249         This is done conditionally so that this change can be merged
4250         back to glibc.
4251         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4252         using the included regex.
4253
4254         fts: depend on fdopendir
4255         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4256         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4257         problem was introduced when fdopendir was split out.
4258
4259 2012-03-10  Bruno Haible  <bruno@clisp.org>
4260
4261         Remove unused variables.
4262         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4263         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4264
4265 2012-03-10  Bruno Haible  <bruno@clisp.org>
4266
4267         isnanf-nolibm: Fix last commit.
4268         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4269
4270         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4271         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4272
4273 2012-03-10  Bruno Haible  <bruno@clisp.org>
4274
4275         logf-ieee: Work around test failure on NetBSD 5.1.
4276         * m4/logf-ieee.m4: New file.
4277         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4278         whether logf works with a negative argument. Replace it if not.
4279         * lib/logf.c (logf): For negative arguments, return NaN.
4280         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4281         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4282         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4283
4284         logf-ieee: Work around test failure on Solaris 9.
4285         * modules/logf-ieee (Depends-on): Add log-ieee.
4286         (configure.ac): Require gl_FUNC_LOGF.
4287
4288         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4289         * m4/log-ieee.m4: New file.
4290         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4291         log works with a negative argument. Replace it if not.
4292         * lib/log.c (log): For negative arguments, return NaN.
4293         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4294         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4295         * doc/posix-functions/log.texi: Mention the log-ieee module.
4296
4297         Tests for module 'logl-ieee'.
4298         * modules/logl-ieee-tests: New file.
4299         * tests/test-logl-ieee.c: New file.
4300
4301         New module 'logl-ieee'.
4302         * modules/logl-ieee: New file.
4303
4304         Tests for module 'log-ieee'.
4305         * modules/log-ieee-tests: New file.
4306         * tests/test-log-ieee.c: New file.
4307
4308         New module 'log-ieee'.
4309         * modules/log-ieee: New file.
4310
4311         Tests for module 'logf-ieee'.
4312         * modules/logf-ieee-tests: New file.
4313         * tests/test-logf-ieee.c: New file.
4314         * tests/test-log-ieee.h: New file.
4315
4316         New module 'logf-ieee'.
4317         * modules/logf-ieee: New file.
4318
4319 2012-03-10  Bruno Haible  <bruno@clisp.org>
4320
4321         log: Fix bug introduced on 2012-03-09.
4322         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4323
4324 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4325
4326         timer-time: link explicitly with pthreads on glibc
4327         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4328         to support static linking, when newer glibc is
4329         detected, as that contains pthread emulation of
4330         POSIX timer functions where required.
4331         * modules/timer-time: Depend on threadlib to
4332         pull in the appropriate library to link.
4333
4334 2012-03-10  Bruno Haible  <bruno@clisp.org>
4335
4336         log* tests: More tests.
4337         * tests/test-log.h: New file.
4338         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4339         (main): Invoke test_function.
4340         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4341         (main): Invoke test_function.
4342         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4343         (main): Invoke test_function.
4344         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4345         tests/randomd.c.
4346         (Makefile.am): Add randomd.c to test_log_SOURCES.
4347         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4348         tests/randomf.c.
4349         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4350         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4351         tests/randoml.c.
4352         (Depends-on): Add 'float'.
4353         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4354
4355 2012-03-09  Bruno Haible  <bruno@clisp.org>
4356
4357         logl: Work around OSF/1 5.1 bug.
4358         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4359         * lib/logl.c (logl): If logl exists, use it and provide just the
4360         workaround.
4361         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4362         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4364         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4365         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4366         (Depends-on): Update conditions.
4367         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4368
4369 2012-03-09  Bruno Haible  <bruno@clisp.org>
4370
4371         logf: Work around OSF/1 5.1 bug.
4372         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4373         * lib/logf.c (logf): If logf exists, use it and provide just the
4374         workaround.
4375         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4376         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4378         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4379         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4380         (Depends-on): Update conditions.
4381         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4382
4383 2012-03-09  Bruno Haible  <bruno@clisp.org>
4384
4385         log: Work around OSF/1 5.1 bug.
4386         * lib/math.in.h (log): New declaration.
4387         * lib/log.c: New file.
4388         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4389         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4390         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4392         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4393         * modules/log (Files): Add lib/log.c.
4394         (Depends-on): Add math.
4395         (configure.ac): If REPLACE_LOG is 1, compile an override.
4396         * tests/test-math-c++.cc: Check the declaration of log.
4397         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4398
4399 2012-03-09  Jim Meyering  <meyering@redhat.com>
4400
4401         readtokens.c: adjust wording in a comment
4402         * lib/readtokens.c: Insert omitted "that" in a comment.
4403
4404 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4405
4406         modechange: add notations +40, 00440, etc.
4407         * lib/modechange.c (mode_compile): Support new notations
4408         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4409
4410 2012-03-08  Bruno Haible  <bruno@clisp.org>
4411
4412         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4413         * m4/exp2l-ieee.m4: New file.
4414         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4415         test whether exp2l works with a NaN argument and with a negative
4416         infinity argument. Replace it if not.
4417         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4419         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4420         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4421         (Depends-on): Update conditions.
4422         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4423         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4424         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4425
4426         Tests for module 'exp2l-ieee'.
4427         * modules/exp2l-ieee-tests: New file.
4428         * tests/test-exp2l-ieee.c: New file.
4429
4430         New module 'exp2l-ieee'.
4431         * modules/exp2l-ieee: New file.
4432
4433         Tests for module 'exp2-ieee'.
4434         * modules/exp2-ieee-tests: New file.
4435         * tests/test-exp2-ieee.c: New file.
4436
4437         New module 'exp2-ieee'.
4438         * modules/exp2-ieee: New file.
4439
4440         Tests for module 'exp2f-ieee'.
4441         * modules/exp2f-ieee-tests: New file.
4442         * tests/test-exp2f-ieee.c: New file.
4443         * tests/test-exp2-ieee.h: New file.
4444
4445         New module 'exp2f-ieee'.
4446         * modules/exp2f-ieee: New file.
4447
4448 2012-03-08  Bruno Haible  <bruno@clisp.org>
4449
4450         Tests for module 'exp2l'.
4451         * modules/exp2l-tests: New file.
4452         * tests/test-exp2l.c: New file.
4453
4454         New module 'exp2l'.
4455         * lib/math.in.h (exp2l): New declaration.
4456         * lib/exp2l.c: New file.
4457         * lib/expl-table.c: New file, extracted from lib/expl.c.
4458         * lib/expl.c (gl_expl_table): New declaration.
4459         (expl): Remove expl_table. Update reference.
4460         * m4/exp2l.m4: New file.
4461         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4463         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4464         * modules/exp2l: New file.
4465         * modules/expl (Files): Add lib/expl-table.c.
4466         (configure.ac): Compile also expl-table.c.
4467         * tests/test-math-c++.cc: Check the declaration of exp2l.
4468         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4469         problem.
4470
4471 2012-03-08  Bruno Haible  <bruno@clisp.org>
4472
4473         Tests for module 'exp2f'.
4474         * modules/exp2f-tests: New file.
4475         * tests/test-exp2f.c: New file.
4476
4477         New module 'exp2f'.
4478         * lib/math.in.h (exp2f): New declaration.
4479         * lib/exp2f.c: New file.
4480         * m4/exp2f.m4: New file.
4481         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4483         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4484         * modules/exp2f: New file.
4485         * tests/test-math-c++.cc: Check the declaration of exp2f.
4486         * doc/posix-functions/exp2f.texi: Mention the new module and the
4487         IRIX problem.
4488
4489 2012-03-08  Bruno Haible  <bruno@clisp.org>
4490
4491         Tests for module 'exp2'.
4492         * modules/exp2-tests: New file.
4493         * tests/test-exp2.c: New file.
4494         * tests/test-exp2.h: New file.
4495
4496         New module 'exp2'.
4497         * lib/math.in.h (exp2): New declaration.
4498         * lib/exp2.c: New file.
4499         * m4/exp2.m4: New file.
4500         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4502         REPLACE_EXP2.
4503         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4504         REPLACE_EXP2.
4505         * modules/exp2: New file.
4506         * tests/test-math-c++.cc: Check the declaration of exp2.
4507         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4508         and OpenBSD problems.
4509
4510 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4511
4512         savedir: fix comment typo
4513         * lib/savedir.c (savedirstream): Fix typo in comment.
4514
4515 2012-03-08  Bruno Haible  <bruno@clisp.org>
4516
4517         test-readtokens.c: use const; remove unwarranted cast
4518         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4519
4520 2012-03-08  Bruno Haible  <bruno@clisp.org>
4521
4522         fmal: Avoid compilation error on AIX.
4523         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4524         AIX 5.2..7.1.
4525
4526 2012-03-08  Bruno Haible  <bruno@clisp.org>
4527
4528         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4529         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4530         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4531         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4532         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4533         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4534         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4535
4536 2012-03-08  Bruno Haible  <bruno@clisp.org>
4537
4538         remainderf: Override buggy system function on IRIX 6.5.
4539         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4540         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4541         when it exists.
4542         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4543
4544 2012-03-08  Jim Meyering  <meyering@redhat.com>
4545
4546         test-readtokens.c: avoid const-related compilation warnings
4547         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4548
4549 2012-03-07  Jim Meyering  <meyering@redhat.com>
4550             Bruno Haible  <bruno@clisp.org>
4551
4552         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4553         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4554         tests/randomd.c.
4555         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4556         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4557         tests/randoml.c.
4558         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4559
4560 2012-03-07  Bruno Haible  <bruno@clisp.org>
4561
4562         expm1l: Avoid compilation error on AIX.
4563         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4564         AIX 5.2..7.1.
4565
4566 2012-03-07  Bruno Haible  <bruno@clisp.org>
4567
4568         expm1l: Don't override undeclared system function on IRIX 6.5.
4569         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4570         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4571         it exists. Set HAVE_DECL_EXPM1L.
4572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4573         HAVE_EXPM1L.
4574         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4575         HAVE_EXPM1L.
4576         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4577
4578 2012-03-07  Bruno Haible  <bruno@clisp.org>
4579
4580         remainderl: Don't override undeclared system function on IRIX 6.5.
4581         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4582         HAVE_REMAINDERL.
4583         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4584         declared when it exists. Set HAVE_DECL_REMAINDERL.
4585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4586         not HAVE_REMAINDERL.
4587         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4588         HAVE_REMAINDERL.
4589         * doc/posix-functions/remainderl.texi: Mention missing declaration
4590         problem.
4591
4592 2012-03-07  Bruno Haible  <bruno@clisp.org>
4593
4594         rintf: Don't override undeclared system function on IRIX 6.5.
4595         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4596         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4597         exists. Set HAVE_DECL_RINTF.
4598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4599         HAVE_RINTF.
4600         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4601         HAVE_RINTF.
4602         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4603
4604 2012-03-07  Bruno Haible  <bruno@clisp.org>
4605
4606         roundl: Avoid compilation error on AIX.
4607         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4608         AIX 5.2..7.1.
4609
4610 2012-03-07  Bruno Haible  <bruno@clisp.org>
4611
4612         roundl: Don't override undeclared system function on IRIX 6.5.
4613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4614         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4615         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4616         * modules/roundl (configure.ac): For replacement code, test
4617         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4618         (Depends-on): Update conditions.
4619         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4620
4621 2012-03-07  Bruno Haible  <bruno@clisp.org>
4622
4623         roundf: Don't override undeclared system function on IRIX 6.5.
4624         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4625         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4626         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4627         * modules/roundf (configure.ac): For replacement code, test
4628         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4629         (Depends-on): Update conditions.
4630         * modules/roundf-ieee (Depends-on): Update conditions.
4631         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4632
4633 2012-03-07  Bruno Haible  <bruno@clisp.org>
4634
4635         round: Don't override undeclared system function on IRIX 6.5.
4636         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4637         argument.
4638         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4639         also when it is not declared. Set HAVE_ROUND. For replacement code,
4640         test HAVE_ROUND, not HAVE_DECL_ROUND.
4641         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4642         not HAVE_DECL_ROUND.
4643         (Depends-on): Update conditions.
4644         * modules/round-ieee (Depends-on): Update conditions.
4645         * doc/posix-functions/round.texi: Mention the IRIX problem.
4646
4647 2012-03-07  Bruno Haible  <bruno@clisp.org>
4648
4649         copysignf: Don't override undeclared system function on IRIX 6.5.
4650         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4651         HAVE_COPYSIGNF.
4652         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4653         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4655         not HAVE_COPYSIGNF.
4656         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4657         HAVE_COPYSIGNF.
4658         * doc/posix-functions/copysignf.texi: Mention missing declaration
4659         problem.
4660
4661 2012-03-07  Jim Meyering  <meyering@redhat.com>
4662
4663         readtokens: add tests
4664         * modules/readtokens-tests: New file.
4665         * tests/test-readtokens.c: New file.
4666
4667 2012-03-07  Jim Meyering  <meyering@redhat.com>
4668
4669         quotearg: the module must now include quote.h
4670         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4671         So must the module.
4672         * modules/quotearg (Files): Add quote.h.
4673
4674 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4675
4676         readtokens: avoid core dumps with unusual calling patterns
4677         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4678         * lib/readtokens.c: Include limits.h.
4679         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4680         (readtoken): Don't cache the delimiters; the cache code was buggy
4681         if !delim && saved_delim, or if the new n_delim differs from the old.
4682         Also, it wasn't thread-safe.
4683
4684 2012-03-07  Bruno Haible  <bruno@clisp.org>
4685
4686         quote: Adhere to common module description layout.
4687         * modules/quote (Makefile.am): Add back empty section.
4688
4689 2012-03-06  Akim Demaille  <demaille@gostai.com>
4690
4691         quote: fuse into quotearg
4692         This patch is made for the benefit of Bison.
4693         quote does not leave the choice of the quoting style to the user.
4694         quoting_style provides poor customizability, yet quoting_options,
4695         which is very rich, is hidden inside quotearg.c.  So in order to
4696         allow quote customization, move its implementation to quotearg.c.
4697         * lib/quote.c: Remove.
4698         * modules/quote: Adjust.
4699         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4700         warning: provide all the members of literal structs.
4701         (quote_quoting_options): New.
4702         (quote, quote_n): Import implementation from quote.c.
4703         * lib/quote.h: Import the comments from quote.c.
4704         (quote_quoting_options): New.
4705
4706 2012-03-06  Bruno Haible  <bruno@clisp.org>
4707
4708         Tests for module 'expm1l-ieee'.
4709         * modules/expm1l-ieee-tests: New file.
4710         * tests/test-expm1l-ieee.c: New file.
4711
4712         New module 'expm1l-ieee'.
4713         * modules/expm1l-ieee: New file.
4714
4715         Tests for module 'expm1f-ieee'.
4716         * modules/expm1f-ieee-tests: New file.
4717         * tests/test-expm1f-ieee.c: New file.
4718
4719         New module 'expm1f-ieee'.
4720         * modules/expm1f-ieee: New file.
4721
4722         Tests for module 'expm1-ieee'.
4723         * modules/expm1-ieee-tests: New file.
4724         * tests/test-expm1-ieee.c: New file.
4725         * tests/test-expm1-ieee.h: New file.
4726
4727         New module 'expm1-ieee'.
4728         * modules/expm1-ieee: New file.
4729         * m4/expm1-ieee.m4: New file.
4730         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4731         whether expm1 works with a minus zero argument. Replace it if not.
4732         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4734         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4735         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4736         (Depends-on): Update conditions.
4737         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4738         AIX problem.
4739
4740 2012-03-06  Bruno Haible  <bruno@clisp.org>
4741
4742         Work around expm1f bug on IRIX 6.5.
4743         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4744         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4745         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4746         not work.
4747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4748         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4749         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4750         (Depends-on): Update conditions.
4751         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4752
4753 2012-03-06  Bruno Haible  <bruno@clisp.org>
4754
4755         Tests for module 'expm1l'.
4756         * modules/expm1l-tests: New file.
4757         * tests/test-expm1l.c: New file.
4758
4759         New module 'expm1l'.
4760         * lib/math.in.h (expm1l): New declaration.
4761         * lib/expm1l.c: New file.
4762         * m4/expm1l.m4: New file.
4763         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4765         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4766         * modules/expm1l: New file.
4767         * tests/test-math-c++.cc: Check the declaration of expm1l.
4768         * doc/posix-functions/expm1l.texi: Mention the new module.
4769
4770 2012-03-06  Bruno Haible  <bruno@clisp.org>
4771
4772         Tests for module 'expm1f'.
4773         * modules/expm1f-tests: New file.
4774         * tests/test-expm1f.c: New file.
4775
4776         New module 'expm1f'.
4777         * lib/math.in.h (expm1f): New declaration.
4778         * lib/expm1f.c: New file.
4779         * m4/expm1f.m4: New file.
4780         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4782         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4783         * modules/expm1f: New file.
4784         * tests/test-math-c++.cc: Check the declaration of expm1f.
4785         * doc/posix-functions/expm1f.texi: Mention the new module.
4786
4787 2012-03-06  Bruno Haible  <bruno@clisp.org>
4788
4789         Tests for module 'expm1'.
4790         * modules/expm1-tests: New file.
4791         * tests/test-expm1.c: New file.
4792         * tests/test-expm1.h: New file.
4793
4794         New module 'expm1'.
4795         * lib/math.in.h (expm1): New declaration.
4796         * lib/expm1.c: New file.
4797         * m4/expm1.m4: New file.
4798         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4800         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4801         * modules/expm1: New file.
4802         * tests/test-math-c++.cc: Check the declaration of expm1.
4803         * doc/posix-functions/expm1.texi: Mention the new module.
4804
4805 2012-03-06  Bruno Haible  <bruno@clisp.org>
4806
4807         math: Ensure declarations of math functions.
4808         * modules/acosf (Depends-on): Add 'extensions'.
4809         * modules/asinf (Depends-on): Likewise.
4810         * modules/atan2f (Depends-on): Likewise.
4811         * modules/atanf (Depends-on): Likewise.
4812         * modules/cbrt (Depends-on): Likewise.
4813         * modules/cbrtf (Depends-on): Likewise.
4814         * modules/cbrtl (Depends-on): Likewise.
4815         * modules/copysignf (Depends-on): Likewise.
4816         * modules/copysignl (Depends-on): Likewise.
4817         * modules/cosf (Depends-on): Likewise.
4818         * modules/coshf (Depends-on): Likewise.
4819         * modules/expf (Depends-on): Likewise.
4820         * modules/fabsf (Depends-on): Likewise.
4821         * modules/fabsl (Depends-on): Likewise.
4822         * modules/fmaf (Depends-on): Likewise.
4823         * modules/fmal (Depends-on): Likewise.
4824         * modules/fmodf (Depends-on): Likewise.
4825         * modules/fmodl (Depends-on): Likewise.
4826         * modules/frexpf (Depends-on): Likewise.
4827         * modules/frexpl (Depends-on): Likewise.
4828         * modules/hypot (Depends-on): Likewise.
4829         * modules/hypotf (Depends-on): Likewise.
4830         * modules/hypotl (Depends-on): Likewise.
4831         * modules/ldexpf (Depends-on): Likewise.
4832         * modules/ldexpl (Depends-on): Likewise.
4833         * modules/log10f (Depends-on): Likewise.
4834         * modules/log10l (Depends-on): Likewise.
4835         * modules/log1p (Depends-on): Likewise.
4836         * modules/logb (Depends-on): Likewise.
4837         * modules/logf (Depends-on): Likewise.
4838         * modules/modff (Depends-on): Likewise.
4839         * modules/modfl (Depends-on): Likewise.
4840         * modules/powf (Depends-on): Likewise.
4841         * modules/remainderf (Depends-on): Likewise.
4842         * modules/remainderl (Depends-on): Likewise.
4843         * modules/rintf (Depends-on): Likewise.
4844         * modules/rintl (Depends-on): Likewise.
4845         * modules/sinf (Depends-on): Likewise.
4846         * modules/sinhf (Depends-on): Likewise.
4847         * modules/sqrtf (Depends-on): Likewise.
4848         * modules/tanf (Depends-on): Likewise.
4849         * modules/tanhf (Depends-on): Likewise.
4850         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4851         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4852         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4853         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4854         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4855         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4856         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4857         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4858         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4859         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4860         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4861         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4862         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4863         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4864         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4865         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4866         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4867         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4868         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4869         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4870         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4871         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4872         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4873         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4875         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4876         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4877         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4878         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4879         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4880         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4881         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4882         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4883         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4884         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4885         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4886         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4887         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4888         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4889         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4890         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4891
4892 2012-03-06  Bruno Haible  <bruno@clisp.org>
4893
4894         math: Update module names in warnings.
4895         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4896         tanl): Use specific module name in warn-on-use warning.
4897
4898 2012-03-06  Bruno Haible  <bruno@clisp.org>
4899
4900         expl: Simplify computation.
4901         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4902
4903 2012-03-05  Bruno Haible  <bruno@clisp.org>
4904
4905         exp* tests: More tests.
4906         * tests/test-exp.h: New file.
4907         * tests/test-exp.c: Include <float.h> and test-exp.h.
4908         (main): Invoke test_function.
4909         * tests/test-expf.c: Include <float.h> and test-exp.h.
4910         (main): Invoke test_function.
4911         * tests/test-expl.c: Include <float.h> and test-exp.h.
4912         (main): Invoke test_function.
4913         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4914         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4915         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4916         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4917         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4918         (Depends-on): Add 'float'.
4919         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4920
4921         expl: Fix precision of computed result.
4922         * lib/expl.c: Completely rewritten.
4923         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4924         (Maintainer): Add me.
4925         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4926
4927 2012-03-05  Bruno Haible  <bruno@clisp.org>
4928
4929         cbrt* tests: More tests.
4930         * tests/test-cbrt.h: New file.
4931         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4932         (main): Invoke test_function.
4933         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4934         (main): Invoke test_function.
4935         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4936         (main): Invoke test_function.
4937         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4938         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4939         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4940         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4941         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4942         (Depends-on): Add 'float'.
4943         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4944
4945 2012-03-05  Bruno Haible  <bruno@clisp.org>
4946
4947         hypot* tests: More tests.
4948         * tests/test-hypot.h: New file, partially extracted from
4949         tests/test-hypotl.c.
4950         * tests/test-hypot.c: Include test-hypot.h.
4951         (main): Invoke test_function.
4952         * tests/test-hypotf.c: Include test-hypot.h.
4953         (main): Invoke test_function.
4954         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4955         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4956         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4957         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4958         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4959         tests/randomf.c.
4960         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4961         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4962         tests/randoml.c.
4963         (Depends-on): Add 'fpucw', 'float'.
4964         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4965
4966 2012-03-05  Bruno Haible  <bruno@clisp.org>
4967
4968         fpucw: Doc about FreeBSD.
4969         * lib/fpucw.h: Mention FreeBSD in comments.
4970
4971 2012-03-04  Bruno Haible  <bruno@clisp.org>
4972
4973         sqrt* tests: More tests.
4974         * tests/test-sqrt.h: New file.
4975         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4976         (main): Invoke test_function.
4977         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4978         (main): Invoke test_function.
4979         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4980         (main): Invoke test_function.
4981         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4982         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4983         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4984         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4985         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4986         (Depends-on): Add 'float'.
4987         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4988
4989 2012-03-04  Bruno Haible  <bruno@clisp.org>
4990
4991         remainder* tests: More tests.
4992         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4993         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4994         (main): Invoke test_function.
4995         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4996         (main): Invoke test_function.
4997         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4998         (main): Invoke test_function.
4999         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5000         tests/randomd.c.
5001         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5002         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5003         tests/randomf.c.
5004         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5005         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5006         tests/randoml.c.
5007         (Depends-on): Add 'float'.
5008         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5009
5010 2012-03-04  Bruno Haible  <bruno@clisp.org>
5011
5012         remainder, remainderf, remainderl: Fix computation for large quotients.
5013         * lib/remainder.c: Completely rewritten.
5014         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5015         USE_FLOAT.
5016         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5017         USE_LONG_DOUBLE.
5018         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5019         isnand, isinf. Remove round, fma.
5020         * modules/remainderf (Files): Add lib/remainder.c.
5021         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5022         Remove roundf, fmaf.
5023         * modules/remainderl (Files): Add lib/remainder.c.
5024         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5025         isinf. Remove roundl, fmal.
5026         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5027         REMAINDER_LIBM.
5028         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5029         REMAINDERF_LIBM.
5030         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5031         REMAINDERL_LIBM.
5032
5033 2012-03-04  Bruno Haible  <bruno@clisp.org>
5034
5035         fmod* tests: More tests.
5036         * tests/test-fmod.h (my_ldexp): New function.
5037         (test_function): Reduce amount of random numbers to test. Add tests
5038         of very large quotients x / y.
5039         * tests/test-fmod.c (MAX_EXP): New macro.
5040         * tests/test-fmodf.c (MAX_EXP): Likewise.
5041         * tests/test-fmodl.c (MAX_EXP): Likewise.
5042
5043 2012-03-04  Bruno Haible  <bruno@clisp.org>
5044
5045         fmod, fmodl: Fix computation for large quotients x / y.
5046         * lib/fmod.c: Completely rewritten.
5047         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5048         USE_LONG_DOUBLE.
5049         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5050         isnand. Remove fma.
5051         * modules/fmodl (Files): Add lib/fmod.c.
5052         (Depends-on): Add float, isfinite, signbit, fabsl,
5053         frexpl, ldexpl, isnanl. Remove fma.
5054         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5055         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5056
5057 2012-03-03  Bruno Haible  <bruno@clisp.org>
5058
5059         fmod* tests: More tests.
5060         * tests/test-fmod.h: New file.
5061         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5062         (main): Invoke test_function.
5063         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5064         (main): Invoke test_function.
5065         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5066         (main): Invoke test_function.
5067         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5068         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5069         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5070         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5071         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5072         (Depends-on): Add 'float'.
5073         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5074
5075 2012-03-03  Bruno Haible  <bruno@clisp.org>
5076
5077         rint* tests: More tests.
5078         * tests/test-rint.h: New file, partially extracted from
5079         tests/test-rintl.c.
5080         * tests/test-rint.c: Include test-rint.h.
5081         (main): Invoke test_function.
5082         * tests/test-rintf.c: Include test-rint.h.
5083         (main): Invoke test_function.
5084         * tests/test-rintl.c: Include test-rint.h.
5085         (main): Invoke test_function.
5086         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5087         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5088         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5089         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5090         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5091         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5092
5093 2012-03-03  Bruno Haible  <bruno@clisp.org>
5094
5095         modf* tests: More tests.
5096         * tests/test-modf.h: New file.
5097         * tests/test-modf.c: Include <float.h> and test-modf.h.
5098         (main): Invoke test_function.
5099         * tests/test-modff.c: Include <float.h> and test-modf.h.
5100         (main): Invoke test_function.
5101         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5102         (main): Invoke test_function.
5103         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5104         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5105         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5106         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5107         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5108         (Depends-on): Add 'float'.
5109         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5110
5111 2012-03-03  Bruno Haible  <bruno@clisp.org>
5112
5113         fabs* tests: More tests.
5114         * tests/test-fabs.h: New file, partially extracted from
5115         tests/test-fabsl.c.
5116         * tests/test-fabs.c (RANDOM): New macro.
5117         * tests/test-fabsf.c (RANDOM): New macro.
5118         * tests/test-fabsl.c (RANDOM): New macro.
5119         * modules/fabs-tests (Files): Add tests/randomd.c.
5120         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5121         * modules/fabsf-tests (Files): Add tests/randomf.c.
5122         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5123         * modules/fabsl-tests (Files): Add tests/randoml.c.
5124         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5125
5126 2012-03-03  Bruno Haible  <bruno@clisp.org>
5127
5128         ldexp* tests: More tests.
5129         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5130         * tests/test-ldexp.c (RANDOM): New macro.
5131         * tests/test-ldexpf.c (RANDOM): New macro.
5132         * tests/test-ldexpl.c (RANDOM): New macro.
5133         * modules/ldexp-tests (Files): Add tests/randomd.c.
5134         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5135         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5136         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5137         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5138         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5139
5140 2012-03-03  Bruno Haible  <bruno@clisp.org>
5141
5142         frexp* tests: More tests.
5143         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5144         * tests/test-frexp.c (RANDOM): New macro.
5145         * tests/test-frexpf.c (RANDOM): New macro.
5146         * tests/test-frexpl.c (RANDOM): New macro.
5147         * modules/frexp-tests (Files): Add tests/randomd.c.
5148         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5149         * modules/frexpf-tests (Files): Add tests/randomf.c.
5150         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5151         * modules/frexpl-tests (Files): Add tests/randoml.c.
5152         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5153
5154 2012-03-03  Bruno Haible  <bruno@clisp.org>
5155
5156         Support for pseudo-random numbers in tests.
5157         * tests/randomf.c: New file.
5158         * tests/randomd.c: New file.
5159         * tests/randoml.c: New file.
5160         * tests/macros.h (randomf, randomd, randoml): New declarations.
5161
5162 2012-03-03  Bruno Haible  <bruno@clisp.org>
5163
5164         frexp* tests: Refactor.
5165         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5166         * tests/test-frexp.c: Include and use it.
5167         * tests/test-frexpf.c: Likewise.
5168         * tests/test-frexpl.c: Likewise.
5169         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5170         * modules/frexpf-tests (Files): Likewise.
5171         * modules/frexpl-tests (Files): Likewise.
5172
5173 2012-03-02  Jim Meyering  <meyering@redhat.com>
5174
5175         maint: don't specify XZ_OPT=-9ev in dist-related rule
5176         Using xz's -9 option is warranted only if you have a very large
5177         tarball (see xz's documentation for the sizes vs. presets), and
5178         requires 64MiB of memory at decompression time.
5179         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5180         Automake's default of just "-e" is fine.  Override on a
5181         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5182
5183 2012-03-01  Eric Blake  <eblake@redhat.com>
5184
5185         maint.mk: allow announcement for non-gnulib project
5186         * maint.mk (announcement): Skip gnulib version if not used.
5187
5188 2012-03-01  Jim Meyering  <meyering@redhat.com>
5189
5190         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5191         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5192         envvar settings cannot interfere.  Otherwise, setting envvars like
5193         prohibit=foo require=bar, etc. would cause spurious test failures.
5194
5195 2012-03-01  Eric Blake  <eblake@redhat.com>
5196
5197         maint.mk: add per-line exclusions to prohibitions
5198         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5199         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5200         (sc_const_long_option): Use it.
5201
5202 2012-03-01  Bruno Haible  <bruno@clisp.org>
5203
5204         Tests for module 'expl-ieee'.
5205         * modules/expl-ieee-tests: New file.
5206         * tests/test-expl-ieee.c: New file.
5207
5208         New module 'expl-ieee'.
5209         * modules/expl-ieee: New file.
5210
5211         Tests for module 'exp-ieee'.
5212         * modules/exp-ieee-tests: New file.
5213         * tests/test-exp-ieee.c: New file.
5214
5215         New module 'exp-ieee'.
5216         * modules/exp-ieee: New file.
5217
5218         Tests for module 'expf-ieee'.
5219         * modules/expf-ieee-tests: New file.
5220         * tests/test-expf-ieee.c: New file.
5221         * tests/test-exp-ieee.h: New file.
5222
5223         New module 'expf-ieee'.
5224         * modules/expf-ieee: New file.
5225
5226 2012-02-29  Bruno Haible  <bruno@clisp.org>
5227
5228         cbrtl-ieee: Work around test failure on IRIX 6.5.
5229         * m4/cbrtl-ieee.m4: New file.
5230         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5231         test whether cbrtl works with a minus zero argument. Replace it if not.
5232         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5234         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5235         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5236         (Depends-on): Update conditions.
5237         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5238         m4/signbit.m4.
5239         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5240         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5241         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5242
5243         Tests for module 'cbrtl-ieee'.
5244         * modules/cbrtl-ieee-tests: New file.
5245         * tests/test-cbrtl-ieee.c: New file.
5246
5247         New module 'cbrtl-ieee'.
5248         * modules/cbrtl-ieee: New file.
5249
5250         Tests for module 'cbrt-ieee'.
5251         * modules/cbrt-ieee-tests: New file.
5252         * tests/test-cbrt-ieee.c: New file.
5253
5254         New module 'cbrt-ieee'.
5255         * modules/cbrt-ieee: New file.
5256
5257         Tests for module 'cbrtf-ieee'.
5258         * modules/cbrtf-ieee-tests: New file.
5259         * tests/test-cbrtf-ieee.c: New file.
5260         * tests/test-cbrt-ieee.h: New file.
5261
5262         New module 'cbrtf-ieee'.
5263         * modules/cbrtf-ieee: New file.
5264
5265 2012-02-29  Bruno Haible  <bruno@clisp.org>
5266
5267         cbrtf: Work around bug in IRIX 6.5 system function.
5268         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5269         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5270         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5271         work.
5272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5273         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5274         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5275         (Depends-on): Update conditions.
5276         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5277
5278 2012-02-29  Bruno Haible  <bruno@clisp.org>
5279
5280         Tests for module 'cbrtl'.
5281         * modules/cbrtl-tests: New file.
5282         * tests/test-cbrtl.c: New file.
5283
5284         New module 'cbrtl'.
5285         * lib/math.in.h (cbrtl): New declaration.
5286         * lib/cbrtl.c: New file.
5287         * m4/cbrtl.m4: New file.
5288         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5290         HAVE_DECL_CBRTL.
5291         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5292         HAVE_DECL_CBRTL.
5293         * modules/cbrtl: New file.
5294         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5295         * doc/posix-functions/cbrtl.texi: Mention the new module.
5296
5297 2012-02-29  Bruno Haible  <bruno@clisp.org>
5298
5299         Tests for module 'cbrtf'.
5300         * modules/cbrtf-tests: New file.
5301         * tests/test-cbrtf.c: New file.
5302
5303         New module 'cbrtf'.
5304         * lib/math.in.h (cbrtf): New declaration.
5305         * lib/cbrtf.c: New file.
5306         * m4/cbrtf.m4: New file.
5307         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5309         HAVE_DECL_CBRTF.
5310         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5311         HAVE_DECL_CBRTF.
5312         * modules/cbrtf: New file.
5313         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5314         * doc/posix-functions/cbrtf.texi: Mention the new module.
5315
5316 2012-02-29  Bruno Haible  <bruno@clisp.org>
5317
5318         cbrt: Provide replacement on MSVC and Minix.
5319         * lib/math.in.h (cbrt): New declaration.
5320         * lib/cbrt.c: New file.
5321         * m4/cbrt.m4: New file.
5322         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5324         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5325         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5326         (Depends-on): Add dependencies.
5327         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5328         * tests/test-math-c++.cc: Check the declaration of cbrt.
5329         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5330         replacement.
5331
5332 2012-02-29  Bruno Haible  <bruno@clisp.org>
5333
5334         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5335         * m4/hypotl-ieee.m4: New file.
5336         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5337         test whether hypotl works with mixed NaN and Infinity arguments.
5338         Replace it if not.
5339         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5341         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5342         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5343         (Depends-on): Update conditions.
5344         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5345         (Depends-on): Add hypot-ieee.
5346         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5347         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5348
5349         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5350         * m4/hypotf-ieee.m4: New file.
5351         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5352         test whether hypotf works with mixed NaN and Infinity arguments.
5353         Replace it if not.
5354         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5355         (Depends-on): Add hypot-ieee.
5356         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5357         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5358
5359         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5360         * lib/math.in.h (hypot): New declaration.
5361         * lib/hypot.c: New file.
5362         * m4/hypot-ieee.m4: New file.
5363         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5364         whether hypot works with mixed NaN and Infinity arguments. Replace it
5365         if not.
5366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5367         REPLACE_HYPOT.
5368         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5369         * modules/hypot (Files): Add lib/hypot.c.
5370         (Depends-on): Add dependencies.
5371         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5372         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5373         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5374         * tests/test-math-c++.cc: Check the declaration of hypot.
5375         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5376
5377         Tests for module 'hypotl-ieee'.
5378         * modules/hypotl-ieee-tests: New file.
5379         * tests/test-hypotl-ieee.c: New file.
5380
5381         New module 'hypotl-ieee'.
5382         * modules/hypotl-ieee: New file.
5383
5384         Tests for module 'hypot-ieee'.
5385         * modules/hypot-ieee-tests: New file.
5386         * tests/test-hypot-ieee.c: New file.
5387
5388         New module 'hypot-ieee'.
5389         * modules/hypot-ieee: New file.
5390
5391         Tests for module 'hypotf-ieee'.
5392         * modules/hypotf-ieee-tests: New file.
5393         * tests/test-hypotf-ieee.c: New file.
5394         * tests/test-hypot-ieee.h: New file.
5395
5396         New module 'hypotf-ieee'.
5397         * modules/hypotf-ieee: New file.
5398
5399 2012-02-29  Bruno Haible  <bruno@clisp.org>
5400
5401         Remove unused variables.
5402         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5403         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5404         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5405         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5406
5407 2012-02-29  Eric Blake  <eblake@redhat.com>
5408
5409         termios: fix pid_t always, not just for tcgetsid
5410         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5411         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5412         just when building tcgetsid.
5413
5414 2012-02-29  Bruno Haible  <bruno@clisp.org>
5415
5416         Tests for module 'hypotl'.
5417         * modules/hypotl-tests: New file.
5418         * tests/test-hypotl.c: New file.
5419
5420         New module 'hypotl'.
5421         * lib/math.in.h (hypotl): New declaration.
5422         * lib/hypotl.c: New file.
5423         * m4/hypotl.m4: New file.
5424         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5426         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5427         * modules/hypotl: New file.
5428         * tests/test-math-c++.cc: Check the hypotl declaration.
5429         * doc/posix-functions/hypotl.texi: Mention the new module.
5430
5431 2012-02-29  Eric Blake  <eblake@redhat.com>
5432
5433         tcgetsid: fix cygwin header bug
5434         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5435
5436         docs: update cygwin progress
5437         * doc/posix-functions/llround.texi (llround): Added in cygwin
5438         1.7.8.
5439         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5440         * doc/glibc-functions/program_invocation_name.texi
5441         (program_invocation_name): Likewise.
5442         * doc/glibc-functions/program_invocation_short_name.texi
5443         (program_invocation_short_name): Likewise.
5444         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5445         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5446         Likewise.
5447         * doc/posix-functions/pthread_spin_destroy.texi
5448         (pthread_spin_destroy): Added in cygwin 1.7.10.
5449         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5450         Likewise.
5451         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5452         Likewise.
5453         * doc/posix-functions/pthread_spin_trylock.texi
5454         (pthread_spin_trylock): Likewise.
5455         * doc/posix-functions/pthread_spin_unlock.texi
5456         (pthread_spin_unlock): Likewise.
5457         * doc/posix-functions/pthread_setschedprio.texi
5458         (pthread_setschedprio): Likewise.
5459         * doc/posix-functions/pthread_attr_getstack.texi
5460         (pthread_attr_getstack): Likewise.
5461         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5462         (pthread_attr_getstackaddr): Likewise.
5463         * doc/glibc-functions/pthread_getattr_np.texi
5464         (pthread_getattr_np): Likewise.
5465         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5466         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5467         * doc/posix-functions/clock_settime.texi (clock_settime):
5468         Likewise.
5469         * doc/posix-functions/pthread_attr_getguardsize.texi
5470         (pthread_attr_getguardsize): Likewise.
5471         * doc/posix-functions/pthread_attr_setguardsize.texi
5472         (pthread_attr_setguardsize): Likewise.
5473         * doc/posix-functions/pthread_attr_setstack.texi
5474         (pthread_attr_setstack): Likewise.
5475         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5476         (pthread_attr_setstackaddr): Likewise.
5477         * doc/posix-functions/clock_getcpuclockid.texi
5478         (clock_getcpuclockid): Likewise.
5479         * doc/posix-functions/pthread_getcpuclockid.texi
5480         (pthread_getcpuclockid): Likewise.
5481         * doc/glibc-functions/error.texi (error): Likewise.
5482         * doc/glibc-functions/error_at_line.texi (error_at_line):
5483         Likewise.
5484         * doc/glibc-functions/error_message_count.texi
5485         (error_message_count): Likewise.
5486         * doc/glibc-functions/error_one_per_line.texi
5487         (error_one_per_line): Likewise.
5488         * doc/glibc-functions/error_print_progname.texi
5489         (error_print_progname): Likewise.
5490         * doc/posix-functions/pthread_condattr_getclock.texi
5491         (pthread_condattr_getclock): Likewise.
5492         * doc/posix-functions/pthread_condattr_setclock.texi
5493         (pthread_condattr_setclock): Likewise.
5494         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5495         Likewise.
5496         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5497         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5498         * doc/glibc-functions/get_current_dir_name.texi
5499         (get_current_dir_name): Likewise.
5500         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5501         Likewise.
5502         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5503         wrong return type.
5504         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5505         1.7.11.
5506
5507 2012-02-29  Bruno Haible  <bruno@clisp.org>
5508
5509         Tests for module 'hypotf'.
5510         * modules/hypotf-tests: New file.
5511         * tests/test-hypotf.c: New file.
5512
5513         New module 'hypotf'.
5514         * lib/math.in.h (hypotf): New declaration.
5515         * lib/hypotf.c: New file.
5516         * m4/hypotf.m4: New file.
5517         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5519         REPLACE_HYPOTF.
5520         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5521         REPLACE_HYPOTF.
5522         * modules/hypotf: New file.
5523         * tests/test-math-c++.cc: Check the hypotf declaration.
5524         * doc/posix-functions/hypotf.texi: Mention the new module.
5525
5526         hypot: Prepare for hypotf module.
5527         * m4/hypot.m4: New file.
5528         * modules/hypot (Files): Add m4/hypot.m4.
5529         (configure.ac): Invoke gl_FUNC_HYPOT.
5530
5531 2012-02-29  Bruno Haible  <bruno@clisp.org>
5532
5533         hypot tests: More tests.
5534         * tests/test-hypot.c: Include <float.h>.
5535         (main): Add tests about overflow and underflow.
5536
5537 2012-02-29  Bruno Haible  <bruno@clisp.org>
5538
5539         math code: Add comments.
5540         * lib/acosl.c: Add comment about related glibc source files.
5541         * lib/asinl.c: Likewise.
5542         * lib/atanl.c: Likewise.
5543         * lib/expl.c: Likewise.
5544         * lib/logl.c: Likewise.
5545         * lib/sincosl.c: Likewise.
5546         * lib/sinl.c: Likewise.
5547         * lib/tanl.c: Likewise.
5548         * lib/trigl.c: Likewise.
5549         * lib/cosl.c: Likewise. Fix comments.
5550
5551 2012-02-28  Bruno Haible  <bruno@clisp.org>
5552
5553         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5554         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5555         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5556         HUGE_VALL are defined.
5557         (numeric_equald): Renamed from numeric_equal.
5558         (numeric_equalf, numeric_equall): New functions.
5559         (main): Check also HUGE_VALF, HUGE_VALL.
5560         * modules/math-tests (Files): Add tests/macros.h.
5561         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5562         HUGE_VALL.
5563
5564 2012-02-28  Bruno Haible  <bruno@clisp.org>
5565
5566         doc: Move ISO C11 feature notes into POSIX chapters.
5567         * doc/posix-functions/aligned_alloc.texi: Renamed from
5568         doc/glibc-functions/aligned_alloc.texi.
5569         * doc/posix-functions/quick_exit.texi: Renamed from
5570         doc/glibc-functions/quick_exit.texi.
5571         * doc/posix-headers/uchar.texi: Renamed from
5572         doc/glibc-headers/uchar.texi.
5573         * doc/posix-functions/c16rtomb.texi: Renamed from
5574         doc/glibc-functions/c16rtomb.texi.
5575         * doc/posix-functions/c32rtomb.texi: Renamed from
5576         doc/glibc-functions/c32rtomb.texi.
5577         * doc/posix-functions/mbrtoc16.texi: Renamed from
5578         doc/glibc-functions/mbrtoc16.texi.
5579         * doc/posix-functions/mbrtoc32.texi: Renamed from
5580         doc/glibc-functions/mbrtoc32.texi.
5581         * doc/gnulib.texi: Update.
5582         (Glibc uchar.h): Remove section.
5583         Suggested by Eric Blake.
5584
5585 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5586
5587         stdnoreturn: port to MSVC better
5588         MSVC standard headers use __declspec(noreturn), so #define noreturn
5589         to empty on that platform.  Reported by Bruno Haible in
5590         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5591         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5592         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5593
5594 2012-02-28  Bruno Haible  <bruno@clisp.org>
5595
5596         doc: Mention new glibc headers and functions.
5597         * doc/glibc-headers/uchar.texi: New file.
5598         * doc/glibc-functions/aligned_alloc.texi: New file.
5599         * doc/glibc-functions/c16rtomb.texi: New file.
5600         * doc/glibc-functions/c32rtomb.texi: New file.
5601         * doc/glibc-functions/clock_adjtime.texi: New file.
5602         * doc/glibc-functions/fanotify_init.texi: New file.
5603         * doc/glibc-functions/fanotify_mark.texi: New file.
5604         * doc/glibc-functions/inet6_opt_append.texi: New file.
5605         * doc/glibc-functions/inet6_opt_find.texi: New file.
5606         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5607         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5608         * doc/glibc-functions/inet6_opt_init.texi: New file.
5609         * doc/glibc-functions/inet6_opt_next.texi: New file.
5610         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5611         * doc/glibc-functions/inet6_rth_add.texi: New file.
5612         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5613         * doc/glibc-functions/inet6_rth_init.texi: New file.
5614         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5615         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5616         * doc/glibc-functions/inet6_rth_space.texi: New file.
5617         * doc/glibc-functions/login.texi: New file.
5618         * doc/glibc-functions/mbrtoc16.texi: New file.
5619         * doc/glibc-functions/mbrtoc32.texi: New file.
5620         * doc/glibc-functions/name_to_handle_at.texi: New file.
5621         * doc/glibc-functions/ntp_gettimex.texi: New file.
5622         * doc/glibc-functions/open_by_handle_at.texi: New file.
5623         * doc/glibc-functions/prlimit.texi: New file.
5624         * doc/glibc-functions/process_vm_readv.texi: New file.
5625         * doc/glibc-functions/process_vm_writev.texi: New file.
5626         * doc/glibc-functions/recvmmsg.texi: New file.
5627         * doc/glibc-functions/scandirat.texi: New file.
5628         * doc/glibc-functions/sendmmsg.texi: New file.
5629         * doc/glibc-functions/setns.texi: New file.
5630         * doc/glibc-functions/timespec_get.texi: New file.
5631         * doc/gnulib.texi: Include them.
5632         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5633         sections.
5634         Reported by Eric Blake.
5635
5636 2012-02-28  Bruno Haible  <bruno@clisp.org>
5637
5638         Avoid compilation errors with MSVC option -fp:strict.
5639         * lib/floor.c: Use MSVC specific pragma fenv_access.
5640         * lib/ceil.c: Likewise.
5641         * lib/trunc.c: Likewise.
5642         * lib/round.c: Likewise.
5643         * lib/rint.c: Likewise.
5644         * lib/fma.c: Likewise.
5645         * lib/integer_length.c: Likewise.
5646         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5648         * tests/test-floor2.c: Likewise.
5649         * tests/test-floorf2.c: Likewise.
5650         * tests/test-ceil2.c: Likewise.
5651         * tests/test-ceilf2.c: Likewise.
5652         * tests/test-trunc2.c: Likewise.
5653         * tests/test-truncf2.c: Likewise.
5654         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5655
5656 2012-02-27  Bruno Haible  <bruno@clisp.org>
5657
5658         Tests for module 'sqrtl-ieee'.
5659         * modules/sqrtl-ieee-tests: New file.
5660         * tests/test-sqrtl-ieee.c: New file.
5661
5662         New module 'sqrtl-ieee'.
5663         * modules/sqrtl-ieee: New file.
5664
5665         Tests for module 'sqrt-ieee'.
5666         * modules/sqrt-ieee-tests: New file.
5667         * tests/test-sqrt-ieee.c: New file.
5668
5669         New module 'sqrt-ieee'.
5670         * modules/sqrt-ieee: New file.
5671
5672         Tests for module 'sqrtf-ieee'.
5673         * modules/sqrtf-ieee-tests: New file.
5674         * tests/test-sqrtf-ieee.c: New file.
5675         * tests/test-sqrt-ieee.h: New file.
5676
5677         New module 'sqrtf-ieee'.
5678         * modules/sqrtf-ieee: New file.
5679
5680 2012-02-27  Bruno Haible  <bruno@clisp.org>
5681
5682         remainderl-ieee: Work around test failure on OSF/1.
5683         * m4/remainderl-ieee.m4: New file.
5684         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5685         present, test whether remainderl works with a zero second argument.
5686         Replace it if not.
5687         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5689         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5690         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5691         (Depends-on): Update conditions.
5692         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5693         (Depends-on): Add remainder-ieee.
5694         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5695         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5696         module.
5697
5698         remainderf-ieee: Work around test failure on OSF/1.
5699         * m4/remainderf-ieee.m4: New file.
5700         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5701         present, test whether remainderf works with a zero second argument.
5702         Replace it if not.
5703         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5705         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5706         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5707         (Depends-on): Update conditions.
5708         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5709         (Depends-on): Add remainder-ieee.
5710         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5711         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5712         module.
5713
5714         remainder-ieee: Work around test failure on OSF/1.
5715         * m4/remainder-ieee.m4: New file.
5716         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5717         present, test whether remainder works with a zero second argument.
5718         Replace it if not.
5719         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5721         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5722         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5723         (Depends-on): Update dependencies.
5724         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5725         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5726         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5727
5728         Tests for module 'remainderl-ieee'.
5729         * modules/remainderl-ieee-tests: New file.
5730         * tests/test-remainderl-ieee.c: New file.
5731
5732         New module 'remainderl-ieee'.
5733         * modules/remainderl-ieee: New file.
5734
5735         Tests for module 'remainder-ieee'.
5736         * modules/remainder-ieee-tests: New file.
5737         * tests/test-remainder-ieee.c: New file.
5738
5739         New module 'remainder-ieee'.
5740         * modules/remainder-ieee: New file.
5741
5742         Tests for module 'remainderf-ieee'.
5743         * modules/remainderf-ieee-tests: New file.
5744         * tests/test-remainderf-ieee.c: New file.
5745         * tests/test-remainder-ieee.h: New file.
5746
5747         New module 'remainderf-ieee'.
5748         * modules/remainderf-ieee: New file.
5749
5750 2012-02-27  Bruno Haible  <bruno@clisp.org>
5751
5752         modff, modfl: Fix configure syntax error.
5753         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5754         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5755
5756 2012-02-27  Bruno Haible  <bruno@clisp.org>
5757
5758         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5759         * m4/fmodl-ieee.m4: New file.
5760         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5761         whether fmodl works with zero arguments. Replace it if not.
5762         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5763         (Depends-on): Add fmod-ieee.
5764         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5765         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5766
5767         fmodf-ieee: Work around test failure on OSF/1.
5768         * m4/fmodf-ieee.m4: New file.
5769         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5770         whether fmodf works with zero arguments. Replace it if not.
5771         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5773         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5774         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5775         (Depends-on): Update dependencies.
5776         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5777         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5778         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5779
5780         fmodf-ieee: Work around test failure on MSVC 9.
5781         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5782         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5783
5784         fmod-ieee: Work around test failures on OSF/1, mingw.
5785         * m4/fmod-ieee.m4: New file.
5786         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5787         whether fmod works with zero arguments. Replace it if not.
5788         * lib/math.in.h (fmod): New declaration.
5789         * lib/fmod.c: New file.
5790         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5792         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5793         * modules/fmod (Files): Add lib/fmod.c.
5794         (Depends-on): Add math, isinf, trunc, fma.
5795         (configure.ac): Arrange to compile lib/fmod.c if needed.
5796         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5797         m4/signbit.m4.
5798         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5799         * tests/test-math-c++.cc: Check the declaration of fmod.
5800         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5801
5802         fmodl-ieee: Fix test failures.
5803         * lib/fmodl.c (fmodl): Treat Inf specially.
5804         * modules/fmodl (Depends-on): Add isinf.
5805
5806         Tests for module 'fmodl-ieee'.
5807         * modules/fmodl-ieee-tests: New file.
5808         * tests/test-fmodl-ieee.c: New file.
5809
5810         New module 'fmodl-ieee'.
5811         * modules/fmodl-ieee: New file.
5812
5813         Tests for module 'fmod-ieee'.
5814         * modules/fmod-ieee-tests: New file.
5815         * tests/test-fmod-ieee.c: New file.
5816
5817         New module 'fmod-ieee'.
5818         * modules/fmod-ieee: New file.
5819
5820         Tests for module 'fmodf-ieee'.
5821         * modules/fmodf-ieee-tests: New file.
5822         * tests/test-fmodf-ieee.c: New file.
5823         * tests/test-fmod-ieee.h: New file.
5824
5825         New module 'fmodf-ieee'.
5826         * modules/fmodf-ieee: New file.
5827
5828 2012-02-27  Bruno Haible  <bruno@clisp.org>
5829
5830         Tests for module 'rintl-ieee'.
5831         * modules/rintl-ieee-tests: New file.
5832         * tests/test-rintl-ieee.c: New file.
5833
5834         New module 'rintl-ieee'.
5835         * modules/rintl-ieee: New file.
5836
5837         Tests for module 'rint-ieee'.
5838         * modules/rint-ieee-tests: New file.
5839         * tests/test-rint-ieee.c: New file.
5840
5841         New module 'rint-ieee'.
5842         * modules/rint-ieee: New file.
5843
5844         Tests for module 'rintf-ieee'.
5845         * modules/rintf-ieee-tests: New file.
5846         * tests/test-rintf-ieee.c: New file.
5847         * tests/test-rint-ieee.h: New file.
5848
5849         New module 'rintf-ieee'.
5850         * modules/rintf-ieee: New file.
5851
5852 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5853
5854         regex: re_search etc. should return -2 when memory exhausted
5855         This bug was uncovered when testing 'grep'.  Without the fix,
5856         re_search and friends return -1 when memory is exhausted, but -1
5857         means no match, and this causes grep to falsely report no-match
5858         instead of memory-exhaustion.  See
5859         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5860         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5861         trouble; this can occur if re_search_internal ran out of memory.
5862
5863 2012-02-26  Bruno Haible  <bruno@clisp.org>
5864
5865         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5866         * m4/modfl-ieee.m4: New file.
5867         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5868         whether modfl works with Inf. Replace it if not.
5869         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5871         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5872         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5873         (Depends-on): Update dependencies.
5874         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5875         m4/signbit.m4.
5876         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5877         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5878
5879         modfl-ieee: Fix dependencies.
5880         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5881
5882         modfl-ieee: Fix test failures.
5883         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5884         * modules/modfl (Depends-on): Add isfinite, isinf.
5885
5886         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5887         * m4/modff-ieee.m4: New file.
5888         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5889         whether modff works with NaN and Inf. Replace it if not.
5890         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5892         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5893         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5894         (Depends-on): Update dependencies.
5895         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5896         m4/signbit.m4.
5897         (Depends-on): Add modf-ieee.
5898         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5899         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5900
5901         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5902         * m4/modf-ieee.m4: New file.
5903         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5904         whether modf works with NaN and Inf. Replace it if not.
5905         * lib/math.in.h (modf): New declaration.
5906         * lib/modf.c: New file.
5907         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5909         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5910         * modules/modf (Files): Add lib/modf.c.
5911         (Depends-on): Add math, isfinite, trunc, isinf.
5912         (configure.ac): Addrange to compile lib/modf.c if needed.
5913         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5914         m4/signbit.m4.
5915         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5916         * tests/test-math-c++.cc: Check the declaration of modf.
5917         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5918
5919         Tests for module 'modfl-ieee'.
5920         * modules/modfl-ieee-tests: New file.
5921         * tests/test-modfl-ieee.c: New file.
5922
5923         New module 'modfl-ieee'.
5924         * modules/modfl-ieee: New file.
5925
5926         Tests for module 'modf-ieee'.
5927         * modules/modf-ieee-tests: New file.
5928         * tests/test-modf-ieee.c: New file.
5929
5930         New module 'modf-ieee'.
5931         * modules/modf-ieee: New file.
5932
5933         Tests for module 'modff-ieee'.
5934         * modules/modff-ieee-tests: New file.
5935         * tests/test-modff-ieee.c: New file.
5936         * tests/test-modf-ieee.h: New file.
5937
5938         New module 'modff-ieee'.
5939         * modules/modff-ieee: New file.
5940
5941 2012-02-26  Bruno Haible  <bruno@clisp.org>
5942
5943         Tests for module 'fabsl-ieee'.
5944         * modules/fabsl-ieee-tests: New file.
5945         * tests/test-fabsl-ieee.c: New file.
5946
5947         New module 'fabsl-ieee'.
5948         * modules/fabsl-ieee: New file.
5949
5950         Tests for module 'fabs-ieee'.
5951         * modules/fabs-ieee-tests: New file.
5952         * tests/test-fabs-ieee.c: New file.
5953
5954         New module 'fabs-ieee'.
5955         * modules/fabs-ieee: New file.
5956
5957         Tests for module 'fabsf-ieee'.
5958         * modules/fabsf-ieee-tests: New file.
5959         * tests/test-fabsf-ieee.c: New file.
5960         * tests/test-fabs-ieee.h: New file.
5961
5962         New module 'fabsf-ieee'.
5963         * modules/fabsf-ieee: New file.
5964
5965 2012-02-26  Bruno Haible  <bruno@clisp.org>
5966
5967         Tests for module 'fmal-ieee'.
5968         * modules/fmal-ieee-tests: New file.
5969         * tests/test-fmal-ieee.c: New file.
5970
5971         New module 'fmal-ieee'.
5972         * modules/fmal-ieee: New file.
5973
5974         Tests for module 'fma-ieee'.
5975         * modules/fma-ieee-tests: New file.
5976         * tests/test-fma-ieee.c: New file.
5977
5978         New module 'fma-ieee'.
5979         * modules/fma-ieee: New file.
5980
5981         Tests for module 'fmaf-ieee'.
5982         * modules/fmaf-ieee-tests: New file.
5983         * tests/test-fmaf-ieee.c: New file.
5984         * tests/test-fma-ieee.h: New file.
5985
5986         New module 'fmaf-ieee'.
5987         * modules/fmaf-ieee: New file.
5988
5989 2012-02-26  Bruno Haible  <bruno@clisp.org>
5990
5991         Tests for module 'ldexpl-ieee'.
5992         * modules/ldexpl-ieee-tests: New file.
5993         * tests/test-ldexpl-ieee.c: New file.
5994
5995         New module 'ldexpl-ieee'.
5996         * modules/ldexpl-ieee: New file.
5997
5998         Tests for module 'ldexp-ieee'.
5999         * modules/ldexp-ieee-tests: New file.
6000         * tests/test-ldexp-ieee.c: New file.
6001
6002         New module 'ldexp-ieee'.
6003         * modules/ldexp-ieee: New file.
6004
6005         Tests for module 'ldexpf-ieee'.
6006         * modules/ldexpf-ieee-tests: New file.
6007         * tests/test-ldexpf-ieee.c: New file.
6008         * tests/test-ldexp-ieee.h: New file.
6009
6010         New module 'ldexpf-ieee'.
6011         * modules/ldexpf-ieee: New file.
6012
6013 2012-02-26  Bruno Haible  <bruno@clisp.org>
6014
6015         Refactor frexp*-ieee tests.
6016         * tests/test-frexp-ieee.h: New file.
6017         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6018         (main): Just call test_function.
6019         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6020         (main): Just call test_function.
6021         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6022         (main): Just call test_function.
6023         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6024         * modules/frexp-ieee-tests (Files): Likewise.
6025         * modules/frexpl-ieee-tests (Files): Likewise.
6026
6027         Tests for module 'frexpl-ieee'.
6028         * modules/frexpl-ieee-tests: New file.
6029         * tests/test-frexpl-ieee.c: New file.
6030
6031         New module 'frexpl-ieee'.
6032         * modules/frexpl-ieee: New file.
6033
6034         Tests for module 'frexp-ieee'.
6035         * modules/frexp-ieee-tests: New file.
6036         * tests/test-frexp-ieee.c: New file.
6037
6038         New module 'frexp-ieee'.
6039         * modules/frexp-ieee: New file.
6040
6041         Tests for module 'frexpf-ieee'.
6042         * modules/frexpf-ieee-tests: New file.
6043         * tests/test-frexpf-ieee.c: New file.
6044
6045         New module 'frexpf-ieee'.
6046         * modules/frexpf-ieee: New file.
6047
6048 2012-02-26  Bruno Haible  <bruno@clisp.org>
6049
6050         roundl-ieee tests: More tests.
6051         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6052         (main): Add tests for [MX] shaded specification in POSIX.
6053         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6054         (Depends-on): Add isnanl-nolibm.
6055
6056         round-ieee tests: More tests.
6057         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6058         (main): Add tests for [MX] shaded specification in POSIX.
6059         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6060         (Depends-on): Add isnand-nolibm.
6061
6062         roundf-ieee tests: More tests.
6063         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6064         (main): Add tests for [MX] shaded specification in POSIX.
6065         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6066         (Depends-on): Add isnanf-nolibm.
6067
6068         truncl-ieee tests: More tests.
6069         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6070         (main): Add tests for [MX] shaded specification in POSIX.
6071         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6072         (Depends-on): Add isnanl-nolibm.
6073
6074         trunc-ieee tests: More tests.
6075         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6076         (main): Add tests for [MX] shaded specification in POSIX.
6077         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6078         (Depends-on): Add isnand-nolibm.
6079
6080         truncf-ieee tests: More tests.
6081         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6082         (main): Add tests for [MX] shaded specification in POSIX.
6083         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6084         (Depends-on): Add isnanf-nolibm.
6085
6086         ceill-ieee tests: More tests.
6087         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6088         (main): Add tests for [MX] shaded specification in POSIX.
6089         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6090         (Depends-on): Add isnanl-nolibm.
6091
6092         ceil-ieee tests: More tests.
6093         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6094         (main): Add tests for [MX] shaded specification in POSIX.
6095         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6096         (Depends-on): Add isnand-nolibm.
6097
6098         ceilf-ieee tests: More tests.
6099         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6100         (main): Add tests for [MX] shaded specification in POSIX.
6101         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6102         (Depends-on): Add isnanf-nolibm.
6103
6104         floorl-ieee tests: More tests.
6105         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6106         (main): Add tests for [MX] shaded specification in POSIX.
6107         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6108         (Depends-on): Add isnanl-nolibm.
6109
6110         floor-ieee tests: More tests.
6111         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6112         (main): Add tests for [MX] shaded specification in POSIX.
6113         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6114         (Depends-on): Add isnand-nolibm.
6115
6116         floorf-ieee tests: More tests.
6117         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6118         (main): Add tests for [MX] shaded specification in POSIX.
6119         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6120         (Depends-on): Add isnanf-nolibm.
6121
6122 2012-02-26  Bruno Haible  <bruno@clisp.org>
6123
6124         fpieee: More comments.
6125         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6126
6127 2012-02-25  Bruno Haible  <bruno@clisp.org>
6128
6129         Tests for module 'log10l'.
6130         * modules/log10l-tests: New file.
6131         * tests/test-log10l.c: New file.
6132         * tests/test-math-c++.cc: Check the declaration of log10l.
6133
6134         New module 'log10l'.
6135         * lib/math.in.h (log10l): New declaration.
6136         * lib/log10l.c: New file.
6137         * m4/log10l.m4: New file.
6138         * modules/log10l: New file.
6139         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6141         HAVE_DECL_LOG10L.
6142         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6143         HAVE_DECL_LOG10L.
6144         * doc/posix-functions/log10l.texi: Mention the new module.
6145
6146 2012-02-25  Bruno Haible  <bruno@clisp.org>
6147
6148         fmodl, remainder*: Avoid wrong results due to rounding errors.
6149         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6150         expected bounds.
6151         * lib/remainderf.c (remainderf): Likewise.
6152         * lib/remainder.c (remainder): Likewise.
6153         * lib/remainderl.c (remainderl): Likewise.
6154
6155 2012-02-25  Bruno Haible  <bruno@clisp.org>
6156
6157         Tests for module 'remainderl'.
6158         * modules/remainderl-tests: New file.
6159         * tests/test-remainderl.c: New file.
6160         * tests/test-math-c++.cc: Check the declaration of remainderl.
6161
6162         New module 'remainderl'.
6163         * lib/math.in.h (remainderl): New declaration.
6164         * lib/remainderl.c: New file.
6165         * m4/remainderl.m4: New file.
6166         * modules/remainderl: New file.
6167         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6169         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6170         HAVE_REMAINDERL.
6171         * doc/posix-functions/remainderl.texi: Mention the new module.
6172
6173 2012-02-25  Bruno Haible  <bruno@clisp.org>
6174
6175         Tests for module 'remainderf'.
6176         * modules/remainderf-tests: New file.
6177         * tests/test-remainderf.c: New file.
6178         * tests/test-math-c++.cc: Check the declaration of remainderf.
6179
6180         New module 'remainderf'.
6181         * lib/math.in.h (remainderf): New declaration.
6182         * lib/remainderf.c: New file.
6183         * m4/remainderf.m4: New file.
6184         * modules/remainderf: New file.
6185         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6187         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6188         HAVE_REMAINDERF.
6189         * doc/posix-functions/remainderf.texi: Mention the new module.
6190
6191 2012-02-25  Bruno Haible  <bruno@clisp.org>
6192
6193         remainder: Support for MSVC.
6194         * lib/math.in.h (remainder): New declaration.
6195         * lib/remainder.c: New file.
6196         * m4/remainder.m4: New file.
6197         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6198         (Depends-on): Add math, round, fma.
6199         (configure.ac): Use results of gl_FUNC_REMAINDER.
6200         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6202         HAVE_DECL_REMAINDER.
6203         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6204         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6205         * tests/test-math-c++.cc: Check the declaration of remainder.
6206         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6207         problems are fixed.
6208
6209 2012-02-25  Bruno Haible  <bruno@clisp.org>
6210
6211         Tests for module 'fmodl'.
6212         * modules/fmodl-tests: New file.
6213         * tests/test-fmodl.c: New file.
6214         * tests/test-math-c++.cc: Check the declaration of fmodl.
6215
6216         New module 'fmodl'.
6217         * lib/math.in.h (fmodl): New declaration.
6218         * lib/fmodl.c: New file.
6219         * m4/fmodl.m4: New file.
6220         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6222         REPLACE_FMODL.
6223         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6224         REPLACE_FMODL.
6225         * modules/fmodl: New file.
6226         * doc/posix-functions/fmodl.texi: Mention the new module.
6227
6228 2012-02-25  Bruno Haible  <bruno@clisp.org>
6229
6230         Tests for module 'modfl'.
6231         * modules/modfl-tests: New file.
6232         * tests/test-modfl.c: New file.
6233         * tests/test-math-c++.cc: Check the declaration of modfl.
6234
6235         New module 'modfl'.
6236         * lib/math.in.h (modfl): New declaration.
6237         * lib/modfl.c: New file.
6238         * m4/modfl.m4: New file.
6239         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6241         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6242         * modules/modfl: New file.
6243         * doc/posix-functions/modfl.texi: Mention the new module.
6244
6245 2012-02-25  Bruno Haible  <bruno@clisp.org>
6246
6247         Tests for module 'fabsl'.
6248         * modules/fabsl-tests: New file.
6249         * tests/test-fabsl.c: New file.
6250         * tests/test-math-c++.cc: Check the declaration of fabsl.
6251
6252         New module 'fabsl'.
6253         * lib/math.in.h (fabsl): New declaration.
6254         * lib/fabsl.c: New file.
6255         * m4/fabsl.m4: New file.
6256         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6258         REPLACE_FABSL.
6259         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6260         REPLACE_FABSL.
6261         * modules/fabsl: New file.
6262         * doc/posix-functions/fabsl.texi: Mention the new module.
6263
6264 2012-02-25  Bruno Haible  <bruno@clisp.org>
6265
6266         fabs tests: More tests.
6267         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6268         (zero): New variable.
6269         (main): Add tests for signed zero.
6270         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6271
6272         fabsf tests: More tests.
6273         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6274         (zero): New variable.
6275         (main): Add tests for signed zero.
6276         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6277
6278 2012-02-24  Bruno Haible  <bruno@clisp.org>
6279
6280         atanl: Provide function definition on MSVC.
6281         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6282         function pointer.
6283         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6284
6285 2012-02-24  Bruno Haible  <bruno@clisp.org>
6286
6287         acosl: Provide function definition on MSVC.
6288         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6289         function pointer.
6290         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6291
6292 2012-02-24  Bruno Haible  <bruno@clisp.org>
6293
6294         asinl: Provide function definition on MSVC.
6295         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6296         function pointer.
6297         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6298
6299 2012-02-24  Bruno Haible  <bruno@clisp.org>
6300
6301         tanl: Provide function definition on MSVC.
6302         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6303         function pointer.
6304         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6305
6306 2012-02-24  Bruno Haible  <bruno@clisp.org>
6307
6308         cosl: Provide function definition on MSVC.
6309         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6310         function pointer.
6311         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6312
6313 2012-02-24  Bruno Haible  <bruno@clisp.org>
6314
6315         sinl: Provide function definition on MSVC.
6316         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6317         function pointer.
6318         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6319
6320 2012-02-24  Bruno Haible  <bruno@clisp.org>
6321
6322         logl: Provide function definition on MSVC.
6323         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6324         function pointer.
6325         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6326
6327 2012-02-24  Bruno Haible  <bruno@clisp.org>
6328
6329         expl: Provide function definition on MSVC.
6330         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6331         function pointer.
6332         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6333
6334 2012-02-24  Bruno Haible  <bruno@clisp.org>
6335
6336         sqrtl: Provide function definition on MSVC.
6337         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6338         a function pointer.
6339         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6340
6341 2012-02-24  Bruno Haible  <bruno@clisp.org>
6342
6343         ceill: Provide function definition on MSVC.
6344         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6345         used as a function pointer.
6346         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6347
6348 2012-02-24  Bruno Haible  <bruno@clisp.org>
6349
6350         floorl: Provide function definition on MSVC.
6351         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6352         used as a function pointer.
6353         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6354
6355 2012-02-24  Bruno Haible  <bruno@clisp.org>
6356
6357         ceilf: Provide function definition on MSVC.
6358         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6359         used as a function pointer.
6360         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6361
6362 2012-02-24  Bruno Haible  <bruno@clisp.org>
6363
6364         floorf: Provide function definition on MSVC.
6365         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6366         used as a function pointer.
6367         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6368
6369 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6370
6371         stdnoreturn: new module
6372         This implements a replacement for C11's <stdnoreturn.h>.
6373         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6374         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6375         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6376         * tests/test-stdnoreturn.c: New files.
6377
6378 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6379
6380         regex: fix false multibyte matches in some regular expressions
6381         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6382         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6383         * lib/regex_internal.c (re_string_skip_chars):
6384         Fix miscomputation of remain_len that may cause incomplete
6385         multi-byte character and false match.
6386
6387 2012-02-24  Jim Meyering  <meyering@redhat.com>
6388
6389         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6390         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6391         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6392         Remove now-unnecessary str''cmp obfuscation.
6393         Suggested by Akim Demaille.
6394
6395 2012-02-24  Bruno Haible  <bruno@clisp.org>
6396
6397         streq: Rename macro.
6398         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6399         * NEWS: Mention the change.
6400         * lib/mbrtowc.c (mbrtowc): Update.
6401         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6402         * lib/wcwidth.c (wcwidth): Update.
6403         Suggested by Akim Demaille and Jim Meyering.
6404
6405 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         regex: fix typo in definition of MIN
6408         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6409         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6410
6411 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6412             Bruno Haible  <bruno@clisp.org>
6413
6414         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6415         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6416         entries into a stack-allocated buffer directly.
6417         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6418
6419 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6420             Bruno Haible  <bruno@clisp.org>
6421
6422         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6423
6424          - There were several instances of this pattern:
6425
6426              for (;;) {
6427                n = acl (f, GETACLCNT, 0, NULL);
6428                [ allocate an array A of size N ]
6429                if (acl (f, GETACL, n, a) == n)
6430                  break;
6431              }
6432
6433            This loop might never terminate if some other process is constantly
6434            manipulating the file's ACL.  The loop should be rewritten to
6435            terminate.
6436
6437          - The acl (... GETACLNT ...) call is merely an optimization; its value
6438            is merely a hint as to how big to make the array.  A better
6439            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6440            and just guess a reasonably-big size, growing the size and trying
6441            again if it's not large enough.  This guarantees termination, and
6442            saves a system call.
6443
6444         * lib/acl-internal.h: Include <limits.h>.
6445         (MIN, SIZE_MAX): New macros.
6446         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6447         a stack-allocated buffer, and use malloc if it does not fit. Don't
6448         use GETACLCNT.
6449         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6450
6451 2012-02-19  Bruno Haible  <bruno@clisp.org>
6452
6453         acl: Fix endless loop on Solaris with vxfs.
6454         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6455         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6456         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6457         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6458         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6459         Reported by Bill Jones in
6460         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6461
6462 2012-02-19  Bruno Haible  <bruno@clisp.org>
6463
6464         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6465         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6466         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6467         that this function returns 0 in some more cases.
6468
6469 2012-02-19  Bruno Haible  <bruno@clisp.org>
6470
6471         acl: Update doc references.
6472         * doc/acl-resources.txt: Update links to Solaris documentation.
6473
6474 2012-02-19  Bruno Haible  <bruno@clisp.org>
6475
6476         Fix test failure in many locales on Solaris 11.
6477         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6478         'tr' arguments.
6479         * tests/test-pipe-filter-ii1.c (main): Likewise.
6480         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6481         expressions in the C locale.
6482         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6483         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6484
6485 2012-02-19  Bruno Haible  <bruno@clisp.org>
6486
6487         gnulib-tool: Improve usage message.
6488         * gnulib-tool (func_usage): Move doc of --help and --version to the
6489         section "Operation modes".
6490
6491 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6492
6493         README-release: make it easier to execute commands
6494         * top/README-release: break commands out on to separate lines.
6495
6496 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6497
6498         GNUmakefile: simplify detection of unconfigured trees
6499         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6500         whether the tree make is being run from is already configured or
6501         not.  Related simplifications.
6502
6503 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6504
6505         * gnulib-tool (func_usage): Document --help and --version.
6506
6507 2012-02-11  Jim Meyering  <meyering@redhat.com>
6508
6509         bootstrap: don't exit 0 upon gnulib-tool failure
6510         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6511         its exit status, not 0.
6512
6513 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6514
6515         README-release: various improvements
6516         * top/README-release: Give a command to push changes for the
6517         release.  Add "distcheck" to list of other pre-release checks.
6518         Fix instance of "make stable" which should be "make TYPE".
6519
6520 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6521
6522         maint: replace FSF snail-mail addresses with URLs
6523         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6524         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6525         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6526         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6527         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6528         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6529         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6530         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6531         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6532         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6533         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6534         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6535         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6536         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6537         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6538         * lib/glthread/thread.c, lib/glthread/thread.h:
6539         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6540         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6541         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6542         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6543         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6544         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6545         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6546         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6547         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6548         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6549         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6550         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6551         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6552         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6553         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6554         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6555         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6556         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6557         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6558         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6559         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6560         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6561         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6562         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6563         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6564         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6565         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6566         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6567         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6568         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6569         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6570         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6571         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6572         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6573         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6574         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6575         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6576         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6577         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6578         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6579         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6580         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6581         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6582         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6583         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6584         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6585         * tests/test-poll.c, tests/test-quotearg-simple.c:
6586         * tests/test-quotearg.c, tests/test-quotearg.h:
6587         * tests/test-round-ieee.c, tests/test-round1.c:
6588         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6589         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6590         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6591         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6592         * tests/test-strerror.c, tests/test-strerror_r.c:
6593         * tests/test-strsignal.c, tests/test-strverscmp.c:
6594         * tests/test-xmemdup0.c:
6595         Replace FSF snail mail addresses with URLs, as per GNU coding
6596         standards.  See glibc bug
6597         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6598
6599 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6600
6601         README-release: capitalize a word and split a line
6602         * top/README-release: Fix punctuation and spacing.
6603
6604 2012-02-08  Akim Demaille  <demaille@gostai.com>
6605
6606         fatal-signal: use C prototypes (with explicit void).
6607         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6608         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6609
6610 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6611
6612         regex: spelling fix
6613         * lib/regexec.c: spelling fix
6614
6615         regex: rely on stdint.h for SIZE_MAX
6616         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6617
6618 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6619
6620         regex: merge glibc changes
6621
6622         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6623         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6624         (init_word_char): Work even if bitset words are not exactly 32 or
6625         64 bits wide.  Don't assume there are no padding bits.
6626         * lib/regex.c [_LIBC]: Do not include <config.h>.
6627         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6628         and -Wtype-limits.
6629         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6630         needless disagreement with glibc.  All uses changed.  Define it to
6631         1 only if _GNU_SOURCE, to match glibc.
6632         (_REG_RM_NAME): Remove; no longer needed, since the names in
6633         question are now all protected by __USE_GNU.
6634         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6635         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6636         * lib/regex_internal.h (MIN): New macro.
6637
6638         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6639         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6640
6641         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6642         * lib/regex_internal.c (re_string_fetch_byte_case):
6643         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6644         is miscompiled, and it turns out it is because of an incorrect
6645         attribute on re_string_fetch_byte_case.  Unlike
6646         re_string_peek_byte_case, this one is really not pure, it modifies
6647         memory (increments pstr->cur_idx), and with the pure attribute GCC
6648         assumed it doesn't and it cached the presumed value of
6649         regexp->cur_idx in a variable across the
6650          for (;; ++i)
6651            {
6652              if (i >= BRACKET_NAME_BUF_SIZE)
6653                return REG_EBRACK;
6654              if (token->type == OP_OPEN_CHAR_CLASS)
6655                ch = re_string_fetch_byte_case (regexp);
6656              else
6657                ch = re_string_fetch_byte (regexp);
6658              if (re_string_eoi(regexp))
6659                return REG_EBRACK;
6660              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6661                break;
6662              elem->opr.name[i] = ch;
6663            }
6664
6665         2011-11-29 Andreas Schwab <schwab@redhat.com>
6666         * lib/regcomp.c (build_equiv_class):
6667         Fix access after end of search string in regex matcher.
6668
6669         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6670         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6671
6672         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6673         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6674
6675         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6676         * lib/regcomp.c (parse_branch, parse_sub_exp):
6677         More regex memory leak fixes and tests.
6678         (parse_sub_exp, parse_bracket_exp):
6679         Fix memory leak for some invalid regular expressions.
6680
6681         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6682         * lib/regex_internal.c, lib/regexec.c:
6683         Fix unnecessary overallocation due to incomplete character.  When
6684         incomplete characters are found at the end of a string the code
6685         ran amok and allocated lots of memory.  Stricter limits are now in
6686         place.
6687
6688         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6689         * lib/regex.h: Update documentation.
6690
6691         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6692         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6693
6694         2010-05-05 Andreas Schwab <schwab@redhat.com>
6695         * lib/regexec.c (find_collation_sequence_value):
6696         Fix lookup of collation sequence value during regexp matching.
6697
6698         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6699         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6700
6701         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6702         * lib/regex.h: Cleanup namespace.
6703
6704         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6705         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6706
6707         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6708         * lib/regex_internal.h: Prevent some declarations and definitions
6709         to be seen when used in tests.
6710
6711         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6712         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6713         __libc_lock_* macros if not _LIBC.
6714         (struct re_dfa_t): Add lock.
6715
6716 2012-02-07  Eric Blake  <eblake@redhat.com>
6717
6718         maint.mk: also prohibit lower-case @var@
6719         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6720         lower case, like @top_srcdir@.
6721
6722 2012-02-04  Eric Blake  <eblake@redhat.com>
6723
6724         canonicalize: avoid uninitialized memory use
6725         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6726         random '/' left in dest.
6727         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6728
6729 2012-02-04  Bruno Haible  <bruno@clisp.org>
6730
6731         isatty: Fix test failure of ptsname_r on native Windows.
6732         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6733         and don't set errno.
6734         (isatty): Test first whether fd is valid. Set errno when returning 0.
6735
6736 2012-02-04  Bruno Haible  <bruno@clisp.org>
6737
6738         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6739         * tests/test-spawn-pipe-main.c: Include progname.h.
6740         (main): Invoke set_program_name.
6741         * modules/spawn-pipe-tests (Depends-on): Add progname.
6742
6743         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6744         * tests/test-nonblocking-socket-main.c: Include progname.h.
6745         (main): Invoke set_program_name.
6746         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6747
6748         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6749         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6750         (main): Invoke set_program_name.
6751         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6752
6753 2012-02-04  Eric Blake  <eblake@redhat.com>
6754
6755         canonicalize-lgpl: fix // handling
6756         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6757
6758         canonicalize: fix // handling
6759         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6760         /// to //, since only // is special.
6761
6762 2012-02-04  Bruno Haible  <bruno@clisp.org>
6763
6764         ioctl: Fix test failure on native Windows.
6765         * lib/ioctl.c: Include msvc-nothrow.h.
6766         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6767
6768 2012-02-04  Bruno Haible  <bruno@clisp.org>
6769
6770         fsync: Avoid test failure on native Windows.
6771         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6772         read-only.
6773
6774 2012-02-04  Bruno Haible  <bruno@clisp.org>
6775
6776         sys_select: Avoid syntax error on OpenBSD 5.0.
6777         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6778         currently being included, just include the system's <sys/select.h>.
6779
6780 2012-02-04  Bruno Haible  <bruno@clisp.org>
6781
6782         sys_select: Avoid syntax error on OpenBSD 5.0.
6783         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6784         <sys/select.h>, not before.
6785         Reported by Jiri B <jirib@devio.us>.
6786
6787 2012-02-04  Bruno Haible  <bruno@clisp.org>
6788
6789         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6790         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6791         global variables.
6792         * tests/test-get-rusage-data.c (main): Likewise.
6793         Reported by Jim Meyering.
6794
6795 2012-02-04  Bruno Haible  <bruno@clisp.org>
6796
6797         stdioext: Fix last commit.
6798         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6799
6800 2012-02-03  Bruno Haible  <bruno@clisp.org>
6801
6802         stdioext: Add tentative support for Plan9.
6803         * lib/stdio-impl.h: Include <errno.h>.
6804         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6805         * lib/freadable.c (freadable): Likewise.
6806         * lib/fwritable.c (fwritable): Likewise.
6807         * lib/fbufmode.c (fbufmode): Likewise.
6808         * lib/freading.c (freading): Likewise.
6809         * lib/fwriting.c (fwriting): Likewise.
6810         * lib/freadptr.c (freadptr): Likewise.
6811         * lib/freadseek.c (freadptrinc): Likewise.
6812         * lib/freadahead.c (freadahead): Likewise.
6813         * lib/fpurge.c (fpurge): Likewise.
6814         * lib/fseeko.c (rpl_fseeko): Likewise.
6815         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6816         Reported by Jens Staal <staal1978@gmail.com>.
6817
6818 2012-02-02  Jim Meyering  <meyering@redhat.com>
6819
6820         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6821         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6822         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6823         not even to try to add the attribute.  Instead, add a pragma to suppress
6824         the suggestion/warning.
6825
6826 2012-01-31  Karl Berry  <karl@gnu.org>
6827
6828         setstate doc: typo.
6829         * doc/posix-functions/setstate.texi (setstate): { not (.
6830
6831 2012-01-31  Bruno Haible  <bruno@clisp.org>
6832
6833         popen: Make more robust on Windows.
6834         * lib/popen.c: On native Windows, use the _popen based code even if
6835         HAVE_POPEN is set.
6836         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6837         environment variable on native Windows.
6838
6839 2012-01-30  Bruno Haible  <bruno@clisp.org>
6840
6841         pclose: Fix typo.
6842         * lib/stdio.in.h (pclose): Fix typo in warning message.
6843
6844 2012-01-30  Bruno Haible  <bruno@clisp.org>
6845
6846         doc about getlogin_r, setstate.
6847         * doc/posix-functions/getlogin_r.texi: List the incompatible
6848         declaration problem under "not fixed by gnulib".
6849         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6850         problem on Solaris 11 and other platforms.
6851
6852 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6853             Bruno Haible  <bruno@clisp.org>
6854
6855         poll tests: Make test more robust.
6856         * tests/test-poll.c: Include macros.h.
6857         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6858         return value of various I/O operations.
6859         * modules/poll-tests (Files): Add tests/macros.h.
6860
6861 2012-01-30  Bruno Haible  <bruno@clisp.org>
6862
6863         sys_stat: Fix support for mingw64 and MSVC.
6864         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6865         header files already do it.
6866         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6867         stat itself.
6868         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6869
6870 2012-01-30  Bruno Haible  <bruno@clisp.org>
6871
6872         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6874         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6875
6876 2012-01-29  Bruno Haible  <bruno@clisp.org>
6877
6878         quotearg: Fix test failure on MacOS X 10.5.
6879         * tests/test-quotearg-simple.c: Include localcharset.h.
6880         (main): If the locale encoding is not ASCII, bypass the tests of
6881         locale_quoting_style and clocale_quoting_style.
6882         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6883
6884 2012-01-29  Jim Meyering  <meyering@redhat.com>
6885
6886         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6887         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6888         detect uses of canonicalize_file_name.
6889
6890 2012-01-28  Bruno Haible  <bruno@clisp.org>
6891
6892         test-framework-sh: Fix test failure with AIX 7.1 diff.
6893         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6894         in column 1, like 'diff -c' does.
6895         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6896         whether 'diff -u' is used. Instead, test whether the output contains
6897         some '@' character.
6898
6899 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6900
6901         strtoimax: eliminate need for stdint.h, inttypes.h checks
6902         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6903         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6904         the prerequisites for a recently-introduced strtoimax test.
6905         I guess this might cause strtoimax to be replaced when not
6906         strictly necessary on older hosts, but this shouldn't introduce
6907         any bugs and it should make Emacs 'configure' faster on typical
6908         modern hosts.  Problem discovered when importing the latest gnulib
6909         to an Emacs test version.
6910         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6911
6912 2012-01-28  Bruno Haible  <bruno@clisp.org>
6913
6914         sys_time: Override 'struct timeval' on some native Windows platforms.
6915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6916         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6917         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6918         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6919         needs to be overridden.
6920         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6921         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6922         * tests/test-sys_select.c: Check that the tv_sec member has the same
6923         size as a 'time_t'.
6924         * tests/test-sys_time.c: Likewise.
6925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6926         is set, set also REPLACE_GETTIMEOFDAY.
6927         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6928         convert the resulting 'struct timeval' before returning.
6929         * lib/select.c: Include <sys/time.h>.
6930         (select, timeval): Undefine at the right place.
6931         * modules/select (Depends-on): Add sys_time.
6932         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6933         some Windows platforms.
6934         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6935
6936 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6937
6938         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6939         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6940         an integer.
6941         * lib/fcntl.c (dupfd): Likewise.
6942         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6943
6944 2012-01-28  Bruno Haible  <bruno@clisp.org>
6945
6946         fcntl: Avoid compilation error on native Windows.
6947         * modules/fcntl (Depends-on): Add 'close'.
6948
6949 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6950
6951         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6952         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6953         pointer to an integer.
6954         * lib/poll.c (IsConsoleHandle): Likewise.
6955         * lib/isatty.c (IsConsoleHandle): Likewise.
6956
6957 2012-01-28  Jim Meyering  <meyering@redhat.com>
6958
6959         doc: clarify README-release
6960         * top/README-release: Clarify: you should make a point to have
6961         the latest stable versions of build tools in your PATH, and the
6962         reference to buildreq is solely for its list of tool names, not
6963         for its minimal-functional version numbers.
6964         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6965
6966         maint.mk: use more readable (yet functionally equivalent) quoting
6967         It is common to quote a single quote in a single quoted string like
6968         this:  '...'\''...'.  Unless you know the idiom, that looks like
6969         gibberish, so prefer to double-quote the string when possible.
6970         Then you can use a more readable, lone single quote: "...'..."
6971         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6972         "don't" is more readable than the equivalent 'don'\''t'.
6973         (sc_cast_of_x_alloc_return_value): Likewise.
6974         (sc_cast_of_alloca_return_value): Likewise.
6975         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6976         rather than '\'':'\''.
6977
6978 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6979
6980         stdalign: relax _Alignof and tighten _Alignas test
6981         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6982         as it was too strict: alignof must divide offsetof, but it need
6983         not equal offsetof.  Inspired by Joseph S. Myers's comment
6984         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6985         Conversely, tighten the _Alignas test a bit, as the resulting
6986         alignment must be exactly 8.
6987
6988 2012-01-27  Bruno Haible  <bruno@clisp.org>
6989
6990         stdalign: Document the last change.
6991         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6992
6993 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6994
6995         stdalign: check that alignof and offsetof are consistent
6996         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6997         Problem reported for gnulib by Richard W.M. Jones in
6998         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6999
7000 2012-01-27  Jim Meyering  <meyering@redhat.com>
7001
7002         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7003         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7004         convert a sequence with gaps to the minimal containing range.
7005         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7006         * tests/test-update-copyright.sh: Test for this.
7007         The FSF confirmed it is ok to do this, assuming there is at
7008         least one significant change per year in the affected range:
7009         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7010
7011 2012-01-26  Bruno Haible  <bruno@clisp.org>
7012
7013         pipe2: refine doc about thread-safety
7014         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7015         multithread-safety problem.
7016         * doc/glibc-functions/accept4.texi: Likewise.
7017
7018 2012-01-26  Bruno Haible  <bruno@clisp.org>
7019
7020         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7021         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7022         In the test program, include <fcntl.h>, for O_RDONLY.
7023
7024 2012-01-26  Eric Blake  <eblake@redhat.com>
7025
7026         pipe2: document lack of thread-safety in replacement
7027         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7028         issue in replacement.
7029         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7030         Based on a report by Eric Wong.
7031
7032 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7033             Bruno Haible  <bruno@clisp.org>
7034
7035         malloca: Avoid warnings on x86_64 mingw64.
7036         * lib/malloca.c: Include <stdint.h>.
7037         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7038         * modules/malloca (Depends-on): Add stdint.
7039         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7040
7041 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         obstack: remove __STDC__ conditionals
7044         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7045         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7046         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7047         m4/include_next.m4 as the only gnulib-maintained places that still
7048         refer to __STDC__.
7049
7050 2012-01-24  Bruno Haible  <bruno@clisp.org>
7051
7052         havelib: Modern quoting.
7053         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7054         the recent change to the GNU coding standards.
7055
7056 2012-01-24  Bruno Haible  <bruno@clisp.org>
7057
7058         stdint: Improve support for Android.
7059         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7060         Reported by Simon Josefsson <simon@josefsson.org>.
7061
7062 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7063
7064         doc: omit trailing empty lines from INSTALL etc.
7065         * doc/Makefile (INSTALL): Omit trailing empty lines.
7066         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7067         omit trailing empty lines.  This simplifies the build procedure.
7068
7069 2012-01-23  Jim Meyering  <meyering@redhat.com>
7070
7071         tests: avoid spurious warnings about gl_sockets_startup
7072         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7073         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7074         reporting a "statement with no effect".
7075         * tests/test-accept.c (main): Mark as "(void)".
7076         * tests/test-accept4.c (main): Likewise.
7077         * tests/test-bind.c (main): Likewise.
7078         * tests/test-connect.c (main): Likewise.
7079         * tests/test-getpeername.c (main): Likewise.
7080         * tests/test-getsockname.c (main): Likewise.
7081         * tests/test-getsockopt.c (main): Likewise.
7082         * tests/test-listen.c (main): Likewise.
7083         * tests/test-recv.c (main): Likewise.
7084         * tests/test-recvfrom.c (main): Likewise.
7085         * tests/test-send.c (main): Likewise.
7086         * tests/test-sendto.c (main): Likewise.
7087         * tests/test-setsockopt.c (main): Likewise.
7088         * tests/test-shutdown.c (main): Likewise.
7089
7090 2012-01-21  Bruno Haible  <bruno@clisp.org>
7091
7092         locale-fr.m4: Fix for Android.
7093         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7094         failure of the test program on Bionic libc.
7095
7096 2012-01-21  Jim Meyering  <meyering@redhat.com>
7097
7098         bootstrap: fail when bootstrap_post_import_hook fails
7099         Otherwise, it's far too easy to miss diagnostics emitted
7100         between gnulib-tool's output and that of running configure.
7101         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7102
7103 2012-01-17  Jim Meyering  <meyering@redhat.com>
7104
7105         maint: enable sc_trailing_blank
7106         * build-aux/pmccabe.css: Remove trailing blanks.
7107         * doc/acl-cygwin.txt: Likewise.
7108         * doc/gnu-oids.texi: Likewise
7109         * cfg.mk: Enable sc_trailing_blank.
7110         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7111
7112 2012-01-17  Jim Meyering  <meyering@redhat.com>
7113
7114         maint: enable sc_prohibit_openat_without_use
7115         * cfg.mk: Enable sc_prohibit_openat_without_use.
7116         Exempt lib/selinux-at.c.
7117
7118 2012-01-17  Jim Meyering  <meyering@redhat.com>
7119
7120         maint: enable sc_prohibit_cloexec_without_use
7121         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7122         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7123
7124 2012-01-17  Jim Meyering  <meyering@redhat.com>
7125
7126         maint: enable sc_prohibit_intprops_without_use
7127         * cfg.mk: Enable sc_prohibit_intprops_without_use
7128         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7129
7130 2012-01-17  Jim Meyering  <meyering@redhat.com>
7131
7132         maint: enable sc_prohibit_hash_pjw_without_use
7133         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7134         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7135         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7136         following " (".
7137
7138 2012-01-17  Jim Meyering  <meyering@redhat.com>
7139
7140         maint: enable double-word-prohibiting rule
7141         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7142         Exempt three files.
7143
7144 2012-01-17  Jim Meyering  <meyering@redhat.com>
7145
7146         maint: remove empty lines at EOF, but excluding modules/*
7147         Apply syntax rules at home as well as abroad.  Most changes
7148         were induced by running this:
7149           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7150             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7151             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7152         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7153         Exempt modules/* and two binary files.
7154         Also exempt doc/INSTALL*, per request from Bruno Haible.
7155         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7156         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7157         * doc/Copyright/request-assign.future: Likewise.
7158         * doc/Copyright/request-disclaim.changes: Likewise.
7159         * doc/INSTALL: Likewise.
7160         * doc/INSTALL.ISO: Likewise.
7161         * doc/INSTALL.UTF-8: Likewise.
7162         * doc/acl-cygwin.txt: Likewise.
7163         * doc/acl-resources.txt: Likewise.
7164         * doc/fdl-1.2.texi: Likewise.
7165         * doc/fdl-1.3.texi: Likewise.
7166         * doc/fdl.texi: Likewise.
7167         * lib/argp-pin.c: Likewise.
7168         * lib/round.c: Likewise.
7169         * lib/unicase/u16-totitle.c: Likewise.
7170         * lib/unictype/block_test.c: Likewise.
7171         * lib/uninorm/canonical-decomposition.c: Likewise.
7172         * m4/README: Likewise.
7173         * m4/relocatable-lib.m4: Likewise.
7174         * tests/test-isnand-nolibm.c: Likewise.
7175         * tests/test-isnand.c: Likewise.
7176         * tests/uninorm/NormalizationTest.txt: Likewise.
7177
7178 2012-01-17  Jim Meyering  <meyering@redhat.com>
7179
7180         maint: add framework to run syntax-check rules against gnulib sources
7181         * cfg.mk: New file, to disable all currently-failing tests.
7182         We'll enable them one by one, as they are made to pass.
7183         * Makefile (sc_maint): New rule.
7184
7185 2012-01-21  Bruno Haible  <bruno@clisp.org>
7186
7187         stdint: Add support for Android.
7188         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7189         include the system's <stdint.h>.
7190         Reported by Simon Josefsson <simon@josefsson.org>.
7191
7192 2012-01-19  Jim Meyering  <meyering@redhat.com>
7193
7194         bootstrap: add bootstrap_post_import_hook
7195         Bison does still need something like the gnulib_mk_hook whose
7196         invocation I had to remove along with slurp in commit 767ccd40.
7197         Technically, we could get along without it, but doing so would
7198         have required living with a warning and a mandatory post-bootstrap
7199         automake rerun.
7200         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7201         (bootstrap_post_import_hook): New function.
7202         Invoke it after gnulib-tool --import and before autoreconf.
7203
7204 2012-01-18  Jim Meyering  <meyering@redhat.com>
7205
7206         gitlog-to-changelog: don't use "no_"-prefixed variable name
7207         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7208         to enable both --cluster and --no-cluster.  Change variable name,
7209         s/\$no_cluster/$cluster/, and reverse usage to match.
7210
7211         gitlog-to-changelog: use "||", not "or" in expressions
7212         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7213         expressions.
7214
7215 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7216
7217         gitlog-to-changelog: new option --no-cluster
7218         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7219         clustering of adjacent commit messages.
7220
7221 2012-01-17  Jim Meyering  <meyering@redhat.com>
7222
7223         maint: spell file systems with two words, not one
7224         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7225         two words, not one.
7226
7227 2012-01-16  Jim Meyering  <meyering@redhat.com>
7228
7229         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7230         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7231
7232 2012-01-16  Eric Blake  <eblake@redhat.com>
7233
7234         bootstrap: cater to autoconf 2.59
7235         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7236         is not available.
7237
7238         bootstrap: properly check for libtool
7239         * build-aux/bootstrap (libtoolize): Also run libtool when older
7240         usage is detected.
7241
7242 2012-01-15  Bruno Haible  <bruno@clisp.org>
7243
7244         Improve support for MSVC 9.
7245         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7246         clashes on MSVC.
7247         * lib/fcntl.in.h: Likewise.
7248         * lib/stdlib.in.h: Likewise.
7249         * lib/sys_stat.in.h: Likewise.
7250
7251 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7252
7253         gnupload: we hold the master copy of this script now
7254         For motivation and more information, see:
7255         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7256         * build-aux/gnupload: Make it clear in the heading comments that the
7257         master copy of this file is maintained by gnulib.  Since we are at
7258         it, bump its copyright year and ...
7259         ($scriptversion): ... the date in its version.
7260         ($usage): Patches and bug reports should be sent to the gnulib list,
7261         not the automake one.
7262         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7263         anymore.
7264
7265 2012-01-15  Bruno Haible  <bruno@clisp.org>
7266
7267         Fix module 'random'.
7268         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7269         initstate, setstate are declared.
7270
7271 2012-01-14  Bruno Haible  <bruno@clisp.org>
7272
7273         Tests for module 'random'.
7274         * modules/random-tests: New file.
7275         * tests/test-random.c: New file, based on tests/test-random_r.c.
7276
7277         New module 'random'.
7278         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7279         declarations.
7280         * lib/random.c: New file, based on glibc/stdlib/random.c.
7281         * m4/random.m4: New file.
7282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7283         HAVE_RANDOM.
7284         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7285         * modules/random: New file.
7286         * config/srclist.txt: Add an entry for random.c.
7287         * doc/posix-functions/random.texi: Mention the 'random' module.
7288         * doc/posix-functions/initstate.texi: Likewise.
7289         * doc/posix-functions/setstate.texi: Likewise.
7290         * doc/posix-functions/srandom.texi: Likewise.
7291
7292 2012-01-12  Bruno Haible  <bruno@clisp.org>
7293
7294         random_r: Use common idioms.
7295         * lib/random_r.c: Include <stdlib.h> first.
7296
7297         random_r: Override incompatible API on AIX, OSF/1.
7298         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7299         Override the system function if REPLACE_RANDOM_R is 1.
7300         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7301         and OSF/1, set REPLACE_RANDOM_R.
7302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7303         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7304         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7305         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7306         * doc/glibc-functions/random_r.texi: Likewise.
7307         * doc/glibc-functions/setstate_r.texi: Likewise.
7308
7309         random_r: Support for MSVC 9.
7310         * lib/random_r.c: Include stdint.h, not inttypes.h.
7311
7312 2012-01-12  Eric Blake  <eblake@redhat.com>
7313
7314         inet_ntop: guard extra work by IF_LINT
7315         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7316         better code generation when not checking for warnings.
7317         Suggested by Paul Eggert and Jim Meyering.
7318
7319         strptime: fix regression on mingw
7320         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7321         Fix regression.  Reported by Bruno Haible.
7322
7323 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7324             Bruno Haible  <bruno@clisp.org>
7325
7326         copy-file: add error-code-returning variant.
7327         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7328         (qcopy_file_preserving): New declaration.
7329         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7330         copy_file_preserving. Change return type to 'int'. Don't emit an error
7331         message here.
7332         (copy_file_preserving): New function.
7333         * tests/test-copy-file.c: Include <stdlib.h>.
7334         (main): Test qcopy_file_preserving if the environment variable
7335         NO_STDERR_OUTPUT is set.
7336         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7337         with NO_STDERR_OUTPUT
7338         * tests/test-copy-file-2.sh: Likewise.
7339
7340 2012-01-10  Bruno Haible  <bruno@clisp.org>
7341
7342         copy-file: Use 'quote' module consistently.
7343         * lib/copy-file.c (copy_file_preserving): Use quote().
7344
7345         copy-file: Refactor.
7346         * lib/copy-file.c: Include quote.h.
7347         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7348         message here.
7349         * modules/copy-file (Depends-on): Add quote.
7350
7351         acl: Export qcopy_acl.
7352         * lib/acl.h (qcopy_acl): New declaration.
7353         * lib/copy-acl.c (qcopy_acl): Make non-static.
7354
7355         acl: Rename a local variable.
7356         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7357
7358         acl: Align return values of copy_acl and qcopy_acl.
7359         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7360         maybe < -1.
7361
7362 2012-01-11  Eric Blake  <eblake@redhat.com>
7363
7364         strptime: silence gcc warnings
7365         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7366         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7367         Reported by Daniel P. Berrange.
7368
7369         inet_ntop: silence gcc warning
7370         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7371         Reported by Daniel P. Berrange.
7372
7373 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7374
7375         getloadavg test: skip the test on GNU/Linux without /proc mounted
7376         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7377         file.  When /proc is not mounted, it always fails with ENOENT.
7378         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7379         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7380
7381 2012-01-10  Bruno Haible  <bruno@clisp.org>
7382
7383         regex: Avoid link error on MSVC 9.
7384         * modules/regex (Depends-on): Add wctype.
7385
7386 2012-01-10  Bruno Haible  <bruno@clisp.org>
7387
7388         doc: Mention --with-tests option.
7389         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7390         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7391         --with-tests.
7392         Reported by Reuben Thomas.
7393
7394 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7395
7396         users.txt: order package names lexicographically.
7397         * users.txt: Order package names lexicographically.
7398
7399 2012-01-10  Jim Meyering  <meyering@redhat.com>
7400
7401         maint.mk: fix description in comment
7402         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7403
7404         ignore-value: remove deprecated ignore_ptr function
7405         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7406         * NEWS: Note this.
7407
7408 2012-01-09  Jim Meyering  <meyering@redhat.com>
7409
7410         test-init.sh: avoid a subshell
7411         * tests/test-init.sh: Remove protective subshell.
7412         Suggested by Bernhard Voelker.  While a subshell is normally
7413         required to protect against older shells (Solaris, FreeBSD) that
7414         warn about a missing program before performing redirection, the
7415         shell-selection tests performed by init.sh probably exclude any
7416         offending shell.
7417
7418 2012-01-08  Bruno Haible  <bruno@clisp.org>
7419
7420         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7421         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7422         variable.
7423
7424 2012-01-08  Bruno Haible  <bruno@clisp.org>
7425
7426         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7427         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7428         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7429         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7430         macro.
7431         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7432         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7433         * lib/spawn_faction_addopen.c: Add workaround implementation if
7434         HAVE_WORKING_POSIX_SPAWN.
7435         * modules/spawn (Makefile): Substitute
7436         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7437         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7438         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7439         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7440         (Depends-on): Update conditions.
7441         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7442         the Solaris 11 bug.
7443
7444 2012-01-08  Bruno Haible  <bruno@clisp.org>
7445
7446         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7447         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7448         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7449         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7450         macro.
7451         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7452         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7453         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7454         HAVE_WORKING_POSIX_SPAWN.
7455         * modules/spawn (Makefile): Substitute
7456         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7457         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7458         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7459         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7460         (Depends-on): Update conditions.
7461         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7462         the Solaris 11 bug.
7463
7464 2012-01-08  Bruno Haible  <bruno@clisp.org>
7465
7466         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7467         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7468         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7469         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7470         HAVE_WORKING_POSIX_SPAWN.
7471         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7472         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7473         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7474         * lib/spawn_faction_addclose.c: Add workaround implementation if
7475         HAVE_WORKING_POSIX_SPAWN.
7476         * modules/spawn (Makefile): Substitute
7477         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7478         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7479         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7480         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7481         (Depends-on): Update conditions.
7482         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7483         the Solaris 11 bug.
7484
7485 2012-01-08  Bruno Haible  <bruno@clisp.org>
7486
7487         doc: Update for Solaris 11 2011-11.
7488         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7489         * m4/printf.m4: Update comments.
7490
7491 2012-01-08  Bruno Haible  <bruno@clisp.org>
7492
7493         mktime: Avoid compilation error on Solaris 11.
7494         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7495
7496 2012-01-08  Bruno Haible  <bruno@clisp.org>
7497
7498         doc: Small fix.
7499         * doc/posix-headers/nl_types.texi: Correct platforms list.
7500
7501 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7502
7503         Add lgpl-3.0 module.
7504         * MODULES.html.sh (Support for building documentation): Add
7505         lgpl-3.0.
7506         * modules/lgpl-3.0: New file.
7507
7508 2012-01-08  Jim Meyering  <meyering@redhat.com>
7509
7510         select.c: indent with spaces, not TABs
7511         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7512
7513 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7514
7515         quotearg: do not use grave accent for left quote
7516         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7517         locale_quoting_style.
7518         (quotearg_buffer_restyled): Fix example.
7519         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7520
7521 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7522
7523         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7524         Most programs do not have translation catalogs for English and much
7525         less separate catalogs for British and American English.  Drop the
7526         suggestion to translators about these two, and provide it
7527         automatically for Unicode locales.  Like most programs, even those
7528         using American English, we use single quotation marks.  This conflicts
7529         with the American typographic convention, but works better when you
7530         cite the entire error message within double quotes.  It also tries not
7531         to clash with established practice and with what non-gnulib programs
7532         will usually do.
7533         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7534         using an UTF-8 or GB-18030 locale.  The list of other locales with
7535         quotes was provided by Bruno Haible.
7536         (quotearg_buffer_restyled): Adjust instructions to translators.
7537         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7538         text, since this would be wrong when using Unicode.
7539         * modules/quotearg: Depend on c-strcaseeq.
7540
7541 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7542
7543         quotearg: fix Wikipedia link
7544         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7545
7546 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7547
7548         Fix for mingw with MSVC9.
7549         * m4/ld-version-script.m4: Check that compiler rejects version
7550         scripts with syntax errors.  Reported by Bruno Haible
7551         <bruno@clisp.org>.
7552
7553 2012-01-06  Bruno Haible  <bruno@clisp.org>
7554
7555         Talk about "native Windows API", not "Woe32".
7556         * lib/accept4.c: Update comments to mention native Windows.
7557         * lib/execute.c: Likewise.
7558         * lib/fatal-signal.c: Likewise.
7559         * lib/localcharset.c: Likewise.
7560         * lib/nanosleep.c: Likewise.
7561         * lib/nl_langinfo.c: Likewise.
7562         * lib/pclose.c: Likewise.
7563         * lib/pipe-filter-gi.c: Likewise.
7564         * lib/pipe-filter-ii.c: Likewise.
7565         * lib/pipe.c: Likewise.
7566         * lib/pipe2.c: Likewise.
7567         * lib/popen.c: Likewise.
7568         * lib/progreloc.c: Likewise.
7569         * lib/relocatable.c: Likewise.
7570         * lib/sigaction.c: Likewise.
7571         * lib/sigprocmask.c: Likewise.
7572         * lib/spawn-pipe.h: Likewise.
7573         * lib/spawn-pipe.c: Likewise.
7574         * lib/spawni.c: Likewise.
7575         * lib/stat-time.h: Likewise.
7576         * lib/w32spawn.h: Likewise.
7577         * tests/test-isatty.c: Likewise.
7578         * lib/config.charset: More comments.
7579         * doc/gnulib-intro.texi: Mention native Windows.
7580         * doc/posix-functions/_Exit_C99.texi: Likewise.
7581         * doc/posix-headers/fcntl.texi: Likewise.
7582
7583 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7584
7585         argp: Avoid crash if translator uses % characters in a translation.
7586         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7587         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7588
7589 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7590
7591         doc: C11 and C++11 are now official
7592         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7593         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7594         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7595         * modules/stdalign:
7596         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7597
7598 2012-01-06  Bruno Haible  <bruno@clisp.org>
7599
7600         uc-is-grapheme-break tests: Tweak.
7601         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7602         message.
7603
7604 2012-01-06  Bruno Haible  <bruno@clisp.org>
7605
7606         test-init.sh: correct the test for diff -u
7607         * tests/test-init.sh: Also redirect stdout to /dev/null.
7608
7609 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7610
7611         Use ', not `, for quoting output.
7612         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7613         (print_changelog_deltas, get_tool_versions, main program):
7614         * build-aux/git-version-gen:
7615         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7616         * build-aux/move-if-change (help):
7617         * build-aux/useless-if-before-free (usage, main program):
7618         * check-module (parse_module_file, usage)
7619         (find_included_lib_files, check_module):
7620         * lib/argmatch.c (main) [TEST]:
7621         * lib/argp-help.c (_help):
7622         * lib/getopt1.c (main) [TEST]:
7623         * lib/git-merge-changelog.c (usage):
7624         * lib/xstrtol-error.c (xstrtol_error):
7625         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7626         * m4/argz.m4 (gl_FUNC_ARGZ):
7627         * m4/bison.m4 (gl_BISON):
7628         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7629         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7630         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7631         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7632         * m4/gc-random.m4 (gl_GC_RANDOM):
7633         * m4/intl.m4 (gt_CHECK_DECL):
7634         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7635         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7636         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7638         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7639         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7640         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7641         * tests/test-dirname.c (main):
7642         * tests/test-getpass.c (main):
7643         * tests/test-iconvme.c (main):
7644         * tests/test-parse-datetime.c (LOG):
7645         * tests/test-xstrtoimax.sh:
7646         * tests/test-xstrtol.sh:
7647         * tests/test-xstrtoll.sh:
7648         * tests/test-xstrtoumax.sh:
7649         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7650         * top/GNUmakefile (abort-due-to-no-makefile):
7651         Quote 'like this', not `like this', as per the recent change to
7652         the GNU coding standards.
7653
7654 2012-01-05  Bruno Haible  <bruno@clisp.org>
7655
7656         strtoimax: Don't force a replacement on systems where intmax_t is int.
7657         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7658         'intmax_t' is not larger than 'int'.
7659         Reported by Pádraig Brady <P@draigBrady.com>.
7660
7661 2012-01-05  Bruno Haible  <bruno@clisp.org>
7662
7663         doc: Mention NetBSD bugs.
7664         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7665         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7666
7667 2012-01-05  Bruno Haible  <bruno@clisp.org>
7668
7669         strtoumax tests: Enhance tests.
7670         * tests/test-strtoumax.c (main): Add tests for large values.
7671
7672 2012-01-05  Bruno Haible  <bruno@clisp.org>
7673
7674         strtoimax: Work around AIX 5.1 bug.
7675         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7676         definition.
7677         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7678         Set HAVE_STRTOIMAX.
7679         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7680         REPLACE_STRTOIMAX.
7681         * modules/inttypes-incomplete (Makefile.am): Substitute
7682         REPLACE_STRTOIMAX.
7683         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7684         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7685         (Depends-on): Update conditions.
7686         * tests/test-strtoimax.c (main): Add tests for large values.
7687         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7688
7689 2012-01-05  Bruno Haible  <bruno@clisp.org>
7690
7691         inttypes: Modernize.
7692         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7693         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7694         (Makefile.am): Update inttypes.h rule.
7695
7696 2012-01-05  Jim Meyering  <meyering@redhat.com>
7697
7698         init.sh: don't waste a subshell just to redirect stderr
7699         * tests/init.sh: In testing for diff -u and diff -c, use a
7700         stderr-redirecting exec inside `...` rather than a subshell.
7701
7702         test-init.sh: avoid failure on HP-UX 11.00
7703         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7704         resolves to diff -c or cmp.  Reported by Bruno Haible.
7705
7706 2012-01-05  Bruno Haible  <bruno@clisp.org>
7707
7708         Tests for module 'strtoull'.
7709         * modules/strtoull-tests: New file.
7710         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7711
7712 2012-01-05  Bruno Haible  <bruno@clisp.org>
7713
7714         Tests for module 'strtoll'.
7715         * modules/strtoll-tests: New file.
7716         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7717
7718 2012-01-05  Bruno Haible  <bruno@clisp.org>
7719
7720         Tests for module 'strtoul'.
7721         * modules/strtoul-tests: New file.
7722         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7723
7724 2012-01-05  Bruno Haible  <bruno@clisp.org>
7725
7726         Tests for module 'strtol'.
7727         * modules/strtol-tests: New file.
7728         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7729
7730 2012-01-04  Jim Meyering  <meyering@redhat.com>
7731
7732         test-init.sh: accommodate Solaris 5.10's different diff -u output
7733         * tests/test-init.sh: Also exempt @@ lines from the comparison
7734         of diff output, since Solaris 5.10 and GNU diff formats differ.
7735         Reported by Stefano Lattarini.
7736
7737 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7738
7739         test-posixtm: don't assume signed integer wraparound
7740         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7741         after signed integer overflow.  Inspired by (though it may not
7742         fix) Bruno Haible's bug report in
7743         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7744
7745         Spell out "Windows 9x" and "Windows XP".
7746         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7747         "Windows 9x" and "WinXP" with "Windows XP".
7748
7749 2012-01-04  Jim Meyering  <meyering@redhat.com>
7750
7751         test-vc-list-files-cvs.sh: remove obsolete comment
7752         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7753         double exit.  Now that's all encapsulated via skip_ and Exit.
7754
7755 2012-01-04  Bruno Haible  <bruno@clisp.org>
7756
7757         Talk about "native Windows API", not "Win32".
7758         * lib/classpath.c: Update comments to mention native Windows.
7759         * lib/csharpexec.c: Likewise.
7760         * lib/dup2.c: Likewise.
7761         * lib/error.c: Likewise.
7762         * lib/fcntl.c: Likewise.
7763         * lib/filename.h: Likewise.
7764         * lib/findprog.c: Likewise.
7765         * lib/get-rusage-as.c: Likewise.
7766         * lib/get-rusage-data.c: Likewise.
7767         * lib/getpagesize.c: Likewise.
7768         * lib/javaexec.c: Likewise.
7769         * lib/msvc-inval.c: Likewise.
7770         * lib/msvc-nothrow.c: Likewise.
7771         * lib/nanosleep.c: Likewise.
7772         * lib/nonblocking.c: Likewise.
7773         * lib/printf-parse.c: Likewise.
7774         * lib/setlocale.c: Likewise.
7775         * lib/sigaction.c: Likewise.
7776         * lib/strerror_r.c: Likewise.
7777         * lib/tmpdir.c: Likewise.
7778         * lib/vasnprintf.c: Likewise.
7779         * lib/w32spawn.h: Likewise.
7780         * lib/waitpid.c: Likewise.
7781         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7782         * m4/locale-ar.m4: Likewise.
7783         * m4/locale-fr.m4: Likewise.
7784         * m4/locale-ja.m4: Likewise.
7785         * m4/locale-tr.m4: Likewise.
7786         * m4/locale-zh.m4: Likewise.
7787         * m4/printf.m4: Likewise.
7788         * tests/test-cloexec.c: Likewise.
7789         * tests/test-copy-acl.sh: Likewise.
7790         * tests/test-copy-file.sh: Likewise.
7791         * tests/test-file-has-acl.sh: Likewise.
7792         * tests/test-set-mode-acl.sh: Likewise.
7793         * tests/test-dup-safer.c: Likewise.
7794         * tests/test-dup2.c: Likewise.
7795         * tests/test-dup3.c: Likewise.
7796         * tests/test-fcntl.c: Likewise.
7797         * tests/test-nonblocking-pipe.h: Likewise.
7798         * tests/test-nonblocking-socket.h: Likewise.
7799         * tests/test-pipe.c: Likewise.
7800         * tests/test-pipe2.c: Likewise.
7801         * tests/test-spawn-pipe-child.c: Likewise.
7802         * doc/acl-resources.txt: Likewise.
7803         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7804         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7805         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7806         * lib/localcharset.c: Update comments to mention native Windows.
7807         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7808         * lib/localename.c: Likewise.
7809         * lib/progreloc.c: Likewise.
7810         * lib/relocatable.c: Likewise.
7811         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7812         (windows_compute_revents): Renamed from win32_compute_revents.
7813         (windows_compute_revents_socket): Renamed from
7814         win32_compute_revents_socket.
7815         * lib/select.c: Update comments to mention native Windows.
7816         (windows_poll_handle): Renamed from win32_poll_handle.
7817         * m4/threadlib.m4: Update comments to mention native Windows.
7818         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7819         --enable-threads=windows instead of --enable-threads=win32. Set
7820         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7821         * lib/glthread/lock.h: Update comments to mention native Windows.
7822         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7823         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7824         USE_WIN32_THREADS.
7825         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7826         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7827         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7828         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7829         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7830         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7831         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7832         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7833         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7834         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7835         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7836         * tests/test-tls.c: Likewise.
7837         Rationale:
7838         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7839         on both 32-bit and 64-bit Windows systems.
7840         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7841         line of distinction is between "native Windows" on one side and Unix/
7842         POSIX systems on the other side. More details in
7843         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7844         Suggested by Paul Eggert.
7845
7846 2012-01-03  Bruno Haible  <bruno@clisp.org>
7847
7848         isatty: Support for MSVC 9.
7849         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7850         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7851         (_isatty_nothrow): New function.
7852         (isatty): Use it instead of _isatty.
7853         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7854         * lib/poll.c (IsConsoleHandle): Likewise.
7855         * lib/select.c (IsConsoleHandle): Likewise.
7856         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7857         (gl_PREREQ_ISATTY): New macro.
7858         * modules/isatty (Depends-on): Add msvc-inval.
7859         (configure.ac): Invoke gl_PREREQ_ISATTY.
7860
7861 2012-01-03  Jim Meyering  <meyering@redhat.com>
7862
7863         maint.mk: remove temporary transition aid from over 1.5 years ago
7864         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7865         purpose was to aid in the transition (avoiding silent malfunction)
7866         from that old name to the new _sc_search_regexp.  This shim was
7867         added by commit 219c504b.
7868
7869         init.sh: do not try to accommodate compare arguments starting with "-"
7870         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7871         compare arguments that start with "-".  Besides, we do not worry
7872         about this when invoking diff or cmp; why start now with sed?
7873         Using "--" to separate options from argument would trigger sed
7874         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7875         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7876
7877 2012-01-02  Bruno Haible  <bruno@clisp.org>
7878
7879         Enhance tests for module 'isatty'.
7880         * modules/isatty-tests (Depends-on): Add pipe-posix.
7881         * tests/test-isatty.c: Include <fcntl.h>.
7882         (DEV_NULL): New macro.
7883         (main): Test the resut of isatty() also on regular files, pipes, and
7884         /dev/null.
7885
7886         New module 'isatty'.
7887         * lib/unistd.in.h (isatty): New declaration.
7888         * lib/isatty.c: New file, based on an idea of
7889         Bastien Roucariès <roucaries.bastien@gmail.com>.
7890         * m4/isatty.m4: New file.
7891         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7892         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7893         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7894         REPLACE_ISATTY.
7895         * modules/isatty: New file.
7896         * doc/posix-functions/isatty.texi: Mention the new module.
7897         Suggested by Paolo Bonzini.
7898
7899 2012-01-02  Bruno Haible  <bruno@clisp.org>
7900
7901         canonicalize: Tweak 2011-12-29 commit.
7902         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7903         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7904
7905 2012-01-02  Jim Meyering  <meyering@redhat.com>
7906
7907         gitlog-to-changelog: describe input syntax in --help output
7908         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7909
7910         gitlog-to-changelog: fix typo in --help: show backslash before email @
7911         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7912         in sources, but not in actual output.
7913
7914 2011-12-30  Jim Meyering  <meyering@redhat.com>
7915
7916         gitlog-to-changelog: don't malfunction when name contains %-directive
7917         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7918         in a name string cause trouble.  E.g., with a user name of "%s",
7919         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7920
7921 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7922
7923         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7924         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7925         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7926         the "  (tiny change)" notation that is appended to the standard
7927         ChangeLog "date  name  email" header line.
7928
7929 2012-01-01  Jim Meyering  <meyering@redhat.com>
7930
7931         test-framework-sh: init.sh: fix "make dist" failure
7932         When using gnulib-tool's --with-tests option and any module that
7933         depends on test-framework-sh, "make dist" would fail due to the
7934         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7935         in the gltests directory, and not in the gllib/ directory.
7936         One way to work around that is to move the EXTRA_DIST += init.sh
7937         from the primary module to the -tests one:
7938         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7939         * modules/test-framework-sh (Makefile.am): ...not here.
7940         Reported by Tom G. Christensen in
7941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7942
7943         version-etc: update copyright year reported by --version
7944         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7945
7946 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7947
7948         canonicalize: only stat() if required
7949         * lib/canonicalize.c (canonicalize_filename_mode):
7950         Avoid calling l?stat() when both CAN_MISSING,
7951         and CAN_NOLINKS are set, as we neither need
7952         to resolve symlinks or test component existence.
7953
7954 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7955
7956         doc: cover st_ino issues once; add OpenVMS etc.
7957         * doc/posix-functions/stat.texi (stat):
7958         * doc/posix-functions/lstat.texi (lstat):
7959         * doc/posix-functions/fstatat.texi (fstatat):
7960         * doc/posix-functions/fstat.texi (fstat):
7961         Move general 'struct stat' stuff to sys_stat.texi,
7962         leaving behind a pointer.
7963         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7964         Merge duplicate info about 'struct stat' problems into here.
7965         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7966         and suggest partial workarounds.
7967
7968         same-inode: port to OpenVMS
7969         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7970         three st_ino values.
7971
7972 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7973
7974         canonicalize: fix references to stat() and lstat()
7975         * lib/canonicalize.c (canonicalize_filename_mode):
7976         Ensure references always resolve to a replacement
7977         function if required (even via a macro).
7978
7979 2011-12-30  Jim Meyering  <meyering@redhat.com>
7980
7981         gitlog-to-changelog: remove a little duplication
7982         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7983         rather than twice.
7984
7985 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7986
7987         canonicalize: add support for not resolving symlinks
7988         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7989         indicate we don't want to follow symlinks.  Also
7990         provide CAN_MODE_MASK to aid setting these existing
7991         mutually exclusive values.
7992         * lib/canonicalize.c (canonicalize_filename_mode):
7993         Extract the flags from can_mode parameter, which
7994         are currently just used to select between stat()
7995         and lstat().  Also ensure that mutually exclusive
7996         values are flagged immediately as invalid.
7997         * tests/test-canonicalize.c: Verify symlinks are
7998         not followed, and that invalid flag combinations
7999         are diagnosed.
8000
8001 2011-12-25  Jim Meyering  <meyering@redhat.com>
8002
8003         gitlog-to-changelog: do not clump multi-paragraph entries
8004         Identical header lines (date,name,email+coauthors) are suppressed,
8005         thus putting all entries with those same characteristics under
8006         a single header.  However, when a log entry consists of two or
8007         more paragraphs, it may not be clear where it starts and ends.
8008         This change makes it so that such an entry is always separated
8009         from others by a header line, even when that header would
8010         otherwise be suppressed.
8011         * build-aux/gitlog-to-changelog: Implement the above.
8012         Inspired by a related request from Stefano Lattarini in
8013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8014
8015 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8016
8017         announce-gen: fix `cmd' typo in diagnostic
8018         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8019         diagnostic: a missing '$' meant that the command was not output.
8020
8021 2011-12-23  Jim Meyering  <meyering@redhat.com>
8022
8023         test-framework-sh: distribute init.sh
8024         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8025         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8026         fail due to the lack of init.sh.
8027
8028         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8029         * modules/atexit-tests: Rather than listing tests/init.sh,
8030         now that there's a module for it, simply depend on that new module.
8031         * modules/closein-tests: Likewise.
8032         * modules/exclude-tests: Likewise.
8033         * modules/getcwd-tests: Likewise.
8034         * modules/perror-tests: Likewise.
8035         * modules/pread-tests: Likewise.
8036         * modules/pwrite-tests: Likewise.
8037         * modules/vc-list-files-tests: Likewise.
8038         * modules/verify-tests: Likewise.
8039         * modules/xalloc-die-tests: Likewise.
8040         * modules/xstrtoimax-tests: Likewise.
8041         * modules/xstrtol-tests: Likewise.
8042         * modules/xstrtoll-tests: Likewise.
8043         * modules/xstrtoumax-tests: Likewise.
8044         * modules/yesno-tests: Likewise.
8045
8046 2011-12-22  Jim Meyering  <meyering@redhat.com>
8047
8048         test-framework-sh: add minimal tests of init.sh's compare function
8049         * modules/test-framework-sh-tests: New file.
8050         * tests/test-init.sh: New file.
8051
8052         test-framework-sh: new module
8053         * modules/test-framework-sh: New file.
8054         * MODULES.html.sh (Support for maintaining and releasing projects):
8055         List it.
8056
8057         init.sh: do not emit simulated diff output to stderr
8058         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8059
8060 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8061
8062         .gitignore: ignore gnulib.dvi and regex.info
8063         * doc/.gitignore:add gnulib.dvi and regex.info
8064
8065 2011-12-22  Jim Meyering  <meyering@redhat.com>
8066
8067         init.sh: correct previous change
8068         * tests/init.sh (compare): My previous change was wrong.
8069         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8070
8071         init.sh: avoid unwarranted test failure when using "set -e"
8072         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8073         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8074         a use like "compare exp out" would get evoke an unconditional failure.
8075
8076 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8077
8078         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8079         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8080         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8081         autoreconf that did not.
8082         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8083         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8084
8085 2011-12-17  Jim Meyering  <meyering@redhat.com>
8086
8087         bootstrap: remove some now-unneeded code
8088         This script arose back when gnulib-tool was young.
8089         Since then, it has seen improvements that render much of this
8090         script unnecessary.  In particular, it can now make symlinks
8091         to the files it uses.  Also, I no longer see as much value in
8092         marking files as read-only via comments.
8093         If you relied on the symlink-creation feature of the preceding
8094         version of this script, you can get most of that functionality
8095         by adding the --symlink option to the definition of
8096         gnulib_tool_option_extras in your bootstrap.conf file.
8097         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8098         Run autopoint and libtoolize *before* gnulib-tool.
8099         After it, run an abbreviated autoreconf, rather than a loop around
8100         all tools.
8101         (slirp, bt_mark_as_generated): Remove functions.
8102
8103 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8104
8105         ftoastr: fix typo
8106         * lib/ftoastr.h: Fix misspelling in comment.
8107
8108 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8109
8110         * top/README-release: fix punctuation.
8111
8112 2011-12-17  Jim Meyering  <meyering@redhat.com>
8113
8114         bootstrap: correct the recent buildreq change
8115         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8116         had no effect.
8117         * build-aux/bootstrap (buildreq): Bracket each search term with
8118         "*...*", so that the shell "case" statement works as intended.
8119         Add comments.
8120
8121 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8122
8123         build: let bootstrap resort to wget when downloading .po files
8124         * build-aux/bootstrap (download_po_files): Fallback to wget when
8125         downloading the .po files via rsync fails.  This is necessary to
8126         bootstrap from behind a strict firewall.
8127
8128 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8129
8130         stdint: don't assume C++11 when compiling with g++
8131         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8133         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8134         work also in C++ before C++11, as that improperly inhibits
8135         generating a substitute stdint.h for that case.
8136
8137 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8138
8139         alloca: protect comment from gnulib-tool
8140         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8141         that gnulib-tool doesn't think it's a license, and munge it to
8142         say "GCC version 3".
8143
8144 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8145
8146         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8147         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8148         $(abs_top_builddir) instead of $(top_builddir).
8149
8150 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8151
8152         strftime-tests: also test nanoseconds
8153         * tests/test-strftime.c (T): Add a test of %N.
8154
8155 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8156
8157         inttypes, stdint: add C++11 support
8158         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8159         when including inttypes.h and stdint.h.  Support this change to
8160         the standard.
8161         * doc/posix-headers/inttypes.texi (inttypes.h):
8162         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8163         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8164         Define if not defined already, for the benefit of pre-C++11 hosts.
8165         Define the standard format macros (e.g., PRId8) always.
8166         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8167         Likewise, if __cpluspus.  Define the standard constant and limit
8168         macros (e.g., INT8_C, INT8_MAX) always.
8169         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8170         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8171         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8172         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8173         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8174         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8175         Likewise.
8176
8177 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8178
8179         nonblocking tests: Fix test failure on Linux/PPC.
8180         Suggested by Prerna Saxena in
8181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8182         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8183         Set to 1100000.
8184
8185 2011-12-12  Jim Meyering  <meyering@redhat.com>
8186
8187         argmatch: don't hard-code `' when listing valid option arguments
8188         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8189         use the quote function to add quotes.  Use fputs rather than
8190         fprintf for the format string with no format directive.
8191
8192 2011-12-07  Eric Blake  <eblake@redhat.com>
8193
8194         bootstrap: detect tools required by gnulib-tool
8195         * build-aux/bootstrap (buildreq): Provide minimum implicit
8196         dependencies.
8197         * DEPENDENCIES: Mention patch as a prereq.
8198
8199 2011-12-04  Bruno Haible  <bruno@clisp.org>
8200
8201         sethostname: Port to Windows platforms.
8202         * lib/sethostname.c: Provide an alternate implementation for Windows
8203         platforms.
8204         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8205         (main): Skip the test if sethostname() fails with EPERM. On Windows
8206         platforms, don't check the result of gethostname().
8207
8208 2011-12-04  Bruno Haible  <bruno@clisp.org>
8209             Jim Meyering  <meyering@redhat.com>
8210
8211         tests: Avoid spurious error message on platforms without mktemp program.
8212         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8213
8214 2011-12-04  Bruno Haible  <bruno@clisp.org>
8215
8216         sethostname: Fix documentation.
8217         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8218         "not fixed" section.
8219
8220 2011-12-03  Bruno Haible  <bruno@clisp.org>
8221
8222         gnulib-tool: Verify that the License field is present and non-empty.
8223         * gnulib-tool (func_get_license_raw): New function, extracted from
8224         func_get_license.
8225         (func_get_license): Use it. Warn if the module is not a test module and
8226         has no license.
8227         Suggested by Jim Meyering.
8228
8229 2011-12-03  Bruno Haible  <bruno@clisp.org>
8230
8231         sethostname tests: Fix link error on mingw.
8232         * tests/test-sethostname1.c: New file, extracted from
8233         tests/test-sethostname.c.
8234         * tests/test-sethostname2.c: New file, extracted from
8235         tests/test-sethostname.c.
8236         * tests/test-sethostname.c: Remove file.
8237         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8238         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8239         (Depends-on): Add gethostname.
8240         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8241         Link the latter with $(GETHOSTNAME_LIB).
8242
8243         sethostname tests: Fix compilation error on mingw.
8244         * tests/test-sethostname.c: Don't include <sys/types.h>.
8245         (geteuid): Use a dummy value without uid_t.
8246         * modules/sethostname-tests (Depends-on): Remove sys_types.
8247
8248         sethostname tests: Avoid a gcc warning.
8249         * tests/test-sethostname.c (main): Remove an unused variable.
8250
8251         Tweak last commit.
8252         * modules/sethostname-tests (Files): Sort by decreasing importance.
8253         (configure.ac): Check for geteuid.
8254         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8255         the test when there's nothing to test. Drop an unnecessary cast.
8256         Improve an error message. Verify that the final sethostname() call
8257         succeeds.
8258
8259 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8260
8261         Add a test suite for the sethostname module.
8262         * modules/sethostname-tests: New file.  A test program
8263         for the sethostname module.
8264         * tests/test-sethostname.c: Likewise.
8265
8266 2011-12-03  Bruno Haible  <bruno@clisp.org>
8267
8268         Tweak last commit.
8269         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8270         Fix preprocessor directives indentation. Fix typos.
8271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8272         * modules/unistd (Makefile): Likewise.
8273
8274 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8275
8276         Integrate the sethostname module into unistd.
8277         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8278         into the unistd.h header.
8279         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8280         preprocessor directives.
8281         * modules/unistd: Setup the Makefile substitutions of the
8282         SETHOSTNAME preprocessor directives.
8283
8284 2011-12-03  Bruno Haible  <bruno@clisp.org>
8285
8286         Tweak last commit.
8287         * lib/sethostname.c: Don't include <string.h>.
8288         (sethostname): No need to copy the argument string to the stack. Don't
8289         call clearerr. Preserve errno when fprintf failed.
8290         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8291         Don't invoke AC_REPLACE_FUNCS.
8292         * modules/sethostname (Link): Remove empty section.
8293         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8294         failure problem.
8295
8296 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8297
8298         New module 'sethostname'.
8299         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8300         for systems that lack it.
8301         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8302         sethostname declaration and function.
8303         * modules/sethostname: New file.  Define the sethostname module.
8304
8305 2011-12-03  Bruno Haible  <bruno@clisp.org>
8306
8307         Tweak last commit.
8308         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8309
8310 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8311
8312         Split the HOST_NAME_MAX detection into a separate m4 macro.
8313         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8314         macro so it can be used by the pending sethostname module.
8315
8316 2011-12-03  Bruno Haible  <bruno@clisp.org>
8317
8318         Fix module descriptions syntax.
8319         * modules/argv-iter (License): Fix syntax.
8320         * modules/di-set (License): Likewise.
8321         * modules/ino-map (License): Likewise.
8322         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8323
8324 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8325
8326         stdalign: port to Clang 3.0
8327         Problem reported by Simon Josefsson in
8328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8329         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8330         which has <stdalign.h> but which does not define alignof.
8331         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8332
8333 2011-12-01  Eric Blake  <eblake@redhat.com>
8334
8335         mktempd: silence dd usage
8336         * build-aux/mktempd (rand_bytes): Silence dd.
8337
8338 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8339
8340         manywarnings: Don't mention gcc version in docstring.
8341         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8342         Jim Meyering <meyering@redhat.com>.
8343
8344 2011-11-30  Jim Meyering  <meyering@redhat.com>
8345
8346         hash: mark a few floating point constants with "f" suffix
8347         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8348         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8349         floating point constants with "f", since they're destined to be
8350         saved/used as "float"s.
8351
8352 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8353
8354         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8355         * tests/test-float.c (test_long_double): Correct and re-enable the
8356         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8357
8358 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8359
8360         Avoid subtracting two pointers that don't point into the same block.
8361         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8362         only pointers into the same memory block are subtracted. We cannot
8363         assume that sizeof (ptrdiff_t) == sizeof (void *).
8364
8365 2011-11-29  Eric Blake  <eblake@redhat.com>
8366
8367         maint.mk: add syntax check for use of compare from init.sh
8368         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8369         moved here from coreutils.
8370
8371         manywarnings: drop -Wunsuffixed-float-constants
8372         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8373         '1.0D', which is the only way to silence this warning for 'double'.
8374
8375 2011-11-29  Jim Meyering  <meyering@redhat.com>
8376
8377         hash: mark compute_bucket_size with the pure attribute
8378         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8379
8380         quotearg, propername: correct pragma guard expression
8381         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8382         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8383
8384 2011-11-28  Jim Meyering  <meyering@redhat.com>
8385
8386         propername: do not mark proper_name with the const attribute
8387         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8388         since it examines data pointed to by its parameter.
8389         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8390         the suggestion from -Wsuggest-attribute=const.
8391
8392         propername: mark one more function as const
8393         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8394
8395 2011-11-27  Jim Meyering  <meyering@redhat.com>
8396
8397         mark functions with const and pure attributes
8398
8399         Mark functions per suggestions from gcc-4.6 when using these options:
8400         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8401         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8402         Follow these guidelines: when possible, apply the attribute to
8403         an extern declaration, not to its definition.  Apply it to the
8404         definition only when the definition is static.
8405         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8406         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8407         * lib/base64.h (isbase64): Likewise.
8408         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8409         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8410         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8411         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8412         (c_tolower, c_toupper): Likewise.
8413         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8414         * lib/chdir-long.c (find_non_slash): Likewise.
8415         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8416         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8417         * lib/file-type.h (file_type): Likewise.
8418         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8419         * lib/filevercmp.c (verrevcmp): Likewise.
8420         * lib/freadahead.h (freadahead): Likewise.
8421         * lib/fts.c (fts_maxarglen): Likewise.
8422         * lib/hash-pjw.h (hash_pjw): Likewise.
8423         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8424         * lib/hash.c (is_prime, next_prime): Likewise.
8425         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8426         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8427         (hash_table_ok, hash_get_first, hash_string): Likewise.
8428         (compute_bucket_size): Likewise.
8429         * lib/i-ring.h (i_ring_empty): Likewise.
8430         * lib/isnan.c (isnanl): Likewise.
8431         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8432         * lib/memcasecmp.h (memcasecmp): Likewise.
8433         * lib/memchr2.h (memchr2): Likewise.
8434         * lib/memcmp2.h (memcmp2): Likewise.
8435         * lib/parse-datetime.y (lookup_zone): Likewise.
8436         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8437         [!WINDOWS_SOCKETS]: Likewise.
8438         * lib/strnlen1.h (strnlen1): Likewise.
8439         * lib/uniwidth.in.h (uc_width): Likewise.
8440         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8441         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8442         (quoting_options_from_style): Add a comment.
8443         * lib/propername.h (proper_name): Add a comment.
8444
8445 2011-11-27  Bruno Haible  <bruno@clisp.org>
8446
8447         Remove unused macros from !_LIBC code in glibc-borrowed files.
8448         * lib/fnmatch.c (STRCOLL): Remove macro.
8449         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8450         * lib/glob.c (__stat, __readdir64): Remove macros.
8451         * lib/tempname.c (__open64, __xstat64): Remove macros.
8452         Suggested by Paul Eggert.
8453
8454 2011-11-27  Bruno Haible  <bruno@clisp.org>
8455
8456         getcwd: Fix link error on MSVC 9.
8457         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8458
8459 2011-11-27  Bruno Haible  <bruno@clisp.org>
8460
8461         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8462         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8463         HAVE_OPENDIR is 0.
8464         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8465         HAVE_CLOSEDIR is 0.
8466         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8467         is 0.
8468         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8469
8470 2011-11-27  Bruno Haible  <bruno@clisp.org>
8471
8472         getcwd: Fix bug from 2011-08-17.
8473         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8474         platforms that need it.
8475         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8476         code of 4 to be a failure, not a success. This ensures that
8477         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8478
8479 2011-11-27  Bruno Haible  <bruno@clisp.org>
8480
8481         binary-io tests: Avoid test failure on mingw when libtool is used.
8482         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8483         Don't verify the size of t-bin-out1.tmp here.
8484         * tests/test-binary-io.sh: Verify it here.
8485         Reported by Simon Josefsson.
8486
8487 2011-11-26  Bruno Haible  <bruno@clisp.org>
8488
8489         Fix conflict between two instantiations of module 'unistd'.
8490         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8491         ${include_guard_prefix} also in the autoconf snippet.
8492         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8494         GNULIB_UNISTD_H_GETOPT.
8495         * modules/getopt-posix (configure.ac): Set the
8496         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8497         * modules/getopt-gnu (configure.ac): Likewise.
8498         * modules/unistd (Makefile.am): Change the substitution value of
8499         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8500         Reported by Simon Josefsson.
8501
8502 2011-11-25  Bruno Haible  <bruno@clisp.org>
8503
8504         pagealign_alloc: Doc and comments.
8505         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8506         module.
8507         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8508
8509 2011-11-25  Jim Meyering  <meyering@redhat.com>
8510
8511         test-update-copyright.sh: avoid false-positive failure
8512         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8513         around false positive failure on Cygwin/Windows.  The latter was
8514         matching erroneously-created files with names like
8515         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8516
8517 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8518
8519         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8520         * m4/valgrind-tests.m4: Check that the parameters that will be
8521         used works, not just a subset of them.  Reported by Bruno Haible
8522         <bruno@clisp.org>.
8523
8524 2011-11-24  Jim Meyering  <meyering@redhat.com>
8525
8526         test-stdalign.c: comment out long double tests
8527         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8528         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8529         error: '_Alignas' specifiers cannot reduce alignment of \
8530         'static_longdouble_alignas'.
8531
8532 2011-11-22  Jim Meyering  <meyering@redhat.com>
8533
8534         init.sh: make "compare /dev/null FILE" output more readable
8535         * tests/init.sh (compare_): Document the preferred order of arguments.
8536         (emit_diff_u_header_): New function.
8537         (compare_dev_null_): Emit a simulated diff, rather than just the
8538         contents of the unexpected file.  Suggestion from Bruno Haible.
8539
8540 2011-11-21  Jim Meyering  <meyering@redhat.com>
8541             Eric Blake  <eblake@redhat.com>
8542
8543         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8544         * tests/init.sh: Make our compare function slightly more portable.
8545         Reported by Bruno Haible in
8546         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8547
8548 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8549
8550         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8551         before using it, in code that ends up in config.h.
8552
8553 2011-11-20  Bruno Haible  <bruno@clisp.org>
8554
8555         getcwd: Work around getcwd bug on AIX 5..7.
8556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8557         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8558         Use a different value for gl_cv_func_getcwd_path_max. Move the
8559         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8560         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8561         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8562         Define HAVE_MINIMALLY_WORKING_GETCWD.
8563         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8564         where it is not even minimally working, that is, on AIX.
8565         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8566         m4/getcwd-path-max.m4.
8567         (main): Update exit code computation.
8568         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8569         getcwd does not handle long file names.
8570
8571 2011-11-20  Bruno Haible  <bruno@clisp.org>
8572
8573         getcwd: Fix bug from 2009-09-10.
8574         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8575         like "no".
8576
8577 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8578
8579         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8580
8581 2011-11-20  Bruno Haible  <bruno@clisp.org>
8582
8583         fma tests: Avoid shadowing local variables.
8584         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8585         expected.
8586
8587 2011-11-20  Bruno Haible  <bruno@clisp.org>
8588
8589         copysignf tests: Fix.
8590         * tests/test-copysignf.c: Fix signature check.
8591
8592 2011-11-20  Bruno Haible  <bruno@clisp.org>
8593
8594         fma: Remove unused code.
8595         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8596         unused macros.
8597
8598 2011-11-20  Bruno Haible  <bruno@clisp.org>
8599
8600         sethostname: Fix doc about AIX.
8601         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8602         sethostname; it has it.
8603
8604         sethostname: Mention more portability problems.
8605         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8606         problem.
8607         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8608
8609 2011-11-19  Bruno Haible  <bruno@clisp.org>
8610
8611         Depend on module fcntl-h when AT_FDCWD is used.
8612         * modules/utimens (Depends-on): Add fcntl-h.
8613         * modules/areadlinkat (Depends-on): Likewise.
8614         * modules/areadlinkat-with-size (Depends-on): Likewise.
8615         * modules/faccessat (Depends-on): Likewise.
8616         * modules/fchmodat (Depends-on): Likewise.
8617         * modules/fchownat (Depends-on): Likewise.
8618         * modules/getcwd (Depends-on): Likewise.
8619         * modules/mkdirat (Depends-on): Likewise.
8620         * modules/mkfifoat (Depends-on): Likewise.
8621         * modules/readlinkat (Depends-on): Likewise.
8622         * modules/symlinkat (Depends-on): Likewise.
8623         * modules/dup2-tests (Depends-on): Likewise.
8624         * modules/fdutimensat-tests (Depends-on): Likewise.
8625         * modules/futimens-tests (Depends-on): Likewise.
8626
8627 2011-11-19  Bruno Haible  <bruno@clisp.org>
8628
8629         euidaccess: Update a comment.
8630         * lib/euidaccess.c: Update comment about platforms with faccessat.
8631
8632 2011-11-19  Bruno Haible  <bruno@clisp.org>
8633
8634         openat: Fix file list.
8635         * modules/openat (Files): Remove lib/at-func.c.
8636
8637 2011-11-19  Bruno Haible  <bruno@clisp.org>
8638
8639         fstatat: Simplify.
8640         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8641         gnulib should define rpl_fstatat, there is a
8642         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8643
8644 2011-11-19  Bruno Haible  <bruno@clisp.org>
8645
8646         Ensure 'inline' can be used in tests/test-utimens-common.h.
8647         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8648         * modules/futimens-tests (configure.ac): Likewise.
8649         * modules/utimens-tests (configure.ac): Likewise.
8650         * modules/utimensat-tests (configure.ac): Likewise.
8651
8652 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8653
8654         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8655         not hash_insert0.
8656         (hash_insert_if_absent): Doc fix.
8657
8658 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8659
8660         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8661
8662 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8663
8664         test-getcwd: disambiguate exit status
8665         * tests/test-getcwd.c (test_long_name): Return 0..7.
8666         (main): Exit with an unambiguous exit status.  The old
8667         code yielded a mysterious mixture of two failure codes.
8668
8669         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8670         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8671         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8672         rpl_fstatat or fstatat.  This should fix the other problem
8673         reported by Kai Habel in
8674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8675         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8677         and I reproduced it on a Solaris 8 host we still have in production.
8678
8679 2011-11-18  Jim Meyering  <meyering@redhat.com>
8680
8681         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8682         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8683         Add a sentence to the comment.
8684         (hash_insert0): New function that simply calls hash_insert_if_absent.
8685         * lib/hash.h (hash_insert_if_absent): Declare it.
8686         (hash_insert0): Add deprecation attribute.
8687         (_GL_ATTRIBUTE_DEPRECATED): Define.
8688         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8689         not hash_insert0.
8690         * NEWS: Mention it, even though it's not really an incompatible change.
8691
8692 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8693
8694         openat: avoid compilation failure due to lack of <errno.h> inclusion
8695         * lib/openat.c: Include <errno.h>.
8696
8697 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8698
8699         * modules/getcwd (Depends-on): Add fdopendir.
8700         This fixes one of the two problems reported by Kai Habel in
8701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8702
8703         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8704         stdalign problem reported by Ian Beckwith in
8705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8706         * modules/crypto/gc-arcfour (Depends-on):
8707         Depend conditionally on crypto/arcfour.
8708         * modules/crypto/gc-arctwo (Depends-on):
8709         Depend conditionally on crypto/arctwo.
8710         * modules/crypto/gc-des (Depends-on):
8711         Depend conditionally on crypto/des.
8712         * modules/crypto/gc-hmac-md5 (Depends-on):
8713         Depend conditionally on crypto/hmac-md5.
8714         * modules/crypto/gc-hmac-sha1 (Depends-on):
8715         Depend conditionally on crypto/hmac-sha1.
8716         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8717         * modules/crypto/gc-md4 (Depends-on):
8718         Depend conditionally on crypto/md4.
8719         * modules/crypto/gc-md5 (Depends-on):
8720         Depend conditionally on crypto/md5.
8721         * modules/crypto/gc-rijndael (Depends-on):
8722         Depend conditionally on crypto/rijndael.
8723         * modules/crypto/gc-sha1 (Depends-on):
8724         Depend conditionally on crypto/sha1.
8725         * modules/crypto/gc-arcfour:
8726         * modules/crypto/gc-arctwo:
8727         * modules/crypto/gc-des:
8728         * modules/crypto/gc-hmac-md5:
8729         * modules/crypto/gc-hmac-sha1:
8730         * modules/crypto/gc-md2:
8731         * modules/crypto/gc-md4:
8732         * modules/crypto/gc-md5:
8733         * modules/crypto/gc-rijndael:
8734         * modules/crypto/gc-sha1:
8735         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8736         now that the conditional dependencies do the work for us.
8737
8738 2011-11-17  Jim Meyering  <meyering@redhat.com>
8739
8740         tests: factor st_ctime-comparison out of two headers
8741         * tests/test-utimens-common.h (ctime_compare): Define.
8742         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8743         * tests/test-lutimens.h (test_lutimens): Likewise.
8744         * tests/test-utimens.h (test_utimens): Likewise.
8745
8746         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8747         Invoke the test program via an init.sh-using wrapper.
8748         * tests/test-getcwd.sh: New file.
8749         * modules/getcwd-tests (Files): Add it.
8750         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8751
8752 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8753
8754         gitlog-to-changelog: support multi-author commits.
8755         The FSF cares about keeping track of all authors of patches to its
8756         projects, but Git doesn't provide obvious support for multi-author
8757         changesets. Consensus seems to be forming around the use of extra
8758         Signed-off-by inspired lines in the log message formatted as
8759         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8760         multi-author commits between version control systems.
8761         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8762         log message and output in standard ChangeLog multi-author format.
8763         Reported by Peter Rosin <peda@lysator.liu.se>
8764
8765 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8766             Bruno Haible  <bruno@clisp.org>
8767
8768         Fix some modules' file list.
8769         * modules/fstatat (Files): Add m4/lstat.m4.
8770         * modules/openat (Files): Likewise.
8771         * modules/unlinkat (Files): Likewise.
8772
8773 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8774
8775         maint.mk: fix tight-scope.mk generation in VPATH builds.
8776         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8777         reference with $(srcdir) so that the file is found correctly even
8778         when running `make syntax-check' in a VPATH build.
8779
8780 2011-11-13  Bruno Haible  <bruno@clisp.org>
8781             Jim Meyering  <meyering@redhat.com>
8782
8783         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8784         * tests/init.sh (compare): Remove "No differences encountered" or
8785         synonymous output from the 'diff' program.
8786
8787 2011-11-13  Bruno Haible  <bruno@clisp.org>
8788
8789         Makefile: Tweak indentation.
8790         * Makefile: Use tab as first character in every line that contains rule
8791         commands.
8792
8793 2011-11-13  Bruno Haible  <bruno@clisp.org>
8794
8795         Syntax check for copyright statements.
8796         * check-copyright: New file.
8797         * Makefile (sc_check_copyright): New rule.
8798
8799 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8800
8801         * build-aux/git-version-gen: Add --prefix to configure the tag
8802         match string.
8803
8804 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8805
8806         * build-aux/git-version-gen: Add --help and --version.
8807
8808 2011-11-12  Jim Meyering  <meyering@redhat.com>
8809
8810         revamp the other test-exclude?.sh scripts to use init.sh, too
8811         * tests/test-exclude1.sh: Use init.sh.
8812         * tests/test-exclude2.sh: Likewise.
8813         * tests/test-exclude3.sh: Likewise.
8814         * tests/test-exclude4.sh: Likewise.
8815         * tests/test-exclude5.sh: Likewise.
8816         * tests/test-exclude6.sh: Likewise.
8817         * tests/test-exclude7.sh: Likewise.
8818         * tests/test-exclude8.sh: Likewise.
8819         * modules/exclude-tests (Files): List init.sh.
8820
8821         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8822         These shell scripts ignored failure of the binary test-exclude,
8823         so making the latter return 77 didn't cause them to be skipped.
8824         * tests/test-exclude5.sh: Exit with test-exclude's error status
8825         when that program fails.  Revamp to use init.sh.
8826         * tests/test-exclude2.sh: Likewise.
8827
8828         test-exclude: fix a typo
8829         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8830
8831 2011-11-11  Bruno Haible  <bruno@clisp.org>
8832
8833         obstack: Fix compilation error on MSVC 9.
8834         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8835
8836 2011-11-11  Jim Meyering  <meyering@redhat.com>
8837
8838         test-exclude: skip tests rather than failing on deficient systems
8839         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8840         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8841         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8842         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8843
8844 2011-11-10  Bruno Haible  <bruno@clisp.org>
8845
8846         ptsname_r test: Avoid gcc warning on glibc systems.
8847         * tests/test-ptsname_r.c (null_ptr): New function.
8848         (test_errors): Use it.
8849
8850 2011-11-10  Bruno Haible  <bruno@clisp.org>
8851
8852         ptsname_r: Avoid compilation error on OSF/1 5.1.
8853         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8855         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8856         function is not declared or incompatibly declared.
8857         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8858         * modules/ptsname_r (Depends-on, configure.ac): Update.
8859         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8860
8861 2011-11-10  Bruno Haible  <bruno@clisp.org>
8862
8863         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8864         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8865         When cross-compiling, guess yes on all platforms except AIX.
8866         Reported by Ludovic Courtès <ludo@gnu.org>.
8867
8868 2011-11-09  Bruno Haible  <bruno@clisp.org>
8869
8870         ptsname_r tests: Fix bugs.
8871         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8872         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8873
8874 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8875
8876         fstatat: work with cross-compilation
8877         Problem reported by Ludovic Courtès in
8878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8879         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8880         "cross-compiling" and assume the bug is present.  Replace
8881         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8882         an inverted sense, to be more conservative about our assumptions.
8883         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8884
8885 2011-11-09  Bruno Haible  <bruno@clisp.org>
8886
8887         Improve MODULES.html output.
8888         * modules/mkfifoat (Description): Use the word "function".
8889         * modules/readlinkat (Description): Likewise.
8890         * modules/symlinkat (Description): Likewise.
8891
8892 2011-11-09  Eric Blake  <eblake@redhat.com>
8893
8894         ptsname_r-tests: new test module
8895         * modules/ptsname_r-tests: New module.
8896         * tests/test-ptsname_r.c: New file.
8897
8898         ptsname_r: new module
8899         * modules/ptsname_r: New module.
8900         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8901         * lib/ptsname.c (__ptsname_r): Split...
8902         * lib/ptsname_r.c: ...into new file.
8903         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8904         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8905         * modules/stdlib (Makefile.am): Substitute witnesses.
8906         * lib/stdlib.in.h (ptsname_r): Declare it.
8907         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8908         * MODULES.html.sh (Misc): Likewise.
8909         * modules/ptsname (Depends-on): Alter dependency.
8910         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8911
8912 2011-11-09  Jim Meyering  <meyering@redhat.com>
8913
8914         announce-gen: be more concise when there's only one URL+tarball
8915         * build-aux/announce-gen (get_tool_versions): When you distribute
8916         only one type of tarball, combine the first two "Here are..."
8917         sections and make the key-checking grammar independent of
8918         how many tarballs there are.
8919
8920 2011-11-09  Eric Blake  <eblake@redhat.com>
8921
8922         openpty: provide a stub on mingw
8923         * lib/pty.in.h (includes): Provide forward declarations.
8924         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8925
8926         raise: fix mingw handling of SIGPIPE
8927         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8928
8929 2011-11-08  Bruno Haible  <bruno@clisp.org>
8930
8931         More conditional dependencies.
8932         * modules/faccessat (Depends-on): Add conditions.
8933         * modules/fchmodat (Depends-on): Likewise.
8934         * modules/fchownat (Depends-on): Likewise.
8935         * modules/fstatat (Depends-on): Likewise.
8936         * modules/mkfifoat (Depends-on): Likewise.
8937         * modules/readlinkat (Depends-on): Likewise.
8938         * modules/symlinkat (Depends-on): Likewise.
8939         * modules/unlinkat (Depends-on): Likewise.
8940         * modules/utimensat (Depends-on): Likewise.
8941         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8942         * modules/linkat (Depends-on): Refine the conditions.
8943         * modules/renameat (Depends-on): Likewise.
8944
8945 2011-11-08  Bruno Haible  <bruno@clisp.org>
8946
8947         faccessat: Move AC_LIBOBJ invocation to module description.
8948         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8949         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8950         invocation from here...
8951         * modules/faccessat (configure.ac): ... to here. Invoke
8952         gl_PREREQ_FACCESSAT.
8953
8954 2011-11-08  Bruno Haible  <bruno@clisp.org>
8955
8956         faccessat: Simplify autoconf macro.
8957         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8958         gl_FUNC_EUIDACCESS.
8959
8960 2011-11-08  Bruno Haible  <bruno@clisp.org>
8961
8962         renameat: Fix dependencies.
8963         * modules/renameat (Depends-on): Add stdbool.
8964
8965 2011-11-08  Bruno Haible  <bruno@clisp.org>
8966
8967         mkfifoat: Fix module description.
8968         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8969         not gl_UNISTD_MODULE_INDICATOR.
8970
8971 2011-11-08  Bruno Haible  <bruno@clisp.org>
8972
8973         fstatat: Remove unused dependency.
8974         * modules/fstatat (Depends-on): Remove fstat.
8975
8976 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8977
8978         GNUmakefile: behave when Makefile is missing.
8979         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8980
8981 2011-11-08  Bruno Haible  <bruno@clisp.org>
8982
8983         openat: Conditionalize dependencies.
8984         * lib/openat.c: Reduce the scope of some #includes.
8985         * modules/openat (Depends-on): Add conditions.
8986
8987 2011-11-07  Jim Meyering  <meyering@redhat.com>
8988
8989         maint.mk: extract GPG key ID without using a temporary file
8990         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8991         without using a temporary file.  Based on a suggestion from Werner Koch
8992         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8993
8994 2011-11-07  Eric Blake  <eblake@redhat.com>
8995
8996         grantpt: fix typo
8997         * lib/stdlib.in.h (grantpt): Check correct function.
8998
8999         maint.mk: silence new syntax check
9000         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9001
9002 2011-11-06  Bruno Haible  <bruno@clisp.org>
9003
9004         Doc about floating-point and math API.
9005         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9006         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9007
9008 2011-11-06  Bruno Haible  <bruno@clisp.org>
9009
9010         stdalign tests: Skip the test when compiled by Sun C.
9011         * tests/test-stdalign.c (main): Skip the test on Sun C.
9012
9013 2011-11-06  Bruno Haible  <bruno@clisp.org>
9014
9015         ansi-c++-opt: Complete the 2011-06-05 change.
9016         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9017         does not support namespaces, set the variable to "no", not to ":".
9018
9019 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9020
9021         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9022
9023 2011-11-06  Bruno Haible  <bruno@clisp.org>
9024
9025         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9026         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9027         (minus_zerol) [HP-UX]: New macro.
9028         (unary_minus) [HP-UX]: New function.
9029         (copysignl) [HP-UX]: Use unary_minus function.
9030
9031 2011-11-06  Bruno Haible  <bruno@clisp.org>
9032
9033         ldexp, ldexpf, ldexpl: Enhance tests.
9034         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9035         and tests/test-ldexpl.c.
9036         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9037         LDEXP, MIN_EXP, MAX_EXP): New macros.
9038         Include test-ldexp.h.
9039         (main): Just call test_function.
9040         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9041         infinity.h, nan.h.
9042         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9043         MAX_EXP): New macros.
9044         Include test-ldexp.h.
9045         (x, y): Remove variables.
9046         (main): Just call test_function.
9047         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9048         infinity.h, nan.h.
9049         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9050         MAX_EXP): New macros.
9051         Include test-ldexp.h.
9052         (x, y): Remove variables.
9053         (main): Just call test_function.
9054         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9055         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9056         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9057         (Depends-on): Add isnand-nolibm, signbit, float.
9058         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9059         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9060         (Depends-on): Add isnanf-nolibm, signbit, float.
9061
9062 2011-11-06  Bruno Haible  <bruno@clisp.org>
9063
9064         math tests: Cosmetics.
9065         * tests/test-math-c++.cc: Reorder declarations.
9066
9067 2011-11-05  Bruno Haible  <bruno@clisp.org>
9068
9069         fma*: Simplify test.
9070         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9071         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9072
9073         Tests for module 'fmal'.
9074         * modules/fmal-tests: New file.
9075         * tests/test-fmal1.c: New file.
9076         * tests/test-fmal2.c: New file.
9077
9078         New module 'fmal'.
9079         * lib/math.in.h (fmal): New declaration.
9080         * lib/fmal.c: New file.
9081         * m4/fmal.m4: New file.
9082         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9084         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9085         REPLACE_FMAL.
9086         * modules/fmal: New file.
9087         * doc/posix-functions/fmal.texi: Mention the new module and the various
9088         bugs.
9089
9090         Tests for module 'fmaf'.
9091         * modules/fmaf-tests: New file.
9092         * tests/test-fmaf1.c: New file.
9093         * tests/test-fmaf2.c: New file.
9094
9095         New module 'fmaf'.
9096         * lib/math.in.h (fmaf): New declaration.
9097         * lib/fmaf.c: New file.
9098         * m4/fmaf.m4: New file.
9099         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9101         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9102         REPLACE_FMAF.
9103         * modules/fmaf: New file.
9104         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9105         bugs.
9106
9107         Tests for module 'fma'.
9108         * modules/fma-tests: New file.
9109         * tests/test-fma1.c: New file.
9110         * tests/test-fma1.h: New file.
9111         * tests/test-fma2.c: New file.
9112         * tests/test-fma2.h: New file.
9113
9114         New module 'fma'.
9115         * lib/math.in.h (fma): New declaration.
9116         * lib/fma.c: New file.
9117         * m4/fma.m4: New file.
9118         * m4/fegetround.m4: New file.
9119         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9121         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9122         REPLACE_FMA.
9123         * modules/fma: New file.
9124         * doc/posix-functions/fma.texi: Mention the new module and the various
9125         bugs.
9126
9127         Extend gl_MATHFUNC.
9128         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9129         Support 'void' as argument type.
9130         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9131
9132 2011-11-05  Jim Meyering  <meyering@redhat.com>
9133
9134         maint.mk: also prohibit inclusion of dirent.h without use
9135         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9136
9137 2011-11-05  Bruno Haible  <bruno@clisp.org>
9138
9139         ldexpl tests: Avoid test failure on MSVC 9.
9140         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9141         value. Needed in order to enforce the conversion from a value greater
9142         than LDBL_MAX to Infinity.
9143
9144 2011-11-05  Bruno Haible  <bruno@clisp.org>
9145
9146         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9147         * modules/at-internal: New file, extracted from modules/openat.
9148         * modules/openat-h: New file.
9149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9150         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9151         * modules/openat (Description): Add reference to POSIX function.
9152         (Files): Remove lib/openat.h, lib/openat-proc.c.
9153         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9154         intprops, unistd.
9155         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9156         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9157         gl_FCNTL_MODULE_INDICATOR.
9158         (Include): Remove unistd.h, openat.h.
9159         * modules/areadlinkat (Files): Add lib/at-func.c.
9160         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9161         openat-die, openat-h, save-cwd.
9162         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9163         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9164         openat-die, openat-h, save-cwd, unistd.
9165         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9166         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9167         openat-h, save-cwd. Remove fcntl-h, openat.
9168         * modules/fchmodat (Files): Remove lib/openat.h.
9169         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9170         openat, stdbool, unistd.
9171         * modules/fchownat (Files): Remove lib/openat.h.
9172         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9173         openat, stdbool, sys_stat.
9174         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9175         lib/openat-proc.c.
9176         (Depends-on): Add at-internal.
9177         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9178         * modules/fstatat (Files): Remove lib/openat.h.
9179         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9180         stdbool, unistd.
9181         * modules/fts (Depends-on): Add openat-h.
9182         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9183         openat.
9184         * modules/mkdirat (Files): Remove lib/openat.h.
9185         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9186         openat, stdbool, sys_stat.
9187         * modules/mkfifoat (Files): Add lib/at-func.c.
9188         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9189         openat-h, save-cwd. Remove fcntl-h, openat.
9190         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9191         * modules/readlinkat (Files): Add lib/at-func.c.
9192         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9193         openat-h, save-cwd. Remove fcntl-h, openat.
9194         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9195         openat.
9196         * modules/selinux-at (Files): Add lib/at-func.c.
9197         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9198         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9199         * modules/symlinkat (Files): Add lib/at-func.c.
9200         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9201         openat-h, save-cwd. Remove fcntl-h, openat.
9202         * modules/unlinkat (Files): Remove lib/openat.h.
9203         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9204         stdbool.
9205         * modules/utimensat (Files): Add lib/at-func.c.
9206         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9207         openat-die, openat-h, save-cwd.
9208         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9209         * modules/fdutimensat-tests (Depends-on): Add openat.
9210         * modules/fstatat-tests (Depends-on): Add openat-h.
9211         * modules/readlinkat-tests (Depends-on): Add openat.
9212         * modules/symlinkat-tests (Depends-on): Add openat.
9213
9214 2011-11-05  Bruno Haible  <bruno@clisp.org>
9215
9216         openat: Include <stdbool.h>.
9217         * lib/openat.c: Include <stdbool.h>.
9218
9219 2011-11-04  Bruno Haible  <bruno@clisp.org>
9220
9221         fchownat, renameat, unlinkat: Fix dependencies.
9222         * modules/fchownat (Depends-on): Add fstatat.
9223         * modules/renameat (Depends-on): Likewise.
9224         * modules/unlinkat (Depends-on): Likewise.
9225
9226 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9227
9228         openat: remove direct dependency on dirent
9229         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9230         and hasn't been needed ever since fdopendir was split into its own
9231         module on 2009-08-31.
9232         * modules/openat (Depends-on): Remove dirent.
9233
9234 2011-11-04  Bruno Haible  <bruno@clisp.org>
9235
9236         renameat: Optimize code size.
9237         * modules/renameat (configure.ac): Don't compile at-func2.c if
9238         REPLACE_RENAMEAT is 1.
9239
9240 2011-11-04  Bruno Haible  <bruno@clisp.org>
9241
9242         openat tests: Fix file list.
9243         * modules/openat-tests (Files): Add tests/test-open.h.
9244
9245 2011-11-04  Bruno Haible  <bruno@clisp.org>
9246
9247         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9248         * modules/fchmodat (Depends-on): Add openat-die.
9249         * modules/fchownat (Depends-on): Likewise.
9250         * modules/linkat (Depends-on): Likewise.
9251         * modules/renameat (Depends-on): Likewise.
9252         * modules/openat (Depends-on): Add dirent.
9253
9254 2011-11-04  Jim Meyering  <meyering@redhat.com>
9255
9256         at-func*.c: fix comments
9257         * lib/at-func2.c: Correct/improve first-line comment.
9258         * lib/at-func.c: Correct grammar in first-line comment.
9259
9260 2011-11-04  Bruno Haible  <bruno@clisp.org>
9261
9262         New module 'mkdirat', split off from module 'openat'.
9263         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9264         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9265         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9266         * modules/mkdirat: New file, extracted from modules/openat.
9267         * modules/openat (Files): Remove lib/mkdirat.c.
9268         (Depends-on): Remove mkdir.
9269         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9270         (Include): Remove <sys/stat.h>.
9271         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9272         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9273         tests/test-mkdir.h.
9274         (Depends-on): Remove ignore-value.
9275         (Makefile.am): Remove rules for test-mkdirat.
9276         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9277         of module 'openat'.
9278         * NEWS: Mention the change.
9279
9280 2011-11-04  Bruno Haible  <bruno@clisp.org>
9281
9282         closedir: Avoid warning on mingw.
9283         * lib/closedir.c: Include <unistd.h>.
9284
9285 2011-11-04  Bruno Haible  <bruno@clisp.org>
9286
9287         New module 'fstatat', split off from module 'openat'.
9288         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9289         defined.
9290         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9291         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9292         gl_FUNC_FSTATAT.
9293         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9294         * modules/fstatat: New file, extracted from modules/openat.
9295         * modules/openat (Files): Remove lib/fstatat.c.
9296         (Depends-on): Remove lstat.
9297         (configure.ac): Remove AC_LIBOBJ of fstatat.
9298         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9299         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9300         tests/test-lstat.h, tests/test-stat.h.
9301         (Depends-on): Remove getcwd-lgpl.
9302         (Makefile.am): Remove rules for test-fstatat.
9303         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9304         of module 'openat'.
9305         * NEWS: Mention the change.
9306         * modules/getcwd (Depends-on): Add fstatat.
9307         * modules/linkat (Depends-on): Likewise.
9308         * modules/mkfifoat-tests (Depends-on): Likewise.
9309         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9310
9311 2011-11-03  Bruno Haible  <bruno@clisp.org>
9312
9313         New module 'unlinkat', split off from module 'openat'.
9314         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9315         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9316         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9317         * modules/unlinkat: New file, extracted from modules/openat. Correct
9318         the dependency conditions.
9319         * modules/openat (Files): Remove lib/unlinkat.c.
9320         (Depends-on): Remove rmdir, unlink.
9321         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9322         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9323         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9324         tests/test-rmdir.h, tests/test-unlink.h.
9325         (Depends-on): Remove unlinkdir.
9326         (Makefile.am): Remove rules for test-unlinkat.
9327         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9328         of module 'openat'.
9329         * NEWS: Mention the change.
9330         * modules/linkat-tests (Depends-on): Add unlinkat.
9331         * modules/mkfifoat-tests (Depends-on): Likewise.
9332         * modules/readlinkat-tests (Depends-on): Likewise.
9333
9334 2011-11-02  Bruno Haible  <bruno@clisp.org>
9335
9336         New module 'fchmodat', split off from module 'openat'.
9337         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9338         defined.
9339         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9340         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9341         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9342         * modules/fchmodat: New file, extracted from modules/openat.
9343         * modules/openat (Files): Remove lib/fchmodat.c.
9344         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9345         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9346         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9347         (Makefile.am): Remove rules for test-fchmodat.
9348         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9349         of module 'openat'.
9350         * NEWS: Mention the change.
9351
9352 2011-11-02  Jim Meyering  <meyering@redhat.com>
9353
9354         putenv: indent #definition of "environ" to placate cppi
9355         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9356
9357         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9358         Git logs are often treated as immutable, because editing them
9359         changes the SHA1 checksums of all descendants.  Thus, errors in
9360         git logs tend to stay there forever.  However, when we generate
9361         a ChangeLog file -- typically for distribution -- from that git log,
9362         we can actually make corrections in the generated file.  The key
9363         lies in recording in machine-readable/applicable form the desired
9364         corrections.  See --help for description and an example.
9365         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9366         (usage): Describe it; alphabetize option descriptions.
9367         (main): Honor the new option, carefully.
9368
9369 2011-11-01  Jim Meyering  <meyering@redhat.com>
9370
9371         gitlog-to-changelog: avoid an infloop
9372         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9373         that ends up being empty.
9374
9375 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9376
9377         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9378         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9379         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9380         contains (possibly-quoted) backslashes.  This should avoid
9381         all-too-common shell bugs if COMPLICATED contains backslashes in
9382         the "wrong" places.  Reported by David Evans in
9383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9384         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9385         because we want ASCII ranges.  Is there some reason we don't use
9386         the C locale everywhere in this script?
9387         (func_module, top level): Avoid unwanted pathname expansion when
9388         $repo_url_prefix or $repo_url_suffix_repl contain shell
9389         metacharacters like '?' and '*'.
9390
9391 2011-11-01  Bruno Haible  <bruno@clisp.org>
9392
9393         fchownat: Improve description.
9394         * modules/fchownat (Description): Add link to function.
9395
9396 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9397
9398         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9399         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9401         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9402
9403 2011-11-01  Bruno Haible  <bruno@clisp.org>
9404
9405         alignof: Avoid collision with stdalign module.
9406         * lib/alignof.h (alignof): Remove macro.
9407         * NEWS: Mention the change.
9408         Reported by Paul Eggert.
9409
9410 2011-11-01  Bruno Haible  <bruno@clisp.org>
9411
9412         New module 'fchownat', split off from module 'openat'.
9413         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9414         defined.
9415         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9416         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9417         invoke gl_FUNC_FCHOWNAT.
9418         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9419         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9420         * modules/fchownat: New file, extracted from modules/openat.
9421         * modules/openat (Files): Remove lib/fchownat.c.
9422         (Depends-on): Remove lchown.
9423         (configure.ac): Remove AC_LIBOBJ of fchownat.
9424         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9425         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9426         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9427         (Depends-on): Remove mgetgroups, usleep, stat-time.
9428         (configure.ac): Remove test for getegid.
9429         (Makefile.am): Remove rules for test-fchownat.
9430         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9431         of module 'openat'.
9432         * NEWS: Mention the change.
9433
9434 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9435
9436         stdalign: port better to MSVC and to Sun C 5.11
9437         This fixes some of the problems reported by Bruno Haible in
9438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9439         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9440         shortcomings of MSVC and of Sun C 5.11.
9441         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9442         around __declspec arg.
9443         * modules/stdalign-tests (Files): Add tests/macros.h.
9444         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9445         Include macros.h, for ASSERT.
9446         (DECLARE_ALIGNED): Remove.
9447         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9448         to catch bug), and to 1 if not (simplifies the rest of the code).
9449         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9450         (CHECK_AUTO): Remove.
9451         (CHECK_ALIGNED): Check only the alignment of the static vars,
9452         since auto var alignment isn't supported by Sun C 5.11.
9453         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9454         ASSERT failures are easier to diagnose.
9455
9456 2011-10-31  Bruno Haible  <bruno@clisp.org>
9457
9458         doc about some IRIX 5.3 problems.
9459         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9460         on IRIX 5.3.
9461         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9462         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9463         5.3.
9464         * doc/posix-functions/grantpt.texi: Likewise.
9465         * doc/posix-functions/unlockpt.texi: Likewise.
9466         * doc/posix-functions/lgamma.texi: Likewise.
9467         * doc/posix-functions/nextafter.texi: Likewise.
9468         * doc/posix-functions/remainder.texi: Likewise.
9469         * doc/posix-functions/select.texi: Mention misplaced declaration on
9470         IRIX 5.3.
9471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9472
9473 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9474
9475         gitlog-to-changelog: fix git-log invocation.
9476         git-log mishandles date strings before 1970-01-01 UTC, and there is
9477         no use to specify --since=1970-01-01 by default anyway.
9478         * build-aux/gitlog-to-changelog: By default, when no --since option
9479         was given, do not specify explicit --since option to git-log.
9480
9481 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9482
9483         gitlog-to-changelog: new option --append-dot.
9484         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9485         first non-blank line of each commit message terminated with a dot.
9486
9487 2011-10-30  Bruno Haible  <bruno@clisp.org>
9488
9489         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9490         * lib/ffsl.h: Include <config.h>.
9491         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9492
9493 2011-10-30  Jim Meyering  <meyering@redhat.com>
9494
9495         GNUmakefile: reenable "make syntax-check" for most projects
9496         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9497         build-aux variable", "syntax-check" would do nothing but succeed with
9498         the "No version control files detected..." diagnostic (unless you
9499         happened to override _build-aux via cfg.mk).
9500         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9501         to precede inclusion of maint.mk.  Otherwise, these variables would
9502         be used undefined in any project that does not override the default.
9503
9504 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9505
9506         gitlog-to-changelog: treat a message with only blank lines as empty.
9507         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9508         trailing blank lines before the code that issues a warning about an
9509         empty commit message.
9510
9511 2011-10-30  Jim Meyering  <meyering@redhat.com>
9512
9513         test-parse-datetime.c: avoid new DST-related false positive test failure
9514         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9515         based on the time/date we'll convert, not the current time.
9516         Otherwise, the moment we cross a DST boundary like today's in
9517         Europe, (CEST to CET), that offset ends up being one hour off.
9518
9519 2011-10-27  Bruno Haible  <bruno@clisp.org>
9520
9521         fstat: Tweak documentation.
9522         * modules/fstat (Description): More precise description.
9523
9524 2011-10-27  Bruno Haible  <bruno@clisp.org>
9525
9526         Update documentation regarding 'largefile' module.
9527         * doc/posix-functions/fstat.texi: Tweak wording.
9528         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9529         problems with huge directories and/or small ino_t types.
9530         * doc/posix-functions/readdir.texi: Likewise.
9531         * doc/posix-functions/rewinddir.texi: Likewise.
9532
9533 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9534
9535         maint.mk: don't maintain a second build-aux variable.
9536         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9537         depends on GNUmakefile, which already maintains a cfg.mk
9538         overridable $(_build-aux) for projects with a non-standard
9539         build-aux directory location, although without the $(srcdir)
9540         prefix.  Use that variable consistently instead of introducing a
9541         second one.  Adjust all call sites.
9542
9543 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         Add stdalign module and use it in other modules.
9546         This is based on a previous proposal by Bruno Haible
9547         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9548
9549         stdalign: new module
9550         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9551         * modules/stdalign: New files.
9552         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9553         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9554
9555         stdalign-tests: new module
9556         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9557
9558         argp: use stdalign
9559         * lib/argp-parse.c: Include <stdalign.h>.
9560         (alignof): Remove.
9561         * modules/argp (Depends-on): Add stdalign.
9562
9563         crypto libraries: use stdalign
9564         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9565         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9566         Do not include <stdlib.h> twice, in md4.c.
9567         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9568         because we are accessing a pointer's bit-pattern, not a size.
9569         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9570         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9571         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9572         * modules/crypto/sha512: Likewise.
9573
9574         sys_socket: use stdalign, not alignof
9575         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9576         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9577
9578 2011-10-27  Bruno Haible  <bruno@clisp.org>
9579
9580         raise test: Avoid a test failure on Linux/MIPS.
9581         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9582         because 99 is a valid signal on Linux/MIPS.
9583
9584 2011-10-27  Bruno Haible  <bruno@clisp.org>
9585
9586         nonblocking tests: Fix test failure on Linux/MIPS.
9587         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9588         Set to 270000.
9589
9590 2011-10-27  Bruno Haible  <bruno@clisp.org>
9591
9592         utimensat: Work around problem on Linux/hppa.
9593         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9594         values.
9595         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9596
9597 2011-10-25  Jim Meyering  <meyering@redhat.com>
9598
9599         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9600         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9601         after symbols like NULL, size_t, etc.
9602         Reported by Alfred M. Szmidt.
9603
9604         maint.mk: exempt ENODATA from a syntax-check rule
9605         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9606         from the sc_prohibit_always-defined_macros syntax-check rule.
9607         Add a comment.  See this for more details:
9608         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9609
9610 2011-10-23  Jim Meyering  <meyering@redhat.com>
9611
9612         fts: close parent dir FD before returning from post-traversal fts_read
9613         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9614         unlink A, even though an FD open on A remained.  This is suboptimal
9615         (holding a file descriptor open longer than needed), but otherwise not
9616         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9617         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9618         that represents a real problem: it causes the removal of A to fail
9619         with e.g., "rm: cannot remove `A': Device or resource busy"
9620
9621         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9622         directory file descriptors.  After completing the final, FTS_DP,
9623         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9624         cache, but then proceeded to add a new FD to it via the subsequent
9625         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9626         final file descriptor would be closed only via fts_close's call to
9627         fd_ring_clear.  Now, it is usually closed earlier, via the final
9628         FTS_DP-returning fts_read call.
9629         * lib/fts.c (restore_initial_cwd): New function, converted from
9630         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9631         Update callers.
9632         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9633         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9634
9635 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9636             Bruno Haible  <bruno@clisp.org>
9637             Jim Meyering  <jim@meyering.net>
9638
9639         readme-release: improve safety of release prep instructions.
9640         * README-release: Don't git pull all branches when only master
9641         is needed for the release process.
9642         Run make maintainer-clean before changing trees and merging.
9643         Don't try to run ./configure right after git pull in case files
9644         that influence the bootstrap process have changed, move the
9645         ./configure step to after running ./bootstrap.
9646         Don't bootstrap "one last time"... it's the first time!
9647
9648 2011-10-22  Bruno Haible  <bruno@clisp.org>
9649
9650         errno, strerror-override: Support for MSVC 10.
9651         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9652         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9653         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9654         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9655         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9656         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9657         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9658         Assign values compatible with MSVC 10.
9659         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9660         New macros.
9661         (GNULIB_defined_EWINSOCK): New macro.
9662         * lib/strerror-override.c (strerror_override): Update accordingly.
9663         * lib/strerror-override.h: Likewise.
9664         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9665         longer equal to the corresponding errno value.
9666         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9667
9668 2011-10-22  Bruno Haible  <bruno@clisp.org>
9669
9670         perror: Recognize when test program crashes.
9671         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9672         strerror, set gl_cv_func_perror_works to no.
9673         Reported by Daniel Richard G. <skunk@iskunk.org>.
9674
9675         perror: Fix indentation.
9676         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9677
9678 2011-10-22  Bruno Haible  <bruno@clisp.org>
9679
9680         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9681         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9682         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9683         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9684         functions, not as a macro.
9685         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9686         macros.
9687         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9688         absence of macro.
9689         Suggested by Eric Blake.
9690         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9691
9692 2011-10-21  Bruno Haible  <bruno@clisp.org>
9693
9694         relocatable-prog-wrapper: Don't leave object files behind.
9695         * build-aux/install-reloc: Re-synchronize list of .o files to be
9696         removed with list of compilation units.
9697
9698 2011-10-20  Bruno Haible  <bruno@clisp.org>
9699
9700         openpty, posix_openpt: Remove code duplication.
9701         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9702         * lib/openpty.c: Include <stdlib.h>.
9703         (openpty): Use posix_openpt on all platforms except IRIX.
9704         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9705
9706 2011-10-20  Bruno Haible  <bruno@clisp.org>
9707
9708         unlockpt: Detect invalid argument.
9709         * lib/unlockpt.c: Include <fcntl.h>.
9710         (unlockpt): Check whether fd is valid, using fcntl().
9711         * modules/unlockpt (Depends-on): Add fcntl-h.
9712
9713 2011-10-20  Bruno Haible  <bruno@clisp.org>
9714
9715         openpty: Avoid compilation error on AIX 6.1.
9716         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9717
9718 2011-10-20  Bruno Haible  <bruno@clisp.org>
9719
9720         posix_openpt: Support for OpenBSD.
9721         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9722         (posix_openpt) [OpenBSD]: New code.
9723         * lib/grantpt.c: Include <fcntl.h>.
9724         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9725         * modules/grantpt (Depends-on): Add fcntl-h.
9726
9727 2011-10-20  Bruno Haible  <bruno@clisp.org>
9728
9729         posix_openpt test: Coding style.
9730         * tests/test-posix_openpt.c: Use GNU coding style.
9731
9732 2011-10-20  Bruno Haible  <bruno@clisp.org>
9733
9734         grantpt: Support --avoid=pt_chown.
9735         * modules/grantpt (Files): Add lib/pty-private.h.
9736
9737 2011-10-20  Bruno Haible  <bruno@clisp.org>
9738
9739         posix_openpt: Fix autoconf macro.
9740         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9741         unneeded check for _getpty.
9742
9743 2011-10-20  Bruno Haible  <bruno@clisp.org>
9744
9745         openpty: Update comments.
9746         * lib/openpty.c: Add comments about Minix.
9747
9748 2011-10-19  Eric Blake  <eblake@redhat.com>
9749
9750         openpty: relax license
9751         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9752
9753         pt_chown: use configmake to simplify build
9754         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9755
9756         ptsname and others: relax license
9757         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9758         * modules/unlockpt (License): Likewise.
9759         * modules/pt_chown (License): Likewise.
9760         * modules/ptsname (License): Likewise.
9761         * modules/ttyname_r (License): Likewise.
9762
9763 2011-10-19  Jim Meyering  <meyering@redhat.com>
9764
9765         posix_openpt: remove spurious #endif
9766         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9767
9768 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9769
9770         maint.mk: Respect $(build_aux) in web-manual rule.
9771         * top/maint.mk (web-manual): Find gen-announce script in user's
9772         $(build_aux) directory instead of hard-coding 'build-aux'.
9773
9774 2011-10-19  Bruno Haible  <bruno@clisp.org>
9775
9776         posix_openpt: Fix compilation error.
9777         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9778         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9779         Mention the openpty module as an alternative.
9780
9781 2011-10-19  Bruno Haible  <bruno@clisp.org>
9782
9783         Support for old NeXTstep 3.3 frexp().
9784         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9785         execution time of the test to 5 seconds.
9786         Reported by Daniel Richard G. <skunk@iskunk.org>.
9787
9788 2011-10-19  Bruno Haible  <bruno@clisp.org>
9789
9790         Support for old NeXTstep 3.3 sed.
9791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9792         part, use /.../, not \|...|. Escape periods in the header file name.
9793         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9794         Reported by Daniel Richard G. <skunk@iskunk.org>.
9795
9796 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9797
9798         Support for old NeXTstep 3.3 gcc.
9799         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9800         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9801         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9802         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9803         * lib/regex.h (_Restrict_arr_): Likewise.
9804         * lib/regex_internal.h (re_token_t): Likewise.
9805         * lib/regexec.c (check_node_accept_bytes): Likewise.
9806         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9807
9808 2011-10-18  Eric Blake  <eblake@redhat.com>
9809
9810         posix_openpt: new module
9811         * modules/posix_openpt: New module.
9812         * m4/posix_openpt.m4: New file.
9813         * lib/posix_openpt.c: Likewise.
9814         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9815         (gl_STDLIB_H_DEFAULTS): Set defaults.
9816         * modules/stdlib (Makefile.am): Substitute macros.
9817         * lib/stdlib.in.h (posix_openpt): Declare.
9818         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9819         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9820         * modules/posix_openpt-tests: New test module.
9821         * tests/test-posix_openpt.c: New test.
9822
9823 2011-10-15  Bruno Haible  <bruno@clisp.org>
9824
9825         xstrtoll: Fix compilation failure.
9826         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9827         from lib/strtol.c.
9828         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9829         some platforms.
9830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9831
9832 2011-10-15  Bruno Haible  <bruno@clisp.org>
9833
9834         vasnprintf: Optimize bit search operation.
9835         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9837         gl_DOUBLE_EXPONENT_LOCATION.
9838         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9839         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9840         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9841         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9842         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9843         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9844         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9845         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9846         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9847
9848 2011-10-15  Bruno Haible  <bruno@clisp.org>
9849
9850         vasnprintf: Fix comments.
9851         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9852
9853 2011-10-14  Bruno Haible  <bruno@clisp.org>
9854
9855         Tests for module 'integer_length_ll'.
9856         * modules/integer_length_ll-tests: New file.
9857         * tests/test-integer_length_ll.c: New file.
9858
9859         New module 'integer_length_ll'.
9860         * lib/integer_length_ll.c: New file.
9861         * modules/integer_length_ll: New file.
9862
9863 2011-10-14  Bruno Haible  <bruno@clisp.org>
9864
9865         Tests for module 'integer_length_l'.
9866         * modules/integer_length_l-tests: New file.
9867         * tests/test-integer_length_l.c: New file.
9868
9869         New module 'integer_length_l'.
9870         * lib/integer_length_l.c: New file.
9871         * modules/integer_length_l: New file.
9872
9873 2011-10-14  Bruno Haible  <bruno@clisp.org>
9874
9875         Tests for module 'integer_length'.
9876         * modules/integer_length-tests: New file.
9877         * tests/test-integer_length.c: New file.
9878
9879         New module 'integer_length'.
9880         * lib/integer_length.h: New file.
9881         * lib/integer_length.c: New file.
9882         * modules/integer_length: New file.
9883
9884 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9885
9886         popen: Fix dependency conditions.
9887         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9888
9889 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9890
9891         perror: Fix autoconf test.
9892         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9893         <stdlib.h> and <string.h>.
9894
9895 2011-10-14  Bruno Haible  <bruno@clisp.org>
9896
9897         ffsl: Optimize on 64-bit platforms.
9898         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9899         unrolling.
9900
9901 2011-10-13  Bruno Haible  <bruno@clisp.org>
9902
9903         ffsl: Optimize on 32-bit platforms.
9904         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9905         use ffs() without a loop.
9906
9907         ffsl, ffsll: Optimize for GCC.
9908         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9909         * lib/ffsl.c (GCC_BUILTIN): New macro.
9910         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9911
9912 2011-10-13  Bruno Haible  <bruno@clisp.org>
9913
9914         ffs, bcopy, memset: Support symbol renaming via config.h.
9915         * lib/ffs.c: Include <config.h>.
9916         * lib/bcopy.c: Likewise.
9917         * lib/memset.c: Likewise.
9918
9919 2011-10-10  Bruno Haible  <bruno@clisp.org>
9920
9921         atanl: Simplify for platforms where 'long double' == 'double'.
9922         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9923         alternative implementation.
9924         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9925         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9926         * modules/atanl (Depends-on): Add atan. Update conditions.
9927
9928 2011-10-10  Bruno Haible  <bruno@clisp.org>
9929
9930         acosl: Simplify for platforms where 'long double' == 'double'.
9931         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9932         alternative implementation.
9933         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9934         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9935         * modules/acosl (Depends-on): Add acos. Update conditions.
9936
9937 2011-10-10  Bruno Haible  <bruno@clisp.org>
9938
9939         asinl: Simplify for platforms where 'long double' == 'double'.
9940         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9941         alternative implementation.
9942         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9943         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9944         * modules/asinl (Depends-on): Add asin. Update conditions.
9945
9946 2011-10-10  Bruno Haible  <bruno@clisp.org>
9947
9948         tanl: Simplify for platforms where 'long double' == 'double'.
9949         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9950         implementation.
9951         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9952         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9953         * modules/tanl (Depends-on): Add tan. Update conditions.
9954         (configure.ac): Don't compile trigl.c if
9955         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9956
9957 2011-10-10  Bruno Haible  <bruno@clisp.org>
9958
9959         cosl: Simplify for platforms where 'long double' == 'double'.
9960         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9961         implementation.
9962         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9963         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9964         * modules/cosl (Depends-on): Add cos. Update conditions.
9965         (configure.ac): Don't compile sincosl.c and trigl.c if
9966         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9967
9968 2011-10-10  Bruno Haible  <bruno@clisp.org>
9969
9970         sinl: Simplify for platforms where 'long double' == 'double'.
9971         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9972         implementation.
9973         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9974         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9975         * modules/sinl (Depends-on): Add sin. Update conditions.
9976         (configure.ac): Don't compile sincosl.c and trigl.c if
9977         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9978
9979 2011-10-10  Bruno Haible  <bruno@clisp.org>
9980
9981         logl: Simplify for platforms where 'long double' == 'double'.
9982         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9983         implementation.
9984         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9985         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9986         * modules/logl (Depends-on): Add log. Update conditions.
9987
9988 2011-10-10  Bruno Haible  <bruno@clisp.org>
9989
9990         expl: Simplify for platforms where 'long double' == 'double'.
9991         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9992         implementation.
9993         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9994         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9995         * modules/expl (Depends-on): Add exp. Update conditions.
9996
9997 2011-10-10  Bruno Haible  <bruno@clisp.org>
9998
9999         sqrtl: Simplify for platforms where 'long double' == 'double'.
10000         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10001         alternative implementation.
10002         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10003         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10004         * modules/sqrtl (Depends-on): Update conditions.
10005
10006 2011-10-10  Bruno Haible  <bruno@clisp.org>
10007
10008         ldexpl: Simplify for platforms where 'long double' == 'double'.
10009         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10010         alternative implementation.
10011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10012         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10013         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10014
10015 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10016
10017         ffsll: set correct witness
10018         * modules/ffsll (configure.ac): Fix typo.
10019
10020 2011-10-10  Bruno Haible  <bruno@clisp.org>
10021
10022         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10023         * lib/printf-frexpl.c: Include <config.h>.
10024         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10025         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10026         second time.
10027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10028         gl_LONG_DOUBLE_VS_DOUBLE.
10029         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10030         conditions.
10031
10032 2011-10-10  Bruno Haible  <bruno@clisp.org>
10033
10034         frexpl: Simplify for platforms where 'long double' == 'double'.
10035         * lib/frexpl.c: Include <config.h>.
10036         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10037         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10038         time.
10039         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10040         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10041         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10042         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10043         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10044         conditions.
10045
10046 2011-10-10  Jim Meyering  <meyering@redhat.com>
10047
10048         test-renameat: don't leave behind a temporary file
10049         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10050           ERROR: files left in build directory after distclean:
10051           ./gltests/test-renameat.too
10052           make[1]: *** [distcleancheck] Error 1
10053         Reported by Tom G. Christensen.
10054
10055 2011-10-09  Bruno Haible  <bruno@clisp.org>
10056
10057         rint: Determine RINT_LIBM correctly on AIX 7.
10058         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10059         directly, not only through a function pointer. Also accept an optional
10060         4th argument with extra code.
10061         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10062         rintf() call by gcc when optimizing.
10063
10064         mathfunc.m4: Refactor.
10065         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10066         m4 variable.
10067
10068 2011-10-09  Bruno Haible  <bruno@clisp.org>
10069
10070         rintl: Simplify for platforms where 'long double' == 'double'.
10071         * lib/rintl.c: Include <config.h>.
10072         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10073         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10074         time.
10075         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10076         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10077         * modules/rintl (Depends-on): Add rint. Update conditions.
10078
10079 2011-10-09  Bruno Haible  <bruno@clisp.org>
10080
10081         roundl: Simplify for platforms where 'long double' == 'double'.
10082         * lib/roundl.c: Include <config.h>.
10083         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10084         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10085         time.
10086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10087         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10088         * modules/roundl (Depends-on): Add round. Update conditions.
10089
10090 2011-10-09  Bruno Haible  <bruno@clisp.org>
10091
10092         truncl: Simplify for platforms where 'long double' == 'double'.
10093         * lib/truncl.c: Include <config.h>.
10094         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10095         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10096         time.
10097         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10098         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10099         * modules/truncl (Depends-on): Add trunc. Update conditions.
10100
10101 2011-10-09  Bruno Haible  <bruno@clisp.org>
10102
10103         ceill: Simplify for platforms where 'long double' == 'double'.
10104         * lib/ceill.c: Include <config.h>.
10105         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10106         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10107         time.
10108         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10109         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10110         * modules/ceill (Depends-on): Add ceil. Update conditions.
10111
10112 2011-10-09  Bruno Haible  <bruno@clisp.org>
10113
10114         floorl: Simplify for platforms where 'long double' == 'double'.
10115         * lib/floorl.c: Include <config.h>.
10116         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10117         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10118         time.
10119         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10120         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10121         * modules/floorl (Depends-on): Add floor. Update conditions.
10122
10123 2011-10-09  Bruno Haible  <bruno@clisp.org>
10124
10125         rint: Fix ordering constraints.
10126         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10127         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10128         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10129
10130 2011-10-09  Bruno Haible  <bruno@clisp.org>
10131
10132         copysignl: Simplify for platforms where 'long double' == 'double'.
10133         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10134         alternative.
10135         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10136         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10137         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10138
10139 2011-10-09  Bruno Haible  <bruno@clisp.org>
10140
10141         Tests for module 'rintl'.
10142         * modules/rintl-tests: New file.
10143         * tests/test-rintl.c: New file.
10144
10145         New module 'rintl'.
10146         * lib/math.in.h (rintl): New declaration.
10147         * lib/rintl.c: New file.
10148         * m4/rintl.m4: New file.
10149         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10151         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10152         * modules/rintl: New file.
10153         * tests/test-math-c++.cc: Check the declaration of rintl.
10154         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10155         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10156         * doc/posix-functions/rintl.texi: Mention the new module.
10157
10158 2011-10-09  Bruno Haible  <bruno@clisp.org>
10159
10160         Tests for module 'rintf'.
10161         * modules/rintf-tests: New file.
10162         * tests/test-rintf.c: New file.
10163
10164         New module 'rintf'.
10165         * lib/math.in.h (rintf): New declaration.
10166         * lib/rintf.c: New file.
10167         * m4/rintf.m4: New file.
10168         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10170         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10171         * modules/rintf: New file.
10172         * tests/test-math-c++.cc: Check the declaration of rintf.
10173         * doc/posix-functions/rintf.texi: Mention the new module.
10174
10175 2011-10-09  Bruno Haible  <bruno@clisp.org>
10176
10177         rint: Support for MSVC.
10178         * lib/math.in.h (rint): New declaration.
10179         * lib/rint.c: New file.
10180         * m4/rint.m4: New file.
10181         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10183         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10184         * modules/rint (Description): Fix.
10185         (Files): Add lib/rint.c, m4/rint.m4.
10186         (Depends-on): Add math.
10187         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10188         gl_MATH_MODULE_INDICATOR.
10189         * tests/test-math-c++.cc: Check the declaration of rint.
10190         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10191         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10192         * doc/posix-functions/rint.texi: Mention the replacement provided by
10193         the module.
10194
10195         rint tests: More tests.
10196         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10197         minus-zero.h, infinity.h, nan.h.
10198         (main): Skip the test if the current rounding mode is not standard. Add
10199         tests for negative numbers, minus zero, infinity, NaN.
10200         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10201         tests/nan.h.
10202         (Depends-on): Add isnand-nolibm.
10203
10204 2011-10-09  Bruno Haible  <bruno@clisp.org>
10205
10206         Tests for module 'copysignl'.
10207         * modules/copysignl-tests: New file.
10208         * tests/test-copysignl.c: New file.
10209
10210         New module 'copysignl'.
10211         * lib/math.in.h (copysignl): New declaration.
10212         * lib/copysignl.c: New file.
10213         * m4/copysignl.m4: New file.
10214         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10216         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10217         HAVE_COPYSIGNL.
10218         * modules/copysignl: New file.
10219         * tests/test-math-c++.cc: Check the declaration of copysignl.
10220         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10221         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10222         * doc/posix-functions/copysignl.texi: Mention the new module.
10223
10224 2011-10-09  Bruno Haible  <bruno@clisp.org>
10225
10226         Tests for module 'copysignf'.
10227         * modules/copysignf-tests: New file.
10228         * tests/test-copysignf.c: New file.
10229
10230         New module 'copysignf'.
10231         * lib/math.in.h (copysignf): New declaration.
10232         * lib/copysignf.c: New file.
10233         * m4/copysignf.m4: New file.
10234         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10236         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10237         HAVE_COPYSIGNF.
10238         * modules/copysignf: New file.
10239         * tests/test-math-c++.cc: Check the declaration of copysignf.
10240         * doc/posix-functions/copysignf.texi: Mention the new module.
10241
10242 2011-10-09  Bruno Haible  <bruno@clisp.org>
10243
10244         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10245         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10246         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10247         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10248         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10249         gl_SIGNAL_H_DEFAULTS.
10250
10251 2011-10-09  Bruno Haible  <bruno@clisp.org>
10252
10253         poll: Make macro safer.
10254         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10255         ac_cv_header_poll_h is not set.
10256
10257 2011-10-09  Bruno Haible  <bruno@clisp.org>
10258
10259         copysign: Provide replacement.
10260         * lib/math.in.h (copysign): New declaration.
10261         * lib/copysign.c: New file.
10262         * m4/copysign.m4: New file.
10263         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10265         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10266         HAVE_COPYSIGN.
10267         * modules/copysign (Description): Clarify.
10268         (Files): Add lib/copysign.c, m4/copysign.m4.
10269         (Depends-on): Add math, signbit.
10270         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10271         gl_MATH_MODULE_INDICATOR.
10272         * tests/test-math-c++.cc: Check the declaration of copysign.
10273         * doc/posix-functions/copysign.texi: Mention the effects of the module
10274         on Minix and MSVC.
10275
10276 2011-10-09  Bruno Haible  <bruno@clisp.org>
10277
10278         isinf: Ensure macro on AIX 5.1.
10279         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10280         macro.
10281         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10282
10283 2011-10-09  Bruno Haible  <bruno@clisp.org>
10284
10285         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10286         * modules/snprintf-posix-tests (configure.ac): Require
10287         gl_LONG_DOUBLE_VS_DOUBLE.
10288         * modules/sprintf-posix-tests (configure.ac): Likewise.
10289         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10290         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10291         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10292         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10293         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10294         tests on platforms where 'long double' is the same as 'double'.
10295         * tests/test-sprintf-posix.h (test_function): Likewise.
10296         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10297         * tests/test-vasprintf-posix.c (test_function): Likewise.
10298
10299         *printf: Fix for platforms where 'long double' == 'double'.
10300         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10301         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10302         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10303         * modules/fprintf-posix (Files): Likewise.
10304         * modules/obstack-printf-posix (Files): Likewise.
10305         * modules/snprintf-posix (Files): Likewise.
10306         * modules/sprintf-posix (Files): Likewise.
10307         * modules/vasnprintf (Files): Likewise.
10308         * modules/vasnprintf-posix (Files): Likewise.
10309         * modules/vasprintf-posix (Files): Likewise.
10310         * modules/vdprintf-posix (Files): Likewise.
10311         * modules/vfprintf-posix (Files): Likewise.
10312         * modules/vsnprintf-posix (Files): Likewise.
10313         * modules/vsprintf-posix (Files): Likewise.
10314         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10315         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10316         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10317         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10318         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10319         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10320         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10321
10322         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10323         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10324         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10325         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10326         'long double'.
10327         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10328
10329         isinf: Fix for platforms where 'long double' == 'double'.
10330         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10331         Don't blindly assume 80-bit 'long double'.
10332
10333         isfinite: Fix for platforms where 'long double' == 'double'.
10334         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10335         Don't blindly assume 80-bit 'long double'.
10336
10337         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10338         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10339         * modules/isfinite-tests (configure.ac): Require
10340         gl_LONG_DOUBLE_VS_DOUBLE.
10341         * modules/isinf-tests (configure.ac): Likewise.
10342         * modules/isnan-tests (configure.ac): Likewise.
10343         * modules/isnanl-tests (configure.ac): Likewise.
10344         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10345         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10346         tests on platforms where 'long double' is the same as 'double'.
10347         * tests/test-isinf.c (test_isinfl): Likewise.
10348         * tests/test-isnan.c (test_long_double): Likewise.
10349         * tests/test-isnanl.h (main): Likewise.
10350
10351 2011-10-08  Bruno Haible  <bruno@clisp.org>
10352
10353         Tests for module 'tanhf'.
10354         * modules/tanhf-tests: New file.
10355         * tests/test-tanhf.c: New file.
10356
10357         New module 'tanhf'.
10358         * lib/math.in.h (tanhf): New declaration.
10359         * lib/tanhf.c: New file.
10360         * m4/tanhf.m4: New file.
10361         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10363         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10364         * modules/tanhf: New file.
10365         * tests/test-math-c++.cc: Check the declaration of tanhf.
10366         * doc/posix-functions/tanhf.texi: Mention the new module.
10367
10368         tanh: Use a .m4 file.
10369         * m4/tanh.m4: New file.
10370         * modules/tanh (Files): Add it.
10371         (configure.ac): Just invoke gl_FUNC_TANH.
10372
10373 2011-10-08  Bruno Haible  <bruno@clisp.org>
10374
10375         Tests for module 'coshf'.
10376         * modules/coshf-tests: New file.
10377         * tests/test-coshf.c: New file.
10378
10379         New module 'coshf'.
10380         * lib/math.in.h (coshf): New declaration.
10381         * lib/coshf.c: New file.
10382         * m4/coshf.m4: New file.
10383         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10385         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10386         * modules/coshf: New file.
10387         * tests/test-math-c++.cc: Check the declaration of coshf.
10388         * doc/posix-functions/coshf.texi: Mention the new module.
10389
10390         cosh: Use a .m4 file.
10391         * m4/cosh.m4: New file.
10392         * modules/cosh (Files): Add it.
10393         (configure.ac): Just invoke gl_FUNC_COSH.
10394
10395 2011-10-08  Bruno Haible  <bruno@clisp.org>
10396
10397         Tests for module 'sinhf'.
10398         * modules/sinhf-tests: New file.
10399         * tests/test-sinhf.c: New file.
10400
10401         New module 'sinhf'.
10402         * lib/math.in.h (sinhf): New declaration.
10403         * lib/sinhf.c: New file.
10404         * m4/sinhf.m4: New file.
10405         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10407         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10408         * modules/sinhf: New file.
10409         * tests/test-math-c++.cc: Check the declaration of sinhf.
10410         * doc/posix-functions/sinhf.texi: Mention the new module.
10411
10412         sinh: Use a .m4 file.
10413         * m4/sinh.m4: New file.
10414         * modules/sinh (Files): Add it.
10415         (configure.ac): Just invoke gl_FUNC_SINH.
10416
10417 2011-10-08  Bruno Haible  <bruno@clisp.org>
10418
10419         Tests for module 'atan2f'.
10420         * modules/atan2f-tests: New file.
10421         * tests/test-atan2f.c: New file.
10422
10423         New module 'atan2f'.
10424         * lib/math.in.h (atan2f): New declaration.
10425         * lib/atan2f.c: New file.
10426         * m4/atan2f.m4: New file.
10427         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10429         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10430         * modules/atan2f: New file.
10431         * tests/test-math-c++.cc: Check the declaration of atan2f.
10432         * doc/posix-functions/atan2f.texi: Mention the new module.
10433
10434         atan2: Use a .m4 file.
10435         * m4/atan2.m4: New file.
10436         * modules/atan2 (Files): Add it.
10437         (configure.ac): Just invoke gl_FUNC_ATAN2.
10438
10439 2011-10-08  Bruno Haible  <bruno@clisp.org>
10440
10441         Tests for module 'atanf'.
10442         * modules/atanf-tests: New file.
10443         * tests/test-atanf.c: New file.
10444
10445         New module 'atanf'.
10446         * lib/math.in.h (atanf): New declaration.
10447         * lib/atanf.c: New file.
10448         * m4/atanf.m4: New file.
10449         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10451         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10452         * modules/atanf: New file.
10453         * tests/test-math-c++.cc: Check the declaration of atanf.
10454         * doc/posix-functions/atanf.texi: Mention the new module.
10455
10456         atan: Use a .m4 file.
10457         * m4/atan.m4: New file.
10458         * modules/atan (Files): Add it.
10459         (configure.ac): Just invoke gl_FUNC_ATAN.
10460
10461 2011-10-08  Bruno Haible  <bruno@clisp.org>
10462
10463         Tests for module 'acosf'.
10464         * modules/acosf-tests: New file.
10465         * tests/test-acosf.c: New file.
10466
10467         New module 'acosf'.
10468         * lib/math.in.h (acosf): New declaration.
10469         * lib/acosf.c: New file.
10470         * m4/acosf.m4: New file.
10471         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10473         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10474         * modules/acosf: New file.
10475         * tests/test-math-c++.cc: Check the declaration of acosf.
10476         * doc/posix-functions/acosf.texi: Mention the new module.
10477
10478         acos: Use a .m4 file.
10479         * m4/acos.m4: New file.
10480         * modules/acos (Files): Add it.
10481         (configure.ac): Just invoke gl_FUNC_ACOS.
10482
10483 2011-10-08  Bruno Haible  <bruno@clisp.org>
10484
10485         Tests for module 'asinf'.
10486         * modules/asinf-tests: New file.
10487         * tests/test-asinf.c: New file.
10488
10489         New module 'asinf'.
10490         * lib/math.in.h (asinf): New declaration.
10491         * lib/asinf.c: New file.
10492         * m4/asinf.m4: New file.
10493         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10495         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10496         * modules/asinf: New file.
10497         * tests/test-math-c++.cc: Check the declaration of asinf.
10498         * doc/posix-functions/asinf.texi: Mention the new module.
10499
10500         asin: Use a .m4 file.
10501         * m4/asin.m4: New file.
10502         * modules/asin (Files): Add it.
10503         (configure.ac): Just invoke gl_FUNC_ASIN.
10504
10505 2011-10-08  Bruno Haible  <bruno@clisp.org>
10506
10507         Tests for module 'tanf'.
10508         * modules/tanf-tests: New file.
10509         * tests/test-tanf.c: New file.
10510
10511         New module 'tanf'.
10512         * lib/math.in.h (tanf): New declaration.
10513         * lib/tanf.c: New file.
10514         * m4/tanf.m4: New file.
10515         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10517         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10518         * modules/tanf: New file.
10519         * tests/test-math-c++.cc: Check the declaration of tanf.
10520         * doc/posix-functions/tanf.texi: Mention the new module.
10521
10522         tan: Use a .m4 file.
10523         * m4/tan.m4: New file.
10524         * modules/tan (Files): Add it.
10525         (configure.ac): Just invoke gl_FUNC_TAN.
10526
10527 2011-10-08  Bruno Haible  <bruno@clisp.org>
10528
10529         Tests for module 'cosf'.
10530         * modules/cosf-tests: New file.
10531         * tests/test-cosf.c: New file.
10532
10533         New module 'cosf'.
10534         * lib/math.in.h (cosf): New declaration.
10535         * lib/cosf.c: New file.
10536         * m4/cosf.m4: New file.
10537         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10539         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10540         * modules/cosf: New file.
10541         * tests/test-math-c++.cc: Check the declaration of cosf.
10542         * doc/posix-functions/cosf.texi: Mention the new module.
10543
10544         cos: Use a .m4 file.
10545         * m4/cos.m4: New file.
10546         * modules/cos (Files): Add it.
10547         (configure.ac): Just invoke gl_FUNC_COS.
10548
10549 2011-10-08  Bruno Haible  <bruno@clisp.org>
10550
10551         Tests for module 'sinf'.
10552         * modules/sinf-tests: New file.
10553         * tests/test-sinf.c: New file.
10554
10555         New module 'sinf'.
10556         * lib/math.in.h (sinf): New declaration.
10557         * lib/sinf.c: New file.
10558         * m4/sinf.m4: New file.
10559         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10561         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10562         * modules/sinf: New file.
10563         * tests/test-math-c++.cc: Check the declaration of sinf.
10564         * doc/posix-functions/sinf.texi: Mention the new module.
10565
10566         sin: Use a .m4 file.
10567         * m4/sin.m4: New file.
10568         * modules/sin (Files): Add it.
10569         (configure.ac): Just invoke gl_FUNC_SIN.
10570
10571 2011-10-08  Bruno Haible  <bruno@clisp.org>
10572
10573         Tests for module 'powf'.
10574         * modules/powf-tests: New file.
10575         * tests/test-powf.c: New file.
10576
10577         New module 'powf'.
10578         * lib/math.in.h (powf): New declaration.
10579         * lib/powf.c: New file.
10580         * m4/powf.m4: New file.
10581         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10583         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10584         * modules/powf: New file.
10585         * tests/test-math-c++.cc: Check the declaration of powf.
10586         * doc/posix-functions/powf.texi: Mention the new module.
10587
10588         pow: Use a .m4 file.
10589         * m4/pow.m4: New file.
10590         * modules/pow (Files): Add it.
10591         (configure.ac): Just invoke gl_FUNC_POW.
10592
10593 2011-10-08  Bruno Haible  <bruno@clisp.org>
10594
10595         Tests for module 'log10f'.
10596         * modules/log10f-tests: New file.
10597         * tests/test-log10f.c: New file.
10598
10599         New module 'log10f'.
10600         * lib/math.in.h (log10f): New declaration.
10601         * lib/log10f.c: New file.
10602         * m4/log10f.m4: New file.
10603         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10605         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10606         * modules/log10f: New file.
10607         * tests/test-math-c++.cc: Check the declaration of log10f.
10608         * doc/posix-functions/log10f.texi: Mention the new module.
10609
10610         log10: Use a .m4 file.
10611         * m4/log10.m4: New file.
10612         * modules/log10 (Files): Add it.
10613         (configure.ac): Just invoke gl_FUNC_LOG10.
10614
10615 2011-10-08  Bruno Haible  <bruno@clisp.org>
10616
10617         Tests for module 'logf'.
10618         * modules/logf-tests: New file.
10619         * tests/test-logf.c: New file.
10620
10621         New module 'logf'.
10622         * lib/math.in.h (logf): New declaration.
10623         * lib/logf.c: New file.
10624         * m4/logf.m4: New file.
10625         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10627         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10628         * modules/logf: New file.
10629         * tests/test-math-c++.cc: Check the declaration of logf.
10630         * doc/posix-functions/logf.texi: Mention the new module.
10631
10632         log: Use a .m4 file.
10633         * m4/log.m4: New file.
10634         * modules/log (Files): Add it.
10635         (configure.ac): Just invoke gl_FUNC_LOG.
10636
10637 2011-10-08  Bruno Haible  <bruno@clisp.org>
10638
10639         Tests for module 'expf'.
10640         * modules/expf-tests: New file.
10641         * tests/test-expf.c: New file.
10642
10643         New module 'expf'.
10644         * lib/math.in.h (expf): New declaration.
10645         * lib/expf.c: New file.
10646         * m4/expf.m4: New file.
10647         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10649         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10650         * modules/expf: New file.
10651         * tests/test-math-c++.cc: Check the declaration of expf.
10652         * doc/posix-functions/expf.texi: Mention the new module.
10653
10654         exp: Use a .m4 file.
10655         * m4/exp.m4: New file.
10656         * modules/exp (Files): Add it.
10657         (configure.ac): Just invoke gl_FUNC_EXP.
10658
10659 2011-10-08  Bruno Haible  <bruno@clisp.org>
10660
10661         Tests for module 'sqrtf'.
10662         * modules/sqrtf-tests: New file.
10663         * tests/test-sqrtf.c: New file.
10664
10665         New module 'sqrtf'.
10666         * lib/math.in.h (sqrtf): New declaration.
10667         * lib/sqrtf.c: New file.
10668         * m4/sqrtf.m4: New file.
10669         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10671         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10672         * modules/sqrtf: New file.
10673         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10674         * doc/posix-functions/sqrtf.texi: Mention the new module.
10675
10676 2011-10-08  Bruno Haible  <bruno@clisp.org>
10677
10678         Tests: Avoid link failures w.r.t. libintl.
10679         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10680         $(LIBINTL).
10681         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10682         $(LIBINTL).
10683         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10684         against $(LIBINTL).
10685         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10686         $(LIBINTL).
10687         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10688         $(LIBINTL).
10689         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10690
10691 2011-10-08  Bruno Haible  <bruno@clisp.org>
10692
10693         pow tests: Defeat compiler optimizations.
10694         * tests/test-pow.c (main): Assign arguments to x and y before use.
10695
10696 2011-10-08  Bruno Haible  <bruno@clisp.org>
10697
10698         gnulib-tool: Improve last commit.
10699         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10700         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10701         ignore dependencies that are not among the modules list.
10702
10703 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10704
10705         gnulib-tool: don't follow dependencies to avoided modules
10706         This fixes a bug that is related to the previous one.
10707         * gnulib-tool (func_modules_transitive_closure)
10708         (func_emit_autoconf_snippets):
10709         Check whether a dependency is acceptable before using it.
10710         (--extract-dependencies): Report an error if --avoid is also used,
10711         since this combination of options is not yet supported.
10712
10713         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10714         Problem reported by Peter Dyballa in
10715         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10716         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10717         when echoing "$condition".
10718
10719 2011-10-07  Bruno Haible  <bruno@clisp.org>
10720
10721         Fix documentation about math functions on MacOS X.
10722         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10723         MacOS X 10.5.
10724         * doc/posix-functions/fdim.texi: Likewise.
10725         * doc/posix-functions/feclearexcept.texi: Likewise.
10726         * doc/posix-functions/fegetenv.texi: Likewise.
10727         * doc/posix-functions/fegetround.texi: Likewise.
10728         * doc/posix-functions/feholdexcept.texi: Likewise.
10729         * doc/posix-functions/feraiseexcept.texi: Likewise.
10730         * doc/posix-functions/fesetenv.texi: Likewise.
10731         * doc/posix-functions/fesetround.texi: Likewise.
10732         * doc/posix-functions/fetestexcept.texi: Likewise.
10733         * doc/posix-functions/feupdateenv.texi: Likewise.
10734         * doc/posix-functions/fmax.texi: Likewise.
10735         * doc/posix-functions/fmin.texi: Likewise.
10736         * doc/posix-functions/log2.texi: Likewise.
10737         * doc/posix-functions/modff.texi: Likewise.
10738         * doc/posix-functions/nan.texi: Likewise.
10739         * doc/posix-functions/nanf.texi: Likewise.
10740         * doc/posix-functions/nextafterf.texi: Likewise.
10741         * doc/posix-functions/remquo.texi: Likewise.
10742
10743 2011-10-07  Bruno Haible  <bruno@clisp.org>
10744
10745         modff: Drop assumption about library that defines modff.
10746         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10747         AC_CHECK_FUNCS.
10748         * modules/modff (Files): Add m4/mathfunc.m4.
10749
10750 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10751
10752         raise tests: Avoid a GCC warning.
10753         * tests/test-raise.c (handler): Use _Noreturn.
10754
10755 2011-10-07  Bruno Haible  <bruno@clisp.org>
10756
10757         Tests for module 'ldexpf'.
10758         * modules/ldexpf-tests: New file.
10759         * tests/test-ldexpf.c: New file.
10760
10761         New module 'ldexpf'.
10762         * lib/math.in.h (ldexpf): New declaration.
10763         * lib/ldexpf.c: New file.
10764         * m4/ldexpf.m4: New file.
10765         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10767         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10768         * modules/ldexpf: New file.
10769         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10770         * doc/posix-functions/ldexpf.texi: Mention the new module.
10771
10772 2011-10-06  Bruno Haible  <bruno@clisp.org>
10773
10774         frexpf: Work around problems on IRIX and mingw.
10775         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10777         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10778         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10779         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10780         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10781         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10782
10783 2011-10-06  Bruno Haible  <bruno@clisp.org>
10784
10785         fabsf: Drop assumption about library that defines fabsf.
10786         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10787         AC_CHECK_FUNCS.
10788         * modules/fabsf (Files): Add m4/mathfunc.m4.
10789
10790 2011-10-06  Bruno Haible  <bruno@clisp.org>
10791
10792         frexpf: Drop assumption about library that defines frexpf.
10793         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10794         'int *', 'float *', 'long double *', 'float', 'long double'.
10795         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10796         AC_CHECK_FUNCS.
10797         * modules/frexpf (Files): Add m4/mathfunc.m4.
10798
10799         Tests for module 'frexpf'.
10800         * modules/frexpf-tests: New file.
10801         * tests/test-frexpf.c: New file.
10802
10803         New module 'frexpf'.
10804         * lib/math.in.h (frexpf): New declaration.
10805         * lib/frexpf.c: New file.
10806         * m4/frexpf.m4: New file.
10807         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10809         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10810         * modules/frexpf: New file.
10811         * tests/test-math-c++.cc: Check the declaration of frexpf.
10812         * doc/posix-functions/frexpf.texi: Mention the new module.
10813
10814 2011-10-06  Bruno Haible  <bruno@clisp.org>
10815
10816         math: Sort function declarations of math.in.h.
10817         * lib/math.in.h (frexp, logb): Move declarations.
10818
10819 2011-10-05  Bruno Haible  <bruno@clisp.org>
10820
10821         Tests for module 'modff'.
10822         * modules/modff-tests: New file.
10823         * tests/test-modff.c: New file.
10824
10825         New module 'modff'.
10826         * lib/math.in.h (modff): New declaration.
10827         * lib/modff.c: New file.
10828         * m4/modff.m4: New file.
10829         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10831         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10832         * modules/modff: New file.
10833         * tests/test-math-c++.cc: Check the declaration of modff.
10834         * doc/posix-functions/modff.texi: Mention the new module.
10835
10836         modf tests: Make test sharper.
10837         * tests/test-modf.c (main): Strengthen upper bound.
10838
10839         modf: Use a .m4 file.
10840         * m4/modf.m4: New file.
10841         * modules/modf (Files): Add it.
10842         (configure.ac): Just invoke gl_FUNC_MODF.
10843
10844 2011-10-05  Bruno Haible  <bruno@clisp.org>
10845
10846         Tests for module 'fmodf'.
10847         * modules/fmodf-tests: New file.
10848         * tests/test-fmodf.c: New file.
10849
10850         New module 'fmodf'.
10851         * lib/math.in.h (fmodf): New declaration.
10852         * lib/fmodf.c: New file.
10853         * m4/fmodf.m4: New file.
10854         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10856         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10857         * modules/fmodf: New file.
10858         * tests/test-math-c++.cc: Check the declaration of fmodf.
10859         * doc/posix-functions/fmodf.texi: Mention the new module.
10860
10861         fmod: Use a .m4 file.
10862         * m4/fmod.m4: New file.
10863         * modules/fmod (Files): Add it.
10864         (configure.ac): Just invoke gl_FUNC_FMOD.
10865
10866 2011-10-05  Bruno Haible  <bruno@clisp.org>
10867
10868         Tests for module 'fabsf'.
10869         * modules/fabsf-tests: New file.
10870         * tests/test-fabsf.c: New file.
10871
10872         New module 'fabsf'.
10873         * lib/math.in.h (fabsf): New declaration.
10874         * lib/fabsf.c: New file.
10875         * m4/fabsf.m4: New file.
10876         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10878         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10879         * modules/fabsf: New file.
10880         * tests/test-math-c++.cc: Check the declaration of fabsf.
10881         * doc/posix-functions/fabsf.texi: Mention the new module.
10882
10883         fabs: Use a .m4 file.
10884         * m4/fabs.m4: New file.
10885         * modules/fabs (Files): Add it.
10886         (configure.ac): Just invoke gl_FUNC_FABS.
10887
10888 2011-10-05  Jim Meyering  <meyering@redhat.com>
10889
10890         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10891         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10892         ls -lL regression introduced in coreutils-8.12, it does so at the
10893         cost of an additional stat call in the common case.  Besides, now
10894         that the kernel change that prompted commit 95f7c57f has been reverted
10895         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10896         we have no use for commit 95f7c57f, "file-has-acl: use
10897         acl_extended_file_nofollow if available".
10898
10899 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10900
10901         file-has-acl: revert unintended change in behavior of ls -L
10902         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10903         derived from...
10904         (file_has_acl): ...code here.  Call it.
10905         This problem was introduced with 2011-07-22 commit 95f7c57f,
10906         "file-has-acl: use acl_extended_file_nofollow if available".
10907         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10908
10909 2011-10-03  Bruno Haible  <bruno@clisp.org>
10910
10911         poll: Avoid link errors on MSVC.
10912         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10913         * modules/poll (Depends-on): Add sockets.
10914         (Link): New section.
10915         * NEWS: Mention the change.
10916         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10917         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10918         $(LIB_POLL) instead of $(LIBSOCKET).
10919
10920 2011-10-03  Bruno Haible  <bruno@clisp.org>
10921
10922         sys_select tests: Fix link error on MSVC 9.
10923         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10924         with $(LIB_SELECT) instead of $(LIBSOCKET).
10925
10926 2011-10-03  Bruno Haible  <bruno@clisp.org>
10927
10928         sys_select: Fix compilation error on mingw.
10929         * lib/sys_select.in.h: On native Windows, include <io.h>.
10930
10931 2011-10-03  Bruno Haible  <bruno@clisp.org>
10932
10933         wmemset: Support for MSVC.
10934         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10935         whether wmemset() exists.
10936
10937 2011-10-03  Bruno Haible  <bruno@clisp.org>
10938
10939         wmemmove: Support for MSVC.
10940         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10941         whether wmemmove() exists.
10942
10943 2011-10-03  Bruno Haible  <bruno@clisp.org>
10944
10945         wmemcpy: Support for MSVC.
10946         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10947         whether wmemcpy() exists.
10948
10949 2011-10-03  Bruno Haible  <bruno@clisp.org>
10950
10951         wmemcmp: Support for MSVC.
10952         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10953         whether wmemcmp() exists.
10954
10955 2011-10-03  Bruno Haible  <bruno@clisp.org>
10956
10957         wmemchr: Support for MSVC.
10958         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10959         whether wmemchr() exists.
10960
10961 2011-10-03  Bruno Haible  <bruno@clisp.org>
10962
10963         glthread/*, strsignal: Support for MSVC.
10964         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10965         including <winsock.h> on MSVC 9.
10966         * lib/glthread/lock.h: Likewise.
10967         * lib/glthread/thread.h: Likewise.
10968         * lib/glthread/tls.h: Likewise.
10969         * lib/glthread/yield.h: Likewise.
10970         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10971         if HAVE_UNISTD_H is false.
10972         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10973
10974 2011-10-03  Bruno Haible  <bruno@clisp.org>
10975
10976         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10977         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10978         Set to 100000.
10979
10980 2011-10-03  Bruno Haible  <bruno@clisp.org>
10981
10982         acl: Fix specification.
10983         * lib/file-has-acl.c (file_has_acl): Fix specification.
10984
10985 2011-10-03  Bruno Haible  <bruno@clisp.org>
10986
10987         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10988         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10989         (compute_curr_prefix, shared_library_fullname,
10990         find_shared_library_fullname, get_shared_library_fullname, relocate):
10991         Use it together with PIC && INSTALLDIR.
10992         Reported by <jojelino@gmail.com>
10993         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10994
10995 2011-10-01  Jim Meyering  <meyering@redhat.com>
10996
10997         maint.mk: adjust a release-related rule not to require use of gzip
10998         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10999         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11000         projects that build only .tar.xz files.  Also fix an erroneous test.
11001
11002         test-linkat: don't leave behind a temporary file
11003         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11004         Otherwise, coreutils' "make distcheck" would fail with this:
11005           Only in /c/cu/tests/torture/coreutils/test/\
11006             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11007           make[2]: *** [my-distcheck] Error 1
11008
11009         float, math: add omitted file
11010         * lib/itold.c: Add file, required for yesterday's float change.
11011
11012 2011-10-01  Bruno Haible  <bruno@clisp.org>
11013
11014         isinf: Fix for OpenBSD/x86.
11015         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11016         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11017         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11018
11019 2011-10-01  Bruno Haible  <bruno@clisp.org>
11020
11021         isfinite: Fix syntax error in configure test.
11022         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11023
11024         isfinite: Fix typo.
11025         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11026         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11027
11028 2011-10-01  Bruno Haible  <bruno@clisp.org>
11029
11030         nonblocking tests: Fix test failure on Linux/IA-64.
11031         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11032         Set to 270000.
11033
11034 2011-10-01  Bruno Haible  <bruno@clisp.org>
11035
11036         mkfifoat tests: Fix a test failure on mingw.
11037         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11038         with error ENOSYS.
11039
11040 2011-09-30  Bruno Haible  <bruno@clisp.org>
11041
11042         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11043         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11044         'long double'. Set REPLACE_ITOLD.
11045         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11046         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11047         * lib/itold.c: New file.
11048         * modules/float (Files): Add lib/itold.c.
11049         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11050         (Makefile.am): Substitute REPLACE_ITOLD.
11051         * modules/math (Depends-on): Add float.
11052         (Makefile.am): Substitute REPLACE_ITOLD.
11053         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11054         * doc/posix-headers/math.texi: Likewise.
11055         * doc/posix-functions/logl.texi: Likewise.
11056
11057 2011-09-30  Bruno Haible  <bruno@clisp.org>
11058
11059         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11060         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11061         Set to 140000.
11062
11063 2011-09-30  Bruno Haible  <bruno@clisp.org>
11064
11065         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11066         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11067         invocation, say "right after AC_PROG_CC_STDC", not "right after
11068         AC_PROG_CC".
11069         Reported by Gary V. Vaughan <gary@gnu.org>.
11070
11071 2011-09-30  Bruno Haible  <bruno@clisp.org>
11072
11073         Centralize C99 requirement.
11074         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11075         * modules/stdarg (configure.ac-early): Invoke it instead of
11076         AC_PROG_CC_STDC.
11077         Reported by Gary V. Vaughan and Paul Eggert.
11078
11079 2011-09-29  Bruno Haible  <bruno@clisp.org>
11080
11081         float: Fix LDBL_MAX value on Linux/PowerPC.
11082         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11083         on Linux/PowerPC.
11084         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11085         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11086         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11087         platform.
11088         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11089
11090 2011-09-29  Bruno Haible  <bruno@clisp.org>
11091
11092         doc: Improve doc about gl_EARLY.
11093         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11094         AC_PROG_CC_STDC invocation.
11095         Reported by Gary V. Vaughan <gary@gnu.org>.
11096
11097 2011-09-28  Bruno Haible  <bruno@clisp.org>
11098
11099         fgetc, fputc, fread, fwrite tests: Fix link error.
11100         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11101         on non-MSVC platforms.
11102         * tests/test-fputc.c (main): Likewise.
11103         * tests/test-fread.c (main): Likewise.
11104         * tests/test-fwrite.c (main): Likewise.
11105         Reported by Jim Meyering.
11106
11107 2011-09-27  Bruno Haible  <bruno@clisp.org>
11108
11109         fputc, fwrite tests: Avoid test failure on MSVC.
11110         * tests/test-fgetc.c: Include msvc-inval.h.
11111         (main): Invoke gl_msvc_inval_ensure_handler.
11112         * tests/test-fputc.c: Include msvc-inval.h.
11113         (main): Invoke gl_msvc_inval_ensure_handler.
11114         * tests/test-fread.c: Include msvc-inval.h.
11115         (main): Invoke gl_msvc_inval_ensure_handler.
11116         * tests/test-fwrite.c: Include msvc-inval.h.
11117         (main): Invoke gl_msvc_inval_ensure_handler.
11118         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11119         * modules/fputc-tests (Depends-on): Likewise.
11120         * modules/fread-tests (Depends-on): Likewise.
11121         * modules/fwrite-tests (Depends-on): Likewise.
11122
11123 2011-09-27  Bruno Haible  <bruno@clisp.org>
11124
11125         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11126         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11127         (raise): Remove older, duplicated declaration.
11128         (_gl_raise_SIGPIPE): New declaration.
11129         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11130         (rpl_raise): Remove function.
11131         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11132         a gnulib-defined SIGPIPE here.
11133         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11134         'sigprocmask' has detected missing signal-blocking and the module
11135         'sigpipe' is enabled.
11136         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11137
11138 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11139
11140         base64-tests: avoid memory leak
11141         * tests/test-base64.c (main): Plug memory leak.
11142
11143         base32: new module
11144         * modules/base32: New module.
11145         * lib/base32.c: New file.
11146         * lib/base32.h: Likewise.
11147         * m4/base32.m4: Likewise.
11148         * modules/base32-tests: New test.
11149         * tests/test-base32.c: Likewise.
11150         * MODULES.html.sh (Misc): Mention it.
11151
11152 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11153
11154         gnulib: use more-standard license notice wording
11155         * gnulib-tool (func_emit_copyright_notice): When emitting a
11156         license notice into a file, use the standard wording as suggested
11157         by the current information for GNU maintainers, except say "file"
11158         rather than "program".  The new wording gives a license version
11159         number, which addresses an issue raised by Glenn Morris in
11160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11161         * m4/onceonly.m4: Use that same wording here, too.
11162
11163         dup2: minor simplification
11164         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11165         as lib/dup2.c no longer uses 'inline'.
11166
11167 2011-09-25  Bruno Haible  <bruno@clisp.org>
11168
11169         strings: Fix compilation error on MSVC.
11170         * lib/strings.in.h: Include <stddef.h> for size_t.
11171
11172 2011-09-25  Bruno Haible  <bruno@clisp.org>
11173
11174         fflush et al.: Document limitation on MSVC.
11175         * doc/posix-functions/fflush.texi: Document possible crash in handling
11176         mode other than DEFAULT_HANDLING.
11177         * doc/posix-functions/fgetc.texi: Likewise.
11178         * doc/posix-functions/fputc.texi: Likewise.
11179         * doc/posix-functions/fread.texi: Likewise.
11180         * doc/posix-functions/fwrite.texi: Likewise.
11181
11182 2011-09-25  Bruno Haible  <bruno@clisp.org>
11183
11184         msvc-inval: Allow three invalid parameter handling modes.
11185         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11186         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11187         macros.
11188         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11189         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11190         SANE_LIBRARY_HANDLING as a no-op.
11191         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11192         <stdlib.h>.
11193         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11194
11195 2011-09-25  Bruno Haible  <bruno@clisp.org>
11196
11197         msvc-inval: Make handler multithread-safe.
11198         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11199         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11200         declarations.
11201         (gl_msvc_inval_current): New declaration.
11202         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11203         Operate on the structure returned by gl_msvc_inval_current().
11204         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11205         Remove varaiables.
11206         (tls_index, tls_initialized): New variables.
11207         (not_per_thread): New variable.
11208         (gl_msvc_inval_current): New function.
11209         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11210         returned by gl_msvc_inval_current().
11211
11212 2011-09-25  Bruno Haible  <bruno@clisp.org>
11213
11214         msvc-inval: Install handler globally.
11215         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11216         !_MSC_VER.
11217         (gl_msvc_invalid_parameter_handler): Remove declaration.
11218         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11219         declarations.
11220         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11221         Install the handler globally, don't uninstall it.
11222         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11223         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11224         currently valid, call RaiseException instead.
11225         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11226         for !_MSC_VER.
11227
11228 2011-09-25  Bruno Haible  <bruno@clisp.org>
11229
11230         strerror_r-posix: Fix for MSVC 9.
11231         * lib/strerror_r.c (local_snprintf): New function.
11232         (snprintf): Define to local_snprintf, not to _snprintf.
11233
11234 2011-09-25  Bruno Haible  <bruno@clisp.org>
11235
11236         ftruncate: Support for MSVC 9.
11237         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11238         (chsize_nothrow): New function.
11239         (chsize): Redefine as a macro.
11240         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11241         * modules/ftruncate (Depends-on): Add msvc-inval.
11242
11243 2011-09-25  Bruno Haible  <bruno@clisp.org>
11244
11245         New module 'fstat'.
11246         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11247         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11248         * lib/fchdir.c (rpl_fstat): Remove function.
11249         * m4/fstat.m4: New file.
11250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11251         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11252         declared.
11253         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11254         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11255         * modules/fstat: New file.
11256         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11257         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11258         is set.
11259         * doc/posix-functions/fstat.texi: Mention the new module and the
11260         problem on MSVC.
11261         * NEWS: Mention the change.
11262         * modules/acl (Depends-on): Add fstat.
11263         * modules/chdir-safer (Depends-on): Likewise.
11264         * modules/chown (Depends-on): Likewise.
11265         * modules/copy-file (Depends-on): Likewise.
11266         * modules/fchdir (Depends-on): Likewise.
11267         * modules/fdopendir (Depends-on): Likewise.
11268         * modules/fopen (Depends-on): Likewise.
11269         * modules/fts (Depends-on): Likewise.
11270         * modules/getcwd (Depends-on): Likewise.
11271         * modules/isapipe (Depends-on): Likewise.
11272         * modules/linkat (Depends-on): Likewise.
11273         * modules/lseek (Depends-on): Likewise.
11274         * modules/mkdir-p (Depends-on): Likewise.
11275         * modules/open (Depends-on): Likewise.
11276         * modules/openat (Depends-on): Likewise.
11277         * modules/read-file (Depends-on): Likewise.
11278         * modules/renameat (Depends-on): Likewise.
11279         * modules/utimens (Depends-on): Likewise.
11280
11281 2011-09-25  Bruno Haible  <bruno@clisp.org>
11282
11283         linkat: Fix compilation on MSVC 9.
11284         * lib/linkat.c: Don't include <stdint.h>.
11285
11286 2011-09-25  Bruno Haible  <bruno@clisp.org>
11287
11288         fclose: Support for MSVC 9.
11289         * lib/fclose.c: Include msvc-inval.h.
11290         (fclose_nothrow): New function.
11291         (rpl_fclose): Use it.
11292         * modules/fclose (Depends-on): Add msvc-inval.
11293         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11294
11295 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11296
11297         dup2: minor simplifications
11298         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11299         that it's a performance win.
11300         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11301         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11302
11303 2011-09-24  Jim Meyering  <meyering@redhat.com>
11304
11305         test-futimens: avoid a warning from gcc -Wshadow
11306         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11307         to avoid a shadowing warning.
11308
11309 2011-09-24  Bruno Haible  <bruno@clisp.org>
11310
11311         fdopen: Support for MSVC 9.
11312         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11313         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11314         * lib/fdopen.c: Include msvc-inval.h.
11315         (fdopen_nothrow): New function.
11316         (rpl_fdopen): Use it.
11317         * modules/fdopen (Depends-on): Add msvc-inval.
11318         * modules/fclose-tests (Depends-on): Add fdopen.
11319         * modules/fflush-tests (Depends-on): Likewise.
11320         * modules/fgetc-tests (Depends-on): Likewise.
11321         * modules/fputc-tests (Depends-on): Likewise.
11322         * modules/fread-tests (Depends-on): Likewise.
11323         * modules/freopen-tests (Depends-on): Likewise.
11324         * modules/fseeko-tests (Depends-on): Likewise.
11325         * modules/ftello-tests (Depends-on): Likewise.
11326         * modules/fwrite-tests  (Depends-on): Likewise.
11327         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11328
11329 2011-09-24  Bruno Haible  <bruno@clisp.org>
11330
11331         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11332         * modules/fgetc-tests (Depends-on): Add unistd.
11333         * modules/fputc-tests (Depends-on): Likewise.
11334         * modules/fread-tests (Depends-on): Likewise.
11335         * modules/fwrite-tests (Depends-on): Likewise.
11336
11337 2011-09-24  Bruno Haible  <bruno@clisp.org>
11338
11339         dup: Simplify autoconf test.
11340         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11341         on gl_MSVC_INVAL's result.
11342
11343 2011-09-24  Bruno Haible  <bruno@clisp.org>
11344
11345         Tests for function fwrite().
11346         * modules/fwrite-tests: New file.
11347         * tests/test-fwrite.c: New file.
11348         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11349
11350         Tests for function fread().
11351         * modules/fread-tests: New file.
11352         * tests/test-fread.c: New file.
11353         * modules/stdio-tests (Depends-on): Add fread-tests.
11354
11355         Activate fputc tests.
11356         * modules/stdio-tests (Depends-on): Add fputc-tests.
11357
11358         Enhance fgetc, fputc tests.
11359         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11360         * tests/test-fputc.c (main): Likewise.
11361
11362 2011-09-24  Bruno Haible  <bruno@clisp.org>
11363
11364         write: Support for MSVC 9.
11365         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11366         is not 1.
11367         * lib/write.c (write_nothrow): New function.
11368         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11369         not 1. Use write_nothrow.
11370         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11371         invalid parameter handler.
11372         (gl_PREREQ_WRITE): New macro.
11373         * modules/write (Depends-on): Add msvc-inval.
11374         (configure.ac): Invoke gl_PREREQ_WRITE.
11375         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11376
11377 2011-09-24  Bruno Haible  <bruno@clisp.org>
11378
11379         read: Fix last commit.
11380         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11381
11382 2011-09-24  Bruno Haible  <bruno@clisp.org>
11383
11384         dup2: Fix last commit.
11385         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11386         (rpl_dup2): Disable fcntl workaround on native Windows.
11387
11388         sigprocmask: Make code safer.
11389         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11390         section that changes macro definitions for this compilation unit.
11391
11392 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11393
11394         dup2: clarify by coalescing Windows-specific material
11395         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11396         "msvc-nothrow.h"' to the Windows-specific section, so that the
11397         Emacs source need not contain these include files.
11398         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11399         Windows-specific fixes into this function rather than just the
11400         nothrow fix, as this shortens and clarifies the code.  Always
11401         define as a function, as that's a bit cleaner than having it be
11402         sometimes a function and sometimes a macro.
11403         (rpl_dup2): Move the Windows-specific stuff out of here and into
11404         ms_windows_dup2.  Don't protect the Haiku-related fix with
11405         "#if !defined __linux__", as the same code also works around
11406         a Linux kernel bug, and it doesn't add any system calls on any
11407         platform.  Add comment about FreeBSD 6.1.
11408
11409         sigprocmask: move #include directive
11410         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11411         Windows-specific section, so that the Emacs source need not
11412         contain msvc-inval.h.
11413
11414 2011-09-23  Bruno Haible  <bruno@clisp.org>
11415
11416         read: Support for MSVC 9.
11417         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11418         is not 1.
11419         * lib/read.c (read_nothrow): New function.
11420         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11421         read_nothrow.
11422         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11423         invalid parameter handler.
11424         (gl_PREREQ_READ): New macro.
11425         * modules/read (Depends-on): Add msvc-inval.
11426         (configure.ac): Invoke gl_PREREQ_READ.
11427         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11428
11429 2011-09-23  Bruno Haible  <bruno@clisp.org>
11430
11431         close: Support for MSVC 9.
11432         * lib/close.c: Include <errno.h>, msvc-inval.h.
11433         (close_nothrow): New function.
11434         (rpl_close): Use it.
11435         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11436         invalid parameter handler.
11437         * modules/close (Depends-on): Add msvc-inval.
11438         * modules/dup2-tests (Depends-on): Add close.
11439         * modules/dup3-tests (Depends-on): Likewise.
11440         * modules/fcntl-tests (Depends-on): Likewise.
11441         * modules/spawn-pipe-tests (Depends-on): Likewise.
11442         * modules/unistd-safer-tests (Depends-on): Likewise.
11443         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11444
11445 2011-09-23  Bruno Haible  <bruno@clisp.org>
11446
11447         New module 'dup'.
11448         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11449         Allow replacement.
11450         * lib/dup.c: New file.
11451         * lib/fchdir.c (rpl_dup): Remove function.
11452         * m4/dup.m4: New file.
11453         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11454         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11455         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11456         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11457         * modules/dup: New file.
11458         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11459         'dup' module is in use.
11460         * modules/fdopendir (Depends-on): Add dup.
11461         * modules/fdutimensat-tests (Depends-on): Likewise.
11462         * modules/fts (Depends-on): Likewise.
11463         * modules/futimens-tests (Depends-on): Likewise.
11464         * modules/posix_spawnp-tests (Depends-on): Likewise.
11465         * modules/unistd-safer-tests (Depends-on): Likewise.
11466         * modules/utimens-tests (Depends-on): Likewise.
11467         * doc/posix-functions/dup.texi: Mention the new module and the problem
11468         on MSVC.
11469
11470 2011-09-23  Bruno Haible  <bruno@clisp.org>
11471
11472         getdtablesize: Support for MSVC 9.
11473         * lib/getdtablesize.c: Include msvc-inval.h.
11474         (_setmaxstdio_nothrow): New function.
11475         (_setmaxstdio): Redefine it.
11476         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11477         * modules/getdtablesize (Depends-on): Add msvc-inval.
11478         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11479
11480 2011-09-23  Bruno Haible  <bruno@clisp.org>
11481
11482         signal-h: Rename from signal.
11483         * modules/signal-h: Renamed from modules/signal.
11484         * modules/pthread_sigmask (Depends-on): Update.
11485         * modules/raise (Depends-on): Likewise.
11486         * modules/sigaction (Depends-on): Likewise.
11487         * modules/sigpipe (Depends-on): Likewise.
11488         * modules/sigprocmask (Depends-on): Likewise.
11489         * modules/sys_select (Depends-on): Likewise.
11490         * modules/signal-h-tests: Renamed from modules/signal-tests.
11491         (Files, Depends-on, Makefile.am): Update.
11492         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11493         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11494         (Files, Makefile.am): Update.
11495         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11496         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11497         * modules/signal: New placeholder file.
11498         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11499         * doc/posix-headers/signal.texi: Update.
11500         * NEWS: Mention the change.
11501
11502 2011-09-23  Bruno Haible  <bruno@clisp.org>
11503
11504         sigprocmask: Avoid crashes through signal() on MSVC 9.
11505         * lib/sigprocmask.c: Include msvc-inval.h.
11506         (signal_nothrow): New function.
11507         (signal): Redefine it.
11508         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11509         * modules/sigprocmask (Depends-on): Add msvc-inval.
11510         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11511
11512 2011-09-23  Bruno Haible  <bruno@clisp.org>
11513
11514         Tests for module 'raise'.
11515         * modules/raise-tests: New file.
11516         * tests/test-raise.c: New file.
11517
11518         raise: Support for MSVC.
11519         * lib/signal.in.h (raise): New declaration.
11520         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11521         for native Windows platforms.
11522         * m4/raise.m4: New file.
11523         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11524         HAVE_RAISE, REPLACE_RAISE.
11525         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11526         REPLACE_RAISE.
11527         * modules/raise (Status, Notice): Remove fields.
11528         (Files): Add m4/raise.m4.
11529         (Depends-on): Add signal, msvc-inval.
11530         (configure.ac): Use the common idioms.
11531         (Maintainer): Add me.
11532         * tests/test-signal-c++.cc: Check the signature of raise.
11533         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11534
11535 2011-09-23  Bruno Haible  <bruno@clisp.org>
11536
11537         pipe2: Fix compilation on pre-C99 compilers.
11538         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11539
11540 2011-09-23  Bruno Haible  <bruno@clisp.org>
11541
11542         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11543         * lib/msvc-nothrow.h: New file.
11544         * lib/msvc-nothrow.c: New file.
11545         * m4/msvc-nothrow.m4: New file.
11546         * modules/msvc-nothrow: New file.
11547         * lib/dup2.c: Include msvc-nothrow.h.
11548         (rpl_dup2): No need to protect _get_osfhandle call here.
11549         * lib/accept4.c: Include msvc-nothrow.h.
11550         * lib/error.c: Likewise.
11551         * lib/fcntl.c: Likewise.
11552         * lib/lseek.c: Likewise.
11553         * lib/nonblocking.c: Likewise.
11554         * lib/poll.c: Likewise.
11555         * lib/read.c: Likewise.
11556         * lib/select.c: Likewise.
11557         * lib/sockets.h: Likewise.
11558         * lib/sockets.c: Likewise.
11559         * lib/stdio-read.c: Likewise.
11560         * lib/stdio-write.c: Likewise.
11561         * lib/write.c: Likewise.
11562         * lib/w32sock.h: Likewise.
11563         * lib/w32spawn.h: Likewise.
11564         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11565         * lib/fsync.c: Likewise.
11566         * lib/isapipe.c: Likewise.
11567         * modules/dup2 (Depends-on): Add msvc-nothrow.
11568         * modules/accept4 (Depends-on): Likewise.
11569         * modules/error (Depends-on): Likewise.
11570         * modules/fcntl (Depends-on): Likewise.
11571         * modules/lseek (Depends-on): Likewise.
11572         * modules/nonblocking (Depends-on): Likewise.
11573         * modules/poll (Depends-on): Likewise.
11574         * modules/read (Depends-on): Likewise.
11575         * modules/select (Depends-on): Likewise.
11576         * modules/sockets (Depends-on): Likewise.
11577         * modules/sigpipe (Depends-on): Likewise.
11578         * modules/write (Depends-on): Likewise.
11579         * modules/accept (Depends-on): Likewise.
11580         * modules/bind (Depends-on): Likewise.
11581         * modules/connect (Depends-on): Likewise.
11582         * modules/gethostname (Depends-on): Likewise.
11583         * modules/getpeername (Depends-on): Likewise.
11584         * modules/getsockname (Depends-on): Likewise.
11585         * modules/getsockopt (Depends-on): Likewise.
11586         * modules/ioctl (Depends-on): Likewise.
11587         * modules/listen (Depends-on): Likewise.
11588         * modules/recv (Depends-on): Likewise.
11589         * modules/recvfrom (Depends-on): Likewise.
11590         * modules/send (Depends-on): Likewise.
11591         * modules/sendto (Depends-on): Likewise.
11592         * modules/setsockopt (Depends-on): Likewise.
11593         * modules/shutdown (Depends-on): Likewise.
11594         * modules/socket (Depends-on): Likewise.
11595         * modules/execute (Depends-on): Likewise.
11596         * modules/spawn-pipe (Depends-on): Likewise.
11597         * modules/flock (Depends-on): Likewise.
11598         * modules/fsync (Depends-on): Likewise.
11599         * modules/isapipe (Depends-on): Likewise.
11600         * tests/test-cloexec.c: Include msvc-nothrow.h.
11601         * tests/test-dup-safer.c: Likewise.
11602         * tests/test-dup2.c: Likewise.
11603         * tests/test-dup3.c: Likewise.
11604         * tests/test-fcntl.c: Likewise.
11605         * tests/test-pipe.c: Likewise.
11606         * tests/test-pipe2.c: Likewise.
11607         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11608         * modules/unistd-safer-tests (Depends-on): Likewise.
11609         * modules/dup2-tests (Depends-on): Likewise.
11610         * modules/dup3-tests (Depends-on): Likewise.
11611         * modules/fcntl-tests (Depends-on): Likewise.
11612         * modules/pipe-posix-tests (Depends-on): Likewise.
11613         * modules/pipe2-tests (Depends-on): Likewise.
11614
11615 2011-09-23  Bruno Haible  <bruno@clisp.org>
11616
11617         dup2: Make code more maintainable.
11618         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11619         (rpl_dup2): Use it.
11620         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11621         * modules/dup2 (configure.ac): Invoke it.
11622         Reported by Paul Eggert.
11623
11624 2011-09-23  Bruno Haible  <bruno@clisp.org>
11625
11626         msvc-inval: Fix compilation error.
11627         * lib/msvc-inval.h: Include <excpt.h>.
11628
11629 2011-09-23  Bruno Haible  <bruno@clisp.org>
11630
11631         mkdir: Tweak for MSVC 9.
11632         * lib/sys_stat.in.h: Update comments.
11633         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11634
11635         Tests for module 'chdir'.
11636         * modules/chdir-tests: New file.
11637         * tests/test-chdir.c: New file.
11638
11639         New module 'chdir'.
11640         * modules/chdir: New file.
11641         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11642         (chdir): New declaration.
11643         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11644         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11645         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11646         * tests/test-unistd-c++.cc: Check signature of chdir.
11647         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11648         * modules/chdir-long (Depends-on): Add chdir.
11649         * modules/fchdir (Depends-on): Likewise.
11650         * modules/rename (Depends-on): Likewise.
11651         * modules/savewd (Depends-on): Likewise.
11652
11653         rmdir: Support for mingw, MSVC 9.
11654         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11655         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11656
11657         getcwd: Tweak for MSVC 9.
11658         * lib/unistd.in.h: Update comments.
11659         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11660
11661 2011-09-22  Bruno Haible  <bruno@clisp.org>
11662
11663         strerror_r-posix: Avoid a link error on MSVC.
11664         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11665         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11666
11667 2011-09-22  Bruno Haible  <bruno@clisp.org>
11668
11669         select: Avoid link errors on MSVC.
11670         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11671         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11672         * modules/pselect (Link): Likewise.
11673         * NEWS: Mention the change.
11674         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11675         test-select-stdin against $(LIB_SELECT).
11676         * modules/pselect-tests (Makefile.am): Link test-pselect against
11677         $(LIB_SELECT).
11678
11679 2011-09-22  Bruno Haible  <bruno@clisp.org>
11680
11681         select: Avoid compilation error on MSVC.
11682         * lib/select.c: Don't include <stdbool.h>.
11683
11684 2011-09-21  Bruno Haible  <bruno@clisp.org>
11685
11686         Consolidate all uses of PATH_MAX in *.m4 files.
11687         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11688         macros.
11689         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11690         and gl_PATHMAX_SNIPPET.
11691         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11693         * modules/chdir-long (Files): Add m4/pathmax.m4.
11694         * modules/getcwd (Files): Likewise.
11695
11696 2011-09-21  Bruno Haible  <bruno@clisp.org>
11697
11698         ftruncate: Un-deprecate, concentrate on Win32 support.
11699         * modules/ftruncate (Status, Notice): Remove sections.
11700         (Depends-on): Add largefile.
11701         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11702         non-mingw platforms.
11703         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11704         include <io.h>.
11705         * modules/perror-tests (Depends-on): Add ftruncate.
11706         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11707         'ftruncate' module.
11708
11709 2011-09-21  Bruno Haible  <bruno@clisp.org>
11710
11711         Add dependencies to new dirent related modules.
11712         * modules/opendir (Depends-on): Add closedir.
11713         * modules/getcwd (Depends-on): Add opendir, closedir.
11714         * modules/dirent-safer-tests (Depends-on): Likewise.
11715         * modules/fdopendir-tests (Depends-on): Likewise.
11716         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11717         * modules/renameat-tests (Depends-on): Likewise.
11718
11719 2011-09-21  Bruno Haible  <bruno@clisp.org>
11720
11721         opendir: Avoid compilation error on mingw.
11722         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11723         * modules/opendir (Depends-on): Add unistd.
11724
11725 2011-09-21  Bruno Haible  <bruno@clisp.org>
11726
11727         ftruncate tests: Avoid a test failure on mingw.
11728         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11729
11730 2011-09-21  Bruno Haible  <bruno@clisp.org>
11731
11732         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11733         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11734         native Windows.
11735
11736 2011-09-21  Bruno Haible  <bruno@clisp.org>
11737
11738         New module 'fdopen'.
11739         * lib/stdio.in.h (fdopen): New declaration.
11740         * lib/fdopen.c: New file.
11741         * m4/fdopen.m4: New file.
11742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11743         REPLACE_FDOPEN.
11744         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11745         REPLACE_FDOPEN.
11746         * modules/fdopen: New file.
11747         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11748         * tests/test-stdio-c++.cc: Check signature of fdopen.
11749         * doc/posix-functions/fdopen.texi: Mention the new module.
11750
11751 2011-09-21  Bruno Haible  <bruno@clisp.org>
11752
11753         unlockpt tests: Avoid test failure on NetBSD 5.1.
11754         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11755         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11756
11757 2011-09-21  Bruno Haible  <bruno@clisp.org>
11758
11759         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11760         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11761         * tests/test-getlogin_r.c (main): Likewise.
11762
11763 2011-09-20  Bruno Haible  <bruno@clisp.org>
11764
11765         time tests: Don't require pid_t.
11766         * doc/posix-headers/time.texi: Revert last change.
11767         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11768         * tests/test-time.c: Comment out the check for pid_t.
11769
11770 2011-09-20  Bruno Haible  <bruno@clisp.org>
11771
11772         fsync tests: Avoid a test failure on mingw.
11773         * tests/test-fsync.c (main): Allow a failure with EIO.
11774
11775 2011-09-20  Bruno Haible  <bruno@clisp.org>
11776
11777         euidaccess: Update comments.
11778         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11779
11780 2011-09-20  Bruno Haible  <bruno@clisp.org>
11781
11782         Ensure EBADF returns for socket functions on mingw.
11783         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11784         descriptor is invalid.
11785         * lib/bind.c (rpl_bind): Likewise.
11786         * lib/connect.c (rpl_connect): Likewise.
11787         * lib/getpeername.c (rpl_getpeername): Likewise.
11788         * lib/getsockname.c (rpl_getsockname): Likewise.
11789         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11790         * lib/listen.c (rpl_listen): Likewise.
11791         * lib/recv.c (rpl_recv): Likewise.
11792         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11793         * lib/send.c (rpl_send): Likewise.
11794         * lib/sendto.c (rpl_sendto): Likewise.
11795         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11796         * lib/shutdown.c (rpl_shutdown): Likewise.
11797
11798 2011-09-20  Bruno Haible  <bruno@clisp.org>
11799
11800         select tests: EBADF tests.
11801         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11802         test_bad_fd): New functions.
11803         (test_function): Invoke also test_bad_fd.
11804
11805 2011-09-20  Bruno Haible  <bruno@clisp.org>
11806
11807         Tests for module 'posix_spawn_file_actions_addopen.
11808         * modules/posix_spawn_file_actions_addopen-tests: New file.
11809         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11810
11811         Tests for module 'posix_spawn_file_actions_adddup2'.
11812         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11813         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11814
11815         Tests for module 'posix_spawn_file_actions_addclose'.
11816         * modules/posix_spawn_file_actions_addclose-tests: New file.
11817         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11818
11819 2011-09-20  Bruno Haible  <bruno@clisp.org>
11820
11821         Tests for module 'unlockpt'.
11822         * modules/unlockpt-tests: New file.
11823         * tests/test-unlockpt.c: New file.
11824         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11825
11826         Tests for module 'grantpt'.
11827         * modules/grantpt-tests: New file.
11828         * tests/test-grantpt.c: New file.
11829         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11830
11831 2011-09-20  Bruno Haible  <bruno@clisp.org>
11832
11833         freopen tests: EBADF tests.
11834         * tests/test-freopen.c: Include errno.h, unistd.h.
11835         (main): Add tests for EBADF, commented out for the moment.
11836
11837         fclose tests: EBADF tests.
11838         * tests/test-fclose.c (main): Add tests for EBADF.
11839
11840         fflush tests: EBADF tests.
11841         * tests/test-fflush.c: Include errno.h, macros.h.
11842         (main): Add tests for EBADF.
11843
11844         ftello tests: EBADF tests.
11845         * tests/test-ftello4.sh: New file.
11846         * tests/test-ftello4.c: New file.
11847         * modules/ftello-tests (Files): Add them.
11848         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11849
11850         fseeko tests: EBADF tests.
11851         * tests/test-fseeko4.sh: New file.
11852         * tests/test-fseeko4.c: New file.
11853         * modules/fseeko-tests (Files): Add them.
11854         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11855
11856         Tests for function fputc().
11857         * modules/fputc-tests: New file.
11858         * tests/test-fputc.c: New file.
11859         * modules/stdio-tests (Depends-on): Add fputc-tests.
11860
11861         Tests for function fgetc().
11862         * modules/fgetc-tests: New file.
11863         * tests/test-fgetc.c: New file.
11864         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11865
11866         Tests for function fdopen().
11867         * modules/fdopen-tests: New file.
11868         * tests/test-fdopen.c: New file.
11869         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11870
11871         Tests for module 'vdprintf'.
11872         * modules/vdprintf-tests: New file.
11873         * tests/test-vdprintf.c: New file.
11874
11875         Tests for module 'dprintf'.
11876         * modules/dprintf-tests: New file.
11877         * tests/test-dprintf.c: New file.
11878
11879 2011-09-20  Bruno Haible  <bruno@clisp.org>
11880
11881         Tests for module 'ioctl'.
11882         * modules/ioctl-tests: New file.
11883         * tests/test-ioctl.c: New file.
11884
11885 2011-09-20  Bruno Haible  <bruno@clisp.org>
11886
11887         fcntl tests: EBADF tests.
11888         * tests/test-fcntl.c (main): Add more tests for EBADF.
11889
11890 2011-09-20  Bruno Haible  <bruno@clisp.org>
11891
11892         utimensat tests: EBADF tests.
11893         * tests/test-utimensat.c (main): Add tests for EBADF.
11894
11895         renameat tests: EBADF tests.
11896         * tests/test-renameat.c (main): Add tests for EBADF.
11897
11898         mkfifoat tests: EBADF tests.
11899         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11900
11901         readlinkat tests: EBADF tests.
11902         * tests/test-readlinkat.c (main): Add tests for EBADF.
11903
11904         symlinkat tests: EBADF tests.
11905         * tests/test-symlinkat.c (main): Add tests for EBADF.
11906
11907         linkat tests: EBADF tests.
11908         * tests/test-linkat.c (main): Add tests for EBADF.
11909
11910         Tests for module 'faccessat'.
11911         * modules/faccessat-tests: New file.
11912         * tests/test-faccessat.c: New file.
11913
11914         fdopendir tests: EBADF tests.
11915         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11916
11917         openat tests: EBADF tests.
11918         * tests/test-fchownat.c (main): Add tests for EBADF.
11919         * tests/test-fstatat.c (main): Likewise.
11920         * tests/test-mkdirat.c (main): Likewise.
11921         * tests/test-openat.c (main): Likewise.
11922         * tests/test-unlinkat.c (main): Likewise.
11923         * tests/test-fchmodat.c: New file.
11924         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11925         (Makefile.am): Also run 'test-fchmodat'.
11926
11927 2011-09-20  Bruno Haible  <bruno@clisp.org>
11928
11929         utimens, futimens, fdutimensat tests: EBADF tests.
11930         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11931
11932         Tests for function fstat().
11933         * modules/fstat-tests: New file.
11934         * tests/test-fstat.c: New file.
11935         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11936
11937 2011-09-20  Bruno Haible  <bruno@clisp.org>
11938
11939         test-ttyname_r tests: EBADF tests.
11940         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11941
11942         Tests for module 'isatty'.
11943         * modules/isatty-tests: New file.
11944         * tests/test-isatty.c: New file.
11945
11946         Tests for module 'write'.
11947         * modules/write-tests: New file.
11948         * tests/test-write.c: New file.
11949
11950         Tests for module 'read'.
11951         * modules/read-tests: New file.
11952         * tests/test-read.c: New file.
11953
11954         pwrite tests: EBADF tests.
11955         * tests/test-pwrite.c (main): Add tests for EBADF.
11956
11957         pread tests: EBADF tests.
11958         * tests/test-pread.c (main): Add tests for EBADF.
11959
11960         lseek tests: EBADF tests.
11961         * tests/test-lseek.c (main): Add more tests for EBADF.
11962
11963         Tests for module 'ftruncate'.
11964         * modules/ftruncate-tests: New file.
11965         * tests/test-ftruncate.sh: New file.
11966         * tests/test-ftruncate.c: New file.
11967
11968         fsync tests: EBADF tests.
11969         * tests/test-fsync.c (main): Add more tests for EBADF.
11970
11971         fdatasync tests: EBADF tests.
11972         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11973
11974         Tests for module 'fchown'.
11975         * modules/fchown-tests: New file.
11976         * tests/test-fchown.c: New file.
11977
11978         Tests for module 'fchmod'.
11979         * modules/fchmod-tests: New file.
11980         * tests/test-fchmod.c: New file.
11981
11982         fchdir tests: EBADF tests.
11983         * tests/test-fchdir.c (main): Add more tests for EBADF.
11984
11985         dup2 tests: EBADF tests.
11986         * tests/test-dup2.c (main): Add more tests for EBADF.
11987
11988         Tests for module 'dup'.
11989         * modules/dup-tests: New file.
11990         * tests/test-dup.c: New file.
11991
11992         Tests for module 'close'.
11993         * modules/close-tests: New file.
11994         * tests/test-close.c: New file.
11995
11996 2011-09-20  Bruno Haible  <bruno@clisp.org>
11997
11998         Tests for module 'shutdown'.
11999         * modules/shutdown-tests: New file.
12000         * tests/test-shutdown.c: New file.
12001
12002         Tests for module 'setsockopt'.
12003         * modules/setsockopt-tests: New file.
12004         * tests/test-setsockopt.c: New file.
12005
12006         Tests for module 'sendto'.
12007         * modules/sendto-tests: New file.
12008         * tests/test-sendto.c: New file.
12009
12010         Tests for module 'send'.
12011         * modules/send-tests: New file.
12012         * tests/test-send.c: New file.
12013
12014         Tests for module 'recvfrom'.
12015         * modules/recvfrom-tests: New file.
12016         * tests/test-recvfrom.c: New file.
12017
12018         Tests for module 'recv'.
12019         * modules/recv-tests: New file.
12020         * tests/test-recv.c: New file.
12021
12022         Tests for module 'listen'.
12023         * modules/listen-tests: New file.
12024         * tests/test-listen.c: New file.
12025
12026         Tests for module 'getsockopt'.
12027         * modules/getsockopt-tests: New file.
12028         * tests/test-getsockopt.c: New file.
12029
12030         Tests for module 'getsockname'.
12031         * modules/getsockname-tests: New file.
12032         * tests/test-getsockname.c: New file.
12033
12034         Tests for module 'getpeername'.
12035         * modules/getpeername-tests: New file.
12036         * tests/test-getpeername.c: New file.
12037
12038         Tests for module 'connect'.
12039         * modules/connect-tests: New file.
12040         * tests/test-connect.c: New file.
12041
12042         Tests for module 'bind'.
12043         * modules/bind-tests: New file.
12044         * tests/test-bind.c: New file.
12045
12046         accept4 tests: Fix for native Windows.
12047         * tests/test-accept4.c: Include sockets.h.
12048         (main): Invoke gl_sockets_startup.
12049         * modules/accept4-tests (Depends-on): Add sockets.
12050
12051         accept tests: Fix for native Windows.
12052         * tests/test-accept.c: Include sockets.h.
12053         (main): Invoke gl_sockets_startup.
12054         * modules/accept-tests (Depends-on): Add sockets.
12055
12056 2011-09-19  Bruno Haible  <bruno@clisp.org>
12057
12058         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12059         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12060         do...while(0).
12061         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12062         Suggested by Paul Eggert.
12063
12064 2011-09-19  Bruno Haible  <bruno@clisp.org>
12065
12066         sched: Ensure pid_t is defined.
12067         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12068         not define pid_t.
12069         * lib/sched.in.h: Include <sys/types.h>.
12070         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12072
12073 2011-09-19  Bruno Haible  <bruno@clisp.org>
12074
12075         msvc-inval: Ensure the entire expansion is a single statement.
12076         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12077         of braces.
12078
12079 2011-09-19  Jim Meyering  <meyering@redhat.com>
12080
12081         tests: use printf, not echo in init.sh's warn_ function
12082         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12083         misbehave when given strings containing a backslash or starting
12084         with e.g., -n.  James Youngman suggested setting IFS.
12085
12086 2011-09-19  Eric Blake  <eblake@redhat.com>
12087
12088         futimens: enhance test
12089         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12090         closed non-negative fd.
12091
12092         date: accept 'hence' as opposite of 'ago'
12093         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12094         * tests/test-parse-datetime.c (main): Enhance test.
12095         Suggested by Jesse Wilson.
12096
12097 2011-09-19  Jim Meyering  <meyering@redhat.com>
12098
12099         getcwd: don't fail in a deep directory on a system without openat
12100         Before this change, getcwd would fail when called from a directory
12101         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12102         the non-openat implementation used "..", "../..", "../../..", etc.
12103         to access ancestor directories.  With too many, that string would
12104         be longer than PATH_MAX.
12105         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12106         using gnulib's openat replacement.
12107         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12108         we're using the replacement function.
12109
12110 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12111
12112         maint.mk: avoid warnings from perl about missing files
12113         * top/maint.mk (def_sym_regex): Ignore files listed in
12114         $(gl_other_headers_) that do not exist, say because a project
12115         does not use a corresponding module.
12116
12117 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12118
12119         stat: use pathmax.h only if needed
12120         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12121         This is better for Emacs, which does not have a mingw port and
12122         therefore can avoid the pathmax module.
12123
12124         utimens: remove dependency on dup2
12125         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12126         to work around the Linux kernel bug.
12127         * modules/utimens (Depends-on): Remove dup2.
12128
12129 2011-09-18  Bruno Haible  <bruno@clisp.org>
12130
12131         inet_ntop, inet_pton: Look for it also in libresolv.
12132         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12133         libnsl, search for it in libresolv.
12134         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12135         Needed on Solaris 7.
12136
12137 2011-09-18  Bruno Haible  <bruno@clisp.org>
12138
12139         accept, accept4 tests: Avoid link error on Solaris.
12140         * modules/accept-tests (Makefile.am): Link test-accept against
12141         $(LIBSOCKET).
12142         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12143         $(LIBSOCKET).
12144
12145         accept4: Avoid link error on Solaris.
12146         * modules/accept4 (Link): New section.
12147
12148         socket functions: Avoid link errors on Solaris.
12149         * modules/accept (Depends-on): Add socketlib.
12150         (Link): New section.
12151         * modules/bind (Depends-on): Add socketlib.
12152         (Link): New section.
12153         * modules/connect (Depends-on): Add socketlib.
12154         (Link): New section.
12155         * modules/getpeername (Depends-on): Add socketlib.
12156         (Link): New section.
12157         * modules/getsockname (Depends-on): Add socketlib.
12158         (Link): New section.
12159         * modules/getsockopt (Depends-on): Add socketlib.
12160         (Link): New section.
12161         * modules/listen (Depends-on): Add socketlib.
12162         (Link): New section.
12163         * modules/recv (Depends-on): Add socketlib.
12164         (Link): New section.
12165         * modules/recvfrom (Depends-on): Add socketlib.
12166         (Link): New section.
12167         * modules/send (Depends-on): Add socketlib.
12168         (Link): New section.
12169         * modules/sendto (Depends-on): Add socketlib.
12170         (Link): New section.
12171         * modules/setsockopt (Depends-on): Add socketlib.
12172         (Link): New section.
12173         * modules/shutdown (Depends-on): Add socketlib.
12174         (Link): New section.
12175         * modules/socket (Depends-on): Add socketlib.
12176         (Link): New section.
12177
12178 2011-09-18  Bruno Haible  <bruno@clisp.org>
12179
12180         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12181         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12182         than 5 seconds.
12183         * modules/ptsname-tests (configure.ac): Test for alarm.
12184
12185 2011-09-18  Bruno Haible  <bruno@clisp.org>
12186
12187         posix_spawn_file_actions_add*: Fix module dependencies.
12188         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12189         posix_spawn_file_actions_init.
12190         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12191         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12192
12193 2011-09-18  Bruno Haible  <bruno@clisp.org>
12194
12195         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12196         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12197         * tests/test-renameat.c (main): Likewise.
12198
12199 2011-09-18  Bruno Haible  <bruno@clisp.org>
12200
12201         Tests for module 'accept4'.
12202         * modules/accept4-tests: New file.
12203         * tests/test-accept4.c: New file.
12204
12205 2011-09-18  Bruno Haible  <bruno@clisp.org>
12206
12207         Tests for module 'accept'.
12208         * modules/accept-tests: New file.
12209         * tests/test-accept.c: New file.
12210
12211 2011-09-18  Bruno Haible  <bruno@clisp.org>
12212
12213         dup2: Support for MSVC.
12214         * lib/dup2.c: Include msvc-inval.h.
12215         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12216         _get_osfhandle calls.
12217         * modules/dup2 (Depends-on): Add msvc-inval.
12218         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12219
12220         New module 'msvc-inval'.
12221         * lib/msvc-inval.h: New file.
12222         * lib/msvc-inval.c: New file.
12223         * m4/msvc-inval.m4: New file.
12224         * modules/msvc-inval: New file.
12225
12226 2011-09-17  Bruno Haible  <bruno@clisp.org>
12227
12228         Tests for module 'pclose'.
12229         * modules/pclose-tests: New file.
12230
12231         New module 'pclose'.
12232         * lib/stdio.in.h (pclose): New declaration.
12233         * lib/pclose.c: New file.
12234         * m4/pclose.m4: New file.
12235         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12236         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12237         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12238         * modules/pclose: New file.
12239         * modules/popen-tests (Depends-on): Add pclose.
12240         * modules/popen-safer-tests (Depends-on): Likewise.
12241         * doc/posix-functions/pclose.texi: Mention the new module.
12242
12243 2011-09-17  Bruno Haible  <bruno@clisp.org>
12244
12245         popen: Support for MSVC.
12246         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12247         * lib/popen.c (popen): Provide alternate definition for native Windows.
12248         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12250         * modules/popen (Depends-on, configure.ac): Update condition.
12251         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12252         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12253         fixed.
12254
12255 2011-09-17  Bruno Haible  <bruno@clisp.org>
12256
12257         isnanl, isnand, isnanf: Work around MSVC bug.
12258         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12259
12260 2011-09-17  Bruno Haible  <bruno@clisp.org>
12261
12262         sys_socket tests: Fix recent mistake.
12263         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12264
12265 2011-09-17  Bruno Haible  <bruno@clisp.org>
12266
12267         putenv: Support for MSVC.
12268         * modules/putenv (Depends-on): Add environ.
12269         * lib/putenv.c (environ): Disable declaration.
12270         * lib/unistd.in.h: Update comment.
12271
12272 2011-09-17  Bruno Haible  <bruno@clisp.org>
12273
12274         math: Avoid macro redefinition warnings on MSVC.
12275         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12276         Undefine before redefining.
12277
12278 2011-09-17  Bruno Haible  <bruno@clisp.org>
12279
12280         doc: Mention functions which are declared as macros.
12281         * doc/posix-functions/*[fl].texi: Mention that some functions are
12282         defined as macros with arguments only.
12283
12284 2011-09-17  Bruno Haible  <bruno@clisp.org>
12285
12286         Add dependencies to new dirent related modules.
12287         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12288         * modules/fts (Depends-on): Likewise.
12289         * modules/glob (Depends-on): Likewise.
12290         * modules/savedir (Depends-on): Likewise.
12291         * modules/scandir (Depends-on): Likewise.
12292         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12293         * modules/fdopendir (Depends-on): Add opendir.
12294
12295 2011-09-17  Bruno Haible  <bruno@clisp.org>
12296
12297         inet_pton: Support for MSVC on Windows Vista or newer.
12298         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12299         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12300         HAVE_DECL_INET_PTON is defined.
12301         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12302         On platforms with <winsock2.h>, test whether inet_pton 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_PTON.
12306         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12307         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12308         (Depends-on, configure.ac): Update condition.
12309         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12310
12311 2011-09-17  Bruno Haible  <bruno@clisp.org>
12312
12313         inet_ntop: Support for MSVC on Windows Vista or newer.
12314         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12315         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12316         HAVE_DECL_INET_NTOP is defined.
12317         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12318         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12319         <ws2tcpip.h>. If so, arrange to replace it.
12320         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12321         REPLACE_INET_NTOP.
12322         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12323         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12324         (Depends-on, configure.ac): Update condition.
12325         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12326
12327 2011-09-16  Eric Blake  <eblake@redhat.com>
12328
12329         test-fsync: yet another enhancement
12330         * tests/test-fsync.c (main): Also test behavior on read-only text
12331         file.
12332
12333 2011-09-16  Bruno Haible  <bruno@clisp.org>
12334
12335         Enhance fsync, fdatasync tests.
12336         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12337         * tests/test-fdatasync.c (main): Likewise.
12338
12339 2011-09-16  Bruno Haible  <bruno@clisp.org>
12340
12341         Support for MSVC compiler: Ensure mode_t gets defined.
12342         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12343         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12344         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12345         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12346         * tests/test-fcntl-h.c: Check that mode_t is defined.
12347         * tests/test-sys_stat.c: Likewise.
12348         * tests/test-sys_types.c: Likewise.
12349         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12350         * doc/posix-headers/sys_stat.texi: Likewise.
12351         * doc/posix-headers/sys_types.texi: Likewise.
12352
12353 2011-09-16  Bruno Haible  <bruno@clisp.org>
12354
12355         sys_stat: Support for MSVC.
12356         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12357         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12358         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12359         MSVC.
12360
12361 2011-09-16  Bruno Haible  <bruno@clisp.org>
12362
12363         Support for MSVC compiler: Ensure off_t gets defined.
12364         * lib/unistd.in.h: Include <sys/types.h>.
12365         * tests/test-fcntl-h.c: Check that off_t is defined.
12366         * tests/test-sys_stat.c: Likewise.
12367         * tests/test-sys_types.c: Likewise.
12368
12369 2011-09-16  Eric Blake  <eblake@redhat.com>
12370
12371         fdatasync: port to Solaris
12372         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12373         * modules/fdatasync (Link): Document it.
12374         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12375
12376         fdatasync: port to MacOS X 10.7
12377         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12378         declared.
12379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12380         * modules/unistd (Makefile.am): Substitute it.
12381         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12382         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12383
12384         fdatasync: minor improvements
12385         * modules/fdatasync (Depends-on): Add condition for fsync.
12386         * lib/fdatasync.c (fdatasync): Add comment.
12387         * tests/test-unistd-c++.cc: Test fdatasync.
12388
12389         unistd: update refs to newer POSIX
12390         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12391         Suggested by Bruno Haible.
12392
12393         fdatasync: new module
12394         * modules/fsync (Description): Document difference to fdatasync.
12395         * modules/fdatasync: New module.
12396         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12397         * lib/fdatasync.c (fdatasync): Likewise.
12398         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12399         defaults.
12400         * modules/unistd (Makefile.am): Set witnesses.
12401         * lib/unistd.in.h (fdatasync): Declare.
12402         * MODULES.html.sh: Document it.
12403         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12404         * modules/fdatasync-tests: New test.
12405         * tests/test-fdatasync.c: Likewise.
12406
12407 2011-09-16  Eric Blake  <eblake@redhat.com>
12408
12409         test-fsync: enhance tests
12410         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12411         * tests/test-fsync.c (main): Enhance test.
12412
12413 2011-09-15  Bruno Haible  <bruno@clisp.org>
12414
12415         Support for MSVC compiler: Ensure ssize_t gets defined.
12416         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12417         * doc/posix-headers/stdio.texi: Likewise.
12418         * modules/stdio (Depends-on): Add ssize_t.
12419         * modules/sys_socket (Depends-on): Likewise.
12420         * modules/sys_types (Depends-on): Likewise.
12421         * modules/sys_uio (Depends-on): Likewise.
12422         * modules/unistd (Depends-on): Likewise.
12423         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12424         * tests/test-sys_types.c: Check that ssize_t is defined.
12425
12426 2011-09-14  Bruno Haible  <bruno@clisp.org>
12427
12428         Avoid using #, the m4 comment starter character, near brackets.
12429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12430         delimiter character in sed expressions.
12431         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12432         Suggested by Eric Blake.
12433
12434         Properly quote AC_CHECK_DECLS' 4th argument.
12435         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12436         argument.
12437         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12438         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12439         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12440         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12441         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12442         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12444         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12445         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12446         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12447         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12448         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12449         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12450         * m4/isinf.m4 (gl_ISINF): Likewise.
12451         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12452         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12453         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12454         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12457         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12458         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12459         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12460         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12461         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12462         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12464         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12466         Reported by Eric Blake.
12467
12468         Properly quote AC_CHECK_DECL's 4th argument.
12469         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12470         argument.
12471         * m4/argp.m4 (gl_ARGP): Likewise.
12472         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12473         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12474         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12475         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12476         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12477         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12479         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12480         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12481         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12482         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12483         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12484         Reported by Eric Blake.
12485
12486 2011-09-14  Eric Blake  <eblake@redhat.com>
12487
12488         opendir: avoid compile warning
12489         * lib/opendir.c (includes): Always include errno.h.
12490         Reported by Tatsuro MATSUOKA.
12491
12492 2011-09-14  Jim Meyering  <meyering@redhat.com>
12493
12494         maint.mk: sc_tight_scope: propagate failure from sub-make
12495         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12496         Reported by Martin von Gagern.
12497
12498 2011-09-13  Bruno Haible  <bruno@clisp.org>
12499
12500         tempname: Support for MSVC.
12501         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12502         MSVC.
12503         * modules/tempname (Depends-on): Add fcntl-h.
12504
12505 2011-09-13  Bruno Haible  <bruno@clisp.org>
12506
12507         sys_time: Support for MSVC.
12508         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12509         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12510         include <winsock2.h>.
12511         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12512         function declarations that collide with POSIX.
12513         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12514         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12515
12516 2011-09-13  Bruno Haible  <bruno@clisp.org>
12517
12518         stat: Support for MSVC.
12519         * lib/stat.c: Include pathmax.h.
12520         * modules/stat (Depends-on): Add pathmax.
12521
12522         pathmax: Support for native Windows.
12523         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12524
12525 2011-09-12  Bruno Haible  <bruno@clisp.org>
12526
12527         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12528         * lib/dirent.in.h (struct dirent): New type.
12529         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12530         DT_WHT): New macros.
12531         (DIR): New type.
12532         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12533         (readdir, rewinddir): New declarations.
12534         * lib/dirent-private.h: New file.
12535         * lib/opendir.c: New file.
12536         * lib/readdir.c: New file.
12537         * lib/rewinddir.c: New file.
12538         * lib/closedir.c: New file.
12539         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12540         * m4/opendir.m4: New file.
12541         * m4/readdir.m4: New file.
12542         * m4/rewinddir.m4: New file.
12543         * m4/closedir.m4: New file.
12544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12545         REPLACE_CLOSEDIR here.
12546         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12547         readdir, rewinddir are declared.
12548         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12549         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12550         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12551         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12552         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12553         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12554         * modules/opendir: New file.
12555         * modules/readdir: New file.
12556         * modules/rewinddir: New file.
12557         * modules/closedir: New file.
12558         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12559         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12560         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12561         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12562         * NEWS: Mention the 'fchdir' change.
12563
12564 2011-09-11  Bruno Haible  <bruno@clisp.org>
12565
12566         asm-underscore.m4: Support for MSVC.
12567         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12568         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12569
12570 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12571
12572         Doc about crypt functions.
12573         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12574         needing for _GNU_SOURCE to get crypt.
12575         * doc/posix-functions/encrypt.texi: Likewise.
12576         * doc/posix-functions/setkey.texi: Likewise.
12577
12578 2011-09-11  Bruno Haible  <bruno@clisp.org>
12579
12580         doc: Update regarding MSVC 9.
12581         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12582         tested".
12583         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12584         * doc/posix-headers/*.texi: Likewise.
12585         * doc/pastposix-functions/*.texi: Likewise.
12586         * doc/glibc-functions/*.texi: Likewise.
12587         * doc/glibc-headers/*.texi: Likewise.
12588
12589 2011-09-11  Bruno Haible  <bruno@clisp.org>
12590
12591         unistd et al.: Don't assume <unistd.h> exists.
12592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12593         does not exist.
12594         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12595         exist. But include <stdlib.h>.
12596         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12597         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12598         symlink() does not exist.
12599         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12600         include <io.h> instead.
12601         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12602         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12603         include <direct.h> instead.
12604         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12605         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12606         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12607         <io.h> instead.
12608         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12609         correctly if the system does not have hard links.
12610         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12611         <direct.h> instead.
12612         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12613         it when looking for function declarations.
12614         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12615         <direct.h> and <io.h> instead.
12616         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12617
12618 2011-09-11  Bruno Haible  <bruno@clisp.org>
12619
12620         strcase: Support for MSVC.
12621         * modules/strcase (Status, Notice): Remove obsoletion mark.
12622         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12623         * doc/posix-functions/strncasecmp.texi: Likewise.
12624
12625         strings: Don't assume <strings.h> exists.
12626         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12627         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12628         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12629         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12630
12631 2011-09-11  Bruno Haible  <bruno@clisp.org>
12632
12633         dirent: Don't assume <dirent.h> exists.
12634         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12635         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12636         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12637         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12638
12639 2011-09-11  Bruno Haible  <bruno@clisp.org>
12640
12641         Fix wint_t on MSVC.
12642         * lib/wchar.in.h (wint_t): On MSVC, override it.
12643         * lib/wctype.in.h (wint_t): Likewise.
12644         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12645         MSVC.
12646         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12647         * doc/posix-headers/wctype.texi: Likewise.
12648
12649 2011-09-11  Bruno Haible  <bruno@clisp.org>
12650
12651         sys_types: Fix typo.
12652         * lib/sys_types.in.h: Fix typo in comment.
12653         Reported by Paul Eggert.
12654
12655         Support for MSVC compiler: Ensure size_t gets defined.
12656         * modules/strings (Depends-on): Add 'sys_types'.
12657         * modules/sys_uio (Depends-on): Likewise.
12658         * lib/sys_uio.in.h: Update comment.
12659
12660         C++ tests for module 'sys_types'.
12661         * modules/sys_types-c++-tests: New file.
12662         * tests/test-sys_types-c++.cc: New file.
12663
12664         Tests for module 'sys_types'.
12665         * modules/sys_types-tests: New file.
12666         * tests/test-sys_types.c: New file.
12667
12668         New module 'sys_types'.
12669         * lib/sys_types.in.h: New file.
12670         * m4/sys_types_h.m4: New file.
12671         * modules/sys_types: New file.
12672         * doc/posix-headers/sys_types.texi: Mention the new module and the
12673         size_t problem on MSVC 9.
12674
12675 2011-09-11  Bruno Haible  <bruno@clisp.org>
12676
12677         Support for MSVC compiler: Avoid division by a literal 0.
12678         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12679         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12680         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12681         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12682         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12683         * tests/infinity.h: New file.
12684         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12685         on MSVC.
12686         * tests/test-ceilf1.c: Include infinity.h.
12687         (main): Use Infinityf.
12688         * tests/test-ceil1.c: Include infinity.h.
12689         (main): Use Infinityd.
12690         * tests/test-ceill.c: Include infinity.h.
12691         (main): Use Infinityl.
12692         * tests/test-dprintf-posix.c: Include infinity.h.
12693         (test_function): Use Infinityd.
12694         * tests/test-floorf1.c: Include infinity.h.
12695         (main): Use Infinityf.
12696         * tests/test-floor1.c: Include infinity.h.
12697         (main): Use Infinityd.
12698         * tests/test-floorl.c: Include infinity.h.
12699         (main): Use Infinityl.
12700         * tests/test-fprintf-posix.c: Include infinity.h.
12701         (test_function): Use Infinityd.
12702         * tests/test-frexp.c: Include infinity.h.
12703         (main): Use Infinityd.
12704         * tests/test-frexpl.c: Include infinity.h.
12705         (main): Use Infinityl.
12706         * tests/test-isfinite.c: Include infinity.h.
12707         (test_isfinitef): Use Infinityf.
12708         (test_isfinited): Use Infinityd.
12709         (test_isfinitel): Use Infinityl.
12710         * tests/test-isinf.c: Include infinity.h.
12711         (test_isinff): Use Infinityf.
12712         (test_isinfd): Use Infinityd.
12713         (test_isinfl): Use Infinityl.
12714         * tests/test-isnan.c: Include infinity.h.
12715         (test_float): Use Infinityf.
12716         (test_double): Use Infinityd.
12717         (test_long_double): Use Infinityl.
12718         * tests/test-isnanf.h: Include infinity.h.
12719         (main): Use Infinityf.
12720         * tests/test-isnand.h: Include infinity.h.
12721         (main): Use Infinityd.
12722         * tests/test-isnanl.h: Include infinity.h.
12723         (main): Use Infinityl.
12724         * tests/test-ldexpl.c: Include infinity.h.
12725         (main): Use Infinityl.
12726         * tests/test-printf-posix.h: Include infinity.h.
12727         (test_function): Use Infinityd.
12728         * tests/test-roundf1.c: Include infinity.h.
12729         (main): Use Infinityf.
12730         * tests/test-round1.c: Include infinity.h.
12731         (main): Use Infinityd.
12732         * tests/test-roundl.c: Include infinity.h.
12733         (main): Use Infinityl.
12734         * tests/test-signbit.c: Include infinity.h.
12735         (test_signbitf): Use Infinityf.
12736         (test_signbitd): Use Infinityd.
12737         (test_signbitl): Use Infinityl.
12738         * tests/test-snprintf-posix.h: Include infinity.h.
12739         (test_function): Use Infinityd, Infinityl.
12740         * tests/test-sprintf-posix.h: Include infinity.h.
12741         (test_function): Use Infinityd, Infinityl.
12742         * tests/test-truncf1.c: Include infinity.h.
12743         (main): Use Infinityf.
12744         * tests/test-trunc1.c: Include infinity.h.
12745         (main): Use Infinityd.
12746         * tests/test-truncl.c: Include infinity.h.
12747         (main): Use Infinityl.
12748         * tests/test-vasnprintf-posix.c: Include infinity.h.
12749         (test_function): Use Infinityd, Infinityl.
12750         * tests/test-vasprintf-posix.c: Include infinity.h.
12751         (test_function): Use Infinityd, Infinityl.
12752         * modules/ceilf-tests (Files): Add tests/infinity.h.
12753         * modules/ceil-tests (Files): Likewise.
12754         * modules/ceill-tests (Files): Likewise.
12755         * modules/dprintf-posix-tests (Files): Likewise.
12756         * modules/floorf-tests (Files): Likewise.
12757         * modules/floor-tests (Files): Likewise.
12758         * modules/floorl-tests (Files): Likewise.
12759         * modules/fprintf-posix-tests (Files): Likewise.
12760         * modules/frexp-tests (Files): Likewise.
12761         * modules/frexp-nolibm-tests (Files): Likewise.
12762         * modules/frexpl-tests (Files): Likewise.
12763         * modules/frexpl-nolibm-tests (Files): Likewise.
12764         * modules/isfinite-tests (Files): Likewise.
12765         * modules/isinf-tests (Files): Likewise.
12766         * modules/isnan-tests (Files): Likewise.
12767         * modules/isnanf-tests (Files): Likewise.
12768         * modules/isnanf-nolibm-tests (Files): Likewise.
12769         * modules/isnand-tests (Files): Likewise.
12770         * modules/isnand-nolibm-tests (Files): Likewise.
12771         * modules/isnanl-tests (Files): Likewise.
12772         * modules/isnanl-nolibm-tests (Files): Likewise.
12773         * modules/ldexpl-tests (Files): Likewise.
12774         * modules/printf-posix-tests (Files): Likewise.
12775         * modules/roundf-tests (Files): Likewise.
12776         * modules/round-tests (Files): Likewise.
12777         * modules/roundl-tests (Files): Likewise.
12778         * modules/signbit-tests (Files): Likewise.
12779         * modules/snprintf-posix-tests (Files): Likewise.
12780         * modules/sprintf-posix-tests (Files): Likewise.
12781         * modules/truncf-tests (Files): Likewise.
12782         * modules/trunc-tests (Files): Likewise.
12783         * modules/truncl-tests (Files): Likewise.
12784         * modules/vasnprintf-posix-tests (Files): Likewise.
12785         * modules/vasprintf-posix-tests (Files): Likewise.
12786         * modules/vdprintf-posix-tests (Files): Likewise.
12787         * modules/vfprintf-posix-tests (Files): Likewise.
12788         * modules/vprintf-posix-tests (Files): Likewise.
12789         * modules/vsnprintf-posix-tests (Files): Likewise.
12790         * modules/vsprintf-posix-tests (Files): Likewise.
12791         * modules/xprintf-posix-tests (Files): Likewise.
12792
12793 2011-09-11  Bruno Haible  <bruno@clisp.org>
12794
12795         Ensure pid_t gets defined.
12796         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12797         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12798         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12799         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12800         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12801         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12802         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12803         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12804         * tests/test-fcntl-h.c: Check that pid_t is defined.
12805         * tests/test-sched.c: Likewise.
12806         * tests/test-termios.c: Likewise.
12807         * tests/test-time.c: Likewise.
12808         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12809         * doc/posix-headers/signal.texi: Likewise.
12810         * doc/posix-headers/sys_types.texi: Likewise.
12811         * doc/posix-headers/time.texi: Likewise.
12812
12813 2011-09-11  Bruno Haible  <bruno@clisp.org>
12814
12815         acl: Fix compilation on Solaris 10 (older version).
12816         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12817         of ACE_EVERYONE.
12818         * lib/set-mode-acl.c (qset_acl): Likewise.
12819         Reported by Christian Jullien <eligis@orange.fr>.
12820
12821 2011-09-10  Bruno Haible  <bruno@clisp.org>
12822
12823         iconv, unsetenv: Add support for MSVC compiler.
12824         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12825         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12826
12827 2011-09-10  Bruno Haible  <bruno@clisp.org>
12828
12829         *printf: Add support for MSVC compiler.
12830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12831         handles the exception caused by the %n directive. When cross-compiling,
12832         guess no on native Windows.
12833         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12834         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12835         emulate it through vsnprintf.
12836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12837         * doc/posix-functions/dprintf.texi: Update documentation regarding
12838         MSVC 9.
12839         * doc/posix-functions/fprintf.texi: Likewise.
12840         * doc/posix-functions/printf.texi: Likewise.
12841         * doc/posix-functions/snprintf.texi: Likewise.
12842         * doc/posix-functions/sprintf.texi: Likewise.
12843         * doc/posix-functions/swprintf.texi: Likewise.
12844         * doc/posix-functions/vdprintf.texi: Likewise.
12845         * doc/posix-functions/vfprintf.texi: Likewise.
12846         * doc/posix-functions/vprintf.texi: Likewise.
12847         * doc/posix-functions/vsnprintf.texi: Likewise.
12848         * doc/posix-functions/vsprintf.texi: Likewise.
12849         * doc/glibc-functions/asprintf.texi: Likewise.
12850         * doc/glibc-functions/obstack_printf.texi: Likewise.
12851         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12852         * doc/glibc-functions/vasprintf.texi: Likewise.
12853
12854 2011-09-10  Bruno Haible  <bruno@clisp.org>
12855
12856         nocrash: Add support for native Windows.
12857         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12858
12859 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12860             Bruno Haible  <bruno@clisp.org>
12861
12862         absolute-header, include-next: Add support for MSVC compiler.
12863         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12864         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12865         directory separator in #line directives.
12866         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12867         recognize also backslash as directory separator in #line directives.
12868
12869 2011-09-08  Jim Meyering  <meyering@redhat.com>
12870
12871         maint.mk: mark the post-release commit log with "maint: " prefix
12872         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12873         one-line commit-log summary.
12874
12875 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12876             Bruno Haible  <bruno@clisp.org>
12877
12878         Doc about crypt functions.
12879         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12880         systems.
12881         * doc/posix-functions/encrypt.texi: Likewise.
12882         * doc/posix-functions/setkey.texi: Likewise.
12883
12884 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12885
12886         * lib/gc.h: Fix copyright header.
12887
12888 2011-09-07  Bruno Haible  <bruno@clisp.org>
12889
12890         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12891         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12892         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12893
12894 2011-09-07  Bruno Haible  <bruno@clisp.org>
12895
12896         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12897         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12898         * lib/freopen.c: Likewise.
12899         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12900         * lib/lstat.c: Likewise.
12901         * lib/stat.c: Likewise.
12902         * lib/open.c: Use different syntax for include of <fcntl.h>.
12903         * lib/openat.c: Include fcntl.h again, explicitly.
12904
12905 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12906
12907         parse-datetime: document the newly accepted format
12908         * doc/parse-datetime.texi (Combined date and time of day items):
12909         New section.
12910
12911 2011-09-06  Bruno Haible  <bruno@clisp.org>
12912
12913         acl: Fix a test failure on newer Solaris 10 with ZFS.
12914         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12915         ENOSYS as no ACL.
12916         Reported by Jim Meyering.
12917
12918 2011-09-06  Bruno Haible  <bruno@clisp.org>
12919
12920         acl: Update for AIX >= 5.3 with NFS.
12921         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12922         ENOSYS as no ACL.
12923
12924         acl: Fix a test failure on AIX >= 5.3 with NFS.
12925         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12926         as no ACL.
12927
12928 2011-09-06  Bruno Haible  <bruno@clisp.org>
12929
12930         acl: Fix a test failure on IRIX 6.5 with NFS.
12931         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12932         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12933         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12934         * lib/copy-acl.c (qcopy_acl): Likewise.
12935
12936 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12937
12938         openat: port to AIX 7.1 with large files
12939         AIX 7.1 does a "#define openat open64at" if large files are in use,
12940         so we can't simply #undef openat.  Use the orig_openat trick (similar
12941         to orig_open in lib/open.c) to work around the problem.  Problem
12942         reported by Kevin Brott for GNU tar, in the thread containing
12943         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12944         * lib/openat.c (__need_system_fcntl_h): Define first.
12945         Include <fcntl.h> and <sys/types.h> before undefining.
12946         (orig_openat) [HAVE_OPENAT]: New inline function.
12947         (openat) [HAVE_OPENAT]: Do not undef.
12948         (rpl_openat): Use orig_openat, not openat.
12949
12950 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12951             Bruno Haible  <bruno@clisp.org>
12952
12953         acl: Avoid errors on NonStop Kernel.
12954         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12955         ENOTSUP errors.
12956
12957 2011-09-05  Bruno Haible  <bruno@clisp.org>
12958
12959         acl: Clean up Solaris code.
12960         * lib/acl-internal.h: Remove no-op #if.
12961         * lib/file-has-acl.c: Likewise.
12962         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12963         * lib/copy-acl.c (qcopy_acl): Likewise.
12964
12965 2011-09-05  Bruno Haible  <bruno@clisp.org>
12966
12967         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12968         binaries built on the original Solaris 10.
12969         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12970         trivial.
12971
12972 2011-09-05  Bruno Haible  <bruno@clisp.org>
12973
12974         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12975         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12976         10.
12977         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12978         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12979         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12980         instead of acl_get, facl_get, acl_set, facl_set.
12981
12982 2011-09-05  Bruno Haible  <bruno@clisp.org>
12983
12984         copy-file: Try unit tests on more file systems.
12985         * tests/test-copy-file-1.sh: New file.
12986         * tests/test-copy-file-2.sh: New file.
12987         * modules/copy-file-tests (Files): Add them.
12988         (Makefile.am): Add them to TESTS.
12989
12990         acl: Try unit tests on more file systems.
12991         * tests/test-file-has-acl-1.sh: New file.
12992         * tests/test-file-has-acl-2.sh: New file.
12993         * tests/test-set-mode-acl-1.sh: New file.
12994         * tests/test-set-mode-acl-2.sh: New file.
12995         * tests/test-copy-acl-1.sh: New file.
12996         * tests/test-copy-acl-2.sh: New file.
12997         * modules/acl-tests (Files): Add them.
12998         (Makefile.am): Add them to TESTS.
12999
13000 2011-09-04  Bruno Haible  <bruno@clisp.org>
13001
13002         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13003         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13004         10.
13005         (OLD_ALLOW, OLD_DENY): New macros.
13006         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13007         ACE_ACCESS_ALLOWED_ACE_TYPE.
13008         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13009         ACE_ACCESS_DENIED_ACE_TYPE.
13010         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13011         (NEW_ACE_EXECUTE): Fix value.
13012         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13013         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13014         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13015         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13016         NEW_ACE_SYNCHRONIZE): New macros.
13017         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13018         instead of acl_fromtext, acl_set, facl_set.
13019         Fixes a coreutils/tests/cp/perm failure.
13020
13021 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13022
13023         openat: test for fstatat (..., 0) bug
13024         Further testing with tar suggests that fstatat (..., 0)
13025         does not work in general, on AIX 7.1; see
13026         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13027         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13028         replacement fstatat (which is what older AIX releases were using
13029         anyway).
13030         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13031         use is now changed to orig_fstatat.  This was probably the right
13032         thing to do anyway.
13033         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13034         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13035         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13036         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13037         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13038         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13039         if the bug is found.
13040
13041         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13042         This tests for another fstatat bug on AIX 7.1:
13043         fstatat (AT_FDCWD, ..., 0) does not work.  See
13044         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13045         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13046         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13047         (rpl_fstatat): Adjust so that it works around either (or both)
13048         bugs if present.
13049         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13050
13051 2011-09-03  Karl Berry  <karl@gnu.org>
13052
13053         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13054         in index entries.
13055
13056 2011-09-02  Bruno Haible  <bruno@clisp.org>
13057
13058         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13059         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13060         values of AR, ARFLAGS, RANLIB.
13061         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13062
13063 2011-09-02  Bruno Haible  <bruno@clisp.org>
13064
13065         Find 'ar' program that fits with --host argument.
13066         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13067
13068 2011-09-02  Bruno Haible  <bruno@clisp.org>
13069
13070         tests: init.sh: Support any non-GNU diff.
13071         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13072         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13073         Solaris 8.
13074
13075 2011-09-02  Bruno Haible  <bruno@clisp.org>
13076
13077         tests: init.sh: work also with any non-GNU diff that supports -u
13078         * tests/init.sh: Relax check for diff -u support.
13079         Rather than checking for GNU diff via --version, simply check
13080         for support for -u itself.  Useful at least on OpenBSD 4.9,
13081         AIX 7.1, IRIX 6.5, and Solaris 10.
13082
13083 2011-09-01  Bruno Haible  <bruno@clisp.org>
13084
13085         strtoimax, strtoumax: Document problem on HP-UX 11.
13086         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13087         * doc/posix-functions/strtoumax.texi: Likewise.
13088
13089 2011-09-01  Bruno Haible  <bruno@clisp.org>
13090
13091         strtoumax: Avoid link error on OSF/1 with DTK cc.
13092         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13093         defined as a function.
13094         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13095         strtoumax is defined, not whether it is declared.
13096
13097 2011-09-01  Bruno Haible  <bruno@clisp.org>
13098
13099         strtoimax: Avoid link error on OSF/1 with DTK cc.
13100         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13101         defined as a function.
13102         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13103         strtoimax is defined, not whether it is declared.
13104
13105 2011-09-01  Bruno Haible  <bruno@clisp.org>
13106
13107         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13108         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13109         as a function.
13110         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13111         whether it is declared.
13112
13113 2011-09-01  Bruno Haible  <bruno@clisp.org>
13114
13115         imaxabs: Avoid link error on OSF/1 with DTK cc.
13116         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13117         as a function.
13118         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13119         whether it is declared.
13120
13121 2011-09-01  Bruno Haible  <bruno@clisp.org>
13122
13123         Tests for module 'strtoumax'.
13124         * modules/strtoumax-tests: New file.
13125         * tests/test-strtoumax.c: New file.
13126
13127         Tests for module 'strtoimax'.
13128         * modules/strtoimax-tests: New file.
13129         * tests/test-strtoimax.c: New file.
13130
13131         Tests for module 'imaxdiv'.
13132         * modules/imaxdiv-tests: New file.
13133         * tests/test-imaxdiv.c: New file.
13134
13135         Tests for module 'imaxabs'.
13136         * modules/imaxabs-tests: New file.
13137         * tests/test-imaxabs.c: New file.
13138
13139 2011-09-01  Bruno Haible  <bruno@clisp.org>
13140
13141         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13142         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13143         pthread_create.
13144
13145 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13146
13147         openat: work around AIX 7.1 fstatat issue
13148         This should fix the problem that was not properly fixed
13149         in the previous change, dated 2011-08-30.
13150         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13151         __need_system_stat_h defined.
13152         (orig_fstatat) [HAVE_FSTATAT]: New function.
13153         (rpl_fstatat): Go back to the old way of doing things,
13154         except call orig_fstatat instead of fstatat.
13155         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13156         Remove unnecessary check whether fstatat fills in st_size etc.
13157
13158 2011-09-01  Bruno Haible  <bruno@clisp.org>
13159
13160         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13161         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13162         just include the system's header.
13163
13164 2011-08-31  Jim Meyering  <meyering@redhat.com>
13165
13166         tests: avoid spurious assertion failure in test-float.c on ppc64
13167         * tests/test-float.c (test_long_double): Comment out an assertion,
13168         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13169         with gcc-4.4.4.
13170
13171         maint: indent with spaces, not TABs
13172         I need to get in the habit of running gnulib's "make check".
13173         Both of these would have been caught.
13174         * m4/largefile.m4: Indent with spaces, not TABs.
13175         * lib/parse-datetime.y (iso_8601_time): Likewise.
13176         Spotted by Pádraig Brady.
13177
13178         test-parse-datetime.c: accommodate a relatively strict gcc warning
13179         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13180         to avoid a warning from gcc's -Werror=missing-declarations.
13181         Insert a few spaces-before-funcall-parenthesis.
13182
13183 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13184
13185         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13186         The parser now accepts ISO 8601 date-time strings with "T" as the
13187         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13188         with a space between the date and time strings.  Now it also parses
13189         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13190         variants like "2004-02-29T16:21:42.333-07:00"
13191         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13192         of day representation using the 'T' separator character.
13193         * doc/parse-datetime.texi (General date syntax): replace use of
13194         deprecated --iso-8601 option with --rfc-3339 in example of date
13195         command output formats that can be parsed.
13196         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13197         lib/parse-datetime.y.
13198         (gmt_offset): New function.
13199         (main): Add additional test cases to validate ISO8601 extended
13200         date and time of day parsing.
13201
13202 2011-08-31  Bruno Haible  <bruno@clisp.org>
13203
13204         freopen: Documentation.
13205         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13206         name.
13207         Reported by Claudio Bley <claudio.bley@gmail.com>.
13208
13209 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13210
13211         freopen: Don't crash if the filename argument is NULL.
13212         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13213         NULL.
13214
13215 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13216
13217         openat: work around AIX 7.1 fstatat bug
13218         Problem reported by Kevin Brott for GNU tar, in the thread containing
13219         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13220         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13221         FSTATAT_ST_SIZE_ETC_BROKEN.
13222         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13223         rpl_fstatat.
13224         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13225         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13226         AC_CHECK_FUNCS_ONCE for fstatat.
13227         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13228         fchmodat, mkdirat, openat and unlinkat.
13229
13230 2011-08-30  Bruno Haible  <bruno@clisp.org>
13231
13232         Avoid endless recursions if config.h includes some header files.
13233         * lib/fopen.c (__need_FILE): Define already before including config.h.
13234         * lib/freopen.c (__need_FILE): Likewise.
13235         * lib/open.c (__need_system_fcntl_h): Likewise.
13236         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13237         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13238         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13239
13240 2011-08-25  Karl Berry  <karl@gnu.org>
13241
13242         * config/srclist.txt (ylwrap): new try.
13243         * build-aux/ylwrap: new file.
13244
13245 2011-08-23  Bruno Haible  <bruno@clisp.org>
13246
13247         tmpdir: Use a good default directory on native Windows.
13248         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13249         (P_tmpdir): Default to _P_tmpdir on native Windows.
13250         (path_search): On native Windows, try the value returned by GetTempPath
13251         before trying P_tmpdir.
13252         * modules/tmpdir (Depends-on): Add pathmax.
13253         Suggested by John Darrington <john@darrington.wattle.id.au>.
13254
13255 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13256
13257         doc: fix typo in README-release
13258         * top/README-release: Capitalize first word of a sentence.
13259
13260 2011-08-19  Jim Meyering  <meyering@redhat.com>
13261
13262         fts: do not exhaust memory when processing million-entry directories
13263         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13264         directory would require about 256*N bytes of memory.  Thus, it was
13265         easy to construct a directory too large to be processed by any of
13266         those tools.  With this change, fts' maximum memory utilization is
13267         now limited to around 30MB.
13268         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13269         (fts_read): When we've processed the final entry (i.e., when
13270         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13271         using the parent entry to read any remaining entries.  Dispatch
13272         depending on what fts_build returns:
13273         - NULL+stop, aka failure: stop
13274         - NULL otherwise: move up in the dir hierarchy
13275         - non-NULL: handle this new entry
13276         (fts_build): Declare and use new local, continue_readdir.
13277         Prepare to be called from fts_read, when the entries
13278         from a partially-read directory have just been exhausted.
13279         In that case, we'll skip the opendir and instead use the parent's
13280         fts_dirp and derive dir_fd from that.
13281         Finally, in the readdir loop, if we read max_entries entries,
13282         exit the loop ensuring *not* to call closedir.  This is required
13283         so that fts_dirp can be reused on a subsequent call.
13284         Prompted by Ben England's report of memory exhaustion in find
13285         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13286
13287         maint: fts: move decl of `dp' down into while loop; split a long line
13288         * lib/fts.c (fts_build): No semantic change.
13289
13290         fts: add/use new struct member, fts_dirp
13291         We are about to use this to manage any directory with
13292         too many entries to read all of them into memory at once.
13293         To do that, we'll need to save the DIR* pointer in each
13294         affected FTSENT struct.
13295         * lib/fts_.h: Include <dirent.h>.
13296         (struct FTSENT) [fts_dirp]: New member.
13297         * lib/fts.c (closedir_and_clear): Define.
13298         Use it in place of closedir so that we are sure to
13299         clear the new fts_dirp member when done with it.
13300         (fts_alloc): Initialize the new member.
13301         (fts_lfree): Free, if needed.
13302
13303         maint: fts: give __opendir2 a new parameter and rename
13304         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13305         than surreptitiously using sole caller's "dir_fd".
13306         (fts_opendir): Rename from __opendir2.
13307
13308         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13309         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13310
13311         maint: fts.c: correct off-by-one indentation
13312         * lib/fts.c (fts_build): Correct indentation, change style
13313         of a couple of block comments, and bracing style.
13314
13315         maint: fts.c: move __opendir2 #define "up" out of function body
13316         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13317
13318         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13319         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13320         out for a long time and besides was useful only on BSD systems.
13321
13322 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13323
13324         regex: port to Stratus OpenVOS
13325         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13326         define to empty, rather than attempting nonportable optimizations.
13327         Problem reported by Paul Green in:
13328         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13329         and fix suggested by Eric Blake in:
13330         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13331
13332 2011-08-17  Eric Blake  <eblake@redhat.com>
13333
13334         getcwd: fix test failures on mingw
13335         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13336         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13337         test if long directory cannot be created, and allow mingw errno.
13338
13339         getcwd-lgpl: fix m4 to match relaxed test for BSD
13340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13341         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13342         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13343         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13344         signature problem.
13345
13346         getcwd: fix compilation on mingw64
13347         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13348         getcwd.
13349         Reported by Marc-André Lureau.
13350
13351         pipe2: silence compiler warning
13352         * lib/pipe2.c (pipe2): Hide label if it is not used.
13353
13354 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13355
13356         relocatable-prog: fix link error
13357         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13358         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13359         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13360         into modules/relocatable-lib without noticing that
13361         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13362         also needs to build relocatable.c.
13363
13364 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13365
13366         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13368         shell code: it contained a 'break' that was not in a loop.
13369         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13370         via a shell-language loop; this may have been true in old Autoconf
13371         versions, but it's not true in Autoconf 2.68.  I found this bug
13372         when testing coreutils git on Solaris 8, whose shell complains
13373         about the syntax error.
13374
13375 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13376
13377         * lib/base64.c: Fix comment to reference RFC 4648.
13378         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13379         <gvtulder@gmail.com>.
13380
13381 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13382
13383         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13384
13385         po/Makefile.in.in: fix make -q problem
13386         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13387         rule, since there's no file named 'check-macro-version' and its
13388         use as a file breaks make -q.
13389         (all): Don't depend on check-macro-version.
13390         (CHECK_MACRO_VERSION): New macro.
13391         (stamp-po): Use it.
13392
13393         configmake: fix make -q problem
13394         * modules/configmake (configmake.h): Update configmake.h's time stamp
13395         even if the file does not change.  Otherwise, 'make -q' fails.
13396         Problem reported by Simon Josefsson in
13397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13398
13399 2011-08-11  Jim Meyering  <meyering@redhat.com>
13400
13401         git-version-gen: correct the advice in a comment
13402         * build-aux/git-version-gen: Correct comment.
13403         Don't recommend to list .tarball-version in .gitignore.
13404
13405 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13406
13407         base64: fix off-by-one buffer size bug
13408         Problem and (trivial) fix reported by Gijs van Tulder in
13409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13410         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13411         * tests/test-base64.c (main): Catch the bug.
13412
13413 2011-08-10  Eric Blake  <eblake@redhat.com>
13414
13415         closein: correct comments
13416         * lib/closein.c (close_stdin): Improve comments.
13417
13418 2011-08-09  Bruno Haible  <bruno@clisp.org>
13419
13420         More tests for 'fseeko'.
13421         * tests/test-fseeko3.c: New file, from Eric Blake.
13422         * tests/test-fseeko3.sh: New file.
13423         * modules/fseeko-tests (Files): Add them.
13424         (TESTS): Add test-fseeko3.sh.
13425         (check_PROGRAMS): Add test-fseeko3.
13426
13427 2011-08-09  Eric Blake  <eblake@redhat.com>
13428
13429         fseeko: remove unneeded hack
13430         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13431
13432         fseeko: fix bug on glibc
13433         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13434         Reported by John W. Eaton.
13435
13436 2011-08-08  Bruno Haible  <bruno@clisp.org>
13437
13438         unictype/base: Fix interoperability with preinstalled libunistring.
13439         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13440         Reported by Simon Josefsson.
13441
13442 2011-08-08  Bruno Haible  <bruno@clisp.org>
13443
13444         iswblank: Detect declaration correctly.
13445         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13446         AC_CHECK_DECLS invocation.
13447
13448 2011-08-08  Bruno Haible  <bruno@clisp.org>
13449
13450         tcgetsid: Detect declaration correctly.
13451         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13452         AC_CHECK_DECLS invocation.
13453         Reported by Simon Josefsson.
13454
13455 2011-08-08  Eric Blake  <eblake@redhat.com>
13456
13457         largefile: fix typo that regressed large file support
13458         * modules/largefile (configure.ac-early): Fix section name.
13459
13460 2011-08-06  Karl Berry  <karl@gnu.org>
13461
13462         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13463         a separate module.
13464
13465 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13466
13467         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13468         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13469         get prototype for free.
13470
13471 2011-08-04  Bruno Haible  <bruno@clisp.org>
13472
13473         Tests for module 'pathmax'.
13474         * modules/pathmax-tests: New file.
13475         * tests/test-pathmax.c: New file.
13476
13477         canonicalize-lgpl: Support larger filenames on the Hurd.
13478         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13479         Reported by Paul Eggert.
13480
13481         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13482         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13483         * lib/chdir-long.h: Include pathmax.h.
13484         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13485         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13486         (PATH_MAX): Remove code that is done by pathmax.h.
13487         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13488         * lib/tmpfile.c: Add a comment.
13489         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13490         * modules/chdir-long (Depends-on): Add pathmax.
13491         * modules/getcwd (Depends-on): Add pathmax.
13492         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13493         is not defined.
13494         * doc/posix-headers/limits.texi: Mention the pathmax module.
13495         * NEWS: Mention the change.
13496
13497 2011-08-02  Bruno Haible  <bruno@clisp.org>
13498
13499         pthread_sigmask: Actually use results of gl_THREADLIB.
13500         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13501         gl_THREADLIB, not gl_[]THREADLIB.
13502         Reported by Eric Blake.
13503
13504 2011-08-02  Jim Meyering  <meyering@redhat.com>
13505
13506         maint.mk: relax the default _gl_TS_function_match regexp
13507         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13508         space between function name and "(" in an "extern" declaration.
13509         That would fail to match a decl with no space there: extern void foo();
13510
13511 2011-07-31  Iain Nicol  <iain@thenicols.net>
13512
13513         git-version-gen: document that EXTRA_DIST must include .version
13514         * build-aux/git-version-gen: In the how-to-use comment, document
13515         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13516         will fail when run from an unpacked distribution tarball.
13517
13518 2011-08-01  Bruno Haible  <bruno@clisp.org>
13519
13520         wctype-h: Fix last change.
13521         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13522         REPLACE_TOWLOWER to 0.
13523         Reported by Sam Steingold <sds@gnu.org>.
13524
13525 2011-07-31  Bruno Haible  <bruno@clisp.org>
13526
13527         frexpl: Update autoconf test.
13528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13529         according to changes of 2011-06-20.
13530
13531 2011-07-31  Bruno Haible  <bruno@clisp.org>
13532
13533         sys_utsname: Add support for Minix.
13534         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13535         <sys/utsname.h>.
13536         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13537         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13538
13539 2011-07-31  Bruno Haible  <bruno@clisp.org>
13540
13541         strings: Add support for Minix.
13542         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13543         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13544         * doc/posix-headers/strings.texi: Document the Minix problem.
13545
13546 2011-07-31  Bruno Haible  <bruno@clisp.org>
13547
13548         wctype-h: Add support for Minix.
13549         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13550         REPLACE_TOWLOWER.
13551         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13552         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13553         REPLACE_ISWCNTRL.
13554
13555 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13556
13557         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13558         This is a performance improvement for 64-bit hosts: it causes the
13559         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13560
13561 2011-07-31  Bruno Haible  <bruno@clisp.org>
13562
13563         stdioext: Add support for Minix.
13564         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13565         * lib/fpurge.c (fpurge): Likewise.
13566         * lib/freadahead.c (freadahead): Likewise.
13567         * lib/freadable.c (freadable): Likewise.
13568         * lib/freading.c (freading): Likewise.
13569         * lib/freadptr.c (freadptr): Likewise.
13570         * lib/freadseek.c (freadptrinc): Likewise.
13571         * lib/fseeko.c (rpl_fseeko): Likewise.
13572         * lib/fseterr.c (fseterr): Likewise.
13573         * lib/fwritable.c (fwritable): Likewise.
13574         * lib/fwriting.c (fwriting): Likewise.
13575         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13576         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13577
13578 2011-07-31  Bruno Haible  <bruno@clisp.org>
13579
13580         errno: Port to Minix.
13581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13582         ECONNABORTED are defined.
13583         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13584         GNULIB_defined_ECONNABORTED): New macros.
13585         * lib/strerror-override.h (strerror_override): Test also
13586         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13587         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13588         ECONNABORTED.
13589         * doc/posix-headers/errno.texi: Mention the Minix problem.
13590
13591 2011-07-31  Bruno Haible  <bruno@clisp.org>
13592
13593         Work around declaration collisions on Minix.
13594         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13595         defined, set REPLACE_MBSINIT.
13596         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13597         defined, set REPLACE_MBRTOWC.
13598         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13599         set REPLACE_MBRLEN.
13600         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13601         defined, set REPLACE_MBSRTOWCS.
13602         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13603         defined, set REPLACE_WCRTOMB.
13604         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13605         defined, set REPLACE_WCSRTOMBS.
13606
13607 2011-07-31  Bruno Haible  <bruno@clisp.org>
13608
13609         Add support for Minix with ACK compiler.
13610         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13611         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13612         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13613
13614 2011-07-31  Bruno Haible  <bruno@clisp.org>
13615
13616         Documentation about Minix.
13617         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13618         * doc/glibc-headers/*.texi: Likewise.
13619         * doc/posix-functions/*.texi: Likewise.
13620         * doc/glibc-functions/*.texi: Likewise.
13621
13622 2011-07-31  Bruno Haible  <bruno@clisp.org>
13623
13624         snippet/warn-on-use: Fix indentation.
13625         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13626
13627 2011-07-25  Jim Meyering  <meyering@redhat.com>
13628
13629         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13630         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13631         commands.
13632
13633 2011-07-27  Jim Meyering  <meyering@redhat.com>
13634
13635         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13636         * top/maint.mk (gl_extract_significant_defines_): Now that
13637         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13638         gnulib/lib/signal.in.h, and now that we recommend to
13639         define-if-undefined those two symbols in application code,
13640         we must filter them out of the "significant" list.
13641         This avoids a "make syntax-check" failure in coreutils.
13642
13643 2011-07-26  Eric Blake  <eblake@redhat.com>
13644
13645         warnings: add comments about previous patch
13646         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13647         * m4/include_next.m4: Likewise.
13648         * m4/warn-on-use.m4: Likewise.
13649         * m4/warnings.m4: Likewise, and simplify use.
13650         Suggested by Stefano Lattarini.
13651
13652         include-next, warnings: support older autoconf
13653         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13654         AS_VAR_PUSHDEF in a way that works with older autoconf.
13655         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13656         Reported by Daniel P. Berrange.
13657
13658 2011-07-25  Bruno Haible  <bruno@clisp.org>
13659
13660         fseek, ftell: Fix doc.
13661         * doc/posix-functions/fseek.texi: Reword statement about
13662         AC_SYS_LARGEFILE.
13663         * doc/posix-functions/ftell.texi: Likewise.
13664
13665 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13666             Bruno Haible  <bruno@clisp.org>
13667
13668         Add dependencies to the 'largefile' module.
13669         * modules/fopen (Depends-on): Add 'largefile'.
13670         * modules/freopen (Depends-on): Likewise.
13671         * modules/fseeko (Depends-on): Likewise.
13672         * modules/ftello (Depends-on): Likewise.
13673         * modules/glob (Depends-on): Likewise.
13674         * modules/lseek (Depends-on): Likewise.
13675         * modules/lstat (Depends-on): Likewise.
13676         * modules/mkostemp (Depends-on): Likewise.
13677         * modules/mkostemps (Depends-on): Likewise.
13678         * modules/mkstemp (Depends-on): Likewise.
13679         * modules/mkstemps (Depends-on): Likewise.
13680         * modules/open (Depends-on): Likewise.
13681         * modules/openat (Depends-on): Likewise.
13682         * modules/pread (Depends-on): Likewise.
13683         * modules/pwrite (Depends-on): Likewise.
13684         * modules/scandir (Depends-on): Likewise.
13685         * modules/stat (Depends-on): Likewise.
13686         * modules/tmpfile (Depends-on): Likewise.
13687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13688         since the containing module now depends on the largefile module.
13689         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13690         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13691         off_t is fixed by gnulib.
13692         * doc/posix-functions/freopen.texi: Likewise.
13693         * doc/posix-functions/fseeko.texi: Likewise.
13694         * doc/posix-functions/fstatat.texi: Likewise.
13695         * doc/posix-functions/ftello.texi: Likewise.
13696         * doc/posix-functions/glob.texi: Likewise.
13697         * doc/posix-functions/lseek.texi: Likewise.
13698         * doc/posix-functions/lstat.texi: Likewise.
13699         * doc/posix-functions/mkstemp.texi: Likewise.
13700         * doc/posix-functions/open.texi: Likewise.
13701         * doc/posix-functions/openat.texi: Likewise.
13702         * doc/posix-functions/pread.texi: Likewise.
13703         * doc/posix-functions/pwrite.texi: Likewise.
13704         * doc/posix-functions/scandir.texi: Likewise.
13705         * doc/posix-functions/stat.texi: Likewise.
13706         * doc/posix-functions/tmpfile.texi: Likewise.
13707         * doc/glibc-functions/mkostemp.texi: Likewise.
13708         * doc/glibc-functions/mkostemps.texi: Likewise.
13709         * doc/glibc-functions/mkstemps.texi: Likewise.
13710
13711 2011-07-25  Bruno Haible  <bruno@clisp.org>
13712
13713         fcntl: Move AC_LIBOBJ invocation to module description.
13714         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13715         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13716
13717         fcntl: Remove call-in from fchdir.m4.
13718         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13720
13721         dup3: Remove potential call-in from fchdir.m4.
13722         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13724
13725         dup2: Move AC_LIBOBJ invocation to module description.
13726         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13727         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13728         Don't invoke AC_LIBOBJ.
13729         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13730
13731         dup2: Remove call-in from fchdir.m4.
13732         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13734
13735         fclose: Move AC_LIBOBJ invocation to module description.
13736         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13737         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13738         to 1.
13739         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13740
13741         fclose: Remove call-in from close.m4.
13742         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13743         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13744
13745         close: Move AC_LIBOBJ invocation to module description.
13746         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13747         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13748         1.
13749         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13750
13751         close: Remove call-in from fchdir.m4.
13752         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13754
13755         open: Move AC_LIBOBJ invocation to module description.
13756         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13757         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13758         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13759
13760         open: Remove call-in from fchdir.m4.
13761         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13763
13764         fchdir: Start to remove gl_REPLACE_* idiom.
13765         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13766         (gl_FUNC_FCHDIR): Invoke it.
13767
13768 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13769
13770         * lib/ftell.c (ftell): Comment out cast.
13771
13772         close: use gl_REPLACE_FCLOSE only if defined
13773         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13774         is defined.  The close module doesn't depend on the fclose module
13775         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13777         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13778
13779 2011-07-24  Jim Meyering  <meyering@redhat.com>
13780
13781         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13782         * tests/test-select.h (test_function): Declare as "static".
13783
13784 2011-07-24  Bruno Haible  <bruno@clisp.org>
13785
13786         doc: Mention the effects of AC_SYS_LARGEFILE.
13787         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13788         on this function.
13789         * doc/posix-functions/aio_error.texi: Likewise.
13790         * doc/posix-functions/aio_fsync.texi: Likewise.
13791         * doc/posix-functions/aio_read.texi: Likewise.
13792         * doc/posix-functions/aio_return.texi: Likewise.
13793         * doc/posix-functions/aio_suspend.texi: Likewise.
13794         * doc/posix-functions/aio_write.texi: Likewise.
13795         * doc/posix-functions/fgetpos.texi: Likewise.
13796         * doc/posix-functions/fopen.texi: Likewise.
13797         * doc/posix-functions/freopen.texi: Likewise.
13798         * doc/posix-functions/fsetpos.texi: Likewise.
13799         * doc/posix-functions/fstatvfs.texi: Likewise.
13800         * doc/posix-functions/ftruncate.texi: Likewise.
13801         * doc/posix-functions/ftw.texi: Likewise.
13802         * doc/posix-functions/getrlimit.texi: Likewise.
13803         * doc/posix-functions/glob.texi: Likewise.
13804         * doc/posix-functions/lio_listio.texi: Likewise.
13805         * doc/posix-functions/lockf.texi: Likewise.
13806         * doc/posix-functions/mkstemp.texi: Likewise.
13807         * doc/posix-functions/mmap.texi: Likewise.
13808         * doc/posix-functions/nftw.texi: Likewise.
13809         * doc/posix-functions/openat.texi: Likewise.
13810         * doc/posix-functions/opendir.texi: Likewise.
13811         * doc/posix-functions/posix_fadvise.texi: Likewise.
13812         * doc/posix-functions/posix_fallocate.texi: Likewise.
13813         * doc/posix-functions/pread.texi: Likewise.
13814         * doc/posix-functions/pwrite.texi: Likewise.
13815         * doc/posix-functions/readdir.texi: Likewise.
13816         * doc/posix-functions/readdir_r.texi: Likewise.
13817         * doc/posix-functions/rewinddir.texi: Likewise.
13818         * doc/posix-functions/scandir.texi: Likewise.
13819         * doc/posix-functions/seekdir.texi: Likewise.
13820         * doc/posix-functions/setrlimit.texi: Likewise.
13821         * doc/posix-functions/statvfs.texi: Likewise.
13822         * doc/posix-functions/telldir.texi: Likewise.
13823         * doc/posix-functions/tmpfile.texi: Likewise.
13824         * doc/posix-functions/truncate.texi: Likewise.
13825         * doc/glibc-functions/fallocate.texi: Likewise.
13826         * doc/glibc-functions/fstatfs.texi: Likewise.
13827         * doc/glibc-functions/fts_children.texi: Likewise.
13828         * doc/glibc-functions/fts_read.texi: Likewise.
13829         * doc/glibc-functions/getdirentries.texi: Likewise.
13830         * doc/glibc-functions/mkostemp.texi: Likewise.
13831         * doc/glibc-functions/mkostemps.texi: Likewise.
13832         * doc/glibc-functions/mkstemps.texi: Likewise.
13833         * doc/glibc-functions/preadv.texi: Likewise.
13834         * doc/glibc-functions/pwritev.texi: Likewise.
13835         * doc/glibc-functions/sendfile.texi: Likewise.
13836         * doc/glibc-functions/statfs.texi: Likewise.
13837
13838 2011-07-24  Bruno Haible  <bruno@clisp.org>
13839
13840         doc: Fix typo.
13841         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13842
13843 2011-07-24  Bruno Haible  <bruno@clisp.org>
13844
13845         doc: Mention fsusage.
13846         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13847
13848 2011-07-24  Bruno Haible  <bruno@clisp.org>
13849
13850         doc: Mention new glibc headers and functions.
13851         * doc/glibc-headers/gshadow.texi: New file.
13852         * doc/glibc-functions/endsgent.texi: New file.
13853         * doc/glibc-functions/fgetsgent.texi: New file.
13854         * doc/glibc-functions/fgetsgent_r.texi: New file.
13855         * doc/glibc-functions/getsgent.texi: New file.
13856         * doc/glibc-functions/getsgent_r.texi: New file.
13857         * doc/glibc-functions/getsgnam.texi: New file.
13858         * doc/glibc-functions/getsgnam_r.texi: New file.
13859         * doc/glibc-functions/putsgent.texi: New file.
13860         * doc/glibc-functions/setsgent.texi: New file.
13861         * doc/glibc-functions/sgetsgent.texi: New file.
13862         * doc/glibc-functions/sgetsgent_r.texi: New file.
13863         * doc/glibc-functions/malloc_info.texi: New file.
13864         * doc/glibc-functions/preadv.texi: New file.
13865         * doc/glibc-functions/pwritev.texi: New file.
13866         * doc/glibc-functions/register_printf_modifier.texi: New file.
13867         * doc/glibc-functions/register_printf_specifier.texi: New file.
13868         * doc/glibc-functions/register_printf_type.texi: New file.
13869         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13870         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13871         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13872         * doc/glibc-functions/pthread_getname_np.texi: New file.
13873         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13874         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13875         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13876         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13877         * doc/glibc-functions/pthread_setname_np.texi: New file.
13878         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13879         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13880         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13881         * doc/glibc-functions/qsort_r.texi: New file.
13882         * doc/glibc-functions/quick_exit.texi: New file.
13883         * doc/glibc-functions/syncfs.texi: New file.
13884         * doc/gnulib.texi: Include them.
13885         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13886         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13887         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13888         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13889         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13890         * doc/glibc-functions/execvpe.texi: Likewise.
13891
13892 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13893
13894         ftell: don't include <unistd.h>
13895         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13896         guaranteed to define off_t, and the ftell module depends on the
13897         stdio module.
13898
13899         ftell: do not assume wraparound signed arithmetic
13900         * lib/ftell.c: Include <limits.h>.
13901         (ftell): Don't assume wraparound signed arithmetic.
13902
13903 2011-07-24  Bruno Haible  <bruno@clisp.org>
13904
13905         close: No longer depend on module 'fclose'.
13906         * modules/close (Depends-on): Remove fclose.
13907         * NEWS: Mention the change.
13908         Suggested by Sam Steingold <sds@gnu.org>.
13909
13910 2011-07-24  Bruno Haible  <bruno@clisp.org>
13911
13912         fsusage: Enable large volume support on AIX >= 5.2.
13913         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13914         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13915         instead of STAT_STATVFS.
13916         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13917
13918         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13919         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13920         f_blocks field only on MacOS X.
13921
13922         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13923         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13924         * modules/fsusage (Depends-on): Add largefile.
13925
13926 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13927
13928         * README: Modernize discussion of signed integers.
13929         Assuming overflow wraparound is no longer safe.
13930         Mention ones' complement and signed magnitude.
13931
13932 2011-07-22  Bruno Haible  <bruno@clisp.org>
13933
13934         select tests, pselect tests: Refactor.
13935         * tests/test-select.h: New file, extracted from tests/test-select.c.
13936         (select_fn): New type.
13937         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13938         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13939         test_pipe): Add my_select argument.
13940         (test_function): Renamed from main. Add my_select argument.
13941         * tests/test-select.c: Move most code to tests/test-select.h. Include
13942         test-select.h.
13943         * modules/select-tests (Files): Add tests/test-select.h.
13944         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13945         (my_select, main): New functions.
13946         * modules/pselect-tests (Files): Add tests/test-select.h,
13947         tests/macros.h, tests/signature.h.
13948         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13949         (configure.ac): Check for <sys/wait.h>.
13950
13951 2011-07-22  Bruno Haible  <bruno@clisp.org>
13952
13953         sys_select tests: Check the signature of FD_*.
13954         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13955         signature tests from here...
13956         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13957         here.
13958         * modules/sys_select-tests (Files): Add tests/signature.h.
13959
13960 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13961
13962         largefile: new module, replacing large-inode
13963         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13964         * MODULES.html.sh: Add largefile, remove large-inode.
13965         * modules/largefile, m4/largefile.m4: New files.
13966         * modules/large-inode, m4/large-inode.m4: Remove.
13967
13968         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13970         implementations that use only 32 bits to count blocks.
13971         On typical hosts with 1024-byte blocks, this fails with file
13972         systems as small as 4 TiB.  Problem reported by Herb Wartens
13973         <http://debbugs.gnu.org/9140> and this should also fix a similar
13974         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13975
13976         large-inode: New module
13977         * MODULES.html.sh: Add it.
13978         * modules/large-inode, m4/large-inode.m4: New files.
13979
13980         extensions: Enable extensions on MacOS X 10.5 and later.
13981         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13982
13983 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13984
13985         file-has-acl: use acl_extended_file_nofollow if available
13986         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13987         (acl_extended_file): New macro.
13988         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13989         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13990
13991 2011-07-21  Bruno Haible  <bruno@clisp.org>
13992
13993         Declare system functions in a way that works with C++.
13994         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13995         declare fdopendir as extern "C".
13996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13997         declare frexpl as extern "C".
13998         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13999         declare gai_strerror as extern "C".
14000         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14001         programs, declare gai_strerror as extern "C".
14002         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14003         declare getlogin_r as extern "C".
14004         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14005         as extern "C".
14006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14007         declare ldexpl as extern "C".
14008         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14009         as extern "C".
14010         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14011         program, declare getmntinfo as extern "C".
14012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14013         stpncpy as extern "C".
14014         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14015         program, declare __xpg_strerror_r as extern "C".
14016         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14017         strndup as extern "C".
14018         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14019         declare memset and bzero as extern "C".
14020         Reported by Sam Steingold <sds@gnu.org>.
14021
14022 2011-07-12  Jim Meyering  <meyering@redhat.com>
14023
14024         maint.mk: prohibit inclusion of "verify.h" without use
14025         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14026
14027 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14028
14029         timer-time: A new module to check for timer_settime()
14030         * m4/timer_time.m4: Check for the posix function.
14031         * modules/timer-time: Add the new module.
14032         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14033         Mention it.
14034
14035 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14036             Bruno Haible  <bruno@clisp.org>
14037
14038         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14040         not defined, assume POSIX threads and look for pthread_sigmask in
14041         $LIBS, without changing $CPPFLAGS.
14042
14043 2011-07-19  Bruno Haible  <bruno@clisp.org>
14044
14045         strstr: Update cross-compilation guess.
14046         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14047         CPUs, guess no, in view of glibc
14048         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14049         Suggested by Eric Blake. Reported by Reuben Thomas.
14050
14051 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14052
14053         getopt-gnu: suppress core dumps from detection code
14054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14055         to suppress core dumps that may well occur on glibc systems.
14056         * modules/getopt-gnu: Depend on nocrash.
14057
14058 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14059
14060         pthread_sigmask: ensure usleep is declared
14061         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14062         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14063
14064 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14065
14066         doc: Document NonStop portability issues.
14067         * doc/posix-functions/sigaction.texi (sigaction):
14068         * doc/posix-headers/signal.texi (signal.h):
14069         Document NonStop.  See Joachim Schmitz in
14070         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14071
14072 2011-07-15  Bruno Haible  <bruno@clisp.org>
14073
14074         ffsl, ffsll: Avoid unportable behaviour.
14075         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14076
14077 2011-07-15  Bruno Haible  <bruno@clisp.org>
14078
14079         ffs: More tests.
14080         * tests/test-ffs.c (NBITS): New macro.
14081         (main): Add more tests.
14082         * tests/test-ffsl.c (NBITS): New macro.
14083         (main): Add more tests.
14084         * tests/test-ffsll.c (NBITS): New macro.
14085         (main): Add more tests.
14086
14087 2011-07-15  Eric Blake  <eblake@redhat.com>
14088
14089         ffsl, ffsll: new modules
14090         * modules/ffsl: New file.
14091         * modules/ffsll: Likewise.
14092         * m4/ffsl.m4: Likewise.
14093         * m4/ffsll.m4: Likewise.
14094         * lib/ffsl.c: Likewise.
14095         * lib/ffsl.h: Likewise.
14096         * lib/ffsll.c: Likewise.
14097         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14098         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14099         * modules/string (Makefile.am): Substitute witnesses.
14100         * lib/strings.in.h (ffsl, ffsll): Declare.
14101         * modules/ffsl-tests: New test file.
14102         * modules/ffsll-tests: Likewise.
14103         * tests/test-ffsl.c: Likewise.
14104         * tests/test-ffsll.c: Likewise.
14105         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14106         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14107         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14108
14109         ffs: fix m4 prerequisite
14110         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14111
14112         ffs: avoid undefined behavior
14113         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14114         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14115         Reported by Bruno Haible.
14116
14117 2011-07-12  Bruno Haible  <bruno@clisp.org>
14118
14119         pthread_sigmask: Rely on module 'threadlib'.
14120         * modules/pthread_sigmask (Depends-on): Add threadlib.
14121         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14122         is defined.
14123
14124 2011-07-12  Bruno Haible  <bruno@clisp.org>
14125
14126         regex: Depend on module 'strcase'.
14127         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14128
14129 2011-07-12  Jim Meyering  <meyering@redhat.com>
14130
14131         warn-on-use: fix typo in file name
14132         * modules/snippet/warn-on-use (Files): Correct file name:
14133         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14134
14135 2011-07-12  Bruno Haible  <bruno@clisp.org>
14136
14137         strings: Document module.
14138         * doc/posix-headers/strings.texi: Mention module 'strings'.
14139
14140 2011-07-12  Bruno Haible  <bruno@clisp.org>
14141
14142         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14143         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14144         (Files, Makefile.am): Update.
14145         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14146         * modules/stdlib (Depends-on): Update.
14147
14148 2011-07-12  Bruno Haible  <bruno@clisp.org>
14149
14150         * NEWS: Mention the changes.
14151
14152         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14153         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14154         (Files, Makefile.am): Update.
14155         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14156         * modules/arpa_inet (Depends-on): Update.
14157         * modules/ctype (Depends-on): Update.
14158         * modules/dirent (Depends-on): Update.
14159         * modules/fcntl-h (Depends-on): Update.
14160         * modules/glob (Depends-on): Update.
14161         * modules/iconv-h (Depends-on): Update.
14162         * modules/inttypes-incomplete (Depends-on): Update.
14163         * modules/langinfo (Depends-on): Update.
14164         * modules/locale (Depends-on): Update.
14165         * modules/math (Depends-on): Update.
14166         * modules/netdb (Depends-on): Update.
14167         * modules/poll-h (Depends-on): Update.
14168         * modules/pty (Depends-on): Update.
14169         * modules/search (Depends-on): Update.
14170         * modules/signal (Depends-on): Update.
14171         * modules/spawn (Depends-on): Update.
14172         * modules/stdio (Depends-on): Update.
14173         * modules/stdlib (Depends-on): Update.
14174         * modules/string (Depends-on): Update.
14175         * modules/strings (Depends-on): Update.
14176         * modules/sys_file (Depends-on): Update.
14177         * modules/sys_ioctl (Depends-on): Update.
14178         * modules/sys_select (Depends-on): Update.
14179         * modules/sys_socket (Depends-on): Update.
14180         * modules/sys_stat (Depends-on): Update.
14181         * modules/sys_time (Depends-on): Update.
14182         * modules/sys_times (Depends-on): Update.
14183         * modules/sys_utsname (Depends-on): Update.
14184         * modules/sys_wait (Depends-on): Update.
14185         * modules/termios (Depends-on): Update.
14186         * modules/time (Depends-on): Update.
14187         * modules/unistd (Depends-on): Update.
14188         * modules/wchar (Depends-on): Update.
14189         * modules/wctype-h (Depends-on): Update.
14190         * MODULES.html.sh (Support for building libraries and executables):
14191         Update.
14192
14193         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14194         * modules/snippet/unused-parameter: Renamed from
14195         modules/unused-parameter.
14196         (Files, Makefile.am): Update.
14197         * build-aux/snippet/unused-parameter.h: Renamed from
14198         build-aux/unused-parameter.h.
14199         * modules/selinux-h (Depends-on): Update.
14200         * modules/unistr/base (Depends-on): Update.
14201         * MODULES.html.sh (Core language properties): Update.
14202
14203         Rename module 'link-warning' to 'snippet/link-warning'.
14204         * modules/snippet/link-warning: Renamed from modules/link-warning.
14205         (Files, Makefile.am): Update.
14206         * build-aux/snippet/link-warning.h: Renamed from
14207         build-aux/link-warning.h.
14208         * MODULES.html.sh (Support for building libraries and executables):
14209         Update.
14210
14211         Rename module 'c++defs' to 'snippet/c++defs'.
14212         * modules/snippet/c++defs: Renamed from modules/c++defs.
14213         (Files, Makefile.am): Update.
14214         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14215         * modules/arpa_inet (Depends-on): Update.
14216         * modules/ctype (Depends-on): Update.
14217         * modules/dirent (Depends-on): Update.
14218         * modules/fcntl-h (Depends-on): Update.
14219         * modules/glob (Depends-on): Update.
14220         * modules/iconv-h (Depends-on): Update.
14221         * modules/langinfo (Depends-on): Update.
14222         * modules/locale (Depends-on): Update.
14223         * modules/math (Depends-on): Update.
14224         * modules/netdb (Depends-on): Update.
14225         * modules/poll-h (Depends-on): Update.
14226         * modules/pty (Depends-on): Update.
14227         * modules/search (Depends-on): Update.
14228         * modules/signal (Depends-on): Update.
14229         * modules/spawn (Depends-on): Update.
14230         * modules/stdio (Depends-on): Update.
14231         * modules/stdlib (Depends-on): Update.
14232         * modules/string (Depends-on): Update.
14233         * modules/strings (Depends-on): Update.
14234         * modules/sys_ioctl (Depends-on): Update.
14235         * modules/sys_select (Depends-on): Update.
14236         * modules/sys_socket (Depends-on): Update.
14237         * modules/sys_stat (Depends-on): Update.
14238         * modules/sys_time (Depends-on): Update.
14239         * modules/sys_wait (Depends-on): Update.
14240         * modules/termios (Depends-on): Update.
14241         * modules/time (Depends-on): Update.
14242         * modules/unistd (Depends-on): Update.
14243         * modules/wchar (Depends-on): Update.
14244         * modules/wctype-h (Depends-on): Update.
14245
14246         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14247         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14248         (Files, Makefile.am): Update.
14249         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14250         * modules/argv-iter (Depends-on): Update.
14251         * modules/arpa_inet (Depends-on): Update.
14252         * modules/dirent (Depends-on): Update.
14253         * modules/fcntl-h (Depends-on): Update.
14254         * modules/fnmatch (Depends-on): Update.
14255         * modules/getopt-posix (Depends-on): Update.
14256         * modules/glob (Depends-on): Update.
14257         * modules/iconv-h (Depends-on): Update.
14258         * modules/inttypes-incomplete (Depends-on): Update.
14259         * modules/locale (Depends-on): Update.
14260         * modules/math (Depends-on): Update.
14261         * modules/netdb (Depends-on): Update.
14262         * modules/search (Depends-on): Update.
14263         * modules/signal (Depends-on): Update.
14264         * modules/spawn (Depends-on): Update.
14265         * modules/stdio (Depends-on): Update.
14266         * modules/stdlib (Depends-on): Update.
14267         * modules/string (Depends-on): Update.
14268         * modules/strings (Depends-on): Update.
14269         * modules/sys_socket (Depends-on): Update.
14270         * modules/sys_stat (Depends-on): Update.
14271         * modules/sys_time (Depends-on): Update.
14272         * modules/sys_times (Depends-on): Update.
14273         * modules/sys_utsname (Depends-on): Update.
14274         * modules/time (Depends-on): Update.
14275         * modules/unistd (Depends-on): Update.
14276         * modules/wchar (Depends-on): Update.
14277         * MODULES.html.sh (Support for building libraries and executables):
14278         Update.
14279
14280 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14281
14282         Improvements on _Noreturn and related modules.
14283
14284         modules/_Exit-tests: test _Noreturn too
14285         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14286         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14287         (main): Use them.
14288
14289         stdnoreturn, stdnoreturn-tests: remove modules
14290         They're not needed here and a bit premature for use elsewhere.  See
14291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14292         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14293         * tests/test-stdnoreturn.c: Remove files.
14294         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14295         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14296         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14297         and using noreturn.
14298         * modules/openat, modules/sigpipe-die, modules/xalloc:
14299         * modules/xmemdup0, modules/xstrtol:
14300         Remove dependency on stdnoreturn.
14301
14302         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14303         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14304         Reparenthesize to avoid GCC warning.
14305         Support Microsoft's syntax.
14306         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14307
14308         _Noreturn-tests: remove module
14309         * modules/_Noreturn-tests: Remove.
14310         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14311         * tests/test-_Noreturn.c: Remove.
14312         * tests/test-stdnoreturn.c: Merge from the old
14313         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14314
14315 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14316
14317         _Noreturn, stdnoreturn, and related modules.
14318
14319         * top/maint.mk: Adjust to new noreturn support.
14320         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14321         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14322
14323         xalloc: use stdnoreturn.h
14324         * lib/xalloc.h: Include <stdnoreturn.h>.
14325         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14326         * modules/xalloc (Depends-on): Add stdnoreturn.
14327
14328         xstrtol: use stdnoreturn.h
14329         * lib/xstrtol.h: Include <stdnoreturn.h>.
14330         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14331         * modules/xstrtol (Depends-on): Add stdnoreturn.
14332
14333         xmemdup0: use stdnoreturn.h
14334         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14335         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14336         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14337
14338         sigpipe-die: use stdnoreturn.h
14339         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14340         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14341         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14342
14343         openat: use stdnoreturn.h
14344         * lib/openat.h: Include <stdnoreturn.h>.
14345         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14346         * modules/openat (Depends-on): Add stdnoreturn.
14347
14348         * lib/openat-die.c (openat_save_fail): Modernize comment.
14349
14350         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14351
14352         * lib/glthread/thread.h: Modernize comment.
14353
14354         obstack: use _Noreturn
14355         * lib/obstack.c (__attribute__): Remove macro.
14356         (print_and_abort): Use _Noreturn.
14357
14358         c-stack: use _Noreturn
14359         * lib/c-stack.c (die, overflow_handler, segv_handler):
14360         Use _Noreturn rather than __attribute__((noreturn)).
14361
14362         argmatch-tests, exclude_tests: use _Noreturn
14363         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14364         Remove.
14365         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14366
14367         stdlib: use _Noreturn
14368         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14369         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14370         * modules/stdlib (Depends-on): Add _Noreturn.
14371         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14372
14373         stdnoreturn-tests: new module
14374         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14375
14376         stdnoreturn: new module
14377         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14378         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14379
14380         _Noreturn-tests: new module
14381         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14382
14383         _Noreturn: new module
14384         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14385         New section, mentioning it.
14386         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14387
14388         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14389
14390 2011-07-11  Eric Blake  <eblake@redhat.com>
14391
14392         ffs: new module
14393         * modules/ffs: New file.
14394         * m4/ffs.m4: Likewise.
14395         * lib/ffs.c: Likewise.
14396         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14397         * modules/strings (Makefile.am): Substitute witness.
14398         (Depends-on): Add c++defs.
14399         * lib/strings.in.h (ffs): Declare.
14400         * modules/ffs-tests: New test file.
14401         * tests/test-ffs.c: Test new module.
14402         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14403         * doc/posix-functions/ffs.texi (ffs): Likewise.
14404
14405         regex: avoid compiler warning
14406         * lib/regex.c (includes): Include <strings.h>, for use of
14407         strcasecmp in regcomp.c.
14408         Reported by Joachim Schmitz.
14409
14410 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14411
14412         stdint: respect system's intmax_t if INTMAX_MAX
14413         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14414         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14415         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14416         long but int64_t is long long, and where we will clash with the
14417         system intmax_t if we override it.  See
14418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14419         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14420         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14421         similarly for UINTMAX_C.
14422
14423 2011-07-08  Bruno Haible  <bruno@clisp.org>
14424
14425         pthread_sigmask tests: Avoid a compiler warning.
14426         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14427         non-zero.
14428
14429         sigprocmask tests: A better way to avoid a compiler warning.
14430         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14431         (main): Complain if system() returns non-zero.
14432         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14433
14434 2011-07-08  Bruno Haible  <bruno@clisp.org>
14435
14436         pthread_sigmask: Work around IRIX bug.
14437         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14438         bug.
14439         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14440         there may be unblocked pending signals.
14441         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14442
14443 2011-07-08  Bruno Haible  <bruno@clisp.org>
14444
14445         pthread_sigmask: Work around Cygwin bug.
14446         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14447         bug.
14448         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14449         the system's pthread_sigmask function.
14450         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14451
14452 2011-07-08  Bruno Haible  <bruno@clisp.org>
14453
14454         pthread_sigmask: Work around bug in single-threaded implementation.
14455         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14456         FreeBSD, HP-UX, Solaris bug.
14457         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14458         * lib/pthread_sigmask.c: Include <stddef.h>.
14459         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14460         the system's pthread_sigmask function.
14461         * modules/pthread_sigmask (configure.ac): Invoke
14462         gl_PREREQ_PTHREAD_SIGMASK.
14463         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14464         HP-UX, Solaris.
14465
14466 2011-07-08  Eric Blake  <eblake@redhat.com>
14467
14468         test-sigprocmask: avoid compiler warning
14469         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14470         * tests/test-sigprocmask.c (main): Use it to silence warning.
14471         Reported by Jim Meyering.
14472
14473         test-snprintf: avoid compiler warning
14474         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14475         * tests/test-vsnprintf.c (main): Likewise.
14476         Reported by Jim Meyering.
14477
14478 2011-07-08  Bruno Haible  <bruno@clisp.org>
14479
14480         Tests for module 'pthread_sigmask'.
14481         * modules/pthread_sigmask-tests: New file.
14482         * tests/test-pthread_sigmask1.c: New file, based on
14483         tests/test-sigprocmask.c.
14484         * tests/test-pthread_sigmask2.c: New file.
14485
14486 2011-07-08  Jim Meyering  <meyering@redhat.com>
14487
14488         test-getopt.h: avoid warning about an unused variable
14489         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14490
14491 2011-07-07  Jim Meyering  <meyering@redhat.com>
14492
14493         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14494         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14495         now that it no longer contains leading TABs.
14496         Remove unused "url=FIXME" statement.
14497
14498 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14501         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14502         When gl_THREADLIB is not in use, assume that the POSIX sematics
14503         are desired.  This is better for Emacs, which uses POSIX semantics
14504         on GNUish and/or POSIXish platforms, and does not use threads at
14505         all otherwise.
14506
14507         pthread_sigmask: fix typo when testing for libraries
14508         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14509         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14510
14511 2011-07-08  Eric Blake  <eblake@redhat.com>
14512
14513         fts: introduce FTS_NOATIME
14514         * lib/fts_.h (FTS_NOATIME): New bit flag.
14515         (FTS_OPTIONMASK): Adjust.
14516         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14517         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14518
14519 2011-07-08  Bruno Haible  <bruno@clisp.org>
14520
14521         Tests for module 'thread'.
14522         * modules/thread-tests: New file.
14523         * tests/test-thread_self.c: New file.
14524         * tests/test-thread_create.cc: New file.
14525
14526 2011-07-08  Bruno Haible  <bruno@clisp.org>
14527
14528         thread: Avoid gcc warnings when using gl_thread_self().
14529         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14530         'void *'.
14531         (gl_thread_self_pointer): Update.
14532
14533 2011-07-07  Bruno Haible  <bruno@clisp.org>
14534
14535         signal-c++-tests: Check declaration of pthread_sigmask.
14536         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14537         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14538         $(LIB_PTHREAD_SIGMASK).
14539
14540 2011-07-07  Bruno Haible  <bruno@clisp.org>
14541
14542         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14543         * lib/signal.in.h (pthread_sigmask): Override if
14544         REPLACE_PTHREAD_SIGMASK is 1.
14545         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14546         REPLACE_PTHREAD_SIGMASK.
14547         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14548         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14549         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14550         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14551         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14552
14553 2011-07-07  Bruno Haible  <bruno@clisp.org>
14554
14555         pthread_sigmask: Ensure declaration in <signal.h>.
14556         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14557         include <pthread.h>.
14558         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14559         problem.
14560
14561 2011-07-07  Bruno Haible  <bruno@clisp.org>
14562
14563         pthread_sigmask: Document the module.
14564         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14565
14566 2011-07-07  Bruno Haible  <bruno@clisp.org>
14567
14568         pthread_sigmask: Follow gnulib conventions.
14569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14570         gl_PTHREAD_SIGMASK.
14571         * modules/pthread_sigmask (configure.ac): Update.
14572
14573 2011-07-07  Bruno Haible  <bruno@clisp.org>
14574
14575         pthread_sigmask: Make declaration C++ safe.
14576         * lib/signal.in.h: In two special conditions, just do an #include_next.
14577         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14578         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14579         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14580         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14581         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14582         not REPLACE_PTHREAD_MASK.
14583         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14584         not REPLACE_PTHREAD_MASK.
14585         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14586
14587 2011-07-07  Bruno Haible  <bruno@clisp.org>
14588
14589         pthread_sigmask: Fix return value.
14590         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14591         * lib/pthread_sigmask.c: New file.
14592         * modules/pthread_sigmask (Files): Add it.
14593         (configure.ac): Invoke AC_LIBOBJ.
14594
14595 2011-07-07  Eric Blake  <eblake@redhat.com>
14596
14597         getopt: more portable argv creation
14598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14599         const, use char arrays rather than strings.
14600         Suggested by Paul Eggert.
14601
14602 2011-07-07  Bruno Haible  <bruno@clisp.org>
14603
14604         Tests for module 'sigprocmask'.
14605         * modules/sigprocmask-tests: New file.
14606         * tests/test-sigprocmask.c: New file.
14607
14608 2011-07-07  Bruno Haible  <bruno@clisp.org>
14609
14610         float tests: Tweak.
14611         * tests/test-float.c (main): Tweak skip message.
14612
14613 2011-07-07  Eric Blake  <eblake@redhat.com>
14614
14615         getopt: avoid compiler warning during configure
14616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14617         assigning string literals to non-const pointer.
14618
14619         getopt-gnu: avoid crash in glibc getopt
14620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14621         * tests/test-getopt.h (test_getopt): Enhance test.
14622         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14623         * doc/posix-functions/getopt.texi (getopt): Document it.
14624         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14625         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14626         Likewise.
14627
14628 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14629
14630         getopt: handle W; without long options in getopt [BZ #12922]
14631         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14632         but no long options are defined, just return 'W'.
14633
14634 2011-07-07  Bruno Haible  <bruno@clisp.org>
14635
14636         Avoid literal tabs.
14637         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14638         variable containing a tab instead of a literal tab.
14639         Reported by Jim Meyering.
14640
14641 2011-07-07  Bruno Haible  <bruno@clisp.org>
14642
14643         Comments.
14644         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14645
14646 2011-07-06  Bruno Haible  <bruno@clisp.org>
14647
14648         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14649         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14650         <winsock2.h>.
14651         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14652         lib/sys_socket.in.h.
14653         (close, gethostname): Hide declarations from <winsock2.h>.
14654         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14655         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14656         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14657         (select): Don't override if gnulib's <sys/select.h> was already
14658         included.
14659         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14660         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14661         setsockopt, shutdown, select): Tweak indentation.
14662
14663 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14664
14665         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14666         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14667         in an application that does not use the sys_select module.
14668
14669 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14670
14671         poll: do not return 0 on timeout=-1
14672         * lib/poll.c: Loop with yield if no events occured
14673
14674 2011-07-06  Eric Blake  <eblake@redhat.com>
14675
14676         pthread_sigmask: always replace when not using pthread
14677         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14678         replacement when using some threading other than pthread.  Fix
14679         logic bug.
14680
14681 2011-07-06  Bruno Haible  <bruno@clisp.org>
14682
14683         Comments.
14684         * m4/printf.m4: Update comments about mingw.
14685
14686 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14687
14688         sys_select: define sigset_t more portably
14689         * lib/sys_select.in.h: Always include <sys/types.h>, since
14690         we now need sigset_t and mingw defines it there.
14691         Include <signal.h> before split inclusion guard, to avoid
14692         mishaps on Solaris, whose <signal.h> eventually includes us.
14693         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14694         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14695         which come from ...
14696         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14697         gl_CHECK_TYPE_SIGSET_T.
14698         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14699         does the real work.
14700         * modules/sys_select (Depends-on): Add 'signal'.
14701
14702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14703         Suggested by Bruno Haible.
14704
14705         pselect: Use pthread_sigmask, not sigprocmask.
14706         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14707         multithreaded apps better than sigprocmask does.
14708         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14709         sigprocmask directly.
14710
14711 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14712
14713         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14714         Don't #undef,  since we don't need any underlying pselect.
14715         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14716         (Depends-on): Add select.
14717         (Link): Add $(LIBSOCKET).
14718         These changes suggested by Bruno Haible.
14719
14720         pselect: document better
14721         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14722         * doc/posix-functions/pselect.texi (pselect): Document new module.
14723
14724         pthread_sigmask: new module
14725         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14726         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14727         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14728         This is done only as a macro; I don't know how well that'll
14729         work for C++.  Move <sys/types.h> include before the include_next,
14730         to avoid mishap on Solaris.
14731         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14732         * modules/signal (Makefile.am): Substitute the check's results.
14733         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14734
14735         test-pselect: new module
14736         * modules/pselect-tests, tests/test-pselect.c: New files.
14737         * tests/test-select.c, tests/test-sys_select-c++.cc:
14738         If TEST_PSELECT is defined, test pselect instead of testing select.
14739
14740         * tests/test-sys_select.c (sigset_t): Test for it, too.
14741         Suggested by Bruno Haible.
14742
14743 2011-07-05  Eric Blake  <eblake@redhat.com>
14744
14745         snprintf: guarantee %1$d, for libintl
14746         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14747         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14748         * doc/posix-functions/snprintf.texi (snprintf): Update.
14749         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14750         * tests/test-snprintf.c (main): Enhance test.
14751         * tests/test-vsnprintf.c (main): Likewise.
14752
14753 2011-07-05  Jim Meyering  <meyering@redhat.com>
14754
14755         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14756         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14757         per Bruno's request, to accommodate this idiom (no space after "#")
14758         even when the function is inside an #if block:
14759         char *
14760         gets (char *s)
14761         #undef gets
14762         {
14763           ...
14764         }
14765
14766 2011-07-04  Jim Meyering  <meyering@redhat.com>
14767
14768         maint: indent with spaces, not TABs, and add a rule to check this
14769         * tests/test-userspec.c: Indent with spaces, not TABs.
14770         * tests/test-argp.c: Likewise.
14771         * tests/test-c-stack2.sh: Likewise.
14772         * tests/test-parse-duration.sh: Likewise
14773         * m4/strtod.m4: Likewise.
14774         * m4/alloca.m4: Likewise.
14775         * m4/pselect.m4: Likewise.
14776         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14777
14778 2011-07-03  Jim Meyering  <meyering@redhat.com>
14779
14780         maint.mk: correct omissions in prohibit_argmatch_without_use check
14781         This rule would mistakenly report that argmatch.h is included without
14782         use even when both the argmatch and invalid_arg macro were used.
14783         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14784         of argmatch and invalid_arg.
14785
14786 2011-07-03  Bruno Haible  <bruno@clisp.org>
14787
14788         Comments about EINTR.
14789         * lib/safe-read.h: Explain the purpose of this module.
14790         * lib/safe-write.h: Likewise.
14791         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14792         module.
14793         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14794         module.
14795         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14796
14797 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14798
14799         xnanosleep: Rewrite to use new dtotimespec module.
14800         It has the conversion code that used to be in xnanosleep.
14801         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14802         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14803         (TIME_T_MAX): Remove.
14804         (xnanosleep): Rewrite in terms of dtotimespec.
14805         * modules/xnanosleep (Depends-on): Add dtotimespec.
14806         Remove intprops, stdbool.
14807
14808         timespec-add, timespec-sub: new modules
14809         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14810         * lib/timespec-add.c, lib/timespec-sub.c:
14811         * modules/timespec-add, modules/timespec-sub: New files.
14812
14813         dtotimespec: new module
14814         * lib/timespec.h (dtotimespec): New decl.
14815         * lib/dtotimespec.c, modules/dtotimespec: New files.
14816
14817         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14818
14819         pselect: new module
14820         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14821         (pselect): New decls.
14822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14823         since the standard pselect decl uses 'restrict'.
14824         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14825         HAVE_PSELECT, REPLACE_PSELECT.
14826         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14827         HAVE_PSELECT, REPLACE_PSELECT.
14828         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14829
14830         sys_select: don't depend on sys_socket
14831         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14833         This fix works on GNU and GNU-like platforms, but has not been tested
14834         on native Windows.
14835         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14837         gl_HEADER_SYS_SOCKET.
14838         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14839         gl_PREREQ_SYS_H_WINSOCK2.
14840
14841 2011-06-29  Eric Blake  <eblake@redhat.com>
14842
14843         pipe2: fix C89 compile problem
14844         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14845         Reported by Bruno Haible.
14846
14847         pipe, pipe2: don't corrupt fd on error
14848         * lib/pipe.c (pipe): Leave fd unchanged on error.
14849         * lib/pipe2.c (pipe2): Likewise.
14850         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14851         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14852
14853 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14854
14855         mmap-anon: do not use regular expressions inadvertently
14856         * m4/mmap-anon.m4: Remove trailing period from strings sought
14857         in the output.
14858
14859 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         nanosleep: fix integer overflow problem
14862         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14863         arithmetic wraps around on overflow.
14864
14865         nanosleep: simplify carrying
14866         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14867         first call to the underyling nanosleep, not for the last one.
14868         This doesn't fix any bugs, but it simplifies the computation of
14869         the remaining delay.  Found while auditing integer overflow issues.
14870
14871         dup2: remove test for existence of fcntl
14872         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14873         "#if HAVE_FCNTL", in the configure-time test program.
14874         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14875         and therefore speeds up "configure" a bit.  Found while
14876         adding the dup2 module to Emacs.
14877
14878 2011-06-24  Eric Blake  <eblake@redhat.com>
14879
14880         maint.mk: enhance useless header checks
14881         * top/maint.mk (_sc_header_without_use): Check both include
14882         styles.
14883         (sc_prohibit_assert_without_use)
14884         (sc_prohibit_close_stream_without_use)
14885         (sc_prohibit_getopt_without_use)
14886         (sc_prohibit_quotearg_without_use)
14887         (sc_prohibit_quote_without_use)
14888         (sc_prohibit_long_options_without_use)
14889         (sc_prohibit_inttostr_without_use)
14890         (sc_prohibit_ignore_value_without_use)
14891         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14892         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14893         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14894         (sc_prohibit_hash_pjw_without_use)
14895         (sc_prohibit_safe_read_without_use)
14896         (sc_prohibit_argmatch_without_use)
14897         (sc_prohibit_canonicalize_without_use)
14898         (sc_prohibit_root_dev_ino_without_use)
14899         (sc_prohibit_openat_without_use)
14900         (sc_prohibit_c_ctype_without_use)
14901         (sc_prohibit_signal_without_use)
14902         (sc_prohibit_stdio--_without_use)
14903         (sc_prohibit_stdio-safer_without_use)
14904         (sc_prohibit_strings_without_use)
14905         (sc_prohibit_intprops_without_use)
14906         (sc_prohibit_stddef_without_use)
14907         (sc_prohibit_xfreopen_without_use): Update clients.
14908
14909 2011-06-24  Jim Meyering  <meyering@redhat.com>
14910
14911         syntax-check: keep one maint.mk rule in sync with its header
14912         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14913         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14914         I prefer to avoid temporary files here, so use <(...), but that
14915         is not supported by /bin/sh, so...
14916         (SHELL): Define to /bin/bash.
14917
14918 2011-06-24  Eric Blake  <eblake@redhat.com>
14919
14920         maint.mk: update sc_prohibit_intprops_without_use
14921         * top/maint.mk (_intprops_names): Match recent changes.
14922
14923 2011-06-24  Bruno Haible  <bruno@clisp.org>
14924
14925         strerror-override: No-op tweak.
14926         * lib/strerror-override.h (strerror_override): Reorder conditions,
14927         for consistency with lib/strerror-override.c.
14928
14929 2011-06-23  Eric Blake  <eblake@redhat.com>
14930
14931         maint.mk: test further PATH_MAX issues
14932         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14933         (sc_prohibit_path_max_allocation): ...and also test alloca.
14934         Suggested by Jim Meyering.
14935
14936 2011-06-22  Eric Blake  <eblake@redhat.com>
14937
14938         maint.mk: add syntax-check to avoid char[PATH_MAX]
14939         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14940
14941         stat: be robust to PATH_MAX definition
14942         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14943         * modules/stat (Depends-on): Add verify.
14944
14945         link: work around IRIX bug
14946         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14947         * lib/link.c (rpl_link): Work around it.
14948         * tests/test-link.h (test_link): Enhance test.
14949         * doc/posix-functions/link.texi (link): Document the bug.
14950
14951         getopt: silence clang warning
14952         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14953         dereference.
14954         Reported by Gustavo Martin Domato.
14955
14956 2011-06-22  Jim Meyering  <meyering@redhat.com>
14957
14958         bootstrap: do not insert a blank line into each .gitignore file
14959         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14960
14961 2011-06-21  Eric Blake  <eblake@redhat.com>
14962
14963         perror: test for output mismatch
14964         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14965         perror on IRIX.
14966
14967         strerror_r: fix OpenBSD behavior on out-of-range
14968         * lib/strerror_r.c (strerror_r): Always use maximal string.
14969         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14970
14971         strerror_r: fix OpenBSD behavior on 0
14972         * lib/strerror-override.c (strerror_override): Also override 0
14973         when needed.
14974         * lib/strerror-override.h (strerror_override): Likewise.
14975         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14976         earlier.
14977         * lib/strerror_r.c (strerror_r): Likewise.
14978         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14979         behavior...
14980         (gl_FUNC_STRERROR_0): ...into new macro.
14981         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14982         is overridden.
14983         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14984         * modules/strerror-override (Files): Add strerror.m4.
14985         (configure.ac): Also provide override for 0 when needed.
14986         * doc/posix-functions/strerror.texi (strerror): Document this.
14987         * doc/posix-functions/perror.texi (perror): Likewise.
14988
14989         perror: adjust array size
14990         * modules/perror (Depends-on): Add strerror-override.
14991         * lib/perror.c (perror): Use it to avoid magic number.
14992
14993         strerror-override: reduce size
14994         * lib/strerror-override.c (strerror_override): Use fewer lines.
14995
14996 2011-06-20  Bruno Haible  <bruno@clisp.org>
14997
14998         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14999         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15000
15001 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15002
15003         alloca: port to compilers that can optimize like GCC 4.6.0
15004         * lib/alloca.c (find_stack_direction): New signature, taken from
15005         Autoconf git.  This works with GCC 4.6.0.  This code should never
15006         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15007         be used with other compilers that optimize as well as GCC 4.6.0 does.
15008         (alloca): Adjust to new signature.
15009         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15010         New macro, which patches Autoconf in a similar way.
15011
15012         c-stack: stop worrying about stack direction
15013         * lib/c-stack.c (find_stack_direction): Remove.
15014         (segv_handler): Don't worry about stack direction growth, as it's
15015         too much of a pain to configure this correctly, given how compilers
15016         are optimizing-away our stack-growth detection code.  Instead, assume
15017         that any access to just before or just after the stack is OK.
15018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15019         Don't require AC_FUNC_ALLOCA; no longer needed.
15020
15021 2011-06-20  Eric Blake  <eblake@redhat.com>
15022
15023         test-stat: don't allocate PATH_MAX bytes
15024         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15025         PATH_MAX-sized buffer.
15026         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15027         * modules/stat-tests (Depends-on): Likewise.
15028         * tests/test-fstatat.c (includes): Drop pathmax.h.
15029         * tests/test-stat.c (includes): Likewise.
15030         Reported by Bruno Haible.
15031
15032 2011-06-20  Bruno Haible  <bruno@clisp.org>
15033
15034         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15035         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15036         * lib/float.c: New file.
15037         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15038         REPLACE_FLOAT_LDBL.
15039         * modules/float (Files): Add lib/float.c.
15040         (configure.ac): Invoke AC_LIBOBJ.
15041         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15042
15043 2011-06-20  Bruno Haible  <bruno@clisp.org>
15044
15045         Tests for module 'float'.
15046         * modules/float-tests: New file.
15047         * tests/test-float.c: New file.
15048
15049 2011-06-19  Bruno Haible  <bruno@clisp.org>
15050
15051         isinf: Coding style.
15052         * lib/isinf.c: Use GNU coding style.
15053
15054 2011-06-19  Bruno Haible  <bruno@clisp.org>
15055
15056         linkat test: Avoid test failure on AIX 7.1.
15057         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15058         * tests/test-link.h (test_link): Likewise.
15059
15060 2011-06-19  Bruno Haible  <bruno@clisp.org>
15061
15062         pread test: Avoid test failure on OpenBSD 4.9.
15063         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15064
15065 2011-06-19  Bruno Haible  <bruno@clisp.org>
15066
15067         sprintf-posix: Fix test failure on AIX 7.1.
15068         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15069         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15070         on AIX.
15071         * doc/posix-functions/fprintf.texi: Likewise.
15072         * doc/posix-functions/printf.texi: Likewise.
15073         * doc/posix-functions/snprintf.texi: Likewise.
15074         * doc/posix-functions/sprintf.texi: Likewise.
15075         * doc/posix-functions/vdprintf.texi: Likewise.
15076         * doc/posix-functions/vfprintf.texi: Likewise.
15077         * doc/posix-functions/vprintf.texi: Likewise.
15078         * doc/posix-functions/vsnprintf.texi: Likewise.
15079         * doc/posix-functions/vsprintf.texi: Likewise.
15080
15081 2011-06-19  Bruno Haible  <bruno@clisp.org>
15082
15083         roundl-ieee: Fix test failure on AIX 7.1.
15084         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15085         * doc/posix-functions/roundl.texi: Mention problem with negative
15086         arguments.
15087
15088 2011-06-19  Bruno Haible  <bruno@clisp.org>
15089
15090         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15091         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15092         * doc/posix-functions/round.texi: Mention problem with negative
15093         arguments.
15094         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15095
15096 2011-06-19  Bruno Haible  <bruno@clisp.org>
15097
15098         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15099         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15100         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15101         * doc/posix-functions/roundf.texi: Mention problem with negative
15102         arguments.
15103         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15104
15105 2011-06-19  Bruno Haible  <bruno@clisp.org>
15106
15107         ceilf-ieee: Work around bug on MacOS X 10.5.
15108         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15109
15110         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15111         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15112         IEEE compliant, avoid compiler optimizations.
15113         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15114         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15115         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15116         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15117         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15118         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15119         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15121         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15122         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15123
15124 2011-06-19  Bruno Haible  <bruno@clisp.org>
15125
15126         ceilf-ieee: Work around bug on AIX 7.1.
15127         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15128         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15129
15130 2011-06-19  Bruno Haible  <bruno@clisp.org>
15131
15132         ceil-ieee: Work around bug on AIX 7.1.
15133         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15134         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15135
15136 2011-06-18  Bruno Haible  <bruno@clisp.org>
15137
15138         fsync test: Avoid test failure on MacOS X and AIX.
15139         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15140         EINVAL.
15141
15142 2011-06-18  Bruno Haible  <bruno@clisp.org>
15143
15144         openat, fdopendir tests: Fix link errors.
15145         * modules/openat-tests (Depends-on): Add progname.
15146         * modules/fdopendir-tests (Depends-on): Likewise.
15147         * tests/test-fchownat.c: Include progname.h.
15148         (main): Call set_program_name.
15149         * tests/test-fstatat.c: Include progname.h.
15150         (main): Call set_program_name.
15151         * tests/test-mkdirat.c: Include progname.h.
15152         (main): Call set_program_name.
15153         * tests/test-openat.c: Include progname.h.
15154         (main): Call set_program_name.
15155         * tests/test-unlinkat.c: Include progname.h.
15156         (main): Call set_program_name.
15157         * tests/test-fdopendir.c: Include progname.h.
15158         (main): Call set_program_name.
15159
15160 2011-06-18  Bruno Haible  <bruno@clisp.org>
15161
15162         Doc update.
15163         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15164         HP-UX.
15165         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15166
15167 2011-06-18  Bruno Haible  <bruno@clisp.org>
15168
15169         getcwd tests: Avoid compilation error on HP-UX 11.31.
15170         * modules/getcwd-tests (Depends-on): Add pathmax.
15171         * tests/test-getcwd.c: Include pathmax.h.
15172
15173 2011-06-18  Bruno Haible  <bruno@clisp.org>
15174
15175         isfinite, isinf: Fix link error on AIX 6 and 7.
15176         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15177         needed, also test the macro with a 'float' argument.
15178         * m4/isinf.m4 (gl_ISINF): Likewise.
15179
15180 2011-06-18  Bruno Haible  <bruno@clisp.org>
15181
15182         getloadavg: Don't clobber LIBS. Regression from previous commit.
15183         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15184         AC_CHECK_LIB from here...
15185         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15186         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15187         gl_func_getloadavg_done.
15188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15189
15190 2011-06-18  Bruno Haible  <bruno@clisp.org>
15191
15192         clean-temp: Improve documentation.
15193         * lib/clean-temp.h: Explain better how to use this module.
15194         Reported by John Darrington <john@darrington.wattle.id.au>.
15195
15196 2011-06-17  Bruno Haible  <bruno@clisp.org>
15197
15198         pread, pwrite: Avoid cc warning on AIX.
15199         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15200         (pwrite): Likewise.
15201
15202 2011-06-17  Bruno Haible  <bruno@clisp.org>
15203
15204         spawn-pipe tests: Fix link error.
15205         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15207
15208 2011-06-17  Bruno Haible  <bruno@clisp.org>
15209
15210         Tests: Remove unnecessary dependency.
15211         * modules/canonicalize-tests (Depends-on): Remove progname.
15212         * modules/chown-tests (Depends-on): Likewise.
15213         * modules/dirname-tests (Depends-on): Likewise.
15214         * modules/fdopendir-tests (Depends-on): Likewise.
15215         * modules/fdutimensat-tests (Depends-on): Likewise.
15216         * modules/hash-tests (Depends-on): Likewise.
15217         * modules/lchown-tests (Depends-on): Likewise.
15218         * modules/linkat-tests (Depends-on): Likewise.
15219         * modules/renameat-tests (Depends-on): Likewise.
15220         * modules/spawn-pipe-tests (Depends-on): Likewise.
15221         * modules/utimensat-tests (Depends-on): Likewise.
15222
15223 2011-06-17  Bruno Haible  <bruno@clisp.org>
15224
15225         spawn-pipe tests: Fix link error.
15226         * tests/test-spawn-pipe-child.c: Undefine fflush.
15227
15228 2011-06-17  Bruno Haible  <bruno@clisp.org>
15229
15230         Fix tests link errors.
15231         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15232         * modules/chown-tests (Makefile.am): Don't link test-chown with
15233         LIBINTL.
15234         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15235         LIBINTL.
15236         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15237         LIBINTL.
15238         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15239         LIBINTL.
15240
15241 2011-06-16  Bruno Haible  <bruno@clisp.org>
15242
15243         crypto/gc-sha1: Fix recent regression.
15244         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15245         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15246
15247         crypto/gc-md5: Fix recent regression.
15248         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15249
15250         crypto/gc-md4: Fix recent regression.
15251         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15252         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15253
15254         crypto/gc-arctwo: Fix recent regression.
15255         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15256         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15257
15258         crypto/gc-rijndael: Fix recent regression.
15259         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15260         (configure.ac): Invoke AC_LIBOBJ here.
15261         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15263
15264         crypto/gc-hmac-sha1: Fix recent regression.
15265         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15266         (configure.ac): Invoke AC_LIBOBJ here.
15267         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15269
15270         crypto/gc-hmac-md5: Fix recent regression.
15271         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15272         (configure.ac): Invoke AC_LIBOBJ here.
15273         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15275
15276         crypto/gc-des: Fix recent regression.
15277         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15278         (configure.ac): Invoke AC_LIBOBJ here.
15279         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15281
15282         crypto/gc-arcfour: Fix recent regression.
15283         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15284         (configure.ac): Invoke AC_LIBOBJ here.
15285         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15287
15288 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15289
15290         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15291         After the 2011-05-21 change, this macro requires
15292         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15293         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15294
15295 2011-06-16  Bruno Haible  <bruno@clisp.org>
15296
15297         fprintftime: Move AC_LIBOBJ invocations to module description.
15298         * m4/fprintftime.m4: Remove file.
15299         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15300         (configure.ac): Remove gl_FPRINTFTIME call.
15301         (Makefile.am): Augment lib_SOURCES.
15302         Reported by Jim Meyering.
15303
15304 2011-06-16  Bruno Haible  <bruno@clisp.org>
15305
15306         tmpfile-safer: Finish 2011-05-23 commit.
15307         * m4/stdio-safer.m4: Really remove file.
15308         Reported by Jim Meyering.
15309
15310 2011-06-16  Bruno Haible  <bruno@clisp.org>
15311
15312         syntax-check: Fix typo.
15313         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15314         printf-posix.m4.
15315         Reported by Jim Meyering.
15316
15317 2011-06-13  Jim Meyering  <meyering@redhat.com>
15318
15319         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15320         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15321
15322 2011-05-23  Bruno Haible  <bruno@clisp.org>
15323
15324         yesno: Move AC_LIBOBJ invocations to module description.
15325         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15326         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15327
15328 2011-05-23  Bruno Haible  <bruno@clisp.org>
15329
15330         xstrtol: Move AC_LIBOBJ invocations to module description.
15331         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15332         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15333
15334 2011-05-23  Bruno Haible  <bruno@clisp.org>
15335
15336         xstrtold: Move AC_LIBOBJ invocations to module description.
15337         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15338         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15339
15340 2011-05-23  Bruno Haible  <bruno@clisp.org>
15341
15342         xstrtod: Move AC_LIBOBJ invocations to module description.
15343         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15344         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15345
15346 2011-05-23  Bruno Haible  <bruno@clisp.org>
15347
15348         xnanosleep: Move AC_LIBOBJ invocations to module description.
15349         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15350         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15351
15352 2011-05-23  Bruno Haible  <bruno@clisp.org>
15353
15354         xgetcwd: Move AC_LIBOBJ invocations to module description.
15355         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15356         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15357
15358 2011-05-23  Bruno Haible  <bruno@clisp.org>
15359
15360         xalloc: Move AC_LIBOBJ invocations to module description.
15361         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15362         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15363
15364 2011-05-23  Bruno Haible  <bruno@clisp.org>
15365
15366         write-any-file: Move AC_LIBOBJ invocations to module description.
15367         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15368         invocation.
15369         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15370
15371 2011-05-23  Bruno Haible  <bruno@clisp.org>
15372
15373         utimens: Move AC_LIBOBJ invocations to module description.
15374         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15375         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15376
15377 2011-05-23  Bruno Haible  <bruno@clisp.org>
15378
15379         utimecmp: Move AC_LIBOBJ invocations to module description.
15380         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15381         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15382
15383 2011-05-23  Bruno Haible  <bruno@clisp.org>
15384
15385         userspec: Move AC_LIBOBJ invocations to module description.
15386         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15387         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15388
15389 2011-05-23  Bruno Haible  <bruno@clisp.org>
15390
15391         unlinkdir: Move AC_LIBOBJ invocations to module description.
15392         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15393         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15394
15395 2011-05-23  Bruno Haible  <bruno@clisp.org>
15396
15397         unistd-safer: Move AC_LIBOBJ invocations to module description.
15398         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15399         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15400
15401 2011-05-23  Bruno Haible  <bruno@clisp.org>
15402
15403         tempname: Move AC_LIBOBJ invocations to module description.
15404         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15405         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15406
15407 2011-05-23  Bruno Haible  <bruno@clisp.org>
15408
15409         strftime: Move AC_LIBOBJ invocations to module description.
15410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15411         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15412
15413 2011-05-23  Bruno Haible  <bruno@clisp.org>
15414
15415         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15416         * m4/stdlib-safer.m4: Remove file.
15417         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15418         (configure.ac): Remove gl_STDLIB_SAFER call.
15419         (Makefile.am): Augment lib_SOURCES.
15420
15421 2011-05-23  Bruno Haible  <bruno@clisp.org>
15422
15423         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15424         * m4/stdio-safer.m4: Remove file.
15425         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15426         (configure.ac): Remove gl_TMPFILE_SAFER call.
15427         (Makefile.am): Augment lib_SOURCES.
15428
15429 2011-05-23  Bruno Haible  <bruno@clisp.org>
15430
15431         popen-safer: Move AC_LIBOBJ invocations to module description.
15432         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15433         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15434         (configure.ac): Remove gl_POPEN_SAFER call.
15435         (Makefile.am): Augment lib_SOURCES.
15436
15437 2011-05-23  Bruno Haible  <bruno@clisp.org>
15438
15439         freopen-safer: Move AC_LIBOBJ invocations to module description.
15440         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15441         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15442         (configure.ac): Remove gl_FREOPEN_SAFER call.
15443         (Makefile.am): Augment lib_SOURCES.
15444
15445 2011-05-23  Bruno Haible  <bruno@clisp.org>
15446
15447         fopen-safer: Move AC_LIBOBJ invocations to module description.
15448         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15449         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15450         (configure.ac): Remove gl_FOPEN_SAFER call.
15451         (Makefile.am): Augment lib_SOURCES.
15452
15453 2011-05-23  Bruno Haible  <bruno@clisp.org>
15454
15455         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15456         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15457         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15458
15459 2011-05-23  Bruno Haible  <bruno@clisp.org>
15460
15461         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15462         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15463         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15464
15465 2011-05-23  Bruno Haible  <bruno@clisp.org>
15466
15467         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15468         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15469         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15470
15471 2011-05-23  Bruno Haible  <bruno@clisp.org>
15472
15473         settime: Move AC_LIBOBJ invocations to module description.
15474         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15475         * modules/settime (Makefile.am): Augment lib_SOURCES.
15476
15477 2011-05-23  Bruno Haible  <bruno@clisp.org>
15478
15479         savedir: Move AC_LIBOBJ invocations to module description.
15480         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15481         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15482
15483 2011-05-23  Bruno Haible  <bruno@clisp.org>
15484
15485         save-cwd: Move AC_LIBOBJ invocations to module description.
15486         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15487         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15488
15489 2011-05-23  Bruno Haible  <bruno@clisp.org>
15490
15491         same: Move AC_LIBOBJ invocations to module description.
15492         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15493         * modules/same (Makefile.am): Augment lib_SOURCES.
15494
15495 2011-05-23  Bruno Haible  <bruno@clisp.org>
15496
15497         safe-write: Move AC_LIBOBJ invocations to module description.
15498         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15499         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15500         instead of gl_SAFE_WRITE.
15501         (Makefile.am): Augment lib_SOURCES.
15502
15503 2011-05-23  Bruno Haible  <bruno@clisp.org>
15504
15505         safe-read: Move AC_LIBOBJ invocations to module description.
15506         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15507         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15508         of gl_SAFE_READ.
15509         (Makefile.am): Augment lib_SOURCES.
15510
15511 2011-05-23  Bruno Haible  <bruno@clisp.org>
15512
15513         safe-alloc: Move AC_LIBOBJ invocations to module description.
15514         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15515         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15516
15517 2011-05-23  Bruno Haible  <bruno@clisp.org>
15518
15519         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15520         * m4/rijndael.m4: Remove file.
15521         * modules/crypto/rijndael (Files): Remove it.
15522         (configure.ac): Remove gl_RIJNDAEL call.
15523         (Makefile.am): Augment lib_SOURCES.
15524
15525 2011-05-23  Bruno Haible  <bruno@clisp.org>
15526
15527         readtokens: Move AC_LIBOBJ invocations to module description.
15528         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15529         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15530
15531 2011-05-23  Bruno Haible  <bruno@clisp.org>
15532
15533         read-file: Move AC_LIBOBJ invocations to module description.
15534         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15535         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15536         of gl_FUNC_READ_FILE.
15537         (Makefile.am): Augment lib_SOURCES.
15538
15539 2011-05-23  Bruno Haible  <bruno@clisp.org>
15540
15541         quotearg: Move AC_LIBOBJ invocations to module description.
15542         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15543         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15544
15545 2011-05-23  Bruno Haible  <bruno@clisp.org>
15546
15547         quote: Move AC_LIBOBJ invocations to module description.
15548         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15549         * modules/quote (Makefile.am): Augment lib_SOURCES.
15550
15551 2011-05-23  Bruno Haible  <bruno@clisp.org>
15552
15553         posixver: Move AC_LIBOBJ invocations to module description.
15554         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15555         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15556
15557 2011-05-23  Bruno Haible  <bruno@clisp.org>
15558
15559         posixtm: Move AC_LIBOBJ invocations to module description.
15560         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15561         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15562
15563 2011-05-23  Bruno Haible  <bruno@clisp.org>
15564
15565         physmem: Move AC_LIBOBJ invocations to module description.
15566         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15567         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15568
15569 2011-05-23  Bruno Haible  <bruno@clisp.org>
15570
15571         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15572         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15573         invocation.
15574         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15575
15576 2011-05-23  Bruno Haible  <bruno@clisp.org>
15577
15578         mpsort: Move AC_LIBOBJ invocations to module description.
15579         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15580         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15581
15582 2011-05-23  Bruno Haible  <bruno@clisp.org>
15583
15584         modechange: Move AC_LIBOBJ invocations to module description.
15585         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15586         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15587
15588 2011-05-23  Bruno Haible  <bruno@clisp.org>
15589
15590         mkdir-p: Move AC_LIBOBJ invocations to module description.
15591         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15592         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15593
15594 2011-05-23  Bruno Haible  <bruno@clisp.org>
15595
15596         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15597         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15598         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15599
15600 2011-05-23  Bruno Haible  <bruno@clisp.org>
15601
15602         mgetgroups: Move AC_LIBOBJ invocations to module description.
15603         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15604         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15605
15606 2011-05-23  Bruno Haible  <bruno@clisp.org>
15607
15608         memxor: Move AC_LIBOBJ invocations to module description.
15609         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15610         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15611
15612 2011-05-23  Bruno Haible  <bruno@clisp.org>
15613
15614         memcoll: Move AC_LIBOBJ invocations to module description.
15615         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15616         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15617
15618 2011-05-23  Bruno Haible  <bruno@clisp.org>
15619
15620         memcasecmp: Move AC_LIBOBJ invocations to module description.
15621         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15622         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15623
15624 2011-05-23  Bruno Haible  <bruno@clisp.org>
15625
15626         crypto/md5: Move AC_LIBOBJ invocations to module description.
15627         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15628         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15629
15630 2011-05-23  Bruno Haible  <bruno@clisp.org>
15631
15632         crypto/md4: Move AC_LIBOBJ invocations to module description.
15633         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15634         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15635
15636 2011-05-23  Bruno Haible  <bruno@clisp.org>
15637
15638         crypto/md2: Move AC_LIBOBJ invocations to module description.
15639         * m4/md2.m4: Remove file.
15640         * modules/crypto/md2 (Files): Remove it.
15641         (configure.ac): Remove gl_MD2 call.
15642         (Makefile.am): Augment lib_SOURCES.
15643
15644 2011-05-23  Bruno Haible  <bruno@clisp.org>
15645
15646         long-options: Move AC_LIBOBJ invocations to module description.
15647         * m4/long-options.m4: Remove file.
15648         * modules/long-options (Files): Remove it.
15649         (configure.ac): Remove gl_LONG_OPTIONS call.
15650         (Makefile.am): Augment lib_SOURCES.
15651
15652 2011-05-23  Bruno Haible  <bruno@clisp.org>
15653
15654         i-ring: Move AC_LIBOBJ invocations to module description.
15655         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15656         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15657
15658 2011-05-23  Bruno Haible  <bruno@clisp.org>
15659
15660         idcache: Move AC_LIBOBJ invocations to module description.
15661         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15662         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15663
15664 2011-05-23  Bruno Haible  <bruno@clisp.org>
15665
15666         human: Move AC_LIBOBJ invocations to module description.
15667         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15668         * modules/human (Makefile.am): Augment lib_SOURCES.
15669
15670 2011-05-23  Bruno Haible  <bruno@clisp.org>
15671
15672         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15673         * m4/hmac-sha1.m4: Remove file.
15674         * modules/crypto/hmac-sha1 (Files): Remove it.
15675         (configure.ac): Remove gl_HMAC_SHA1 call.
15676         (Makefile.am): Augment lib_SOURCES.
15677
15678 2011-05-23  Bruno Haible  <bruno@clisp.org>
15679
15680         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15681         * m4/hmac-md5.m4: Remove file.
15682         * modules/crypto/hmac-md5 (Files): Remove it.
15683         (configure.ac): Remove gl_HMAC_MD5 call.
15684         (Makefile.am): Augment lib_SOURCES.
15685
15686 2011-05-23  Bruno Haible  <bruno@clisp.org>
15687
15688         hash: Move AC_LIBOBJ invocations to module description.
15689         * m4/hash.m4: Remove file.
15690         * modules/hash (Files): Remove it.
15691         (configure.ac): Remove gl_HASH call.
15692         (Makefile.am): Augment lib_SOURCES.
15693
15694 2011-05-23  Bruno Haible  <bruno@clisp.org>
15695
15696         hard-locale: Move AC_LIBOBJ invocations to module description.
15697         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15698         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15699
15700 2011-05-23  Bruno Haible  <bruno@clisp.org>
15701
15702         getugroups: Move AC_LIBOBJ invocations to module description.
15703         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15704         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15705
15706 2011-05-23  Bruno Haible  <bruno@clisp.org>
15707
15708         gettime: Move AC_LIBOBJ invocations to module description.
15709         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15710         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15711
15712 2011-05-23  Bruno Haible  <bruno@clisp.org>
15713
15714         getndelim2: Move AC_LIBOBJ invocations to module description.
15715         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15716         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15717
15718 2011-05-23  Bruno Haible  <bruno@clisp.org>
15719
15720         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15721         * m4/gc-pbkdf2-sha1.m4: Remove file.
15722         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15723         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15724         (Makefile.am): Augment lib_SOURCES.
15725
15726 2011-05-23  Bruno Haible  <bruno@clisp.org>
15727
15728         fts: Move AC_LIBOBJ invocations to module description.
15729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15730         * modules/fts (configure.ac): ... to here.
15731
15732 2011-05-23  Bruno Haible  <bruno@clisp.org>
15733
15734         file-type: Move AC_LIBOBJ invocations to module description.
15735         * m4/file-type.m4: Remove file.
15736         * modules/file-type (Files): Remove it.
15737         (configure.ac): Remove gl_FILE_TYPE call.
15738         (Makefile.am): Augment lib_SOURCES.
15739
15740 2011-05-23  Bruno Haible  <bruno@clisp.org>
15741
15742         filenamecat*: Respect rules for use of AC_LIBOBJ.
15743         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15744         Remove AC_LIBOBJ invocation.
15745         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15746         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15747
15748 2011-05-23  Bruno Haible  <bruno@clisp.org>
15749
15750         filemode: Move AC_LIBOBJ invocations to module description.
15751         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15752         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15753
15754 2011-05-23  Bruno Haible  <bruno@clisp.org>
15755
15756         openat-safer: Move AC_LIBOBJ invocations to module description.
15757         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15758         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15759
15760 2011-05-23  Bruno Haible  <bruno@clisp.org>
15761
15762         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15763         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15764         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15765
15766 2011-05-23  Bruno Haible  <bruno@clisp.org>
15767
15768         exclude: Move AC_LIBOBJ invocations to module description.
15769         * m4/exclude.m4: Remove file.
15770         * modules/exclude (Files): Remove it.
15771         (configure.ac): Remove gl_EXCLUDE call.
15772         (Makefile.am): Augment lib_SOURCES.
15773
15774 2011-05-23  Bruno Haible  <bruno@clisp.org>
15775
15776         dirname*: Respect rules for use of AC_LIBOBJ.
15777         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15778         invocations.
15779         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15780         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15781
15782 2011-05-23  Bruno Haible  <bruno@clisp.org>
15783
15784         dirent-safer: Move AC_LIBOBJ invocations to module description.
15785         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15786         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15787
15788 2011-05-23  Bruno Haible  <bruno@clisp.org>
15789
15790         crypto/des: Move AC_LIBOBJ invocations to module description.
15791         * m4/des.m4: Remove file.
15792         * modules/crypto/des (Files): Remove it.
15793         (configure.ac): Remove gl_DES call.
15794         (Makefile.am): Augment lib_SOURCES.
15795
15796 2011-05-23  Bruno Haible  <bruno@clisp.org>
15797
15798         cycle-check: Move AC_LIBOBJ invocations to module description.
15799         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15800         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15801
15802 2011-05-23  Bruno Haible  <bruno@clisp.org>
15803
15804         c-strtold: Move AC_LIBOBJ invocations to module description.
15805         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15806         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15807
15808 2011-05-23  Bruno Haible  <bruno@clisp.org>
15809
15810         c-strtod: Move AC_LIBOBJ invocations to module description.
15811         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15812         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15813
15814 2011-05-23  Bruno Haible  <bruno@clisp.org>
15815
15816         crc: Move AC_LIBOBJ invocations to module description.
15817         * m4/crc.m4: Remove file.
15818         * modules/crc (Files): Remove it.
15819         (configure.ac): Remove gl_CRC call.
15820         (Makefile.am): Augment lib_SOURCES.
15821
15822 2011-05-23  Bruno Haible  <bruno@clisp.org>
15823
15824         close-stream: Move AC_LIBOBJ invocations to module description.
15825         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15826         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15827
15828 2011-05-23  Bruno Haible  <bruno@clisp.org>
15829
15830         closeout: Move AC_LIBOBJ invocations to module description.
15831         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15832         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15833
15834 2011-05-23  Bruno Haible  <bruno@clisp.org>
15835
15836         closein: Move AC_LIBOBJ invocations to module description.
15837         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15838         * modules/closein (Makefile.am): Augment lib_SOURCES.
15839
15840 2011-05-23  Bruno Haible  <bruno@clisp.org>
15841
15842         cloexec: Move AC_LIBOBJ invocations to module description.
15843         * m4/cloexec.m4: Remove file.
15844         * modules/cloexec (Files): Remove it.
15845         (configure.ac): Remove gl_CLOEXEC call.
15846         (Makefile.am): Augment lib_SOURCES.
15847
15848 2011-05-23  Bruno Haible  <bruno@clisp.org>
15849
15850         check-version: Move AC_LIBOBJ invocations to module description.
15851         * m4/check-version.m4: Remove file.
15852         * modules/check-version (Files): Remove it.
15853         (configure.ac): Remove gl_CHECK_VERSION call.
15854         (Makefile.am): Augment lib_SOURCES.
15855
15856 2011-05-23  Bruno Haible  <bruno@clisp.org>
15857
15858         chdir-safer: Move AC_LIBOBJ invocations to module description.
15859         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15860         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15861
15862 2011-05-23  Bruno Haible  <bruno@clisp.org>
15863
15864         canonicalize: Move AC_LIBOBJ invocations to module description.
15865         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15866         AC_LIBOBJ invocation.
15867         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15868
15869 2011-05-23  Bruno Haible  <bruno@clisp.org>
15870
15871         canon-host: Move AC_LIBOBJ invocations to module description.
15872         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15873         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15874         instead of gl_CANON_HOST.
15875         (Makefile.am): Augment lib_SOURCES.
15876
15877 2011-05-23  Bruno Haible  <bruno@clisp.org>
15878
15879         backupfile: Move AC_LIBOBJ invocations to module description.
15880         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15881         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15882
15883 2011-05-23  Bruno Haible  <bruno@clisp.org>
15884
15885         argmatch: Move AC_LIBOBJ invocations to module description.
15886         * m4/argmatch.m4: Remove file.
15887         * modules/argmatch (Files): Remove it.
15888         (configure.ac): Remove gl_ARGMATCH call.
15889         (Makefile.am): Augment lib_SOURCES.
15890
15891 2011-05-23  Bruno Haible  <bruno@clisp.org>
15892
15893         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15894         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15895         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15896
15897 2011-05-23  Bruno Haible  <bruno@clisp.org>
15898
15899         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15900         * m4/arcfour.m4: Remove file.
15901         * modules/crypto/arcfour (Files): Remove it.
15902         (configure.ac): Remove gl_ARCFOUR call.
15903         (Makefile.am): Augment lib_SOURCES.
15904
15905 2011-05-22  Bruno Haible  <bruno@clisp.org>
15906
15907         write: Move AC_LIBOBJ invocations to module description.
15908         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15909         * modules/write (configure.ac): ... to here.
15910
15911 2011-05-22  Bruno Haible  <bruno@clisp.org>
15912
15913         wmemset: Move AC_LIBOBJ invocations to module description.
15914         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15915         here...
15916         * modules/wmemset (configure.ac): ... to here.
15917
15918 2011-05-22  Bruno Haible  <bruno@clisp.org>
15919
15920         wmemmove: Move AC_LIBOBJ invocations to module description.
15921         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15922         here...
15923         * modules/wmemmove (configure.ac): ... to here.
15924
15925 2011-05-22  Bruno Haible  <bruno@clisp.org>
15926
15927         wmemcpy: Move AC_LIBOBJ invocations to module description.
15928         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15929         here...
15930         * modules/wmemcpy (configure.ac): ... to here.
15931
15932 2011-05-22  Bruno Haible  <bruno@clisp.org>
15933
15934         wmemcmp: Move AC_LIBOBJ invocations to module description.
15935         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15936         here...
15937         * modules/wmemcmp (configure.ac): ... to here.
15938
15939 2011-05-22  Bruno Haible  <bruno@clisp.org>
15940
15941         wmemchr: Move AC_LIBOBJ invocations to module description.
15942         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15943         here...
15944         * modules/wmemchr (configure.ac): ... to here.
15945
15946 2011-05-22  Bruno Haible  <bruno@clisp.org>
15947
15948         wcswidth: Move AC_LIBOBJ invocations to module description.
15949         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15950         here...
15951         * modules/wcswidth (configure.ac): ... to here.
15952
15953 2011-05-22  Bruno Haible  <bruno@clisp.org>
15954
15955         wcwidth: Respect rules for use of AC_LIBOBJ.
15956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15957         invocation from here...
15958         * modules/wcwidth (configure.ac): ... to here.
15959         (Depends-on): Update conditions.
15960
15961 2011-05-22  Bruno Haible  <bruno@clisp.org>
15962
15963         wctype: Move AC_LIBOBJ invocations to module description.
15964         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15965         invocation from here...
15966         * modules/wctype (configure.ac): ... to here.
15967         (Depends-on): Update conditions.
15968
15969 2011-05-22  Bruno Haible  <bruno@clisp.org>
15970
15971         wctrans: Move AC_LIBOBJ invocations to module description.
15972         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15973         invocation from here...
15974         * modules/wctrans (configure.ac): ... to here.
15975
15976 2011-05-22  Bruno Haible  <bruno@clisp.org>
15977
15978         wctomb: Move AC_LIBOBJ invocations to module description.
15979         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15980         invocations from here...
15981         * modules/wctomb (configure.ac): ... to here.
15982
15983 2011-05-22  Bruno Haible  <bruno@clisp.org>
15984
15985         wctob: Move AC_LIBOBJ invocations to module description.
15986         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15987         gl_PREREQ_WCTOB invocations from here...
15988         * modules/wctob (configure.ac): ... to here.
15989         (Depends-on): Update conditions.
15990
15991 2011-05-22  Bruno Haible  <bruno@clisp.org>
15992
15993         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15994         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15995         here...
15996         * modules/wcsxfrm (configure.ac): ... to here.
15997
15998 2011-05-22  Bruno Haible  <bruno@clisp.org>
15999
16000         wcstok: Move AC_LIBOBJ invocations to module description.
16001         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16002         * modules/wcstok (configure.ac): ... to here.
16003
16004 2011-05-22  Bruno Haible  <bruno@clisp.org>
16005
16006         wcsstr: Move AC_LIBOBJ invocations to module description.
16007         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16008         * modules/wcsstr (configure.ac): ... to here.
16009
16010 2011-05-22  Bruno Haible  <bruno@clisp.org>
16011
16012         wcsspn: Move AC_LIBOBJ invocations to module description.
16013         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16014         * modules/wcsspn (configure.ac): ... to here.
16015
16016 2011-05-22  Bruno Haible  <bruno@clisp.org>
16017
16018         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16019         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16020         gl_PREREQ_WCSRTOMBS invocations from here...
16021         * modules/wcsrtombs (configure.ac): ... to here.
16022
16023 2011-05-22  Bruno Haible  <bruno@clisp.org>
16024
16025         wcsrchr: Move AC_LIBOBJ invocations to module description.
16026         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16027         here...
16028         * modules/wcsrchr (configure.ac): ... to here.
16029
16030 2011-05-22  Bruno Haible  <bruno@clisp.org>
16031
16032         wcspbrk: Move AC_LIBOBJ invocations to module description.
16033         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16034         here...
16035         * modules/wcspbrk (configure.ac): ... to here.
16036
16037 2011-05-22  Bruno Haible  <bruno@clisp.org>
16038
16039         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16040         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16041         gl_PREREQ_WCSNRTOMBS invocations from here...
16042         * modules/wcsnrtombs (configure.ac): ... to here.
16043
16044 2011-05-22  Bruno Haible  <bruno@clisp.org>
16045
16046         wcsnlen: Move AC_LIBOBJ invocations to module description.
16047         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16048         here...
16049         * modules/wcsnlen (configure.ac): ... to here.
16050
16051 2011-05-22  Bruno Haible  <bruno@clisp.org>
16052
16053         wcsncpy: Move AC_LIBOBJ invocations to module description.
16054         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16055         here...
16056         * modules/wcsncpy (configure.ac): ... to here.
16057
16058 2011-05-22  Bruno Haible  <bruno@clisp.org>
16059
16060         wcsncmp: Move AC_LIBOBJ invocations to module description.
16061         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16062         here...
16063         * modules/wcsncmp (configure.ac): ... to here.
16064
16065 2011-05-22  Bruno Haible  <bruno@clisp.org>
16066
16067         wcsncat: Move AC_LIBOBJ invocations to module description.
16068         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16069         here...
16070         * modules/wcsncat (configure.ac): ... to here.
16071
16072 2011-05-22  Bruno Haible  <bruno@clisp.org>
16073
16074         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16075         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16076         from here...
16077         * modules/wcsncasecmp (configure.ac): ... to here.
16078
16079 2011-05-22  Bruno Haible  <bruno@clisp.org>
16080
16081         wcslen: Move AC_LIBOBJ invocations to module description.
16082         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16083         * modules/wcslen (configure.ac): ... to here.
16084
16085 2011-05-22  Bruno Haible  <bruno@clisp.org>
16086
16087         wcsdup: Move AC_LIBOBJ invocations to module description.
16088         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16089         * modules/wcsdup (configure.ac): ... to here.
16090
16091 2011-05-22  Bruno Haible  <bruno@clisp.org>
16092
16093         wcscspn: Move AC_LIBOBJ invocations to module description.
16094         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16095         here...
16096         * modules/wcscspn (configure.ac): ... to here.
16097
16098 2011-05-22  Bruno Haible  <bruno@clisp.org>
16099
16100         wcscpy: Move AC_LIBOBJ invocations to module description.
16101         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16102         * modules/wcscpy (configure.ac): ... to here.
16103
16104 2011-05-22  Bruno Haible  <bruno@clisp.org>
16105
16106         wcscoll: Move AC_LIBOBJ invocations to module description.
16107         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16108         here...
16109         * modules/wcscoll (configure.ac): ... to here.
16110
16111 2011-05-22  Bruno Haible  <bruno@clisp.org>
16112
16113         wcscmp: Move AC_LIBOBJ invocations to module description.
16114         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16115         * modules/wcscmp (configure.ac): ... to here.
16116
16117 2011-05-22  Bruno Haible  <bruno@clisp.org>
16118
16119         wcschr: Move AC_LIBOBJ invocations to module description.
16120         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16121         * modules/wcschr (configure.ac): ... to here.
16122
16123 2011-05-22  Bruno Haible  <bruno@clisp.org>
16124
16125         wcscat: Move AC_LIBOBJ invocations to module description.
16126         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16127         * modules/wcscat (configure.ac): ... to here.
16128
16129 2011-05-22  Bruno Haible  <bruno@clisp.org>
16130
16131         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16132         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16133         here...
16134         * modules/wcscasecmp (configure.ac): ... to here.
16135
16136 2011-05-22  Bruno Haible  <bruno@clisp.org>
16137
16138         wcrtomb: Move AC_LIBOBJ invocations to module description.
16139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16140         invocations from here...
16141         * modules/wcrtomb (configure.ac): ... to here.
16142
16143 2011-05-22  Bruno Haible  <bruno@clisp.org>
16144
16145         wcpncpy: Move AC_LIBOBJ invocations to module description.
16146         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16147         here...
16148         * modules/wcpncpy (configure.ac): ... to here.
16149
16150 2011-05-22  Bruno Haible  <bruno@clisp.org>
16151
16152         wcpcpy: Move AC_LIBOBJ invocations to module description.
16153         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16154         * modules/wcpcpy (configure.ac): ... to here.
16155
16156 2011-05-22  Bruno Haible  <bruno@clisp.org>
16157
16158         waitpid: Move AC_LIBOBJ invocations to module description.
16159         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16160         invocation from here...
16161         * modules/waitpid (configure.ac): ... to here.
16162
16163 2011-05-22  Bruno Haible  <bruno@clisp.org>
16164
16165         utimensat: Move AC_LIBOBJ invocations to module description.
16166         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16167         here...
16168         * modules/utimensat (configure.ac): ... to here.
16169
16170 2011-05-22  Bruno Haible  <bruno@clisp.org>
16171
16172         usleep: Move AC_LIBOBJ invocations to module description.
16173         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16174         here...
16175         * modules/usleep (configure.ac): ... to here.
16176
16177 2011-05-22  Bruno Haible  <bruno@clisp.org>
16178
16179         unlockpt: Move AC_LIBOBJ invocations to module description.
16180         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16181         gl_PREREQ_UNLOCKPT invocations from here...
16182         * modules/unlockpt (configure.ac): ... to here.
16183
16184 2011-05-22  Bruno Haible  <bruno@clisp.org>
16185
16186         unlink: Respect rules for use of AC_LIBOBJ.
16187         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16188         * modules/unlink (configure.ac): ... to here.
16189
16190 2011-05-22  Bruno Haible  <bruno@clisp.org>
16191
16192         uname: Move AC_LIBOBJ invocations to module description.
16193         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16195         here...
16196         * modules/uname (configure.ac): ... to here.
16197
16198 2011-05-22  Bruno Haible  <bruno@clisp.org>
16199
16200         ttyname_r: Move AC_LIBOBJ invocations to module description.
16201         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16202         gl_PREREQ_TTYNAME_R invocations from here...
16203         * modules/ttyname_r (configure.ac): ... to here.
16204
16205 2011-05-22  Bruno Haible  <bruno@clisp.org>
16206
16207         tsearch: Move AC_LIBOBJ invocations to module description.
16208         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16209         invocations from here...
16210         * modules/tsearch (configure.ac): ... to here.
16211
16212 2011-05-22  Bruno Haible  <bruno@clisp.org>
16213
16214         towctrans: Move AC_LIBOBJ invocations to module description.
16215         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16216         AC_LIBOBJ invocation from here...
16217         * modules/towctrans (configure.ac): ... to here.
16218
16219 2011-05-22  Bruno Haible  <bruno@clisp.org>
16220
16221         tmpfile: Move AC_LIBOBJ invocations to module description.
16222         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16223         invocations from here...
16224         * modules/tmpfile (configure.ac): ... to here.
16225
16226 2011-05-22  Bruno Haible  <bruno@clisp.org>
16227
16228         times: Move AC_LIBOBJ invocations to module description.
16229         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16230         * modules/times (configure.ac): ... to here.
16231
16232 2011-05-22  Bruno Haible  <bruno@clisp.org>
16233
16234         time_r: Move AC_LIBOBJ invocations to module description.
16235         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16236         invocations from here...
16237         * modules/time_r (configure.ac): ... to here.
16238
16239 2011-05-22  Bruno Haible  <bruno@clisp.org>
16240
16241         timegm: Move AC_LIBOBJ invocations to module description.
16242         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16243         invocations from here...
16244         * modules/timegm (configure.ac): ... to here.
16245
16246 2011-05-22  Bruno Haible  <bruno@clisp.org>
16247
16248         tcgetsid: Move AC_LIBOBJ invocations to module description.
16249         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16250         and gl_PREREQ_TCGETSID invocations from here...
16251         * modules/tcgetsid (configure.ac): ... to here.
16252         (Depends-on): Update conditions.
16253
16254 2011-05-22  Bruno Haible  <bruno@clisp.org>
16255
16256         symlinkat: Move AC_LIBOBJ invocations to module description.
16257         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16258         here...
16259         * modules/symlinkat (configure.ac): ... to here.
16260
16261 2011-05-22  Bruno Haible  <bruno@clisp.org>
16262
16263         symlink: Move AC_LIBOBJ invocations to module description.
16264         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16265         here...
16266         * modules/symlink (configure.ac): ... to here.
16267
16268 2011-05-22  Bruno Haible  <bruno@clisp.org>
16269
16270         strverscmp: Move AC_LIBOBJ invocations to module description.
16271         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16272         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16273         from here...
16274         * modules/strverscmp (configure.ac): ... to here.
16275
16276 2011-05-22  Bruno Haible  <bruno@clisp.org>
16277
16278         strtok_r: Move AC_LIBOBJ invocations to module description.
16279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16280         and gl_PREREQ_STRTOK_R invocations from here...
16281         * modules/strtok_r (configure.ac): ... to here.
16282         (Depends-on): Update conditions.
16283
16284 2011-05-22  Bruno Haible  <bruno@clisp.org>
16285
16286         strtoumax: Move AC_LIBOBJ invocations to module description.
16287         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16289         from here...
16290         * modules/strtoumax (configure.ac): ... to here.
16291
16292 2011-05-22  Bruno Haible  <bruno@clisp.org>
16293
16294         strtoimax: Move AC_LIBOBJ invocations to module description.
16295         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16297         from here...
16298         * modules/strtoimax (configure.ac): ... to here.
16299
16300 2011-05-22  Bruno Haible  <bruno@clisp.org>
16301
16302         strtoull: Move AC_LIBOBJ invocations to module description.
16303         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16305         from here...
16306         * modules/strtoull (configure.ac): ... to here.
16307
16308 2011-05-22  Bruno Haible  <bruno@clisp.org>
16309
16310         strtoll: Move AC_LIBOBJ invocations to module description.
16311         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16313         here...
16314         * modules/strtoll (configure.ac): ... to here.
16315
16316 2011-05-22  Bruno Haible  <bruno@clisp.org>
16317
16318         strtoul: Move AC_LIBOBJ invocations to module description.
16319         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16320         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16321         * modules/strtoul (configure.ac): ... to here.
16322
16323 2011-05-22  Bruno Haible  <bruno@clisp.org>
16324
16325         strtol: Move AC_LIBOBJ invocations to module description.
16326         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16327         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16328         * modules/strtol (configure.ac): ... to here.
16329
16330 2011-05-22  Bruno Haible  <bruno@clisp.org>
16331
16332         strtod: Move AC_LIBOBJ invocations to module description.
16333         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16334         invocations from here...
16335         * modules/strtod (configure.ac): ... to here.
16336
16337 2011-05-22  Bruno Haible  <bruno@clisp.org>
16338
16339         strstr*: Move AC_LIBOBJ invocations to module description.
16340         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16341         invocations from here...
16342         * modules/strstr-simple (configure.ac): ... to here.
16343         * modules/strstr (configure.ac): ... and here.
16344
16345 2011-05-22  Bruno Haible  <bruno@clisp.org>
16346
16347         strsignal: Move AC_LIBOBJ invocations to module description.
16348         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16349         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16350         * modules/strsignal (configure.ac): ... to here.
16351         (Depends-on): Update conditions.
16352
16353 2011-05-22  Bruno Haible  <bruno@clisp.org>
16354
16355         strsep: Move AC_LIBOBJ invocations to module description.
16356         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16358         here...
16359         * modules/strsep (configure.ac): ... to here.
16360
16361 2011-05-22  Bruno Haible  <bruno@clisp.org>
16362
16363         strptime: Move AC_LIBOBJ invocations to module description.
16364         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16365         gl_PREREQ_STRPTIME invocations from here...
16366         * modules/strptime (configure.ac): ... to here.
16367
16368 2011-05-22  Bruno Haible  <bruno@clisp.org>
16369
16370         strpbrk: Move AC_LIBOBJ invocations to module description.
16371         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16373         here...
16374         * modules/strpbrk (configure.ac): ... to here.
16375
16376 2011-05-22  Bruno Haible  <bruno@clisp.org>
16377
16378         strnlen: Move AC_LIBOBJ invocations to module description.
16379         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16380         invocations from here...
16381         * modules/strnlen (configure.ac): ... to here.
16382
16383 2011-05-22  Bruno Haible  <bruno@clisp.org>
16384
16385         strndup: Move AC_LIBOBJ invocations to module description.
16386         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16387         invocations from here...
16388         * modules/strndup (configure.ac): ... to here.
16389         (Depends-on): Update conditions.
16390
16391 2011-05-22  Bruno Haible  <bruno@clisp.org>
16392
16393         strncat: Move AC_LIBOBJ invocations to module description.
16394         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16395         invocations from here...
16396         * modules/strncat (configure.ac): ... to here.
16397
16398 2011-05-22  Bruno Haible  <bruno@clisp.org>
16399
16400         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16401         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16402         invocations from here...
16403         * modules/strdup (configure.ac): ... to here.
16404         * modules/strdup-posix (configure.ac): ... and here.
16405
16406 2011-05-22  Bruno Haible  <bruno@clisp.org>
16407
16408         strcspn: Move AC_LIBOBJ invocations to module description.
16409         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16410         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16411         here...
16412         * modules/strcspn (configure.ac): ... to here.
16413
16414 2011-05-22  Bruno Haible  <bruno@clisp.org>
16415
16416         strchrnul: Move AC_LIBOBJ invocations to module description.
16417         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16418         gl_PREREQ_STRCHRNUL invocations from here...
16419         * modules/strchrnul (configure.ac): ... to here.
16420
16421 2011-05-22  Bruno Haible  <bruno@clisp.org>
16422
16423         strcasestr*: Move AC_LIBOBJ invocations to module description.
16424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16425         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16426         * modules/strcasestr-simple (configure.ac): ... to here.
16427         * modules/strcasestr (configure.ac): ... and here.
16428
16429 2011-05-22  Bruno Haible  <bruno@clisp.org>
16430
16431         strcase: Move AC_LIBOBJ invocations to module description.
16432         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16433         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16434         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16435         gl_PREREQ_STRNCASECMP invocations from here...
16436         * modules/strcase (configure.ac): ... to here.
16437
16438 2011-05-22  Bruno Haible  <bruno@clisp.org>
16439
16440         stpncpy: Move AC_LIBOBJ invocations to module description.
16441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16442         here...
16443         * modules/stpncpy (configure.ac): ... to here.
16444
16445 2011-05-22  Bruno Haible  <bruno@clisp.org>
16446
16447         stpcpy: Move AC_LIBOBJ invocations to module description.
16448         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16450         here...
16451         * modules/stpcpy (configure.ac): ... to here.
16452
16453 2011-05-21  Bruno Haible  <bruno@clisp.org>
16454
16455         stat: Move AC_LIBOBJ invocations to module description.
16456         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16457         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16458         here...
16459         * modules/stat (configure.ac): ... to here.
16460
16461 2011-05-21  Bruno Haible  <bruno@clisp.org>
16462
16463         sleep: Move AC_LIBOBJ invocations to module description.
16464         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16465         * modules/sleep (configure.ac): ... to here.
16466
16467 2011-05-21  Bruno Haible  <bruno@clisp.org>
16468
16469         signbit: Move AC_LIBOBJ invocations to module description.
16470         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16471         * modules/signbit (configure.ac): ... to here.
16472
16473 2011-05-21  Bruno Haible  <bruno@clisp.org>
16474
16475         sigprocmask: Move AC_LIBOBJ invocations to module description.
16476         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16477         gl_PREREQ_SIGPROMASK invocations from here...
16478         * modules/sigprocmask (configure.ac): ... to here.
16479
16480 2011-05-21  Bruno Haible  <bruno@clisp.org>
16481
16482         sigaction: Move AC_LIBOBJ invocations to module description.
16483         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16484         gl_PREREQ_SIGACTION invocations from here...
16485         * modules/sigaction (configure.ac): ... to here.
16486
16487 2011-05-21  Bruno Haible  <bruno@clisp.org>
16488
16489         sig2str: Move AC_LIBOBJ invocations to module description.
16490         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16491         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16492         here...
16493         * modules/sig2str (configure.ac): ... to here.
16494
16495 2011-05-21  Bruno Haible  <bruno@clisp.org>
16496
16497         setlocale: Move AC_LIBOBJ invocations to module description.
16498         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16499         gl_PREREQ_SETLOCALE invocations from here...
16500         * modules/setlocale (configure.ac): ... to here.
16501
16502 2011-05-21  Bruno Haible  <bruno@clisp.org>
16503
16504         unsetenv: Move AC_LIBOBJ invocations to module description.
16505         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16506         and gl_PREREQ_UNSETENV invocations from here...
16507         * modules/unsetenv (configure.ac): ... to here.
16508         (Depends-on): Update.
16509
16510 2011-05-21  Bruno Haible  <bruno@clisp.org>
16511
16512         setenv: Move AC_LIBOBJ invocations to module description.
16513         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16514         here...
16515         * modules/setenv (configure.ac): ... to here.
16516
16517 2011-05-21  Bruno Haible  <bruno@clisp.org>
16518
16519         selinux-h: Move AC_LIBOBJ invocations to module description.
16520         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16521         AC_LIBOBJ invocation from here...
16522         * modules/selinux-h (configure.ac): ... to here.
16523
16524 2011-05-21  Bruno Haible  <bruno@clisp.org>
16525
16526         select: Respect rules for use of AC_LIBOBJ.
16527         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16528         here...
16529         * modules/select (configure.ac): ... to here.
16530
16531 2011-05-21  Bruno Haible  <bruno@clisp.org>
16532
16533         scandir: Move AC_LIBOBJ invocations to module description.
16534         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16535         invocations from here...
16536         * modules/scandir (configure.ac): ... to here.
16537
16538 2011-05-21  Bruno Haible  <bruno@clisp.org>
16539
16540         rpmatch: Move AC_LIBOBJ invocations to module description.
16541         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16542         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16543         here...
16544         * modules/rpmatch (configure.ac): ... to here.
16545
16546 2011-05-21  Bruno Haible  <bruno@clisp.org>
16547
16548         rmdir: Respect rules for use of AC_LIBOBJ.
16549         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16550         * modules/rmdir (configure.ac): ... to here.
16551
16552 2011-05-21  Bruno Haible  <bruno@clisp.org>
16553
16554         renameat: Move AC_LIBOBJ invocations to module description.
16555         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16556         here...
16557         * modules/renameat (configure.ac): ... to here.
16558
16559 2011-05-21  Bruno Haible  <bruno@clisp.org>
16560
16561         rename: Respect rules for use of AC_LIBOBJ.
16562         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16563         here...
16564         * modules/rename (configure.ac): ... to here.
16565
16566 2011-05-21  Bruno Haible  <bruno@clisp.org>
16567
16568         remove: Move AC_LIBOBJ invocations to module description.
16569         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16570         here...
16571         * modules/remove (configure.ac): ... to here.
16572
16573 2011-05-21  Bruno Haible  <bruno@clisp.org>
16574
16575         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16576         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16577         macro.
16578         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16579         * modules/relocatable-lib (configure.ac): ... to here.
16580         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16581         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16582
16583 2011-05-21  Bruno Haible  <bruno@clisp.org>
16584
16585         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16586         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16587         here...
16588         * modules/relocatable-prog (configure.ac): ... to here.
16589
16590 2011-05-21  Bruno Haible  <bruno@clisp.org>
16591
16592         regex: Move AC_LIBOBJ invocations to module description.
16593         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16594         invocations from here...
16595         * modules/regex (configure.ac): ... to here.
16596
16597 2011-05-21  Bruno Haible  <bruno@clisp.org>
16598
16599         realloc-*: Move AC_LIBOBJ invocations to module description.
16600         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16601         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16602         AC_LIBOBJ invocations from here...
16603         * modules/realloc-gnu (configure.ac): ... to here.
16604         * modules/realloc-posix (configure.ac): ... and here.
16605
16606 2011-05-21  Bruno Haible  <bruno@clisp.org>
16607
16608         readutmp: Move AC_LIBOBJ invocations to module description.
16609         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16610         * modules/readutmp (configure.ac): ... to here.
16611
16612 2011-05-21  Bruno Haible  <bruno@clisp.org>
16613
16614         readlinkat: Move AC_LIBOBJ invocations to module description.
16615         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16616         here...
16617         * modules/readlinkat (configure.ac): ... to here.
16618
16619 2011-05-21  Bruno Haible  <bruno@clisp.org>
16620
16621         readlink: Move AC_LIBOBJ invocations to module description.
16622         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16623         gl_PREREQ_READLINK invocations from here...
16624         * modules/readlink (configure.ac): ... to here.
16625
16626 2011-05-21  Bruno Haible  <bruno@clisp.org>
16627
16628         readline: Move AC_LIBOBJ invocations to module description.
16629         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16630         gl_PREREQ_READLINE invocations from here...
16631         * modules/readline (configure.ac): ... to here.
16632
16633 2011-05-21  Bruno Haible  <bruno@clisp.org>
16634
16635         read: Move AC_LIBOBJ invocations to module description.
16636         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16637         * modules/read (configure.ac): ... to here.
16638
16639 2011-05-21  Bruno Haible  <bruno@clisp.org>
16640
16641         rawmemchr: Move AC_LIBOBJ invocations to module description.
16642         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16644         from here...
16645         * modules/rawmemchr (configure.ac): ... to here.
16646
16647 2011-05-21  Bruno Haible  <bruno@clisp.org>
16648
16649         random_r: Move AC_LIBOBJ invocations to module description.
16650         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16651         gl_PREREQ_RANDOM_R invocations from here...
16652         * modules/random_r (configure.ac): ... to here.
16653
16654 2011-05-21  Bruno Haible  <bruno@clisp.org>
16655
16656         pwrite: Move AC_LIBOBJ invocations to module description.
16657         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16658         * modules/pwrite (configure.ac): ... to here.
16659
16660 2011-05-21  Bruno Haible  <bruno@clisp.org>
16661
16662         putenv: Move AC_LIBOBJ invocations to module description.
16663         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16664         * modules/putenv (configure.ac): ... to here.
16665
16666 2011-05-21  Bruno Haible  <bruno@clisp.org>
16667
16668         login_tty: Move AC_LIBOBJ invocations to module description.
16669         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16670         * modules/login_tty (configure.ac): ... to here.
16671
16672 2011-05-21  Bruno Haible  <bruno@clisp.org>
16673
16674         openpty: Move AC_LIBOBJ invocations to module description.
16675         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16676         * modules/openpty (configure.ac): ... to here.
16677
16678 2011-05-21  Bruno Haible  <bruno@clisp.org>
16679
16680         forkpty: Move AC_LIBOBJ invocations to module description.
16681         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16682         * modules/forkpty (configure.ac): ... to here.
16683
16684 2011-05-21  Bruno Haible  <bruno@clisp.org>
16685
16686         ptsname: Move AC_LIBOBJ invocations to module description.
16687         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16688         invocations from here...
16689         * modules/ptsname (configure.ac): ... to here.
16690
16691 2011-05-21  Bruno Haible  <bruno@clisp.org>
16692
16693         pread: Move AC_LIBOBJ invocations to module description.
16694         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16695         * modules/pread (configure.ac): ... to here.
16696
16697 2011-05-21  Bruno Haible  <bruno@clisp.org>
16698
16699         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16700         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16701         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16702         * modules/posix_spawn (configure.ac): ... to here.
16703         * modules/posix_spawnp (configure.ac): ... and here.
16704
16705 2011-05-21  Bruno Haible  <bruno@clisp.org>
16706
16707         popen: Move AC_LIBOBJ invocations to module description.
16708         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16709         invocations from here...
16710         * modules/popen (configure.ac): ... to here.
16711
16712 2011-05-21  Bruno Haible  <bruno@clisp.org>
16713
16714         poll: Move AC_LIBOBJ invocations to module description.
16715         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16716         invocations from here...
16717         * modules/poll (configure.ac): ... to here.
16718
16719 2011-05-21  Bruno Haible  <bruno@clisp.org>
16720
16721         pipe-posix: Move AC_LIBOBJ invocations to module description.
16722         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16723         * modules/pipe-posix (configure.ac): ... to here.
16724
16725 2011-05-21  Bruno Haible  <bruno@clisp.org>
16726
16727         openat: Respect rules for use of AC_LIBOBJ.
16728         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16729         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16730         * modules/openat (configure.ac): ... to here.
16731
16732 2011-05-21  Bruno Haible  <bruno@clisp.org>
16733
16734         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16735         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16736         invocation from here...
16737         * modules/obstack-printf (configure.ac): ... to here.
16738         * modules/obstack-printf-posix (configure.ac): ... and here.
16739
16740 2011-05-21  Bruno Haible  <bruno@clisp.org>
16741
16742         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16744         from here...
16745         * modules/nl_langinfo (configure.ac): ... to here.
16746
16747 2011-05-21  Bruno Haible  <bruno@clisp.org>
16748
16749         nanosleep: Move AC_LIBOBJ invocations to module description.
16750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16751         gl_PREREQ_NANOSLEEP invocations from here...
16752         * modules/nanosleep (configure.ac): ... to here.
16753
16754 2011-05-21  Bruno Haible  <bruno@clisp.org>
16755
16756         mountlist: Move AC_LIBOBJ invocations to module description.
16757         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16758         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16759         * modules/mountlist (configure.ac): ... to here.
16760
16761 2011-05-21  Bruno Haible  <bruno@clisp.org>
16762
16763         mktime: Respect rules for use of AC_LIBOBJ.
16764         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16765         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16766         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16767         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16768         * modules/mktime (configure.ac): ... to here.
16769         * modules/mktime-internal (configure.ac): ... and here.
16770         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16771
16772 2011-05-21  Bruno Haible  <bruno@clisp.org>
16773
16774         mkstemps: Move AC_LIBOBJ invocations to module description.
16775         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16776         here...
16777         * modules/mkstemps (configure.ac): ... to here.
16778
16779 2011-05-21  Bruno Haible  <bruno@clisp.org>
16780
16781         mkstemp: Move AC_LIBOBJ invocations to module description.
16782         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16783         gl_PREREQ_MKSTEMP invocations from here...
16784         * modules/mkstemp (configure.ac): ... to here.
16785
16786 2011-05-21  Bruno Haible  <bruno@clisp.org>
16787
16788         mkostemps: Move AC_LIBOBJ invocations to module description.
16789         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16790         here...
16791         * modules/mkostemps (configure.ac): ... to here.
16792
16793 2011-05-21  Bruno Haible  <bruno@clisp.org>
16794
16795         mkostemp: Move AC_LIBOBJ invocations to module description.
16796         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16797         gl_PREREQ_MKOSTEMP invocations from here...
16798         * modules/mkostemp (configure.ac): ... to here.
16799
16800 2011-05-21  Bruno Haible  <bruno@clisp.org>
16801
16802         mknod: Move AC_LIBOBJ invocations to module description.
16803         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16804         * modules/mknod (configure.ac): ... to here.
16805
16806 2011-05-21  Bruno Haible  <bruno@clisp.org>
16807
16808         mkfifoat: Move AC_LIBOBJ invocations to module description.
16809         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16810         here...
16811         * modules/mkfifoat (configure.ac): ... to here.
16812
16813 2011-05-21  Bruno Haible  <bruno@clisp.org>
16814
16815         mkfifo: Respect rules for use of AC_LIBOBJ.
16816         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16817         here...
16818         * modules/mkfifo (configure.ac): ... to here.
16819
16820 2011-05-21  Bruno Haible  <bruno@clisp.org>
16821
16822         mkdtemp: Move AC_LIBOBJ invocations to module description.
16823         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16824         invocations from here...
16825         * modules/mkdtemp (configure.ac): ... to here.
16826
16827 2011-05-21  Bruno Haible  <bruno@clisp.org>
16828
16829         mkdir: Move AC_LIBOBJ invocations to module description.
16830         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16831         * modules/mkdir (configure.ac): ... to here.
16832
16833 2011-05-21  Bruno Haible  <bruno@clisp.org>
16834
16835         memset: Move AC_LIBOBJ invocations to module description.
16836         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16837         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16838         here...
16839         * modules/memset (configure.ac): ... to here.
16840
16841 2011-05-21  Bruno Haible  <bruno@clisp.org>
16842
16843         memrchr: Move AC_LIBOBJ invocations to module description.
16844         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16846         here...
16847         * modules/memrchr (configure.ac): ... to here.
16848
16849 2011-05-21  Bruno Haible  <bruno@clisp.org>
16850
16851         mempcpy: Move AC_LIBOBJ invocations to module description.
16852         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16853         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16854         here...
16855         * modules/mempcpy (configure.ac): ... to here.
16856
16857 2011-05-21  Bruno Haible  <bruno@clisp.org>
16858
16859         memmove: Move AC_LIBOBJ invocations to module description.
16860         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16862         here...
16863         * modules/memmove (configure.ac): ... to here.
16864
16865 2011-05-21  Bruno Haible  <bruno@clisp.org>
16866
16867         memmem*: Move AC_LIBOBJ invocations to module description.
16868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16869         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16870         here...
16871         (gl_FUNC_MEMMEM): ... and here...
16872         * modules/memmem-simple (configure.ac): ... to here.
16873         * modules/memmem (configure.ac): ... and here.
16874
16875 2011-05-21  Bruno Haible  <bruno@clisp.org>
16876
16877         memcpy: Move AC_LIBOBJ invocations to module description.
16878         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16880         here...
16881         * modules/memcpy (configure.ac): ... to here.
16882
16883 2011-05-21  Bruno Haible  <bruno@clisp.org>
16884
16885         memcmp: Simplify autoconf macro.
16886         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16887         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16888         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16889
16890 2011-05-21  Bruno Haible  <bruno@clisp.org>
16891
16892         memcmp: Move AC_LIBOBJ invocations to module description.
16893         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16894         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16895         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16896         * modules/memcmp (configure.ac): ... to here.
16897         (Depends-on): Update conditions.
16898
16899 2011-05-21  Bruno Haible  <bruno@clisp.org>
16900
16901         memchr: Respect rules for use of AC_LIBOBJ.
16902         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16903         invocations from here...
16904         * modules/memchr (configure.ac): ... to here.
16905
16906 2011-05-21  Bruno Haible  <bruno@clisp.org>
16907
16908         mbtowc: Move AC_LIBOBJ invocations to module description.
16909         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16910         invocations from here...
16911         * modules/mbtowc (configure.ac): ... to here.
16912
16913 2011-05-21  Bruno Haible  <bruno@clisp.org>
16914
16915         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16916         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16917         gl_PREREQ_MBSRTOWCS invocations from here...
16918         * modules/mbsrtowcs (configure.ac): ... to here.
16919
16920 2011-05-21  Bruno Haible  <bruno@clisp.org>
16921
16922         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16923         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16924         gl_PREREQ_MBSNRTOWCS invocations from here...
16925         * modules/mbsnrtowcs (configure.ac): ... to here.
16926
16927 2011-05-21  Bruno Haible  <bruno@clisp.org>
16928
16929         mbsinit: Move AC_LIBOBJ invocations to module description.
16930         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16931         invocations from here...
16932         * modules/mbsinit (configure.ac): ... to here.
16933
16934 2011-05-21  Bruno Haible  <bruno@clisp.org>
16935
16936         mbrlen: Move AC_LIBOBJ invocations to module description.
16937         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16938         invocations from here...
16939         * modules/mbrlen (configure.ac): ... to here.
16940
16941 2011-05-21  Bruno Haible  <bruno@clisp.org>
16942
16943         mbrtowc: Respect rules for use of AC_LIBOBJ.
16944         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16945         invocations from here...
16946         * modules/mbrtowc (configure.ac): ... to here.
16947
16948 2011-05-21  Bruno Haible  <bruno@clisp.org>
16949
16950         malloc-*: Move AC_LIBOBJ invocations to module description.
16951         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16952         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16953         AC_LIBOBJ invocations from here...
16954         * modules/malloc-gnu (configure.ac): ... to here.
16955         * modules/malloc-posix (configure.ac): ... and here.
16956
16957 2011-05-21  Bruno Haible  <bruno@clisp.org>
16958
16959         lstat, openat: Respect rules for use of AC_LIBOBJ.
16960         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16961         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16962         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16963         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16964         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16965         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16966         here.
16967         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16968
16969 2011-05-21  Bruno Haible  <bruno@clisp.org>
16970
16971         lseek: Move AC_LIBOBJ invocations to module description.
16972         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16973         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16974         * modules/lseek (configure.ac): ... to here.
16975
16976 2011-05-21  Bruno Haible  <bruno@clisp.org>
16977
16978         linkat: Move AC_LIBOBJ invocations to module description.
16979         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16980         here...
16981         * modules/linkat (configure.ac): ... to here.
16982
16983 2011-05-21  Bruno Haible  <bruno@clisp.org>
16984
16985         link: Respect rules for use of AC_LIBOBJ.
16986         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16987         * modules/link (configure.ac): ... to here.
16988
16989 2011-05-21  Bruno Haible  <bruno@clisp.org>
16990
16991         lchown: Move AC_LIBOBJ invocations to module description.
16992         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16993         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16994         * modules/lchown (configure.ac): ... to here.
16995
16996 2011-05-21  Bruno Haible  <bruno@clisp.org>
16997
16998         iswctype: Move AC_LIBOBJ invocations to module description.
16999         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17000         here...
17001         * modules/iswctype (configure.ac): ... to here.
17002
17003 2011-05-21  Bruno Haible  <bruno@clisp.org>
17004
17005         iswblank: Move AC_LIBOBJ invocations to module description.
17006         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17007         here...
17008         * modules/iswblank (configure.ac): ... to here.
17009
17010 2011-05-21  Bruno Haible  <bruno@clisp.org>
17011
17012         atanl: Move AC_LIBOBJ invocations to module description.
17013         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17014         * modules/atanl (configure.ac): ... to here.
17015
17016 2011-05-21  Bruno Haible  <bruno@clisp.org>
17017
17018         acosl: Move AC_LIBOBJ invocations to module description.
17019         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17020         * modules/acosl (configure.ac): ... to here.
17021
17022 2011-05-21  Bruno Haible  <bruno@clisp.org>
17023
17024         asinl: Respect rules for use of AC_LIBOBJ.
17025         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17026         * modules/asinl (configure.ac): ... to here.
17027
17028 2011-05-21  Bruno Haible  <bruno@clisp.org>
17029
17030         tanl: Move AC_LIBOBJ invocations to module description.
17031         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17032         * modules/tanl (configure.ac): ... to here.
17033
17034 2011-05-21  Bruno Haible  <bruno@clisp.org>
17035
17036         cosl: Move AC_LIBOBJ invocations to module description.
17037         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17038         * modules/cosl (configure.ac): ... to here.
17039
17040 2011-05-21  Bruno Haible  <bruno@clisp.org>
17041
17042         sinl: Move AC_LIBOBJ invocations to module description.
17043         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17044         * modules/sinl (configure.ac): ... to here.
17045
17046 2011-05-21  Bruno Haible  <bruno@clisp.org>
17047
17048         logl: Move AC_LIBOBJ invocations to module description.
17049         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17050         * modules/logl (configure.ac): ... to here.
17051
17052 2011-05-21  Bruno Haible  <bruno@clisp.org>
17053
17054         expl: Move AC_LIBOBJ invocations to module description.
17055         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17056         * modules/expl (configure.ac): ... to here.
17057
17058 2011-05-21  Bruno Haible  <bruno@clisp.org>
17059
17060         roundl: Move AC_LIBOBJ invocations to module description.
17061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17062         * modules/roundl (configure.ac): ... to here.
17063
17064 2011-05-21  Bruno Haible  <bruno@clisp.org>
17065
17066         round: Move AC_LIBOBJ invocations to module description.
17067         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17068         * modules/round (configure.ac): ... to here.
17069
17070 2011-05-21  Bruno Haible  <bruno@clisp.org>
17071
17072         roundf: Move AC_LIBOBJ invocations to module description.
17073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17074         * modules/roundf (configure.ac): ... to here.
17075
17076 2011-05-21  Bruno Haible  <bruno@clisp.org>
17077
17078         truncl: Move AC_LIBOBJ invocations to module description.
17079         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17080         * modules/truncl (configure.ac): ... to here.
17081
17082 2011-05-21  Bruno Haible  <bruno@clisp.org>
17083
17084         trunc: Move AC_LIBOBJ invocations to module description.
17085         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17086         * modules/trunc (configure.ac): ... to here.
17087
17088 2011-05-21  Bruno Haible  <bruno@clisp.org>
17089
17090         truncf: Move AC_LIBOBJ invocations to module description.
17091         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17092         * modules/truncf (configure.ac): ... to here.
17093
17094 2011-05-21  Bruno Haible  <bruno@clisp.org>
17095
17096         ceill: Move AC_LIBOBJ invocations to module description.
17097         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17098         * modules/ceill (configure.ac): ... to here.
17099
17100 2011-05-21  Bruno Haible  <bruno@clisp.org>
17101
17102         ceil: Move AC_LIBOBJ invocations to module description.
17103         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17104         * modules/ceil (configure.ac): ... to here.
17105
17106 2011-05-21  Bruno Haible  <bruno@clisp.org>
17107
17108         ceilf: Move AC_LIBOBJ invocations to module description.
17109         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17110         * modules/ceilf (configure.ac): ... to here.
17111
17112 2011-05-21  Bruno Haible  <bruno@clisp.org>
17113
17114         floorl: Respect rules for use of AC_LIBOBJ.
17115         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17116         * modules/floorl (configure.ac): ... to here.
17117
17118 2011-05-21  Bruno Haible  <bruno@clisp.org>
17119
17120         floor: Respect rules for use of AC_LIBOBJ.
17121         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17122         * modules/floor (configure.ac): ... to here.
17123
17124 2011-05-21  Bruno Haible  <bruno@clisp.org>
17125
17126         floorf: Move AC_LIBOBJ invocations to module description.
17127         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17128         * modules/floorf (configure.ac): ... to here.
17129
17130 2011-05-20  Bruno Haible  <bruno@clisp.org>
17131
17132         sqrtl: Respect rules for use of AC_LIBOBJ.
17133         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17134         * modules/sqrtl (configure.ac): ... to here.
17135
17136 2011-05-20  Bruno Haible  <bruno@clisp.org>
17137
17138         ldexpl: Respect rules for use of AC_LIBOBJ.
17139         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17140         * modules/ldexpl (configure.ac): ... to here.
17141
17142 2011-05-20  Bruno Haible  <bruno@clisp.org>
17143
17144         frexpl*: Respect rules for use of AC_LIBOBJ.
17145         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17146         invocation from here...
17147         * modules/frexpl (configure.ac): ... to here.
17148         * modules/frexpl-nolibm (configure.ac): ... and here.
17149
17150 2011-05-20  Bruno Haible  <bruno@clisp.org>
17151
17152         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17153         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17154         invocation from here...
17155         * modules/frexp (configure.ac): ... to here.
17156         * modules/frexp-nolibm (configure.ac): ... and here.
17157
17158 2011-05-20  Bruno Haible  <bruno@clisp.org>
17159
17160         isnan: Respect rules for use of AC_LIBOBJ.
17161         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17162         invocations here.
17163         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17164         REPLACE_ISNAN.
17165         * modules/isnand (configure.ac): Likewise.
17166         * modules/isnanl (configure.ac): Likewise.
17167
17168 2011-05-20  Bruno Haible  <bruno@clisp.org>
17169
17170         isnanl*: Respect rules for use of AC_LIBOBJ.
17171         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17172         invocation from here...
17173         * modules/isnanl (configure.ac): ... to here.
17174         * modules/isnanl-nolibm (configure.ac): ... and here.
17175
17176 2011-05-20  Bruno Haible  <bruno@clisp.org>
17177
17178         isnand*: Move AC_LIBOBJ invocations to module description.
17179         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17180         invocation from here...
17181         * modules/isnand (configure.ac): ... to here.
17182         * modules/isnand-nolibm (configure.ac): ... and here.
17183
17184 2011-05-20  Bruno Haible  <bruno@clisp.org>
17185
17186         isnanf*: Move AC_LIBOBJ invocations to module description.
17187         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17188         invocation from here...
17189         * modules/isnanf (configure.ac): ... to here.
17190         * modules/isnanf-nolibm (configure.ac): ... and here.
17191
17192 2011-05-20  Bruno Haible  <bruno@clisp.org>
17193
17194         isnan*: Separate the AC_LIBOBJ invocations.
17195         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17196         AC_LIBOBJ invocation.
17197         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17198         here.
17199         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17200         AC_LIBOBJ invocation.
17201         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17202         here.
17203         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17204         AC_LIBOBJ invocation.
17205         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17206         here.
17207         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17208
17209 2011-05-08  Bruno Haible  <bruno@clisp.org>
17210
17211         isinf: Move AC_LIBOBJ invocations to module description.
17212         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17213         * modules/isinf (configure.ac): ... to here.
17214
17215 2011-05-08  Bruno Haible  <bruno@clisp.org>
17216
17217         isfinite: Move AC_LIBOBJ invocations to module description.
17218         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17219         * modules/isfinite (configure.ac): ... to here.
17220
17221 2011-05-08  Bruno Haible  <bruno@clisp.org>
17222
17223         isblank: Move AC_LIBOBJ invocations to module description.
17224         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17225         here...
17226         * modules/isblank (configure.ac): ... to here.
17227
17228 2011-05-08  Bruno Haible  <bruno@clisp.org>
17229
17230         isapipe: Move AC_LIBOBJ invocations to module description.
17231         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17232         gl_PREREQ_ISAPIPE invocations from here...
17233         * modules/isapipe (configure.ac): ... to here.
17234         (Depends-on): Update condition.
17235
17236 2011-05-08  Bruno Haible  <bruno@clisp.org>
17237
17238         ioctl: Move AC_LIBOBJ invocations to module description.
17239         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17240         invocations from here...
17241         * modules/ioctl (configure.ac): ... to here.
17242         (Depends-on): Update condition.
17243
17244 2011-05-08  Bruno Haible  <bruno@clisp.org>
17245
17246         imaxdiv: Move AC_LIBOBJ invocations to module description.
17247         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17248         invocations from here...
17249         * modules/imaxdiv (configure.ac): ... to here.
17250
17251 2011-05-08  Bruno Haible  <bruno@clisp.org>
17252
17253         imaxabs: Move AC_LIBOBJ invocations to module description.
17254         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17255         invocations from here...
17256         * modules/imaxabs (configure.ac): ... to here.
17257
17258 2011-05-08  Bruno Haible  <bruno@clisp.org>
17259
17260         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17262         AC_LIBOBJ invocations from here...
17263         * modules/getaddrinfo (configure.ac): ... to here.
17264         (Depends-on): Add conditions.
17265
17266 2011-05-08  Bruno Haible  <bruno@clisp.org>
17267
17268         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17269         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17270         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17271         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17272         (gl_PREREQ_INET_PTON): ... from here.
17273         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17274         gl_PREREQ_INET_PTON here.
17275         (Depends-on): Update condition.
17276
17277 2011-05-08  Bruno Haible  <bruno@clisp.org>
17278
17279         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17280         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17281         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17282         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17283         (gl_PREREQ_INET_NTOP): ... from here.
17284         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17285         gl_PREREQ_INET_NTOP here.
17286         (Depends-on): Update condition.
17287
17288 2011-05-08  Bruno Haible  <bruno@clisp.org>
17289
17290         iconv_open: Move AC_LIBOBJ invocations to module description.
17291         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17292         AC_LIBOBJ invocations from here...
17293         * modules/iconv_open (configure.ac): ... to here.
17294
17295 2011-05-08  Bruno Haible  <bruno@clisp.org>
17296
17297         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17298         If module 'iconv_open' is among the main modules and module
17299         'iconv_open-utf' is among the tests dependencies, then
17300         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17301         return the special iconv_t values. Therefore iconv() and iconv_close()
17302         must support these special iconv_t values, already in lib, not only in
17303         tests.
17304         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17305         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17306         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17307         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17308         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17309         (Depends-on): Add the dependencies of iconv_open-utf.
17310         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17311         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17312         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17313
17314 2011-05-08  Bruno Haible  <bruno@clisp.org>
17315
17316         group-member: Move AC_LIBOBJ invocations to module description.
17317         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17318         gl_PREREQ_GROUP_MEMBER invocations from here...
17319         * modules/group-member (configure.ac): ... to here.
17320
17321 2011-05-08  Bruno Haible  <bruno@clisp.org>
17322
17323         grantpt: Move AC_LIBOBJ invocations to module description.
17324         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17325         invocations from here...
17326         * modules/grantpt (configure.ac): ... to here.
17327
17328 2011-05-08  Bruno Haible  <bruno@clisp.org>
17329
17330         glob: Move AC_LIBOBJ invocations to module description.
17331         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17332         from here...
17333         * modules/glob (configure.ac): ... to here.
17334
17335 2011-05-08  Bruno Haible  <bruno@clisp.org>
17336
17337         getusershell: Move AC_LIBOBJ invocations to module description.
17338         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17339         Move AC_LIBOBJ invocation from here...
17340         * modules/getusershell (configure.ac): ... to here.
17341         (Depends-on): Update condition.
17342
17343 2011-05-08  Bruno Haible  <bruno@clisp.org>
17344
17345         gettimeofday: Move AC_LIBOBJ invocations to module description.
17346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17347         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17348         gl_PREREQ_GETTIMEOFDAY invocations from here...
17349         * modules/gettimeofday (configure.ac): ... to here.
17350
17351 2011-05-08  Bruno Haible  <bruno@clisp.org>
17352
17353         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17354         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17355         just gl_FUNC_TZSET.
17356         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17357         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17359         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17360
17361 2011-05-08  Bruno Haible  <bruno@clisp.org>
17362
17363         getsubopt: Move AC_LIBOBJ invocations to module description.
17364         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17365         gl_PREREQ_GETSUBOPT invocations from here...
17366         * modules/getsubopt (configure.ac): ... to here.
17367
17368 2011-05-08  Bruno Haible  <bruno@clisp.org>
17369
17370         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17371         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17372         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17373         * modules/getpass-gnu (configure.ac): ... to here.
17374
17375 2011-05-08  Bruno Haible  <bruno@clisp.org>
17376
17377         getpass: Move AC_LIBOBJ invocations to module description.
17378         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17379         gl_PREREQ_GETPASS invocations from here...
17380         * modules/getpass (configure.ac): ... to here.
17381
17382 2011-05-08  Bruno Haible  <bruno@clisp.org>
17383
17384         getpagesize: Move AC_LIBOBJ invocations to module description.
17385         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17386         from here...
17387         * modules/getpagesize (configure.ac): ... to here.
17388
17389 2011-05-08  Bruno Haible  <bruno@clisp.org>
17390
17391         getopt: Move AC_LIBOBJ invocations to module description.
17392         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17393         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17394         invocations from here...
17395         * modules/getopt-gnu (configure.ac): ... to here.
17396         * modules/getopt-posix (configure.ac): ... and here.
17397         (Depends-on): Update condition.
17398
17399 2011-05-08  Bruno Haible  <bruno@clisp.org>
17400
17401         getopt, argp: Respect rules for use of AC_LIBOBJ.
17402         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17403         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17404         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17405         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17406
17407 2011-05-08  Bruno Haible  <bruno@clisp.org>
17408
17409         getlogin_r: Move AC_LIBOBJ invocations to module description.
17410         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17411         gl_PREREQ_GETLOGIN_R invocations from here...
17412         * modules/getlogin_r (configure.ac): ... to here.
17413
17414 2011-05-08  Bruno Haible  <bruno@clisp.org>
17415
17416         getlogin: Move AC_LIBOBJ invocations to module description.
17417         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17418         here...
17419         * modules/getlogin (configure.ac): ... to here.
17420
17421 2011-05-08  Bruno Haible  <bruno@clisp.org>
17422
17423         getloadavg: Move AC_LIBOBJ invocations to module description.
17424         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17425         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17426         * modules/getloadavg (configure.ac): ... to here.
17427
17428 2011-05-08  Bruno Haible  <bruno@clisp.org>
17429
17430         gethrxtime: Move AC_LIBOBJ invocations to module description.
17431         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17432         LIB_GETHRXTIME from here...
17433         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17434         invocations from here...
17435         * modules/gethrxtime (configure.ac): ... to here.
17436
17437 2011-05-08  Bruno Haible  <bruno@clisp.org>
17438
17439         gethostname: Move AC_LIBOBJ invocations to module description.
17440         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17441         gl_PREREQ_GETHOSTNAME invocations from here...
17442         * modules/gethostname (configure.ac): ... to here.
17443
17444 2011-05-08  Bruno Haible  <bruno@clisp.org>
17445
17446         getgroups: Move AC_LIBOBJ invocations to module description.
17447         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17448         here...
17449         * modules/getgroups (configure.ac): ... to here.
17450
17451 2011-05-08  Bruno Haible  <bruno@clisp.org>
17452
17453         getdtablesize: Move AC_LIBOBJ invocations to module description.
17454         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17455         invocation from here...
17456         * modules/getdtablesize (configure.ac): ... to here.
17457
17458 2011-05-08  Bruno Haible  <bruno@clisp.org>
17459
17460         getdomainname: Move AC_LIBOBJ invocations to module description.
17461         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17462         gl_PREREQ_GETDOMAINNAME invocations from here...
17463         * modules/getdomainname (configure.ac): ... to here.
17464
17465 2011-05-08  Bruno Haible  <bruno@clisp.org>
17466
17467         getline: Move AC_LIBOBJ invocations to module description.
17468         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17469         invocations from here...
17470         * modules/getline (configure.ac): ... to here.
17471
17472 2011-05-08  Bruno Haible  <bruno@clisp.org>
17473
17474         getline: Simplify.
17475         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17476         It's already handled through the module dependency.
17477
17478 2011-05-08  Bruno Haible  <bruno@clisp.org>
17479
17480         getdelim: Move AC_LIBOBJ invocations to module description.
17481         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17482         and gl_PREREQ_GETDELIM invocations from here...
17483         * modules/getdelim (configure.ac): ... to here.
17484         (Depends-on): Fix condition.
17485
17486 2011-05-08  Bruno Haible  <bruno@clisp.org>
17487
17488         getcwd: Move AC_LIBOBJ invocations to module description.
17489         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17490         invocations from here...
17491         * modules/getcwd (configure.ac): ... to here.
17492
17493 2011-05-08  Bruno Haible  <bruno@clisp.org>
17494
17495         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17496         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17497         here...
17498         * modules/getcwd-lgpl (configure.ac): ... to here.
17499
17500 2011-05-07  Bruno Haible  <bruno@clisp.org>
17501
17502         crypto/gc: Move AC_LIBOBJ invocations to module description.
17503         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17504         * modules/crypto/gc (configure.ac): ... to here.
17505
17506 2011-05-07  Bruno Haible  <bruno@clisp.org>
17507
17508         fwriting: Move AC_LIBOBJ invocations to module description.
17509         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17510         here...
17511         * modules/fwriting (configure.ac): ... to here.
17512
17513 2011-05-07  Bruno Haible  <bruno@clisp.org>
17514
17515         fwritable: Move AC_LIBOBJ invocations to module description.
17516         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17517         here...
17518         * modules/fwritable (configure.ac): ... to here.
17519
17520 2011-05-07  Bruno Haible  <bruno@clisp.org>
17521
17522         futimens: Move AC_LIBOBJ invocations to module description.
17523         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17524         here...
17525         * modules/futimens (configure.ac): ... to here.
17526
17527 2011-05-07  Bruno Haible  <bruno@clisp.org>
17528
17529         ftruncate: Move AC_LIBOBJ invocations to module description.
17530         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17531         gl_PREREQ_FTRUNCATE invocations from here...
17532         * modules/ftruncate (configure.ac): ... to here.
17533
17534 2011-05-07  Bruno Haible  <bruno@clisp.org>
17535
17536         fsync: Move AC_LIBOBJ invocations to module description.
17537         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17538         invocations from here...
17539         * modules/fsync (configure.ac): ... to here.
17540
17541 2011-05-07  Bruno Haible  <bruno@clisp.org>
17542
17543         fsusage: Move AC_LIBOBJ invocations to module description.
17544         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17545         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17546         * modules/fsusage (configure.ac): ... to here.
17547
17548 2011-05-07  Bruno Haible  <bruno@clisp.org>
17549
17550         freopen: Move AC_LIBOBJ invocations to module description.
17551         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17552         invocations from here...
17553         * modules/freopen (configure.ac): ... to here.
17554
17555 2011-05-07  Bruno Haible  <bruno@clisp.org>
17556
17557         free: Move AC_LIBOBJ invocations to module description.
17558         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17559         invocations from here...
17560         * modules/free (configure.ac): ... to here.
17561
17562 2011-05-07  Bruno Haible  <bruno@clisp.org>
17563
17564         freadable: Move AC_LIBOBJ invocations to module description.
17565         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17566         here...
17567         * modules/freadable (configure.ac): ... to here.
17568
17569 2011-05-07  Bruno Haible  <bruno@clisp.org>
17570
17571         fpurge: Move AC_LIBOBJ invocations to module description.
17572         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17573         invocations from here...
17574         * modules/fpurge (configure.ac): ... to here.
17575
17576 2011-05-07  Bruno Haible  <bruno@clisp.org>
17577
17578         fpending: Move AC_LIBOBJ invocations to module description.
17579         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17580         gl_FUNC_FPENDING.
17581         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17582         invocations from here...
17583         * modules/fpending (configure.ac): ... to here.
17584
17585 2011-05-07  Bruno Haible  <bruno@clisp.org>
17586
17587         fopen: Move AC_LIBOBJ invocations to module description.
17588         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17589         invocations from here...
17590         * modules/fopen (configure.ac): ... to here.
17591
17592 2011-05-07  Bruno Haible  <bruno@clisp.org>
17593
17594         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17595         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17596         gl_FUNC_FNMATCH_POSIX.
17597         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17598         invocations from here...
17599         * modules/fnmatch (configure.ac): ... to here.
17600         * modules/fnmatch-gnu (configure.ac): ... and here.
17601
17602 2011-05-07  Bruno Haible  <bruno@clisp.org>
17603
17604         flock: Move AC_LIBOBJ invocations to module description.
17605         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17606         invocations from here...
17607         * modules/flock (configure.ac): ... to here.
17608
17609 2011-05-07  Bruno Haible  <bruno@clisp.org>
17610
17611         fileblocks: Move AC_LIBOBJ invocations to module description.
17612         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17613         gl_PREREQ_FILEBLOCKS invocations from here...
17614         * modules/fileblocks (configure.ac): ... to here.
17615
17616 2011-05-06  Bruno Haible  <bruno@clisp.org>
17617
17618         fflush: Move AC_LIBOBJ invocations to module description.
17619         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17620         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17621         invocations from here...
17622         * modules/fflush (configure.ac): ... to here.
17623
17624 2011-05-06  Bruno Haible  <bruno@clisp.org>
17625
17626         fdopendir: Move AC_LIBOBJ invocations to module description.
17627         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17628         here...
17629         * modules/fdopendir (configure.ac): ... to here.
17630         (Depends-on): Improve conditions.
17631
17632 2011-05-06  Bruno Haible  <bruno@clisp.org>
17633
17634         _Exit: Move AC_LIBOBJ invocations to module description.
17635         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17636         invocations from here...
17637         * modules/_Exit (configure.ac): ... to here.
17638
17639 2011-05-21  Bruno Haible  <bruno@clisp.org>
17640
17641         euidaccess: Respect rules for use of AC_LIBOBJ.
17642         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17644         from here...
17645         * modules/euidaccess (configure.ac): ... to here.
17646
17647 2011-05-06  Bruno Haible  <bruno@clisp.org>
17648
17649         error: Move AC_LIBOBJ invocations to module description.
17650         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17651         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17652         invocations from here...
17653         * modules/error (configure.ac): ... to here.
17654
17655 2011-05-06  Bruno Haible  <bruno@clisp.org>
17656
17657         duplocale: Move AC_LIBOBJ invocations to module description.
17658         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17659         gl_PREREQ_DUPLOCALE invocations from here...
17660         * modules/duplocale (configure.ac): ... to here.
17661
17662 2011-05-05  Bruno Haible  <bruno@clisp.org>
17663
17664         dirfd: Move AC_LIBOBJ invocations to module description.
17665         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17666         gl_FUNC_DIRFD.
17667         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17668         here...
17669         * modules/dirfd (configure.ac): ... to here.
17670         (Depends-on): Fix condition.
17671
17672 2011-05-05  Bruno Haible  <bruno@clisp.org>
17673
17674         chown: Respect rules for use of AC_LIBOBJ.
17675         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17676         * modules/chown (configure.ac): ... to here.
17677
17678 2011-05-05  Bruno Haible  <bruno@clisp.org>
17679
17680         chdir-long: Move AC_LIBOBJ invocations to module description.
17681         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17682         gl_PREREQ_CHDIR_LONG invocations from here...
17683         * modules/chdir-long (configure.ac): ... to here.
17684
17685 2011-05-05  Bruno Haible  <bruno@clisp.org>
17686
17687         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17688         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17689         from here...
17690         * modules/canonicalize-lgpl (configure.ac): ... to here.
17691
17692 2011-05-05  Bruno Haible  <bruno@clisp.org>
17693
17694         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17695         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17696         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17697         REPLACE_CALLOC.
17698         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17699         * modules/calloc-gnu (configure.ac): Likewise.
17700
17701 2011-05-05  Bruno Haible  <bruno@clisp.org>
17702
17703         btowc: Move AC_LIBOBJ invocations to module description.
17704         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17705         invocations from here...
17706         * modules/btowc (configure.ac): ... to here.
17707
17708 2011-05-21  Bruno Haible  <bruno@clisp.org>
17709
17710         atexit: Move AC_LIBOBJ invocations to module description.
17711         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17713         here...
17714         * modules/atexit (configure.ac): ... to here.
17715
17716 2011-05-05  Bruno Haible  <bruno@clisp.org>
17717
17718         atoll: Move AC_LIBOBJ invocations to module description.
17719         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17720         invocations from here...
17721         * modules/atoll (configure.ac): ... to here.
17722
17723 2011-05-05  Bruno Haible  <bruno@clisp.org>
17724
17725         argz: Move AC_LIBOBJ invocations to module description.
17726         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17727         * modules/argz (configure.ac): ... to here.
17728
17729 2011-05-05  Bruno Haible  <bruno@clisp.org>
17730
17731         alphasort: Move AC_LIBOBJ invocations to module description.
17732         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17733         gl_PREREQ_ALPHASORT invocations from here...
17734         * modules/alphasort (configure.ac): ... to here.
17735
17736 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17737
17738         verify: new macro verify_expr; verify_true deprecated
17739         * NEWS: Mention this.
17740         * doc/verify.texi (Compile-time Assertions): Document this.
17741         * lib/verify.h (verify_true): Deprecate.
17742         (verify_expr): New macro.
17743         * tests/test-verify.c (function): Test verify_expr.
17744
17745 2011-06-14  Jim Meyering  <meyering@redhat.com>
17746
17747         init.sh: give more portable redirection-related advice in a comment
17748         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17749         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17750         for lots of discussion.  Stefano Lattarini suggested the solution
17751         of putting "9>&2" after the command.  Reported by Bruno Haible.
17752
17753 2011-06-13  Bruno Haible  <bruno@clisp.org>
17754
17755         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17756         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17757         'none'.
17758
17759 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17760
17761         ftoastr: use strtof only if HAVE_STRTOF
17762         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17764         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17765         * modules/ftoastr (configure.ac): Check for strtof.
17766
17767 2011-06-13  Bruno Haible  <bruno@clisp.org>
17768
17769         gnulib-tool: Addendum to 2011-06-08 commit.
17770         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17771         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17772
17773 2011-06-13  Bruno Haible  <bruno@clisp.org>
17774
17775         fseeko: Provide a non-inline replacement of fseek().
17776         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17777         * modules/fseeko (Depends-on): Add fseek.
17778         * modules/fseek (License): Change to LGPLv2+.
17779
17780 2011-06-13  Bruno Haible  <bruno@clisp.org>
17781
17782         ftello: Provide a non-inline replacement of ftell().
17783         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17784         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17785         not have ftello() (such as on mingw).
17786         * modules/ftello (Depends-on): Add ftell.
17787         * modules/ftell (License): Change to LGPLv2+.
17788
17789 2011-05-07  Bruno Haible  <bruno@clisp.org>
17790
17791         ftell: Move AC_LIBOBJ invocations to module description.
17792         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17793         * modules/ftell (configure.ac): ... to here.
17794
17795 2011-05-07  Bruno Haible  <bruno@clisp.org>
17796
17797         ftello: Respect rules for use of AC_LIBOBJ.
17798         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17799         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17800         here...
17801         * modules/ftello (configure.ac): ... to here.
17802
17803 2011-05-07  Bruno Haible  <bruno@clisp.org>
17804
17805         fseeko: Simplify.
17806         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17807         (gl_FUNC_FSEEKO): Inline it here.
17808
17809 2011-05-07  Bruno Haible  <bruno@clisp.org>
17810
17811         fseek: Move AC_LIBOBJ invocations to module description.
17812         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17813         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17814         * modules/fseek (configure.ac): ... to here.
17815
17816 2011-05-07  Bruno Haible  <bruno@clisp.org>
17817
17818         fseek: Respect rules for use of AC_LIBOBJ.
17819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17820         here...
17821         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17822
17823 2011-05-07  Bruno Haible  <bruno@clisp.org>
17824
17825         fseeko: Respect rules for use of AC_LIBOBJ.
17826         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17827         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17828         here...
17829         * modules/fseeko (configure.ac): ... to here.
17830
17831 2011-06-13  Bruno Haible  <bruno@clisp.org>
17832
17833         gnulib-tool: Allow comments in the 'Depends-on' section.
17834         * doc/gnulib.texi (Module description): Mention comment syntax in the
17835         Depends-on section.
17836         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17837
17838 2011-06-13  Bruno Haible  <bruno@clisp.org>
17839
17840         file-set.h: guard __attibute__ use, now that it's not always defined
17841         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17842         versions that support it.  This fixes a coreutils build failure with
17843         the vendor cc on HP-UX 11.31.
17844
17845 2011-06-12  Bruno Haible  <bruno@clisp.org>
17846
17847         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17848         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17849         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17850         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17851         (acl, aclsort): New declarations.
17852         (aclv_nontrivial): New declaration.
17853         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17854         (file_has_acl): Read also the second kind of HP-UX ACLs.
17855         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17856         kind of HP-UX ACLs if the first kind fails.
17857         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17858         second kind of HP-UX ACLs.
17859         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17860         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17861         agree.
17862         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17863         hpuxjfs.
17864         Handle hpuxjfs.
17865         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17866         hpuxjfs.
17867         Handle hpuxjfs.
17868         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17869         (func_test_same_acls): Use both lsacl and getacl.
17870         Handle hpuxjfs.
17871         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17872         (func_test_same_acls): Use both lsacl and getacl.
17873         Handle hpuxjfs.
17874
17875 2011-06-12  Bruno Haible  <bruno@clisp.org>
17876
17877         acl: Complete the 2010-08-10 fix.
17878         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17879         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17880         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17881         explicitly.
17882         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17883         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17884
17885 2011-06-12  Bruno Haible  <bruno@clisp.org>
17886
17887         spawn-pipe tests: Comments.
17888         * tests/test-spawn-pipe-child.c (main): Update comment.
17889         Reported by James Youngman <jay@gnu.org>.
17890
17891 2011-06-11  James Youngman  <jay@gnu.org>
17892
17893         New module 'stat-size'.
17894         * modules/stat-size: New module.  Provides macros for accessing
17895         file size information in instances of struct stat.  Depends on the
17896         fileblocks module because it calls st_blocks.
17897         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17898         * doc/gnulib.texi: Include stat-size.texi.
17899         * doc/stat-size.texi: Documentation for this module.
17900         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17901         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17902         AC_STRUCT_ST_BLOCKS.
17903
17904 2011-06-09  Bruno Haible  <bruno@clisp.org>
17905
17906         thread: Support pthreads-win32.
17907         * lib/glthread/thread.h (gl_thread_self): Define differently on
17908         pthreads-win32.
17909         (gl_null_thread): New declaration.
17910         (gl_thread_self_pointer): New macro.
17911         * lib/glthread/thread.c (gl_null_thread): New constant.
17912         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17913         gl_thread_self.
17914         * tests/test-tls.c: Likewise.
17915         Suggested by Paul Eggert. Reported by Eric Blake.
17916
17917 2011-06-09  Bruno Haible  <bruno@clisp.org>
17918
17919         thread: Fix confusion between NULL and 0.
17920         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17921         Reported by Paul Eggert.
17922
17923 2011-06-09  Bruno Haible  <bruno@clisp.org>
17924
17925         spawn-pipe tests: Avoid test failure on HP-UX 11.
17926         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17927         is closed.
17928
17929 2011-06-09  Bruno Haible  <bruno@clisp.org>
17930
17931         acl tests: Fix compilation error on HP-UX 11.
17932         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17933
17934 2011-06-09  Bruno Haible  <bruno@clisp.org>
17935
17936         rmdir: Avoid test failure on HP-UX 10.20.
17937         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17938         EEXIST.
17939
17940 2011-06-08  Eric Blake  <eblake@redhat.com>
17941
17942         perror: fix test on mingw
17943         * modules/perror-tests (Depends-on): Add dup2.
17944
17945         strerror_r-posix: fix on MacOS
17946         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17948         logic bug.
17949         * lib/strerror_r.c (strerror_r): Fix the bug.
17950         * lib/strerror.c (strerror): Likewise.
17951         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17952         problem.
17953         * doc/posix-functions/strerror.texi (strerror): Likewise.
17954         * doc/posix-functions/perror.texi (perror): Likewise.
17955         * tests/test-strerror.c (main): Enhance test.
17956         * tests/test-strerror_r.c (main): Likewise.
17957
17958 2011-06-08  Bruno Haible  <bruno@clisp.org>
17959
17960         gnulib-tool: Better isolation between different gnulib-tool invocations.
17961         * gnulib-tool: New option --witness-c-macro.
17962         (witness_c_macro): New variable.
17963         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17964         AM_CPPFLAGS define it as a C macro.
17965         (func_emit_tests_Makefile_am): Likewise.
17966         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17967         read it from there.
17968         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17969         m4_define, not AC_DEFUN.
17970         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17971         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17972         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17973         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17974         s|...|...|, to substitute the values of the GNULIB_* module indicator
17975         variables.
17976         * modules/dirent (Makefile.am): Likewise.
17977         * modules/fcntl-h (Makefile.am): Likewise.
17978         * modules/iconv-h (Makefile.am): Likewise.
17979         * modules/langinfo (Makefile.am): Likewise.
17980         * modules/locale (Makefile.am): Likewise.
17981         * modules/math (Makefile.am): Likewise.
17982         * modules/netdb (Makefile.am): Likewise.
17983         * modules/poll-h (Makefile.am): Likewise.
17984         * modules/pty (Makefile.am): Likewise.
17985         * modules/search (Makefile.am): Likewise.
17986         * modules/signal (Makefile.am): Likewise.
17987         * modules/spawn (Makefile.am): Likewise.
17988         * modules/stdio (Makefile.am): Likewise.
17989         * modules/stdlib (Makefile.am): Likewise.
17990         * modules/string (Makefile.am): Likewise.
17991         * modules/sys_ioctl (Makefile.am): Likewise.
17992         * modules/sys_select (Makefile.am): Likewise.
17993         * modules/sys_socket (Makefile.am): Likewise.
17994         * modules/sys_stat (Makefile.am): Likewise.
17995         * modules/sys_times (Makefile.am): Likewise.
17996         * modules/sys_utsname (Makefile.am): Likewise.
17997         * modules/sys_wait (Makefile.am): Likewise.
17998         * modules/termios (Makefile.am): Likewise.
17999         * modules/time (Makefile.am): Likewise.
18000         * modules/unistd (Makefile.am): Likewise.
18001         * modules/wchar (Makefile.am): Likewise.
18002
18003 2011-06-08  Eric Blake  <eblake@redhat.com>
18004
18005         strerror: simplify replacement
18006         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18007         * modules/strerror (configure.ac): No prereqs needed here...
18008         * modules/strerror-override (configure.ac): ...but this needs it.
18009         (Files): Add file for needed prereq macro.
18010
18011 2011-06-08  Bruno Haible  <bruno@clisp.org>
18012
18013         strerror_r-posix: Tweaks.
18014         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18015         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18016         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18017         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18018         (gl_FUNC_STRERROR_R): ... to here.
18019         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18020
18021 2011-06-07  Eric Blake  <eblake@redhat.com>
18022
18023         perror: document fixed bugs
18024         * doc/posix-functions/perror.texi (perror): Document recent
18025         patches.
18026
18027 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18028
18029         stat-time: get_stat_birthtime failure is better-defined
18030         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18031         return a timestamp whose tv_sec and tv_nsec values are both -1.
18032         Previously, the spec said only that the tv_nsec value was negative.
18033         This upward-compatible change simplifies GNU tar a bit.
18034
18035 2011-06-07  Eric Blake  <eblake@redhat.com>
18036
18037         strerror_r-posix: work around cygwin 1.7.9
18038         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18039         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18040         bug without replacing strerror_r.
18041         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18042         strerror_r is buggy, but without requiring strerror_r compilation.
18043         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18044
18045         test-perror: relax test to ignore cygwin bug
18046         * tests/test-perror2.c (main): Relax test on requiring detection
18047         of stream errors, and use unbuffered stream.
18048         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18049         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18050         * doc/posix-functions/fputc.texi (fputc): Likewise.
18051         * doc/posix-functions/fputs.texi (fputs): Likewise.
18052         * doc/posix-functions/fputws.texi (fputws): Likewise.
18053         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18054         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18055         * doc/posix-functions/getopt.texi (getopt): Likewise.
18056         * doc/posix-functions/perror.texi (perror): Likewise.
18057         * doc/posix-functions/printf.texi (printf): Likewise.
18058         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18059         * doc/posix-functions/psignal.texi (psignal): Likewise.
18060         * doc/posix-functions/putc.texi (putc): Likewise.
18061         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18062         Likewise.
18063         * doc/posix-functions/putchar.texi (putchar): Likewise.
18064         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18065         Likewise.
18066         * doc/posix-functions/puts.texi (puts): Likewise.
18067         * doc/posix-functions/putwc.texi (putwc): Likewise.
18068         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18069         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18070         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18071         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18072         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18073         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18074         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18075         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18076
18077 2011-05-22  Bruno Haible  <bruno@clisp.org>
18078
18079         strerror: Move AC_LIBOBJ invocations to module description.
18080         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18081         gl_PREREQ_STRERROR invocations from here...
18082         * modules/strerror (configure.ac): ... to here.
18083
18084 2011-05-21  Bruno Haible  <bruno@clisp.org>
18085
18086         perror: Use common idiom.
18087         * modules/perror (configure.ac): Reorder statements.
18088
18089 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18090
18091         tests: fix usage message in 'mktempd_'
18092         * tests/init.sh (mktempd_): In the usage message, use literal
18093         'mktempd_', not '$ME' (which is even undefined), as the name of
18094         the subroutine.
18095
18096 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18097
18098         tests init: new function 'fatal_', for hard errors
18099         Before this patch, the only way offered by tests/init.sh to
18100         properly signal a hard error was the `framework_failure_'
18101         function.  But the error message issued by that function,
18102         as its name would suggest, refers to a set-up failure in the
18103         testsuite, while hard errors can obviously also be due to
18104         other reasons.  The best way to fix this inconsistency is to
18105         introduce a new function with a more general error message.
18106         * tests/init.sh (fatal_): New function.
18107
18108 2011-06-06  Eric Blake  <eblake@redhat.com>
18109
18110         canonicalize-lgpl: use common idiom
18111         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18112         over newer POSIX -Rf.
18113         Reported by Bruno Haible.
18114
18115         canonicalize-lgpl: work around AIX realpath bug
18116         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18117         * doc/posix-functions/realpath.texi (realpath): Document it.
18118         Reported by Bruno Haible.
18119
18120         strerror: work around FreeBSD bug
18121         * lib/strerror.c (strerror): Special case 0.
18122         Reported by Bruno Haible.
18123
18124         strerror-override: avoid bloating errno module
18125         * modules/errno (Files, configure.ac): Move replacement strings...
18126         * modules/strerror-override: ...to new module.
18127         * modules/strerror (Depends-on): Add strerror-override.
18128         * modules/strerror_r-posix (Depends-on): Likewise.
18129         * MODULES.html.sh: Document new module.
18130         Reported by Bruno Haible.
18131
18132 2011-06-06  Bruno Haible  <bruno@clisp.org>
18133
18134         spawn-pipe tests: Rename program.
18135         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18136         * tests/test-spawn-pipe-child.c: Update comment.
18137         * tests/test-spawn-pipe.sh: Update.
18138         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18139
18140         spawn-pipe tests: Link the child program only against libc.
18141         * tests/test-spawn-pipe-child.c: New file, extracted from
18142         tests/test-spawn-pipe.c.
18143         (main): Expect only one argument.
18144         (is_open): New function, copied from tests/test-pipe.c.
18145         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18146         (child_main): Remove function.
18147         (test_pipe): Pass only one argument to the child program.
18148         (main): Remove child process code. Expect the child program's name as
18149         first argument.
18150         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18151         argument.
18152         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18153         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18154         test-spawn-pipe-child against no libraries.
18155
18156 2011-06-06  Bruno Haible  <bruno@clisp.org>
18157
18158         careadlinkat: Avoid mismatch between ssize_t and int.
18159         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18160         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18161
18162 2011-06-06  Jim Meyering  <meyering@redhat.com>
18163
18164         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18165         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18166         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18167
18168 2011-06-05  Bruno Haible  <bruno@clisp.org>
18169
18170         ansi-c++-opt: Interoperability with libtool.
18171         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18172         set the variable to "no", not to ":".
18173         * NEWS: Mention the change.
18174
18175 2011-06-05  Bruno Haible  <bruno@clisp.org>
18176
18177         acl: Fix test failure on AIX 7.
18178         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18179         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18180
18181 2011-06-05  Bruno Haible  <bruno@clisp.org>
18182
18183         pipe-filter-ii: Fix test failure on AIX and IRIX.
18184         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18185         with EAGAIN, retry with a smaller buffer size.
18186
18187 2011-06-05  Bruno Haible  <bruno@clisp.org>
18188
18189         localename: Fix link dependencies.
18190         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18191         * modules/localename-tests (Makefile.am): Link test-localename with
18192         $(LIBTHREAD).
18193
18194 2011-06-05  Bruno Haible  <bruno@clisp.org>
18195
18196         error: Avoid gcc warning.
18197         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18198
18199 2011-06-05  Bruno Haible  <bruno@clisp.org>
18200
18201         unsetenv: Avoid gcc warning.
18202         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18203
18204 2011-06-05  Bruno Haible  <bruno@clisp.org>
18205
18206         setenv: Avoid gcc warning.
18207         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18208
18209 2011-06-05  Bruno Haible  <bruno@clisp.org>
18210
18211         sys_select: Ensure memset is declared also on AIX 7.
18212         * lib/sys_select.in.h: Include <string.h> also on AIX.
18213         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18214         self-contained also on AIX 7.1.
18215
18216 2011-06-04  Jim Meyering  <meyering@redhat.com>
18217
18218         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18219         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18220         function name, "error".
18221         (_gl_translatable_diag_func_re): New configurable variable.
18222
18223 2011-06-04  Bruno Haible  <bruno@clisp.org>
18224
18225         getopt: Avoid gcc warning.
18226         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18227
18228 2011-06-04  Bruno Haible  <bruno@clisp.org>
18229
18230         strerror_r: Fix comments.
18231         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18232         commit.
18233
18234 2011-06-04  Bruno Haible  <bruno@clisp.org>
18235
18236         perror: Fix compilation error.
18237         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18238         Undefine fprintf, not sprintf.
18239         * modules/perror (Depends-on): Remove intprops, verify.
18240
18241 2011-06-04  Bruno Haible  <bruno@clisp.org>
18242
18243         setlocale: Enable replacement on Cygwin 1.5.
18244         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18245         Cygwin 1.5.x.
18246         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18247         LC_CTYPE category also exists on Cygwin 1.5.x.
18248
18249 2011-06-04  Bruno Haible  <bruno@clisp.org>
18250
18251         strerror-override: Don't disable symbol renamings.
18252         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18253         * lib/strerror-override.c: Include config.h.
18254         (strerror_override): Don't undefine.
18255
18256 2011-06-03  Bruno Haible  <bruno@clisp.org>
18257
18258         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18259         * lib/localename.h: Update copyright header.
18260         * lib/localename.c: Likewise.
18261         * lib/relocatable.h: Likewise.
18262         * lib/relocatable.c: Likewise.
18263
18264 2011-06-02  Bruno Haible  <bruno@clisp.org>
18265
18266         doc: Fix a module name.
18267         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18268
18269 2011-06-02  Bruno Haible  <bruno@clisp.org>
18270
18271         pipe2: Remove dependency on 'nonblocking' module.
18272         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18273         O_NONBLOCK is defined by gnulib.
18274         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18275         is zero.
18276         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18277         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18278         defined by gnulib.
18279         (get_nonblocking_flag): New function.
18280         (main): Test O_NONBLOCK flag only if it is nonzero.
18281         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18282
18283 2011-06-03  Jim Meyering  <meyering@redhat.com>
18284
18285         maint: three new prohibit-header-without-use rules
18286         Prohibit use of cloexec.h, posixver.h, same.h without use.
18287         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18288         (sc_prohibit_posixver_without_use): Likewise.
18289         (sc_prohibit_same_without_use): Likewise.
18290
18291 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18292
18293         allocator: 'die' routine is now given requested size
18294         * lib/allocator.h (struct allocator.die): New size arg.
18295         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18296         If the actual problem is an ssize_t limitation, not a size_t or
18297         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18298
18299 2011-06-01  Eric Blake  <eblake@redhat.com>
18300
18301         strerror: drop strerror_r dependency
18302         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18303         * lib/strerror-override.c (strerror_override): ...to new file.
18304         * lib/strerror-override.h: Add prototype.
18305         * lib/strerror-impl.h: Delete.
18306         * lib/strerror.c (strerror): New implementation.
18307         * modules/errno (Files): Add new files.
18308         (configure.ac): Compile new file as appropriate.
18309         * modules/strerror (Files): Drop unused file.
18310         (Depends-on): Drop strerror_r-posix.
18311         * MODULES.html.sh: Document strerror_r-posix.
18312         Requested by Sam Steingold.
18313
18314         perror: call strerror_r directly
18315         * modules/perror (Files): Drop strerror-impl.h.
18316         * lib/perror.c (perror): Use our own stack buffer, rather than
18317         calling a wrapper that uses static storage.
18318         * doc/posix-functions/perror.texi (perror): Document a limitation
18319         of our replacement.
18320
18321         strerror_r: fix includes for FreeBSD
18322         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18323         since we use abort on some platforms.
18324         Reported by Matthias Bolte.
18325
18326 2011-05-31  Bruno Haible  <bruno@clisp.org>
18327
18328         Fix link errors in tests: openat-die uses gettext-h.
18329         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18330         against $(LIBINTL).
18331         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18332         against $(LIBINTL).
18333         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18334         $(LIBINTL).
18335         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18336         against $(LIBINTL).
18337         * modules/linkat-tests (Makefile.am): Link test-linkat against
18338         $(LIBINTL).
18339         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18340         $(LIBINTL).
18341         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18342         against $(LIBINTL).
18343         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18344         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18345         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18346         $(LIBINTL).
18347         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18348         $(LIBINTL).
18349         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18350         $(LIBINTL).
18351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18352
18353 2011-05-31  Bruno Haible  <bruno@clisp.org>
18354
18355         Fix link errors in tests: wait-process uses gettext-h.
18356         * modules/nonblocking-pipe-tests (Makefile.am): Set
18357         test_nonblocking_pipe_main_LDADD.
18358         * modules/nonblocking-socket-tests (Makefile.am): Link
18359         test-nonblocking-socket-main against $(LIBINTL).
18360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18361
18362 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18363
18364         assert-h: work around 'verify' incompatibility
18365         * lib/verify.h: Use @...@ directives, not ifdef.
18366         * modules/assert-h (assert.h): Implement the directives.
18367         (assert.h): Substitute the symbol-prefix more consistently.
18368
18369 2011-05-29  Jim Meyering  <meyering@redhat.com>
18370
18371         trim: remove three superfluous assignments
18372         * lib/trim.c (trim2): Remove three superfluous assignments
18373         and correct brace positioning.
18374
18375 2011-05-29  Bruno Haible  <bruno@clisp.org>
18376
18377         wctype-h: Avoid namespace pollution on Solaris 2.6.
18378         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18379         identifiers.
18380         * doc/posix-headers/wctype.texi: Mention the problem.
18381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18382
18383 2011-05-28  Jim Meyering  <meyering@redhat.com>
18384
18385         parse-datetime.y: accommodate -Wstrict-overflow
18386         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18387         placate -Wstrict-overflow.
18388
18389         trim: avoid a warning from -O2 -Wstrict-overflow
18390         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18391
18392 2011-05-29  Bruno Haible  <bruno@clisp.org>
18393
18394         gnulib-tool: Fix bug in yesterday's commit.
18395         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18396         twice.
18397
18398 2011-05-29  Bruno Haible  <bruno@clisp.org>
18399
18400         Allow multiple gnulib generated include files to be combined.
18401         * gnulib-tool (func_compute_include_guard_prefix): New function.
18402         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18403         ${gl_include_guard_prefix} references.
18404         (func_import, func_create_testdir): Invoke
18405         func_compute_include_guard_prefix.
18406         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18407         * lib/ctype.in.h: Likewise.
18408         * lib/dirent.in.h: Likewise.
18409         * lib/errno.in.h: Likewise.
18410         * lib/fcntl.in.h: Likewise.
18411         * lib/float.in.h: Likewise.
18412         * lib/getopt.in.h: Likewise.
18413         * lib/iconv.in.h: Likewise.
18414         * lib/langinfo.in.h: Likewise.
18415         * lib/locale.in.h: Likewise.
18416         * lib/math.in.h: Likewise.
18417         * lib/netdb.in.h: Likewise.
18418         * lib/netinet_in.in.h: Likewise.
18419         * lib/poll.in.h: Likewise.
18420         * lib/pthread.in.h: Likewise.
18421         * lib/pty.in.h: Likewise.
18422         * lib/sched.in.h: Likewise.
18423         * lib/se-selinux.in.h: Likewise.
18424         * lib/search.in.h: Likewise.
18425         * lib/signal.in.h: Likewise.
18426         * lib/spawn.in.h: Likewise.
18427         * lib/stdarg.in.h: Likewise.
18428         * lib/stddef.in.h: Likewise.
18429         * lib/stdint.in.h: Likewise.
18430         * lib/stdio.in.h: Likewise.
18431         * lib/stdlib.in.h: Likewise.
18432         * lib/string.in.h: Likewise.
18433         * lib/strings.in.h: Likewise.
18434         * lib/sys_file.in.h: Likewise.
18435         * lib/sys_ioctl.in.h: Likewise.
18436         * lib/sys_select.in.h: Likewise.
18437         * lib/sys_socket.in.h: Likewise.
18438         * lib/sys_stat.in.h: Likewise.
18439         * lib/sys_time.in.h: Likewise.
18440         * lib/sys_times.in.h: Likewise.
18441         * lib/sys_uio.in.h: Likewise.
18442         * lib/sys_utsname.in.h: Likewise.
18443         * lib/sys_wait.in.h: Likewise.
18444         * lib/sysexits.in.h: Likewise.
18445         * lib/termios.in.h: Likewise.
18446         * lib/time.in.h: Likewise.
18447         * lib/unistd.in.h: Likewise.
18448         * lib/wchar.in.h: Likewise.
18449         * lib/wctype.in.h: Likewise.
18450         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18451         * modules/ctype (Makefile.am): Likewise.
18452         * modules/dirent (Makefile.am): Likewise.
18453         * modules/errno (Makefile.am): Likewise.
18454         * modules/fcntl-h (Makefile.am): Likewise.
18455         * modules/float (Makefile.am): Likewise.
18456         * modules/getopt-posix (Makefile.am): Likewise.
18457         * modules/iconv-h (Makefile.am): Likewise.
18458         * modules/langinfo (Makefile.am): Likewise.
18459         * modules/locale (Makefile.am): Likewise.
18460         * modules/math (Makefile.am): Likewise.
18461         * modules/netdb (Makefile.am): Likewise.
18462         * modules/netinet_in (Makefile.am): Likewise.
18463         * modules/poll-h (Makefile.am): Likewise.
18464         * modules/pthread (Makefile.am): Likewise.
18465         * modules/pty (Makefile.am): Likewise.
18466         * modules/sched (Makefile.am): Likewise.
18467         * modules/search (Makefile.am): Likewise.
18468         * modules/selinux-h (Makefile.am): Likewise.
18469         * modules/signal (Makefile.am): Likewise.
18470         * modules/spawn (Makefile.am): Likewise.
18471         * modules/stdarg (Makefile.am): Likewise.
18472         * modules/stddef (Makefile.am): Likewise.
18473         * modules/stdint (Makefile.am): Likewise.
18474         * modules/stdio (Makefile.am): Likewise.
18475         * modules/stdlib (Makefile.am): Likewise.
18476         * modules/string (Makefile.am): Likewise.
18477         * modules/strings (Makefile.am): Likewise.
18478         * modules/sys_file (Makefile.am): Likewise.
18479         * modules/sys_ioctl (Makefile.am): Likewise.
18480         * modules/sys_select (Makefile.am): Likewise.
18481         * modules/sys_socket (Makefile.am): Likewise.
18482         * modules/sys_stat (Makefile.am): Likewise.
18483         * modules/sys_time (Makefile.am): Likewise.
18484         * modules/sys_times (Makefile.am): Likewise.
18485         * modules/sys_uio (Makefile.am): Likewise.
18486         * modules/sys_utsname (Makefile.am): Likewise.
18487         * modules/sys_wait (Makefile.am): Likewise.
18488         * modules/sysexits (Makefile.am): Likewise.
18489         * modules/termios (Makefile.am): Likewise.
18490         * modules/time (Makefile.am): Likewise.
18491         * modules/unistd (Makefile.am): Likewise.
18492         * modules/wchar (Makefile.am): Likewise.
18493         * modules/wctype-h (Makefile.am): Likewise.
18494         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18495
18496 2011-05-29  Bruno Haible  <bruno@clisp.org>
18497
18498         assert-h: Allow multiple gnulib generated replacements to coexist.
18499         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18500
18501 2011-05-29  Bruno Haible  <bruno@clisp.org>
18502
18503         argp: Allow coexistence with strerror_r-posix module.
18504         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18505         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18506         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18507         not the glibc signature.
18508
18509 2011-05-28  Bruno Haible  <bruno@clisp.org>
18510
18511         gnulib-tool: Alternative structure of testdirs, similar to --import.
18512         * gnulib-tool: New option --single-configure.
18513         (func_usage): Document it.
18514         (single_configure): New variable.
18515         (func_modules_transitive_closure_separately,
18516         func_modules_transitive_closure_separately,
18517         func_determine_use_libtests, func_modules_add_dummy_separately,
18518         func_modules_to_filelist_separately): New functions, extracted from
18519         func_import.
18520         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18521         (func_import): Use the new functions.
18522         (func_create_testdir): Set final_modules. Handle $single_configure =
18523         true case.
18524
18525 2011-05-28  Bruno Haible  <bruno@clisp.org>
18526
18527         getloadavg: Remove an unreliable safety check.
18528         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18529         getloadavg.c is in place.
18530         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18531         Reported by Sam Steingold <sds@gnu.org>.
18532
18533 2011-05-28  Bruno Haible  <bruno@clisp.org>
18534
18535         doc: Cleanup yet another file produced by texinfo.tex.
18536         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18537
18538 2011-05-28  Bruno Haible  <bruno@clisp.org>
18539
18540         Finish the conditional dependencies mechanism.
18541         * gnulib-tool: New option --no-conditional-dependencies.
18542         (func_usage): Document it. Don't mark --conditional-dependencies as
18543         experimental.
18544         (cond_dependencies): The possible values can now be true, false, empty.
18545         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18546         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18547         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18548
18549 2011-05-28  Bruno Haible  <bruno@clisp.org>
18550
18551         doc: Use a recent texinfo.tex.
18552         * doc/Makefile (tex_opts): New variable.
18553         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18554
18555 2011-05-28  Jim Meyering  <meyering@redhat.com>
18556
18557         intprops.h: adjust comment to match code change
18558         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18559         only once, it *may* have side effects.  Also fix an unrelated typo.
18560         (_GL_INT_SIGNED): Likewise.
18561
18562 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18563
18564         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18565
18566 2011-05-26  Bruno Haible  <bruno@clisp.org>
18567
18568         mbsrchr: Avoid collision with system function on Interix.
18569         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18570         Reported by Markus Duft <mduft@gentoo.org>.
18571
18572 2011-05-15  James Youngman  <jay@gnu.org>
18573
18574         getopt: for ambiguous options, enumerate the possibilities.
18575         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18576         the ambiguous options when an ambiguous prefix is given. This was
18577         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18578         glibc change was
18579         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18580
18581 2011-05-25  Eric Blake  <eblake@redhat.com>
18582
18583         getcwd: work around mingw bug
18584         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18585         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18586         Reported by Matthias Bolte.
18587
18588 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18589
18590         test-intprops: disable -Wtype-limits diagnostics
18591         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18592         diagnostics.  Otherwise, the integer overflow macros generate many
18593         diagnostics.  Reported by Jim Meyering in
18594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18595
18596         intprops: shorten, to pacify gcc -Woverlength-strings
18597         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18598         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18599         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18600         likely to run afoul of C compiler limits for string constant lengths.
18601         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18602
18603 2011-05-24  Eric Blake  <eblake@redhat.com>
18604
18605         docs: document recently fixed glibc printf bug
18606         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18607         * doc/posix-functions/printf.texi (printf): Likewise.
18608         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18609         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18610
18611         closein-tests: convert to init.sh
18612         * modules/closein-tests (Files): Add init.sh
18613         * tests/test-closein.sh Use it.
18614
18615         yesno-tests: convert to init.sh
18616         * modules/yesno-tests (Files): Add init.sh.
18617         * tests/test-yesno.sh: Use it.
18618
18619         atexit-tests: ensure reliable exit status
18620         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18621         Reported by Bruno Haible.
18622
18623 2011-05-24  Bruno Haible  <bruno@clisp.org>
18624
18625         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18627         gl_PREREQ_STRERROR_R invocations from here...
18628         * modules/strerror_r-posix (configure.ac): ... to here.
18629
18630 2011-05-24  Eric Blake  <eblake@redhat.com>
18631
18632         strerror_r: fix missing header
18633         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18634
18635         strerror_r: fix AIX test failures
18636         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18637         ERANGE failure.
18638
18639         strerror_r: fix Solaris test failures
18640         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18641         failures.
18642         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18643
18644         strerror_r: enforce POSIX recommendations
18645         * lib/strerror_r.c (safe_copy): New helper method.
18646         (strerror_r): Guarantee a non-empty string.
18647         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18648         recent POSIX rulings and to match our strerror guarantees.
18649         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18650
18651 2011-05-24  Jim Meyering  <meyering@redhat.com>
18652
18653         test-perror2.c: avoid warning about unused variable
18654         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18655
18656 2011-05-24  Eric Blake  <eblake@redhat.com>
18657
18658         perror: avoid spurious test failure on HP-UX
18659         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18660
18661         tests: fix logic bug in init.sh
18662         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18663         shell.
18664
18665 2011-05-24  Jim Meyering  <meyering@redhat.com>
18666
18667         utimensat: do not reference an out-of-scope buffer
18668         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18669         declared in an inner scope, yet "times" would be dereferenced outside
18670         the scope in which "ts" was valid.
18671         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18672         of ts[2] "out/up", so that the use of aliased "times" (via
18673         "times = ts;") does not end up referencing an out-of-scope "ts"
18674
18675         opendir-safer.c: don't clobber errno; don't close negative FD
18676         * lib/opendir-safer.c (opendir_safer):
18677         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18678         file descriptor, and more importantly, don't clobber the
18679         offending errno value with EINVAL.  Before, upon failure
18680         of dup_safer, we would pass the negative file descriptor to
18681         fdopendir, which would clobber errno.
18682
18683 2011-05-23  Bruno Haible  <bruno@clisp.org>
18684
18685         idcache: Fix module description.
18686         * modules/idcache (Include): Set to "idcache.h".
18687
18688 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18689
18690         gnulib-tool: fix portability problem with MacOS sed
18691         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18692         before the "}".  Problem reported by Leo in
18693         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18694         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18695         sed_extract_condition1, sed_extract_condition2.
18696
18697 2011-05-23  Bruno Haible  <bruno@clisp.org>
18698
18699         hash: Simplify autoconf macro.
18700         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18701
18702 2011-05-23  Bruno Haible  <bruno@clisp.org>
18703
18704         getugroups: Fix module description.
18705         * modules/getugroups (Include): Set to "getugroups.h".
18706
18707 2011-05-23  Bruno Haible  <bruno@clisp.org>
18708
18709         linkat: Simplify autoconf macro.
18710         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18711
18712 2011-05-23  Bruno Haible  <bruno@clisp.org>
18713             Eric Blake  <eblake@redhat.com>
18714
18715         linkat, renameat: Update dependencies.
18716         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18717         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18718         symlinkat.
18719
18720 2011-05-23  Jim Meyering  <meyering@redhat.com>
18721
18722         maint.mk: more tight_scope improvements
18723         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18724         (_gl_TS_headers): Define only in if-0'd block.
18725         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18726         sometimes we must *not* use it.  Adjust uses accordingly.
18727         (sc_tight_scope): Use much simpler grep-based test to determine
18728         whether we skip this rule.
18729
18730         maint.mk: generalize/improve the tight-scope rule
18731         * top/maint.mk: Emit a warning when the test is skipped.
18732         (_gl_TS_dir): Add $(srcdir)/ prefix.
18733         (_gl_TS_function_match): Simplify, rather than trying
18734         to enumerate common types.  Otherwise, it would fail to match an
18735         "extern unsigned char const *" declaration in idutils.
18736         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18737         a way to support use of that type of macro.
18738         (_gl_TS_var_match): Simplify regexp.
18739         (_gl_TS_obj_files): New configurable variable.
18740         (_gl_TS_headers): Likewise.
18741
18742 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18743
18744         verify: fix bug when gnulib <assert.h> is also included
18745         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18746         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18747         Perhaps there's a better way, but this fixes the immediate problem.
18748         Problem reported by Bruno Haible in
18749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18750
18751 2011-05-22  Bruno Haible  <bruno@clisp.org>
18752
18753         xgetcwd: Simplify autoconf macro.
18754         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18755
18756 2011-05-22  Bruno Haible  <bruno@clisp.org>
18757
18758         New module 'mktime-internal'.
18759         * modules/mktime-internal: New file.
18760         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18761         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18762         mktime_internal as a C macro if libc has __mktime_internal.
18763         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18764         conditions.
18765         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18766
18767 2011-05-22  Bruno Haible  <bruno@clisp.org>
18768
18769         timegm: Correct mktime replacement statements.
18770         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18771         defining mktime as a C macro. This completes a 2009-07-28 commit.
18772
18773 2011-05-22  Bruno Haible  <bruno@clisp.org>
18774
18775         timegm: Simplify autoconf macro.
18776         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18777
18778 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18779
18780         clock-time: change to LGPLv2+.
18781         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18782         BSD-like but we have no mark for that; this is good enough for now.
18783
18784 2011-05-21  Bruno Haible  <bruno@clisp.org>
18785
18786         strerror_r: Fix comments.
18787         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18788
18789 2011-05-21  Bruno Haible  <bruno@clisp.org>
18790
18791         relocatable-prog-wrapper: Fix possible link error.
18792         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18793         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18794         (gl_FUNC_SETENV): ... to here.
18795         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18796         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18797
18798 2011-05-21  Bruno Haible  <bruno@clisp.org>
18799
18800         relocatable-prog-wrapper: Assume strerror() exists.
18801         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18802         m4/strerror.m4.
18803         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18804         * lib/relocwrapper.c: Remove mention of strerror module.
18805         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18806         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18807         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18808         C macro.
18809
18810 2011-05-21  Bruno Haible  <bruno@clisp.org>
18811
18812         select: Simplify replacement idiom.
18813         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18814         Win32 platforms.
18815         * lib/sys_select.in.h (select): Simplify accordingly.
18816         * modules/select (Depends-on): Likewise.
18817
18818 2011-05-21  Bruno Haible  <bruno@clisp.org>
18819
18820         mkdir-p: Simplify autoconf macro.
18821         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18822         gl_FUNC_LCHOWN.
18823
18824 2011-05-21  Eric Blake  <eblake@redhat.com>
18825
18826         strerror_r: avoid clobbering strerror on cygwin
18827         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18828         fall back instead to sys_errlist.
18829         * modules/strerror (configure.ac): Add witness.
18830         * tests/test-strerror_r.c (main): Enhance test.
18831         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18832         * tests/test-perror2.c (main): Free memory before exit.
18833
18834 2011-05-21  Bruno Haible  <bruno@clisp.org>
18835
18836         mkdtemp: Use gnulib naming conventions.
18837         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18838         * modules/mkdtemp (configure.ac): Update.
18839
18840 2011-05-20  Eric Blake  <eblake@redhat.com>
18841
18842         strerror_r: avoid corrupting errno on Solaris
18843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18844         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18845
18846         strerror_r: avoid compiler warning
18847         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18848
18849         strerror_r: simplify AIX code
18850         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18851
18852         test-perror: avoid spurious failure on FreeBSD
18853         * modules/perror-tests (Depends-on): Add strerror, now that
18854         strerror_r no longer pulls it in.
18855
18856 2011-05-20  Bruno Haible  <bruno@clisp.org>
18857
18858         strerror_r-posix: Remove unused dependencies.
18859         * modules/strerror_r-posix (Depends-on): Remove strerror.
18860         Reported by Eric Blake.
18861
18862 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18863
18864         intprops: remove assumption about A|B representation
18865         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18866         is a valid integer if both A and B are.  Although this is true for
18867         all known practical hosts, the C standard doesn't guarantee it,
18868         and the code need not assume it.  Also, this change may work around
18869         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18871
18872 2011-05-20  Eric Blake  <eblake@redhat.com>
18873
18874         perror: work around FreeBSD bug
18875         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18876         is broken.  Move AC_LIBOBJ...
18877         * modules/perror (configure.ac): Here.
18878         * doc/posix-functions/perror.texi (perror): Document this.
18879         * tests/test-perror2.c (main): Enhance test.
18880
18881         test-perror: check for strerror interactions
18882         * tests/macros.h (STREQ): Add macro.
18883         * modules/perror-tests (Files): Add second test.
18884         * tests/test-perror2.c (main): New file.
18885         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18886
18887         test-perror: rewrite to use init script
18888         * modules/perror-tests (Files): Add init.sh.
18889         * tests/test-perror.sh: Use temporary directory.
18890
18891 2011-05-20  Jim Meyering  <meyering@redhat.com>
18892
18893         maint: replace misused "a" with "an"
18894         * doc/intprops.texi: "a integer"
18895         * doc/regex.texi: "a explanation"
18896         * lib/alignof.h: "a object"
18897         * lib/argmatch.h: "a explanation"
18898         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18899         * lib/stdint.in.h: "a integer"
18900         * lib/userspec.c: "a owner"
18901         * doc/gnulib.texi: Fix "a idea", and reword.
18902
18903 2011-05-19  Jim Meyering  <meyering@redhat.com>
18904
18905         maint: correct misuse of "a" and "an"
18906         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18907         * lib/argp-help.c: "an docum...": s/an/a/
18908         * lib/argp-parse.c: "An vector": s/An/A/
18909         * lib/execute.c: "an native": s/an/a/
18910         * lib/spawn-pipe.c: Likewise.
18911         * lib/gc.h: "an Gc_rc": s/an/a/
18912         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18913         * lib/fts.c: "an stat.st_dev": s/an/a/
18914
18915 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18916
18917         intprops-tests: work around HP-UX 11.23 cc bug with constants
18918         * tests/test-intprops.c (VERIFY): New macro.
18919         (main): Use it, instead of verify, to work around the compiler bug; see
18920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18921
18922         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18923         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18924         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18925         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18926         (_GL_REMAINDER_OVERFLOW): Use it.
18927
18928         intprops-tests: revert unsigned part of previous change
18929         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18930         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18931         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18933
18934 2011-05-19  Bruno Haible  <bruno@clisp.org>
18935
18936         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18937         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18938         strerror_r() returned without filling the buffer.
18939         Reported by Eric Blake.
18940
18941 2011-05-19  Eric Blake  <eblake@redhat.com>
18942
18943         strerror_r: guarantee unchanged errno
18944         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18945         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18946         failure.
18947         * tests/test-strerror_r.c (main): Enhance test.
18948
18949 2011-05-19  Bruno Haible  <bruno@clisp.org>
18950
18951         strerror_r: Reorder #if blocks.
18952         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18953         for consistency with the previous commit.
18954
18955 2011-05-19  Bruno Haible  <bruno@clisp.org>
18956
18957         perror: Avoid clobbering the strerror buffer when possible.
18958         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18959         * lib/strerror.c: Include it.
18960         * modules/strerror (Files): Add lib/strerror-impl.h.
18961         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18962         (my_strerror): New function, defined through lib/strerror-impl.h.
18963         (perror): Use it instead of strerror.
18964         * modules/perror (Files): Add lib/strerror-impl.h.
18965         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18966
18967 2011-05-19  Eric Blake  <eblake@redhat.com>
18968
18969         strerror_r: fix on newer cygwin
18970         * lib/strerror_r.c (strerror_r): Cygwin now has
18971         __xpg_strerror_r, use it.
18972
18973 2011-05-19  Bruno Haible  <bruno@clisp.org>
18974
18975         strerror_r: Avoid clobbering the strerror buffer when possible.
18976         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18977         (sys_nerr, sys_errlist): New declarations.
18978         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18979         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18980         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18981
18982 2011-05-19  Bruno Haible  <bruno@clisp.org>
18983
18984         strerror_r: Fix test failure on mingw.
18985         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18986         EXTEND_STRERROR_R.
18987         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18988         macros from errno.in.h instead.
18989
18990 2011-05-19  Eric Blake  <eblake@redhat.com>
18991
18992         strerror: relax test for Solaris
18993         * tests/test-strerror.c (main): Permit Solaris behavior.
18994         * tests/test-strerror_r.c (main): Likewise.
18995
18996         strerror: enforce POSIX ruling on strerror(0)
18997         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18998         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18999         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19000         * doc/posix-functions/strerror.texi (strerror): Document it.
19001         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19002         * tests/test-strerror.c (main): Strengthen test.
19003         * tests/test-strerror_r.c (main): Likewise.
19004
19005 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19006
19007         intprop-tests: port to older and more-pedantic compilers
19008         * modules/intprops-tests (Files): Add tests/macros.h.
19009         * tests/test-intprops.c: Include macros.h.
19010         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19011         it's no longer documented to expand to an integer constant expression.
19012         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19013         argument is floating point, as it's no longer documented to expand
19014         to an integer constant expression in that case.
19015         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19016         compiler bugs reported by Bruno Haible.  See
19017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19018         (U0, U1): New constants, to work around the same bugs.  Also,
19019         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19020
19021         intprops: work around C compiler bugs
19022         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19023         bug in Sun C 5.11 2010/08/13 and other compilers; see
19024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19025
19026         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19027         * doc/intprops.texi (Integer Type Determination): Fix
19028         documentation for TYPE_IS_INTEGER: it returns an constant
19029         expression, not an integer constant expression.  Fix doc for
19030         TYPE_SIGNED: it returns an integer constant expression only if its
19031         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19032         hardly worth documented that way....)
19033
19034 2011-05-18  Bruno Haible  <bruno@clisp.org>
19035
19036         strerror_r: Avoid clobbering the strerror buffer when possible.
19037         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19038         Handle gnulib defined errno values here. When strerror() returns NULL
19039         or an empty string, return EINVAL.
19040         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19041         gnulib defined errno values here.
19042         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19043
19044 2011-05-18  Eric Blake  <eblake@redhat.com>
19045
19046         fnmatch: avoid compiler warning
19047         * lib/fnmatch_loop.c (FCT): Use correct type.
19048         Reported by Matthias Bolte.
19049
19050 2011-05-13  Jim Meyering  <meyering@redhat.com>
19051
19052         maint.mk: three new prohibit_<HDR>_without_use rules
19053         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19054         (sc_prohibit_stdio-safer_without_use): Likewise.
19055         (sc_prohibit_xfreopen_without_use): Likewise.
19056
19057 2011-05-17  Jim Meyering  <meyering@redhat.com>
19058
19059         announce-gen: fail if the NEWS delta is empty
19060         If there's nothing noteworthy in NEWS, then either you forgot
19061         or you shouldn't be releasing.
19062         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19063
19064 2011-05-17  Pádraig Brady <P@draigBrady.com>
19065
19066         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19067         reserved symbols starting with double underscore from the check.
19068
19069 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         intprops: add doc
19072         * doc/intprops.texi: New file, documenting intprops.
19073         * doc/gnulib.texi (Particular Modules): Include it.
19074
19075         verify: add doc to gnulib manual and fix example
19076         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19077         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19078         (Compile-time Assertions): Fix example so it can't overflow.
19079
19080 2011-05-17  Jim Meyering  <meyering@redhat.com>
19081
19082         warnings.m4: don't usurp save_CPPFLAGS variable name
19083         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19084
19085         doc: fix typo
19086         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19087
19088 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19089             Bruno Haible  <bruno@clisp.org>
19090
19091         doc: Tweak recent change.
19092         * README (Portability guidelines): Tweak new text.
19093         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19094         Interix 6.1.
19095
19096 2011-05-16  Eric Blake  <eblake@redhat.com>
19097
19098         inttypes: avoid autoconf warning
19099         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19100         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19101
19102 2011-05-16  Sam Steingold <sds@gnu.org>
19103         and Eric Blake  <eblake@redhat.com>
19104
19105         vc-list-files: accept multiple directory operands
19106         * build-aux/vc-list-files: Iterate over all remaining operands.
19107
19108 2011-05-16  Bruno Haible  <bruno@clisp.org>
19109
19110         Fix confusion regarding deprecated modules.
19111         * modules/calloc (Status, Notice): Mark module as deprecated, not
19112         obsolete.
19113         * modules/fnmatch-posix (Status, Notice): Likewise.
19114         * modules/getdate (Status, Notice): Likewise.
19115         * modules/getopt (Status, Notice): Likewise.
19116         * modules/malloc (Status, Notice): Likewise.
19117         * modules/pipe (Status, Notice): Likewise.
19118         * modules/realloc (Status, Notice): Likewise.
19119         * modules/rename-dest-slash (Status, Notice): Likewise.
19120         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19121         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19122         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19123         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19124         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19125
19126 2011-05-16  Bruno Haible  <bruno@clisp.org>
19127
19128         doc: List the target platforms.
19129         * doc/gnulib-intro.texi (Target Platforms): New section.
19130         * doc/gnulib.texi (Introduction): Update menu.
19131         * README (Portability guidelines): Refer to the new section. Update
19132         statement about oldest supported environment. Remove rationale why
19133         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19134         unportable C89 function.
19135         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19136         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19137
19138 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19139
19140         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19141
19142 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19143
19144         intprops-tests: new module
19145         * modules/intprops-tests, tests/test-intprops.c: New files.
19146
19147         intprops: add safe, portable integer overflow checking
19148         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19149         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19150         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19151         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19152         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19153         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19154         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19155         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19156         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19157         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19158         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19159
19160 2011-05-12  James Youngman  <jay@gnu.org>
19161
19162         Add a test for glibc's Bugzilla bug #12378.
19163         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19164         doesn't allow the literal matching of a lone "[" (which is
19165         required by POSIX).
19166         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19167
19168 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19169
19170         Sync glibc change fixing Bugzilla bug #12378.
19171         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19172         beginning and fall back to matching as normal character if the
19173         string ends before the matching ']' is found.  This is what POSIX
19174         requires.
19175
19176 2011-05-13  Eric Blake  <eblake@redhat.com>
19177
19178         getcwd-lgpl: relax test for FreeBSD
19179         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19180         issue.
19181         * tests/test-getcwd-lgpl.c (main): Relax test.
19182         Reported by Matthias Bolte.
19183
19184 2011-05-11  Eric Blake  <eblake@redhat.com>
19185
19186         test-fflush: silence compiler warning
19187         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19188
19189 2011-05-11  Bruno Haible  <bruno@clisp.org>
19190
19191         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19192         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19193         * modules/canonicalize (Depends-on): Add 'nocrash'.
19194         * modules/canonicalize-lgpl (Depends-on): Likewise.
19195         * doc/posix-functions/realpath.texi: Update platforms list.
19196         Reported by Ryan Schmidt <ryandesign@macports.org>.
19197
19198 2011-05-11  Bruno Haible  <bruno@clisp.org>
19199
19200         group-member: Declare function in <unistd.h>.
19201         * lib/unistd.in.h (group_member): New declaration.
19202         * lib/group-member.h: Remove file.
19203         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19204         * tests/test-unistd-c++.cc: Check signature of group_member.
19205         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19206         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19207         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19208         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19209         HAVE_GROUP_MEMBER.
19210         * modules/group-member (Files): Remove lib/group-member.h.
19211         (Depends-on): Add unistd. Specify conditions.
19212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19213         (Include): Change to <unistd.h>.
19214         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19215         HAVE_GROUP_MEMBER.
19216         * NEWS: Mention the change.
19217         * lib/euidaccess.c: Don't include group-member.h.
19218
19219 2011-05-11  Bruno Haible  <bruno@clisp.org>
19220
19221         group-member: Document module.
19222         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19223         module.
19224
19225 2011-05-11  Bruno Haible  <bruno@clisp.org>
19226
19227         fclose: Fix mistake earlier today.
19228         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19229
19230 2011-05-11  Eric Blake  <eblake@redhat.com>
19231
19232         fclose: preserve fflush errors
19233         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19234         Reported by Jim Meyering.
19235
19236         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19237         * build-aux/bootstrap (check_versions): When no specific version
19238         is required, merely check that the app produces an exit status
19239         that indicates its existence.
19240
19241         maint.mk: drop redundant check
19242         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19243         the same but better.
19244
19245 2011-05-11  Bruno Haible  <bruno@clisp.org>
19246
19247         fclose: Fix possible link error.
19248         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19249         unregister_shadow_fd. Improve comments.
19250         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19251         Eric Blake.
19252
19253 2011-05-11  Jim Meyering  <meyering@redhat.com>
19254
19255         maint.mk: improve "can not" detection and generalize rule name
19256         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19257         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19258         Use the same technique as in sc_prohibit_doubled_word, so that
19259         we recognize "can not" also when the words are separated by a newline.
19260         Suggested by Eric Blake.
19261         (perl_filename_lineno_text_): Define.  Factored out of...
19262         (prohibit_doubled_word_): ...here.  Use the new definition.
19263         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19264         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19265         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19266
19267 2011-05-10  Eric Blake  <eblake@redhat.com>
19268
19269         fclose: avoid double close race when possible
19270         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19271         all but WINDOWS_SOCKETS.
19272
19273 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19274
19275         openat: correct new comment
19276         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19277
19278 2011-05-10  Jim Meyering  <meyering@redhat.com>
19279
19280         openat: add comments
19281         * lib/openat-proc.c (openat_proc_name): Add comments,
19282         mostly from Eric Blake.
19283
19284 2011-05-09  Eric Blake  <eblake@redhat.com>
19285
19286         openat: reduce syscalls in first probe of /proc
19287         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19288         be a directory.  Simplify the probe for .. bugs.
19289         * modules/openat (Depends-on): Drop same-inode.
19290         Reported by Bastien ROUCARIES.
19291
19292 2011-05-09  Jim Meyering  <meyering@redhat.com>
19293
19294         maint.mk: change semantics/name of tight_scope variables
19295         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19296         Rename variables to align with semantics that make them more useful.
19297
19298         maint.mk: tweak new rule's name not to impinge
19299         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19300         (sc_tight_scope): Use new rule name rather than $@-0.
19301
19302         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19303         * top/maint.mk (sc_tight_scope): New rule.
19304         (sc_tight_scope-0): New rule, ifdef'd out.
19305         (_gl_TS_dir): Default.
19306         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19307         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19308
19309 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19310
19311         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19312         Haible <bruno@clisp.org>.
19313
19314 2011-05-08  Bruno Haible  <bruno@clisp.org>
19315
19316         Comments.
19317         * m4/isnanf.m4: Add comment.
19318         * m4/isnanl.m4: Likewise.
19319
19320 2011-05-08  Bruno Haible  <bruno@clisp.org>
19321
19322         glob: Remove obsolete macro.
19323         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19324
19325 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19326
19327         intprops: Sun C 5.11 supports __typeof__
19328         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19329         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19330         which is new.
19331         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19332
19333         intprops: switch to usual gnulib indenting and naming
19334         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19335         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19336
19337         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19338
19339 2011-05-08  Jim Meyering  <meyering@redhat.com>
19340
19341         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19342         * top/maint.mk (release-prep): Use make's --no-print-directory
19343         option when generating the announcement.  This eliminates the
19344         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19345         generated announcement template.
19346
19347 2011-05-08  Bruno Haible  <bruno@clisp.org>
19348
19349         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19350         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19351         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19352
19353 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19354
19355         ignore-value, verify: Omit include files from lib_SOURCES.
19356         * modules/ignore-value, modules/verify (Makefile.am):
19357         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19358         that leads Automake to duplicate use of am__objects_... variables
19359         in Makefile.in.  See
19360         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19361
19362 2011-05-07  Bruno Haible  <bruno@clisp.org>
19363
19364         fclose: Simplify autoconf macro.
19365         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19366         defined.
19367
19368 2011-05-07  Bruno Haible  <bruno@clisp.org>
19369
19370         canonicalize-lgpl: Fix autoconf macro ordering bug.
19371         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19372         gl_STDLIB_H_DEFAULTS.
19373
19374 2011-05-06  Eric Blake  <eblake@redhat.com>
19375
19376         maintainer-makefile: make sc_po_check easier to tune
19377         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19378         to probe for strings, such as an alternate location for gnulib.
19379
19380         fclose: guarantee behavior on seekable stdin
19381         * modules/fclose (Depends-on): Add fflush.
19382         * doc/posix-functions/fclose.texi (fclose): Document this.
19383         * tests/test-fclose.c (main): Make test for this unconditional.
19384
19385 2011-05-06  Bruno Haible  <bruno@clisp.org>
19386
19387         fflush, fpurge: Relicense under LGPLv2+.
19388         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19389         * modules/fpurge (License): Likewise.
19390         With permission from Eric Blake and Jim Meyering.
19391         Suggested by Eric Blake.
19392
19393 2011-05-06  Karl Berry  <karl@gnu.org>
19394
19395         * MODULES.html.sh (func_all_modules): remove exit.
19396
19397 2011-05-06  Jim Meyering  <meyering@redhat.com>
19398
19399         maint.mk: use info-gnu@ as the default only for a stable release
19400         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19401         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19402         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19404
19405 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19406
19407         assert-h: new module, which supports C1X-style static_assert
19408         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19409         * lib/verify.h: Revamp so that this can be copied into assert.h,
19410         while retaining the ability to use it standalone as before.
19411         Rename private identifiers so as not to encroach on the
19412         standard C namespace, since this is now used by assert.h.
19413         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19414         the old verify_true.
19415         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19416         the old verify_true.  Use _GL_VERIFY_TYPE.
19417         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19418         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19419         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19420         defined when this file is copied into the replacement assert.h.
19421         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19422         and _Static_assert is not built in.
19423         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19424         defined, and use the new macros mentioned above.
19425         * doc/posix-headers/assert.texi: Document this.
19426
19427 2011-05-05  Bruno Haible  <bruno@clisp.org>
19428
19429         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19430         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19431         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19432         gl_REPLACE_FCLOSE here.
19433         * modules/fflush (Depends-on): Remove fclose.
19434         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19435         combination with module 'fclose'.
19436
19437 2011-05-05  Bruno Haible  <bruno@clisp.org>
19438
19439         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19440         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19441         gl_FUNC_FFLUSH.
19442         (gl_FUNC_FFLUSH): Use it.
19443         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19445         gl_REPLACE_FSEEKO here.
19446
19447 2011-05-05  Bruno Haible  <bruno@clisp.org>
19448
19449         tzset: Relicense under LGPL.
19450         * modules/tzset (License): Change to LGPL.
19451         No agreement needed; it's a no-op.
19452
19453         strtoimax, strtoumax: Relicense under LGPL.
19454         * modules/strtoimax (License): Change to LGPL.
19455         * modules/strtoumax (License): Likewise.
19456         With permission from Jim Meyering, Paul Eggert:
19457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19459
19460         getgroups: Relicense under LGPL.
19461         * modules/getgroups (License): Change to LGPL.
19462         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19466
19467         nanosleep: Relicense under LGPL.
19468         * modules/nanosleep (License): Change to LGPL.
19469         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19470         Haible:
19471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19475
19476         futimens: Relicense under LGPL.
19477         * modules/futimens (License): Change to LGPL.
19478         With permission from Eric Blake:
19479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19480
19481         fflush: Relicense under LGPL.
19482         * modules/fflush (License): Change to LGPL.
19483         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19487
19488         tmpfile: Relicense under LGPL.
19489         * modules/tmpfile (License): Change to LGPL.
19490         With permission from Ben Pfaff:
19491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19492
19493         isfinite: Relicense under LGPL.
19494         * modules/isfinite (License): Change to LGPL.
19495         With permission from Ben Pfaff, Bruno Haible:
19496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19498
19499         acosl..tanl: Relicense under LGPL.
19500         * modules/acosl (License): Change to LGPL.
19501         * modules/asinl (License): Likewise.
19502         * modules/atanl (License): Likewise.
19503         * modules/cosl (License): Likewise.
19504         * modules/expl (License): Likewise.
19505         * modules/logl (License): Likewise.
19506         * modules/sinl (License): Likewise.
19507         * modules/sqrtl (License): Likewise.
19508         * modules/tanl (License): Likewise.
19509         Source code originally from glibc and Paolo Bonzini. Agreements:
19510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19512
19513 2011-05-05  Bruno Haible  <bruno@clisp.org>
19514
19515         signal: Define sighandler_t.
19516         * lib/signal.in.h (sighandler_t): New type.
19517         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19518         whether sighandler_t is defined.
19519         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19520         * modules/signal (Depends-on): Add extensions.
19521         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19522         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19523         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19524
19525 2011-05-05  Eric Blake  <eblake@redhat.com>
19526
19527         maint: remove useless REPLACE_*_H macros
19528         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19529         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19530         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19531         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19532         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19533         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19534         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19535         * m4/btowc.m4: Update callers.
19536         * m4/dirfd.m4: Likewise.
19537         * m4/duplocale.m4: Likewise.
19538         * m4/fchdir.m4: Likewise.
19539         * m4/fdopendir.m4: Likewise.
19540         * m4/inet_ntop.m4: Likewise.
19541         * m4/inet_pton.m4: Likewise.
19542         * m4/ioctl.m4: Likewise.
19543         * m4/mbrlen.m4: Likewise.
19544         * m4/mbrtowc.m4: Likewise.
19545         * m4/mbsinit.m4: Likewise.
19546         * m4/mbsnrtowcs.m4: Likewise.
19547         * m4/mbsrtowcs.m4: Likewise.
19548         * m4/poll.m4: Likewise.
19549         * m4/setlocale.m4: Likewise.
19550         * m4/wcrtomb.m4: Likewise.
19551         * m4/wcsnrtombs.m4: Likewise.
19552         * m4/wcsrtombs.m4: Likewise.
19553         * m4/wctob.m4: Likewise.
19554         * m4/wcwidth.m4: Likewise.
19555         * modules/posix_spawn: Likewise.
19556         * modules/posix_spawn_file_actions_addclose: Likewise.
19557         * modules/posix_spawn_file_actions_adddup2: Likewise.
19558         * modules/posix_spawn_file_actions_addopen: Likewise.
19559         * modules/posix_spawn_file_actions_destroy: Likewise.
19560         * modules/posix_spawn_file_actions_init: Likewise.
19561         * modules/posix_spawnattr_destroy: Likewise.
19562         * modules/posix_spawnattr_getflags: Likewise.
19563         * modules/posix_spawnattr_getpgroup: Likewise.
19564         * modules/posix_spawnattr_getschedparam: Likewise.
19565         * modules/posix_spawnattr_getschedpolicy: Likewise.
19566         * modules/posix_spawnattr_getsigdefault: Likewise.
19567         * modules/posix_spawnattr_getsigmask: Likewise.
19568         * modules/posix_spawnattr_init: Likewise.
19569         * modules/posix_spawnattr_setflags: Likewise.
19570         * modules/posix_spawnattr_setpgroup: Likewise.
19571         * modules/posix_spawnattr_setschedparam: Likewise.
19572         * modules/posix_spawnattr_setschedpolicy: Likewise.
19573         * modules/posix_spawnattr_setsigdefault: Likewise.
19574         * modules/posix_spawnattr_setsigmask: Likewise.
19575         * modules/posix_spawnp: Likewise.
19576
19577 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19578
19579         Add option to do-release-commit-and-tag to specify branch.
19580         * build-aux/do-release-commit-and-tag: Add --branch.
19581
19582 2011-05-03  Bruno Haible  <bruno@clisp.org>
19583
19584         Avoid unnecessary compilation units, through conditional dependencies.
19585         * modules/accept (Depends-on): Add conditions to the dependencies.
19586         * modules/acosl (Depends-on): Likewise.
19587         * modules/argz (Depends-on): Likewise.
19588         * modules/asinl (Depends-on): Likewise.
19589         * modules/atanl (Depends-on): Likewise.
19590         * modules/atoll (Depends-on): Likewise.
19591         * modules/bind (Depends-on): Likewise.
19592         * modules/btowc (Depends-on): Likewise.
19593         * modules/canonicalize-lgpl (Depends-on): Likewise.
19594         * modules/ceil (Depends-on): Likewise.
19595         * modules/ceilf (Depends-on): Likewise.
19596         * modules/ceill (Depends-on): Likewise.
19597         * modules/chdir-long (Depends-on): Likewise.
19598         * modules/chown (Depends-on): Likewise.
19599         * modules/close (Depends-on): Likewise.
19600         * modules/connect (Depends-on): Likewise.
19601         * modules/cosl (Depends-on): Likewise.
19602         * modules/dirfd (Depends-on): Likewise.
19603         * modules/dprintf (Depends-on): Likewise.
19604         * modules/dprintf-posix (Depends-on): Likewise.
19605         * modules/error (Depends-on): Likewise.
19606         * modules/euidaccess (Depends-on): Likewise.
19607         * modules/expl (Depends-on): Likewise.
19608         * modules/faccessat (Depends-on): Likewise.
19609         * modules/fchdir (Depends-on): Likewise.
19610         * modules/fclose (Depends-on): Likewise.
19611         * modules/fcntl (Depends-on): Likewise.
19612         * modules/fdopendir (Depends-on): Likewise.
19613         * modules/fflush (Depends-on): Likewise.
19614         * modules/floor (Depends-on): Likewise.
19615         * modules/floorf (Depends-on): Likewise.
19616         * modules/floorl (Depends-on): Likewise.
19617         * modules/fnmatch (Depends-on): Likewise.
19618         * modules/fopen (Depends-on): Likewise.
19619         * modules/fprintf-posix (Depends-on): Likewise.
19620         * modules/frexp (Depends-on): Likewise.
19621         * modules/frexp-nolibm (Depends-on): Likewise.
19622         * modules/frexpl (Depends-on): Likewise.
19623         * modules/frexpl-nolibm (Depends-on): Likewise.
19624         * modules/fseek (Depends-on): Likewise.
19625         * modules/fsusage (Depends-on): Likewise.
19626         * modules/ftell (Depends-on): Likewise.
19627         * modules/ftello (Depends-on): Likewise.
19628         * modules/futimens (Depends-on): Likewise.
19629         * modules/getcwd (Depends-on): Likewise.
19630         * modules/getcwd-lgpl (Depends-on): Likewise.
19631         * modules/getdelim (Depends-on): Likewise.
19632         * modules/getdomainname (Depends-on): Likewise.
19633         * modules/getgroups (Depends-on): Likewise.
19634         * modules/gethostname (Depends-on): Likewise.
19635         * modules/getline (Depends-on): Likewise.
19636         * modules/getlogin_r (Depends-on): Likewise.
19637         * modules/getopt-posix (Depends-on): Likewise.
19638         * modules/getpeername (Depends-on): Likewise.
19639         * modules/getsockname (Depends-on): Likewise.
19640         * modules/getsockopt (Depends-on): Likewise.
19641         * modules/getsubopt (Depends-on): Likewise.
19642         * modules/getusershell (Depends-on): Likewise.
19643         * modules/glob (Depends-on): Likewise.
19644         * modules/grantpt (Depends-on): Likewise.
19645         * modules/iconv_open (Depends-on): Likewise.
19646         * modules/iconv_open-utf (Depends-on): Likewise.
19647         * modules/inet_ntop (Depends-on): Likewise.
19648         * modules/inet_pton (Depends-on): Likewise.
19649         * modules/ioctl (Depends-on): Likewise.
19650         * modules/isapipe (Depends-on): Likewise.
19651         * modules/isfinite (Depends-on): Likewise.
19652         * modules/isinf (Depends-on): Likewise.
19653         * modules/lchown (Depends-on): Likewise.
19654         * modules/ldexpl (Depends-on): Likewise.
19655         * modules/link (Depends-on): Likewise.
19656         * modules/linkat (Depends-on): Likewise.
19657         * modules/listen (Depends-on): Likewise.
19658         * modules/logl (Depends-on): Likewise.
19659         * modules/lstat (Depends-on): Likewise.
19660         * modules/mbrlen (Depends-on): Likewise.
19661         * modules/mbrtowc (Depends-on): Likewise.
19662         * modules/mbsinit (Depends-on): Likewise.
19663         * modules/mbsnrtowcs (Depends-on): Likewise.
19664         * modules/mbsrtowcs (Depends-on): Likewise.
19665         * modules/mbtowc (Depends-on): Likewise.
19666         * modules/memcmp (Depends-on): Likewise.
19667         * modules/mkdir (Depends-on): Likewise.
19668         * modules/mkdtemp (Depends-on): Likewise.
19669         * modules/mkfifo (Depends-on): Likewise.
19670         * modules/mkfifoat (Depends-on): Likewise.
19671         * modules/mknod (Depends-on): Likewise.
19672         * modules/mkostemp (Depends-on): Likewise.
19673         * modules/mkostemps (Depends-on): Likewise.
19674         * modules/mkstemp (Depends-on): Likewise.
19675         * modules/mkstemps (Depends-on): Likewise.
19676         * modules/mktime (Depends-on): Likewise.
19677         * modules/nanosleep (Depends-on): Likewise.
19678         * modules/open (Depends-on): Likewise.
19679         * modules/openat (Depends-on): Likewise.
19680         * modules/perror (Depends-on): Likewise.
19681         * modules/poll (Depends-on): Likewise.
19682         * modules/popen (Depends-on): Likewise.
19683         * modules/posix_spawn (Depends-on): Likewise.
19684         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19685         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19686         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19687         * modules/posix_spawnp (Depends-on): Likewise.
19688         * modules/pread (Depends-on): Likewise.
19689         * modules/printf-posix (Depends-on): Likewise.
19690         * modules/ptsname (Depends-on): Likewise.
19691         * modules/putenv (Depends-on): Likewise.
19692         * modules/pwrite (Depends-on): Likewise.
19693         * modules/readline (Depends-on): Likewise.
19694         * modules/readlink (Depends-on): Likewise.
19695         * modules/readlinkat (Depends-on): Likewise.
19696         * modules/recv (Depends-on): Likewise.
19697         * modules/recvfrom (Depends-on): Likewise.
19698         * modules/regex (Depends-on): Likewise.
19699         * modules/remove (Depends-on): Likewise.
19700         * modules/rename (Depends-on): Likewise.
19701         * modules/renameat (Depends-on): Likewise.
19702         * modules/rmdir (Depends-on): Likewise.
19703         * modules/round (Depends-on): Likewise.
19704         * modules/roundf (Depends-on): Likewise.
19705         * modules/roundl (Depends-on): Likewise.
19706         * modules/rpmatch (Depends-on): Likewise.
19707         * modules/select (Depends-on): Likewise.
19708         * modules/send (Depends-on): Likewise.
19709         * modules/sendto (Depends-on): Likewise.
19710         * modules/setenv (Depends-on): Likewise.
19711         * modules/setlocale (Depends-on): Likewise.
19712         * modules/setsockopt (Depends-on): Likewise.
19713         * modules/shutdown (Depends-on): Likewise.
19714         * modules/sigaction (Depends-on): Likewise.
19715         * modules/signbit (Depends-on): Likewise.
19716         * modules/sigprocmask (Depends-on): Likewise.
19717         * modules/sinl (Depends-on): Likewise.
19718         * modules/sleep (Depends-on): Likewise.
19719         * modules/snprintf (Depends-on): Likewise.
19720         * modules/snprintf-posix (Depends-on): Likewise.
19721         * modules/socket (Depends-on): Likewise.
19722         * modules/sprintf-posix (Depends-on): Likewise.
19723         * modules/sqrtl (Depends-on): Likewise.
19724         * modules/stat (Depends-on): Likewise.
19725         * modules/strchrnul (Depends-on): Likewise.
19726         * modules/strdup-posix (Depends-on): Likewise.
19727         * modules/strerror (Depends-on): Likewise.
19728         * modules/strerror_r-posix (Depends-on): Likewise.
19729         * modules/strndup (Depends-on): Likewise.
19730         * modules/strnlen (Depends-on): Likewise.
19731         * modules/strptime (Depends-on): Likewise.
19732         * modules/strsep (Depends-on): Likewise.
19733         * modules/strsignal (Depends-on): Likewise.
19734         * modules/strstr-simple (Depends-on): Likewise.
19735         * modules/strtod (Depends-on): Likewise.
19736         * modules/strtoimax (Depends-on): Likewise.
19737         * modules/strtok_r (Depends-on): Likewise.
19738         * modules/strtoumax (Depends-on): Likewise.
19739         * modules/symlink (Depends-on): Likewise.
19740         * modules/symlinkat (Depends-on): Likewise.
19741         * modules/tanl (Depends-on): Likewise.
19742         * modules/tcgetsid (Depends-on): Likewise.
19743         * modules/tmpfile (Depends-on): Likewise.
19744         * modules/trunc (Depends-on): Likewise.
19745         * modules/truncf (Depends-on): Likewise.
19746         * modules/truncl (Depends-on): Likewise.
19747         * modules/uname (Depends-on): Likewise.
19748         * modules/unlink (Depends-on): Likewise.
19749         * modules/unlockpt (Depends-on): Likewise.
19750         * modules/unsetenv (Depends-on): Likewise.
19751         * modules/usleep (Depends-on): Likewise.
19752         * modules/utimensat (Depends-on): Likewise.
19753         * modules/vasprintf (Depends-on): Likewise.
19754         * modules/vdprintf (Depends-on): Likewise.
19755         * modules/vdprintf-posix (Depends-on): Likewise.
19756         * modules/vfprintf-posix (Depends-on): Likewise.
19757         * modules/vprintf-posix (Depends-on): Likewise.
19758         * modules/vsnprintf (Depends-on): Likewise.
19759         * modules/vsnprintf-posix (Depends-on): Likewise.
19760         * modules/vsprintf-posix (Depends-on): Likewise.
19761         * modules/wcrtomb (Depends-on): Likewise.
19762         * modules/wcscasecmp (Depends-on): Likewise.
19763         * modules/wcscspn (Depends-on): Likewise.
19764         * modules/wcsdup (Depends-on): Likewise.
19765         * modules/wcsncasecmp (Depends-on): Likewise.
19766         * modules/wcsnrtombs (Depends-on): Likewise.
19767         * modules/wcspbrk (Depends-on): Likewise.
19768         * modules/wcsrtombs (Depends-on): Likewise.
19769         * modules/wcsspn (Depends-on): Likewise.
19770         * modules/wcsstr (Depends-on): Likewise.
19771         * modules/wcstok (Depends-on): Likewise.
19772         * modules/wcswidth (Depends-on): Likewise.
19773         * modules/wctob (Depends-on): Likewise.
19774         * modules/wctomb (Depends-on): Likewise.
19775         * modules/wctype (Depends-on): Likewise.
19776         * modules/wcwidth (Depends-on): Likewise.
19777         * modules/write (Depends-on): Likewise.
19778
19779 2011-05-03  Bruno Haible  <bruno@clisp.org>
19780
19781         Support for conditional dependencies.
19782         * doc/gnulib.texi (Module description): Document the syntax of
19783         conditional dependencies.
19784         * gnulib-tool: New option --conditional-dependencies.
19785         (func_usage): Document it.
19786         (cond_dependencies): New variable.
19787         (func_get_automake_snippet_conditional,
19788         func_get_automake_snippet_unconditional): New functions, extracted from
19789         func_get_automake_snippet.
19790         (func_get_automake_snippet): Use them.
19791         (sed_first_32_chars): New variable.
19792         (func_module_shellfunc_name): New function.
19793         (func_module_shellvar_name): New function.
19794         (func_module_conditional_name): New function.
19795         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19796         func_cond_module_condition): New functions.
19797         (func_modules_transitive_closure): Add support for conditional
19798         dependencies.
19799         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19800         conditional automake snippet in an automake conditional.
19801         (func_emit_autoconf_snippets): Emit shell functions that contain the
19802         code for conditional modules.
19803         (func_import, func_create_testdir): Update specification.
19804
19805 2011-05-03  Eric Blake  <eblake@redhat.com>
19806
19807         test-getaddrinfo: report error information
19808         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19809
19810 2011-05-03  Jim Meyering  <meyering@redhat.com>
19811
19812         bootstrap: avoid build failure when $GZIP is set
19813         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19814         program name.  If defined at all, it is supposed to list gzip options.
19815         Reported by Alan Curry in http://debbugs.gnu.org/8609
19816
19817 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19818
19819         readme-release: new module with release instructions
19820         * modules/readme-release: New module.
19821         * top/README-release: New file, from coreutils, grep, diffutils.
19822         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19823
19824 2011-05-02  Eric Blake  <eblake@redhat.com>
19825
19826         fflush: also replace fclose when fixing fflush
19827         * modules/fflush (Depends-on): Add fclose.
19828         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19829         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19830         memstreams with no backing fd.
19831         * doc/posix-functions/fclose.texi (fclose): Document the use of
19832         fflush module to fix the bug.
19833         * tests/test-fclose.c (main): Relax test when fclose is used in
19834         isolation.
19835
19836         fclose: add some tests
19837         * modules/fclose-tests: New test module.
19838         * tests/test-fclose.c: New file.
19839         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19840
19841         fclose: reduced dependencies
19842         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19843         simpler lseek.
19844         * lib/fclose.c (rpl_fclose): Likewise.
19845         Reported by Simon Josefsson.
19846
19847         exit: drop remaining clients
19848         * modules/argmatch (Depends-on): Replace exit with stdlib.
19849         * modules/copy-file (Depends-on): Likewise.
19850         * modules/execute (Depends-on): Likewise.
19851         * modules/exitfail (Depends-on): Likewise.
19852         * modules/obstack (Depends-on): Likewise.
19853         * modules/pagealign_alloc (Depends-on): Likewise.
19854         * modules/pipe-filter-gi (Depends-on): Likewise.
19855         * modules/pipe-filter-ii (Depends-on): Likewise.
19856         * modules/savewd (Depends-on): Likewise.
19857         * modules/spawn-pipe (Depends-on): Likewise.
19858         * modules/wait-process (Depends-on): Likewise.
19859         * modules/xsetenv (Depends-on): Likewise.
19860         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19861         * modules/git-merge-changelog (Depends-on): Likewise.
19862         * modules/long-options (Depends-on): Likewise.
19863         * modules/pt_chown (Depends-on): Likewise.
19864         * modules/sysexits (Depends-on): Likewise.
19865
19866         freading: relax license from LGPLv3+ to LGPLv2+
19867         * modules/freading (License): Relax LGPL version.
19868
19869 2011-05-02  Bruno Haible  <bruno@clisp.org>
19870
19871         fchdir: Remove unused dependencies.
19872         * modules/fchdir (Depends-on): Remove include_next.
19873
19874 2011-05-02  Bruno Haible  <bruno@clisp.org>
19875
19876         gnulib-tool: Refactor.
19877         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19878         from func_emit_autoconf_snippets.
19879         (func_emit_autoconf_snippets): Use it.
19880
19881 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19882
19883         * NEWS: Document removal of 'exit'.
19884         * modules/exit: Remove file.
19885
19886 2011-05-01  Bruno Haible  <bruno@clisp.org>
19887
19888         Update DEPENDENCIES.
19889         * DEPENDENCIES (gettext): Recommend the newest release.
19890         Reported by Simon Josefsson.
19891
19892 2011-05-01  Bruno Haible  <bruno@clisp.org>
19893
19894         gnulib-tool: Reduce code duplication.
19895         * gnulib-tool (func_emit_autoconf_snippets): New function.
19896         (func_import, func_create_testdir): Use it.
19897
19898 2011-04-30  Eric Blake  <eblake@redhat.com>
19899
19900         fclose: don't fail on non-seekable input stream
19901         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19902         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19903         since fflush is allowed to fail in that case.
19904
19905 2011-04-30  Bruno Haible  <bruno@clisp.org>
19906
19907         dup3: cleanup
19908         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19909
19910 2011-04-30  Bruno Haible  <bruno@clisp.org>
19911
19912         netdb: Make it work in C++ mode.
19913         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19914         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19915         module.
19916         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19917         gl_MODULE_INDICATOR_FOR_TESTS.
19918         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19919         * modules/netdb-c++-tests: New file.
19920         * tests/test-netdb-c++.cc: New file.
19921
19922 2011-04-30  Bruno Haible  <bruno@clisp.org>
19923
19924         New modules 'vfscanf', 'vscanf'.
19925         * modules/vfscanf: New file.
19926         * modules/vscanf: New file.
19927         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19928         here.
19929         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19930         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19931
19932 2011-04-30  Bruno Haible  <bruno@clisp.org>
19933
19934         passfd: Add comments.
19935         * lib/passfd.c: Add comments about platforms.
19936
19937 2011-04-30  Bruno Haible  <bruno@clisp.org>
19938
19939         sys_uio: Make <sys/uio.h> self-contained.
19940         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19941         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19942
19943 2011-04-30  Bruno Haible  <bruno@clisp.org>
19944
19945         sys_socket: Ensure 'struct iovec' definition.
19946         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19947         <sys/socket.h>.
19948         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19949
19950 2011-04-30  Bruno Haible  <bruno@clisp.org>
19951
19952         sys_uio: Protect definition of 'struct iovec'.
19953         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19954         it as a C struct.
19955
19956 2011-04-30  Bruno Haible  <bruno@clisp.org>
19957
19958         manywarnings: fix indentation
19959         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19960
19961 2011-04-30  Pádraig Brady <P@draigBrady.com>
19962
19963         manywarnings: add -Wno-missing-field-initializers if needed.
19964         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19965         option if it's needed to allow initialization with { 0, }
19966
19967 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19968
19969         announce-gen: cosmetic improvement
19970         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19971
19972 2011-04-29  Jim Meyering  <meyering@redhat.com>
19973
19974         vc-list-files: indent with spaces, not TABs
19975         * build-aux/vc-list-files: Convert leading TABs to spaces,
19976         to match the style of most other files in gnulib.
19977
19978         announce-gen: indent with spaces, not TABs
19979         * build-aux/announce-gen: Convert all TABs to spaces, to match
19980         the style of most other files in gnulib.
19981
19982 2011-04-29  Eric Blake  <eblake@redhat.com>
19983
19984         quotearg: avoid uninitialized variable use
19985         * lib/quotearg.c (quoting_options_from_style): Initialize
19986         remaining fields, and ensure that custom styles are only used via
19987         quoting_options rather than quoting_style.
19988
19989 2011-04-29  Jim Meyering  <meyering@redhat.com>
19990
19991         maint.mk: remove unused VC-tag variable
19992         * top/maint.mk (VC-tag): Remove unused variable.
19993
19994 2011-04-29  Bruno Haible  <bruno@clisp.org>
19995
19996         netdb: fix gai_strerror replacements
19997         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19998         * modules/netdb: Substitute it.
19999
20000 2011-04-29  Jim Meyering  <meyering@redhat.com>
20001
20002         test-getcwd.c: avoid new set-but-not-used warning
20003         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20004         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20005         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20006         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20007
20008         test-hash.c: avoid a new shadowing warning
20009         * tests/test-hash.c (main): Don't shadow "dup".
20010
20011 2011-04-28  Eric Blake  <eblake@redhat.com>
20012
20013         getaddrinfo: fix gai_strerror signature
20014         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20015         and work around mingw with UNICODE defined.
20016         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20017         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20018         * modules/netdb (Makefile.am): Substitute it.
20019         * lib/netdb.in.h (gai_strerror): Declare replacement.
20020         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20021         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20022         the fix.
20023
20024         getsockopt: avoid compiler warning
20025         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20026         Reported by Matthias Bolte.
20027
20028         tests: drop unused link dependency
20029         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20030         * modules/dirent-safer-tests (Makefile.am): Likewise.
20031         * modules/fdopendir-tests (Makefile.am): Likewise.
20032         * modules/mkfifoat-tests (Makefile.am): Likewise.
20033         * modules/openat-safer-tests (Makefile.am): Likewise.
20034         * modules/openat-tests (Makefile.am): Likewise.
20035         * modules/readlinkat-tests (Makefile.am): Likewise.
20036         * modules/symlinkat-tests (Makefile.am): Likewise.
20037         * modules/linkat-tests (Makefile.am): Likewise.
20038         (Depends-on): Switch to filenamecat-lgpl.
20039         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20040         LIBINTL.
20041         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20042         * tests/test-linkat.c (main): Don't require xalloc.
20043
20044         hash, mgetgroups: drop xalloc dependency
20045         * lib/hash.c (includes): Adjust includes.
20046         * lib/mgetgroups.c (includes): Likewise.
20047         (xgetgroups): Move...
20048         * lib/xgetgroups.c: ...to new file.
20049         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20050         * modules/xgetgroups: New file, split from...
20051         * modules/mgetgroups: ...here.
20052         (Depends-on): Add xalloc-oversized.
20053         * modules/hash (Depends-on): Likewise.
20054         * modules/hash-tests (Depends-on): Drop xalloc.
20055         (test_hash_LDADD): Drop unused library.
20056         * tests/test-hash.c (main): Break xalloc dependency.
20057         (includes): Drop unused include.
20058
20059         xalloc-oversized: new module
20060         * modules/xalloc-oversized: New module.
20061         * modules/xalloc (Depends-on): Add it.
20062         * lib/xalloc.h (xalloc_oversized): Move...
20063         * lib/xalloc-oversized.h: ...into new file.
20064
20065         utimecmp: drop dependency on xmalloc
20066         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20067         due to memory pressure.
20068         * modules/utimecmp (Depends-on): Drop xalloc.
20069
20070 2011-04-27  Eric Blake  <eblake@redhat.com>
20071
20072         getcwd: fix mingw bugs
20073         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20074         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20075         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20076
20077 2011-04-27  Bruno Haible  <bruno@clisp.org>
20078
20079         mkstemps: Ensure declaration on MacOS X 10.5.
20080         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20081         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20082         MacOS X.
20083
20084 2011-04-27  Bruno Haible  <bruno@clisp.org>
20085
20086         mkstemp: More documentation.
20087         * doc/posix-functions/mkstemp.texi: Document header file problem on
20088         MacOS X.
20089
20090 2011-04-27  Bruno Haible  <bruno@clisp.org>
20091
20092         mkstemp: Tweak configure message when cross-compiling.
20093         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20094         result as a guess.
20095
20096 2011-04-27  Bruno Haible  <bruno@clisp.org>
20097
20098         clean-temp: Clarify what it does.
20099         * lib/clean-temp.h: Add more comments.
20100         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20101         module.
20102         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20103         * doc/glibc-functions/mkstemps.texi: Likewise.
20104         * doc/glibc-functions/mkostemps.texi: Likewise.
20105
20106 2011-04-27  Eric Blake  <eblake@redhat.com>
20107
20108         fchdir: avoid extra chdir and fix test
20109         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20110         getcwd-lgpl.
20111         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20112         have to be canonical.
20113         (canonicalize_file_name): Drop unused macro.
20114         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20115
20116         filenamecat-lgpl: fix licence
20117         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20118         when it was first created.
20119
20120         linkat, renameat: add missing dependency
20121         * modules/linkat (Depends-on): Require getcwd-lgpl.
20122         * modules/renameat (Depends-on): Likewise.
20123
20124         tests: reduce dependencies
20125         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20126         * tests/test-renameat.c (main): Likewise.
20127         * modules/linkat-tests (Depends-on): Relax dependency.
20128         * modules/renameat-tests (Depends-on): Likewise.
20129         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20130         dependency explicit.
20131
20132         save-cwd: reduce default dependency
20133         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20134         * lib/save-cwd.c: Update comments.
20135         * NEWS: Document the semantic change.
20136
20137         getcwd: enhance tests
20138         * tests/test-getcwd-lgpl.c: New file, taken from...
20139         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20140         repeat long path stress tests from m4 probe.
20141         * modules/getcwd-lgpl-tests: New module.
20142         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20143         * m4/getcwd-abort-bug.m4: Update comment.
20144         * m4/getcwd-path-max.m4: Likewise.
20145
20146         getcwd-lgpl: new module
20147         * modules/getcwd-lgpl: New module.
20148         * lib/getcwd-lgpl.c: New file.
20149         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20150         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20151         * modules/getcwd (configure.ac): Set C witness.
20152         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20153
20154         getcwd: tweak comments
20155         * m4/getcwd-abort-bug.m4: Fix comments.
20156         * m4/getcwd-path-max.m4: Likewise.
20157         * m4/getcwd.m4: Likewise.
20158
20159 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20160         and Eric Blake  <eblake@redhat.com>
20161
20162         mkstemp: replace if system version uses wrong permissions
20163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20164         read/write mode bits set in file created by mkstemp.
20165         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20166
20167 2011-04-27  Eric Blake  <eblake@redhat.com>
20168
20169         passfd: avoid compiler warning
20170         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20171         Reported by Laine Stump.
20172
20173 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20174
20175         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20176         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20177
20178 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20179         and Eric Blake  <eblake@redhat.com>
20180
20181         mkstemp: mention clean-temp module
20182         * lib/mkstemp.c: Add comment.
20183         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20184
20185 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20186
20187         inttypes: also provide default values for 32-bit tests
20188         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20189         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20190
20191 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20192
20193         strtoumax: remove dependency on strtoimax
20194         This is like the strtoull change of yesterday.
20195         * modules/strtoumax (Files): Add lib/strtoimax.c.
20196         (Depends-on): Remove strtoimax and add verify.
20197
20198         inttypes-incomplete: new module
20199         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20200         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20201         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20202         of gl_INTTYPES_H.
20203         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20204         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20205         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20206         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20207         * modules/strtoumax, modules/xstrtol (Depends-on):
20208         Depend on inttypes-incomplete, not inttypes.
20209         * modules/inttypes-incomplete: New module, containing the contents
20210         of the old modules/inttypes module, except that the Files: section
20211         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20212         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20213         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20214         (Depends-on): Depend only on inttypes-incomplete.
20215         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20216
20217         inttypes: omit now-redundant strtoimax and strtoumax work
20218         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20219         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20220
20221         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20222         This supports apps that need pointers to strtoimax and strtoumax,
20223         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20224         nonexistent functions.  See
20225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20226         et seq.
20227         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20228         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20229         a macro.
20230         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20231
20232 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20233
20234         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20235
20236 2011-04-25  Bruno Haible  <bruno@clisp.org>
20237
20238         strtol, strtoul: Mark modules as obsolete.
20239         * modules/strtol (Status, Notice): New sections.
20240         * modules/strtoul (Status, Notice): New sections.
20241
20242 2011-04-25  Bruno Haible  <bruno@clisp.org>
20243
20244         strtod: Remove check for strtod, unless supporting old platforms.
20245         * modules/strtod-obsolete: New file.
20246         * m4/strtod-obsolete.m4: New file.
20247         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20248         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20249         * modules/strtod (Depends-on): Add strtod-obsolete.
20250         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20251
20252 2011-04-25  Bruno Haible  <bruno@clisp.org>
20253
20254         strcase: Make module obsolete.
20255         * modules/strcase (Status, Notice): New sections.
20256
20257 2011-04-25  Bruno Haible  <bruno@clisp.org>
20258
20259         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20260         * modules/dup2-obsolete: New file.
20261         * m4/dup2-obsolete.m4: New file.
20262         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20263         gl_FUNC_DUP2_OBSOLETE is not also defined.
20264         * modules/dup2 (Depends-on): Add dup2-obsolete.
20265         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20266
20267 2011-04-25  Bruno Haible  <bruno@clisp.org>
20268
20269         strnlen: Avoid memchr related link error on old obsolete platforms.
20270         * modules/memchr-obsolete: New file.
20271         * m4/memchr-obsolete.m4: New file.
20272         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20273         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20274         * modules/memchr (Depends-on): Add memchr-obsolete.
20275         * modules/strnlen (Depends-on): Likewise.
20276         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20277
20278 2011-04-25  Jim Meyering  <meyering@redhat.com>
20279
20280         maint.mk: makefile_at_at_check extend and clean up
20281         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20282         in addition to */Makefile.am.
20283         Exempt legitimate uses of @VAR@ notation, e.g.,
20284         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20285         Remove obsolete coreutils-specific comment.
20286         Prompted by discussion here:
20287         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20288
20289 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20290
20291         strtoul: remove dependency on strtol
20292         This is so that 'configure' need not check for strtol merely because
20293         the application needs strtoul.
20294         * modules/strtoul (Files): Add lib/strtol.c.
20295         (Depends-on): Remove strtol.
20296
20297         strtoull: remove dependency on strtoul
20298         This is like the strtoll change.
20299         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20300         (Depends-on): Remove strtoul.
20301
20302         strtoll: remove dependency on strtol
20303         This is so that 'configure' need not check for strtol merely because
20304         the application needs strtoll.
20305         * modules/strtoll (Files): Add lib/strtol.c.
20306         (Depends-on): Remove strtol.
20307
20308 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20309
20310         inttypes: Move some configure check to module 'imaxdiv'.
20311         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20312         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20313         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20314
20315 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20316
20317         inttypes: Move some configure check to module 'imaxabs'.
20318         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20319         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20320         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20321
20322 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20323
20324         inttypes: Remove configure tests that are not needed since 2009-12-31.
20325         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20326         gl_cv_header_working_inttypes_h.
20327
20328 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20329
20330         * modules/strnlen (Depends-on): Remove memchr.
20331         The strnlen implementation doesn't need the memchr module's fixes; see
20332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20333
20334         strtol: remove dependency on wchar
20335         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20336         * modules/strtol (Depends-on): Remove wchar.
20337
20338 2011-04-21  Eric Blake  <eblake@redhat.com>
20339
20340         passfd: fix test regression on Linux
20341         * modules/passfd-tests (configure.ac): Correct socketpair check.
20342
20343         passfd: speed up configure and drop unused code
20344         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20345         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20346         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20347         Instead of probing at configure for unix_scm_rights_bsd44_way,
20348         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20349         check to a struct member probe.
20350         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20351         (sendfd, recvfd): Update preprocessor checks.
20352         * modules/passfd (Files): Reflect rename, and drop unused file.
20353         (Depends-on): Drop unused dependency.
20354
20355         passfd: allow compilation on mingw
20356         * modules/sys_socket (Depends-on): Add sys_uio.
20357         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20358         iovec and a minimal struct msghdr.
20359         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20360         * tests/test-sys_socket.c (main): Enhance test.
20361         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20362         guaranteed to provide what we need.
20363         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20364         * modules/passfd-tests (Depends-on): Add sys_wait.
20365         * tests/test-passfd.c (main): Skip test on mingw, for now.
20366         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20367         partial 'struct msghdr' implementation.
20368
20369         sys_uio: new module
20370         * modules/sys_uio: New module.
20371         * modules/sys_uio-tests: Likewise.
20372         * lib/sys_uio.in.h: New file.
20373         * m4/sys_uio_h.m4: Likewise.
20374         * tests/test-sys_uio.c: Likewise.
20375         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20376         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20377
20378 2011-04-20  Jim Meyering  <meyering@redhat.com>
20379
20380         useless-if-before-free: avoid false-positive
20381         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20382         disjunct so that it too requires a terminating ";".  Without that,
20383         this script would identify as useless one statement from gcc that
20384         was not:
20385           if (aligned_ptr)
20386             free (((void **) aligned_ptr) [-1]);
20387
20388 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20389
20390         doc: update users.txt.
20391         * users.txt: Add barcode.
20392
20393 2011-04-19  Bruno Haible  <bruno@clisp.org>
20394
20395         ioctl: Remove link dependency on native Windows.
20396         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20397         (gl_close_fn, gl_ioctl_fn): New types.
20398         (struct fd_hook): Renamed from struct close_hook. Change type of
20399         private_close_fn field. Add private_ioctl_fn field.
20400         (close_hook_fn): Add parameter for primary close method.
20401         (execute_close_hooks, execute_all_close_hooks): Likewise.
20402         (ioctl_hook_fn): New type.
20403         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20404         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20405         argument.
20406         (unregister_fd_hook): Renamed from unregister_close_hook.
20407         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20408         Don't include <unistd.h>.
20409         (close): Remove undef.
20410         (anchor): Update.
20411         (execute_close_hooks): Add argument for primary close method.
20412         (execute_all_close_hooks): Likewise.
20413         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20414         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20415         argument. Allow each argument to be NULL.
20416         (unregister_fd_hook): Renamed from unregister_close_hook.
20417         * lib/close.c (rpl_close): Pass 'close' function pointer to
20418         execute_all_close_hooks.
20419         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20420         (primary_ioctl): New function.
20421         (ioctl): Don't call ioctlsocket here. Instead, call
20422         execute_all_ioctl_hooks.
20423         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20424         close method.
20425         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20426         (fd_sockets_hook): Renamed from close_sockets_hook.
20427         (gl_sockets_startup, gl_sockets_cleanup): Update.
20428         * modules/fd-hook: Renamed from modules/close-hook. Update.
20429         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20430         * modules/sockets (Depends-on): Likewise.
20431         * modules/ioctl (Depends-on): Add fd-hook.
20432         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20433         GNULIB_SOCKET.
20434
20435 2011-04-19  Bruno Haible  <bruno@clisp.org>
20436
20437         Move the support of O_NONBLOCK in open() to the 'open' module.
20438         * modules/nonblocking (Depends-on): Remove 'open'.
20439         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20440         gl_cv_have_open_O_NONBLOCK.
20441         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20442         O_NONBLOCK support.
20443         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20444
20445 2011-04-17  Bruno Haible  <bruno@clisp.org>
20446
20447         pipe2: Simplify code.
20448         * lib/pipe2.c (pipe2): Reduce code duplication.
20449
20450 2011-04-17  Bruno Haible  <bruno@clisp.org>
20451
20452         nonblocking: Add comment.
20453         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20454
20455 2011-04-17  Bruno Haible  <bruno@clisp.org>
20456
20457         nonblocking: Add tests for sockets.
20458         * tests/test-nonblocking-socket.sh: New file.
20459         * tests/test-nonblocking-socket-main.c: New file.
20460         * tests/test-nonblocking-socket-child.c: New file.
20461         * tests/test-nonblocking-socket.h: New file.
20462         * tests/socket-server.h: New file.
20463         * tests/socket-client.h: New file.
20464         * modules/nonblocking-socket-tests: New file.
20465         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20466
20467 2011-04-17  Bruno Haible  <bruno@clisp.org>
20468
20469         nonblocking: Add tests for pipes.
20470         * tests/test-nonblocking-pipe.sh: New file.
20471         * tests/test-nonblocking-pipe-main.c: New file.
20472         * tests/test-nonblocking-pipe-child.c: New file.
20473         * tests/test-nonblocking-pipe.h: New file.
20474         * tests/test-nonblocking-writer.h: New file.
20475         * tests/test-nonblocking-reader.h: New file.
20476         * tests/test-nonblocking-misc.h: New file.
20477         * modules/nonblocking-pipe-tests: New file.
20478         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20479
20480 2011-04-16  Bruno Haible  <bruno@clisp.org>
20481
20482         gettext: Clarify the needed programmer actions.
20483         * modules/gettext (Notice): New field.
20484         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20485
20486 2011-04-16  Bruno Haible  <bruno@clisp.org>
20487
20488         strchrnul: Tweak last commit.
20489         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20490         bug.
20491         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20492         as in _GL_FUNCDECL_SYS.
20493         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20494         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20495
20496 2011-04-15  Eric Blake  <eblake@redhat.com>
20497
20498         strchrnul: work around cygwin bug
20499         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20500         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20502         * modules/string (Makefile.am): Substitute it.
20503         * lib/string.in.h (strchrnul): Use it.
20504
20505 2011-04-15  Bruno Haible  <bruno@clisp.org>
20506
20507         Don't require lib/stdio-write.c when only module 'stdio' is used.
20508         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20509         invocation.
20510         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20511
20512 2011-04-14  Bruno Haible  <bruno@clisp.org>
20513
20514         Support non-blocking pipe I/O in read() on native Windows.
20515         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20516         (read): New declaration.
20517         * lib/read.c: New file.
20518         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20519         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20520         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20521         vscanf): New declarations.
20522         * lib/stdio-read.c: New file.
20523         * m4/read.m4: New file.
20524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20525         REPLACE_READ.
20526         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20527         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20528         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20529         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20530         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20531         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20532         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20533         * modules/read: New file.
20534         * modules/nonblocking (Files): Add lib/stdio-read.c.
20535         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20536         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20537         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20538         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20539         * modules/pread (Depends-on): Add read.
20540         * modules/safe-read (Depends-on): Likewise.
20541         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20542         gets, scanf, vfscanf, vscanf): Verify signatures.
20543         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20544         problem with non-blocking pipes.
20545         * doc/posix-functions/fgetc.texi: Likewise.
20546         * doc/posix-functions/fgets.texi: Likewise.
20547         * doc/posix-functions/fread.texi: Likewise.
20548         * doc/posix-functions/fscanf.texi: Likewise.
20549         * doc/posix-functions/getc.texi: Likewise.
20550         * doc/posix-functions/getchar.texi: Likewise.
20551         * doc/posix-functions/gets.texi: Likewise.
20552         * doc/posix-functions/scanf.texi: Likewise.
20553         * doc/posix-functions/vfscanf.texi: Likewise.
20554         * doc/posix-functions/vscanf.texi: Likewise.
20555
20556 2011-04-14  Bruno Haible  <bruno@clisp.org>
20557
20558         Support non-blocking pipe I/O in write() on native Windows.
20559         * lib/write.c (rpl_write): Split a write request that failed merely
20560         because the byte count was larger than the pipe buffer's size.
20561         * doc/posix-functions/write.texi: Mention the problem with large byte
20562         counts.
20563
20564 2011-04-14  Bruno Haible  <bruno@clisp.org>
20565
20566         wchar: Ensure that wchar_t gets defined on uClibc.
20567         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20568         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20569
20570 2011-04-13  Bruno Haible  <bruno@clisp.org>
20571
20572         safe-write, full-read: Avoid unnecessary compilation units.
20573         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20574         (Depends-on): Remove safe-read. Add ssize_t.
20575         * modules/full-read (Files): Add lib/full-write.c.
20576         (Depends-on): Add full-write.
20577
20578 2011-04-13  Bruno Haible  <bruno@clisp.org>
20579
20580         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20581         * modules/pwrite (Depends-on): Add 'write'.
20582
20583 2011-04-13  Bruno Haible  <bruno@clisp.org>
20584
20585         Support non-blocking pipe I/O in write() on native Windows.
20586         * lib/unistd.in.h (write): Enable replacement also if
20587         GNULIB_UNISTD_H_NONBLOCKING is 1.
20588         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20589         (rpl_write): When failing to write on a non-blocking pipe, change
20590         errno from ENOSPC to EAGAIN.
20591         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20592         putchar, puts, vfprintf, vprintf): Enable replacement also if
20593         GNULIB_STDIO_H_NONBLOCKING is 1.
20594         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20595         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20596         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20597         CALL_WITH_SIGPIPE_EMULATION.
20598         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20599         * m4/nonblocking.m4: New file.
20600         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20601         for non-blocking I/O support.
20602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20603         GNULIB_UNISTD_H_NONBLOCKING.
20604         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20605         required for non-blocking I/O support.
20606         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20607         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20608         lib/stdio-write.c, m4/asm-underscore.m4.
20609         (Depends-on): Add stdio, unistd.
20610         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20611         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20612         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20613         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20614         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20615         problem with non-blocking pipes.
20616         * doc/posix-functions/fputc.texi: Likewise.
20617         * doc/posix-functions/fputs.texi: Likewise.
20618         * doc/posix-functions/fwrite.texi: Likewise.
20619         * doc/posix-functions/printf.texi: Likewise.
20620         * doc/posix-functions/putc.texi: Likewise.
20621         * doc/posix-functions/putchar.texi: Likewise.
20622         * doc/posix-functions/puts.texi: Likewise.
20623         * doc/posix-functions/vfprintf.texi: Likewise.
20624         * doc/posix-functions/vprintf.texi: Likewise.
20625         * doc/posix-functions/write.texi: Likewise.
20626
20627 2011-04-10  Jim Meyering  <meyering@redhat.com>
20628
20629         maint.mk: prohibit doubled words
20630         Detect them also when they're separated by a newline.
20631         There are 3 ways to customize it:
20632           - disable the test on a per file basis, as usual with rules using
20633             $(VC_LIST_EXCEPT)
20634           - replace the default doubled-word-selecting regexp (affects all files)
20635           - ignore a particular file-vs-doubled-word match
20636         I nearly used that last one to ignore the "is is" match in
20637         coreutils' NEWS file, since the text was "ls -is is ..."
20638         To do that, I would have added this line to cfg.mk:
20639           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20640         but it would have ignored any "is is" match in NEWS.
20641         Low probability, but still...
20642         Instead, I changed the text, slightly:
20643           -  ls -is is now consistent with ls -lis in ignoring values returned
20644           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20645         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20646         (prohibit_doubled_word_): Define.
20647         (sc_prohibit_doubled_word): New rule.
20648         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20649
20650 2011-04-10  Jim Meyering  <meyering@redhat.com>
20651
20652         maint: fix doubled-word typo in comment
20653         * m4/gethostname.m4: s/is is/it is/
20654         * m4/getdomainname.m4: Likewise.
20655
20656 2011-04-10  Jim Meyering  <meyering@redhat.com>
20657
20658         maint: remove doubled word: s/it it/it/
20659         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20660
20661 2011-04-10  Jim Meyering  <meyering@redhat.com>
20662
20663         maint.mk: remove useless semicolon and backslash
20664         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20665         semicolon and backslash.
20666
20667 2011-04-10  Bruno Haible  <bruno@clisp.org>
20668
20669         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20670         * modules/stdint-tests (Depends-on): Add wchar.
20671
20672 2011-04-10  Jim Meyering  <meyering@redhat.com>
20673
20674         maint: remove doubled words in comments, e.g., s/a a/a/
20675         * lib/strptime.c (day_of_the_week): s/the the/the/
20676         * tests/test-chown.h (test_chown): s/a a/a/
20677
20678         test-chown.h: correct a cast
20679         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20680         when the destination is a stat.st_gid.
20681
20682 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20683
20684         getaddrinfo: Fix test for sa_len member.
20685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20686         include <sys/types.h> before <sys/socket.h>.
20687
20688 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20689
20690         maint: change "can not" to "cannot"
20691         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20692         boundaries.
20693
20694 2011-04-09  Jim Meyering  <meyering@redhat.com>
20695
20696         maint: change "a a" to "a"
20697         * tests/test-lchown.h (test_lchown): s/a a/a/
20698
20699         maint.mk: prohibit \<the the\>
20700         * top/maint.mk (sc_prohibit_the_the): New rule.
20701
20702         maint: fix "the the" in comment
20703         * lib/count-one-bits.h: s/the the/the/
20704
20705         maint: change "can not" to "cannot"
20706         But do not change the occurrences in maintain.texi or in
20707         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20708         * doc/gnulib-tool.texi: s/can not/cannot/
20709         * doc/posix-functions/accept.texi (accept): Likewise.
20710         * doc/posix-functions/socket.texi (socket): Likewise.
20711         * lib/mbrtowc.c: Likewise.
20712
20713         maint.mk: prohibit use of "can not"
20714         * top/maint.mk (sc_prohibit_can_not): New rule.
20715         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20716
20717 2011-04-09  Bruno Haible  <bruno@clisp.org>
20718
20719         careadlinkat: Guard against misuse of careadlinkatcwd.
20720         * lib/careadlinkat.c: Include <stdlib.h>.
20721         (careadlinkatcwd): Check that the fd argument is as expected.
20722
20723 2011-04-09  Bruno Haible  <bruno@clisp.org>
20724
20725         careadlinkat: Use common coding style.
20726         * lib/careadlinkat.c: Move gnulib includes after system includes.
20727
20728 2011-04-09  Bruno Haible  <bruno@clisp.org>
20729
20730         careadlinkat: Clarify specification.
20731         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20732         (careadlinkatcwd): Add comment.
20733         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20734
20735 2011-04-09  Bruno Haible  <bruno@clisp.org>
20736
20737         areadlinkat: Avoid link error on many platforms.
20738         * modules/areadlinkat (Depends-on): Add areadlink.
20739
20740 2011-04-09  Bruno Haible  <bruno@clisp.org>
20741
20742         allocator, careadlinkat: Fix double-inclusion guard.
20743         * lib/allocator.h: Fix double-inclusion guard.
20744         * lib/careadlinkat.h: Likewise.
20745
20746 2011-04-09  Bruno Haible  <bruno@clisp.org>
20747
20748         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20749         * lib/relocwrapper.c: Update dependencies hierarchy.
20750         * build-aux/install-reloc: Update list of files to be compiled.
20751         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20752         lib/allocator.[hc].
20753
20754 2011-04-08  Eric Blake  <eblake@redhat.com>
20755
20756         strftime: silence gnulib-tool warning
20757         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20758
20759 2011-04-08  Bruno Haible  <bruno@clisp.org>
20760
20761         verify: Fix syntax error with GCC 4.6 in C++ mode.
20762         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20763         (HAVE_STATIC_ASSERT): New macro.
20764         (verify_true, verify): Use 'static_assert' if it is supported and
20765         '_Static_assert' is not supported.
20766
20767 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20768
20769         allocator: New module.
20770         * modules/allocator, lib/allocator.c: New files.
20771         * lib/allocator.h (stdlib_allocator): New decl.
20772         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20773         Remove.  Do not include <stdlib.h>.
20774         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20775         * modules/careadlinkat (Files): Remove lib/allocator.h.
20776         (Depends-on): Add allocator.
20777
20778         stdlib: let modules use system malloc, realloc
20779         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20780         if !_GL_USE_STDLIB_ALLOC.
20781         (malloc, realloc): Limit this change to a smaller scope.
20782
20783         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20784         (malloc, realloc): Don't #undef; no longer needed.
20785         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20786         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20787         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20788         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20789         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20790         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20791         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20792         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20793
20794         careadlinkat: rename members to avoid problem
20795         * lib/allocator.h (struct allocator): Rename members from
20796         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20797         and realloc are #define'd.  Reported by Eric Blake in
20798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20799         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20800
20801 2011-04-08  Eric Blake  <eblake@redhat.com>
20802
20803         nonblocking: reduce dependency
20804         * tests/test-nonblocking.c: Only test sockets when in use.
20805         * modules/nonblocking-tests (Depends-on): Drop socket.
20806         (Makefile.am): Link even if sockets are not present.
20807         * modules/pipe2-tests (Makefile.am): Likewise.
20808         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20809
20810         pipe2: fix O_NONBLOCK support on mingw
20811         * modules/pipe2 (Depends-on): Add nonblocking.
20812         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20813         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20814         * tests/test-nonblocking.c (main): Likewise.
20815         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20816
20817         fcntl-h: fix O_ACCMODE on cygwin
20818         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20819         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20820
20821         pipe-filter: drop O_NONBLOCK workarounds
20822         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20823         * modules/pipe-filter-ii (Depends-on): Likewise.
20824         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20825
20826         nonblocking: provide O_NONBLOCK for mingw
20827         * modules/nonblocking (Depends-on): Add open.
20828         (configure.ac): Set new witness macro.
20829         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20830         * modules/fcntl-h (Makefile.am): Substitute it.
20831         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20832         nonblocking module is in use.
20833         * lib/nonblocking.c: Adjust portability test.
20834         * lib/open.c (open): Don't let native open see gnulib flag.
20835         * tests/test-fcntl-h.c (main): Enhance test.
20836         * tests/test-open.h (test_open): Likewise.
20837         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20838
20839         careadlinkat: fix compilation error on mingw
20840         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20841         within struct allocator.
20842
20843 2011-04-06  Eric Blake  <eblake@redhat.com>
20844
20845         binary-io: relicense under LGPLv2+
20846         * modules/binary-io (License): Relax to LGPLv2+.
20847         Requested for libvirt, and required by pipe2.
20848
20849 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20850
20851         verify: use _Static_assert if available
20852         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20853         (verify_true, verify): Use it if available.  This generates better
20854         diagnostics with GCC 4.6.0 and later.
20855
20856 2011-04-05  Bruno Haible  <bruno@clisp.org>
20857
20858         Remove leftover generated .h files after config.status changed.
20859
20860         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20861         GL_GENERATE_ALLOCA_H.
20862         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20863         GL_GENERATE_ALLOCA_H evaluates to false.
20864
20865         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20866         GL_GENERATE_ARGZ_H.
20867         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20868         evaluates to false.
20869
20870         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20871         GL_GENERATE_BYTESWAP_H.
20872         * modules/byteswap (Makefile.am): Remove byteswap.h if
20873         GL_GENERATE_BYTESWAP_H evaluates to false.
20874
20875         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20876         GL_GENERATE_ERRNO_H.
20877         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20878         evaluates to false.
20879
20880         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20881         GL_GENERATE_FLOAT_H.
20882         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20883         evaluates to false.
20884
20885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20886         GL_GENERATE_FNMATCH_H.
20887         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20888         GL_GENERATE_FNMATCH_H evaluates to false.
20889
20890         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20891         GL_GENERATE_GLOB_H.
20892         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20893         evaluates to false.
20894
20895         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20896         automake conditional GL_GENERATE_ICONV_H.
20897         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20898         evaluates to false.
20899
20900         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20901         GL_GENERATE_NETINET_IN_H.
20902         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20903         GL_GENERATE_NETINET_IN_H evaluates to false.
20904
20905         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20906         conditional GL_GENERATE_PTHREAD_H.
20907         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20908         * modules/pthread (Makefile.am): Remove pthread.h if
20909         GL_GENERATE_PTHREAD_H evaluates to false.
20910
20911         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20912         GL_GENERATE_SCHED_H.
20913         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20914         evaluates to false.
20915
20916         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20917         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20918         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20919         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20920
20921         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20922         GL_GENERATE_STDARG_H.
20923         * modules/stdarg (Makefile.am): Remove stdarg.h if
20924         GL_GENERATE_STDARG_H evaluates to false.
20925
20926         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20927         GL_GENERATE_STDBOOL_H.
20928         * modules/stdbool (Makefile.am): Remove stdbool.h if
20929         GL_GENERATE_STDBOOL_H evaluates to false.
20930
20931         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20932         conditional GL_GENERATE_STDDEF_H.
20933         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20934         * modules/stddef (Makefile.am): Remove stddef.h if
20935         GL_GENERATE_STDDEF_H evaluates to false.
20936
20937         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20938         GL_GENERATE_STDINT_H.
20939         * modules/stdint (Makefile.am): Remove stdint.h if
20940         GL_GENERATE_STDINT_H evaluates to false.
20941
20942         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20943         GL_GENERATE_SYSEXITS_H.
20944         * modules/sysexits (Makefile.am): Remove sysexits.h if
20945         GL_GENERATE_SYSEXITS_H evaluates to false.
20946
20947         Reported by Karl Berry and Ralf Wildenhues.
20948
20949 2011-04-05  Bruno Haible  <bruno@clisp.org>
20950
20951         Ensure to rebuild generated .h files when config.status has changed.
20952         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20953         config.status.
20954         * modules/ctype (Makefile.am): Likewise.
20955         * modules/dirent (Makefile.am): Likewise.
20956         * modules/errno (Makefile.am): Likewise.
20957         * modules/fcntl-h (Makefile.am): Likewise.
20958         * modules/float (Makefile.am): Likewise.
20959         * modules/getopt-posix (Makefile.am): Likewise.
20960         * modules/glob (Makefile.am): Likewise.
20961         * modules/iconv-h (Makefile.am): Likewise.
20962         * modules/inttypes (Makefile.am): Likewise.
20963         * modules/langinfo (Makefile.am): Likewise.
20964         * modules/locale (Makefile.am): Likewise.
20965         * modules/math (Makefile.am): Likewise.
20966         * modules/netdb (Makefile.am): Likewise.
20967         * modules/netinet_in (Makefile.am): Likewise.
20968         * modules/poll-h (Makefile.am): Likewise.
20969         * modules/pthread (Makefile.am): Likewise.
20970         * modules/pty (Makefile.am): Likewise.
20971         * modules/sched (Makefile.am): Likewise.
20972         * modules/search (Makefile.am): Likewise.
20973         * modules/selinux-h (Makefile.am): Likewise.
20974         * modules/signal (Makefile.am): Likewise.
20975         * modules/spawn (Makefile.am): Likewise.
20976         * modules/stdarg (Makefile.am): Likewise.
20977         * modules/stdbool (Makefile.am): Likewise.
20978         * modules/stddef (Makefile.am): Likewise.
20979         * modules/stdint (Makefile.am): Likewise.
20980         * modules/stdio (Makefile.am): Likewise.
20981         * modules/stdlib (Makefile.am): Likewise.
20982         * modules/string (Makefile.am): Likewise.
20983         * modules/strings (Makefile.am): Likewise.
20984         * modules/sys_file (Makefile.am): Likewise.
20985         * modules/sys_ioctl (Makefile.am): Likewise.
20986         * modules/sys_select (Makefile.am): Likewise.
20987         * modules/sys_socket (Makefile.am): Likewise.
20988         * modules/sys_stat (Makefile.am): Likewise.
20989         * modules/sys_time (Makefile.am): Likewise.
20990         * modules/sys_times (Makefile.am): Likewise.
20991         * modules/sys_utsname (Makefile.am): Likewise.
20992         * modules/sys_wait (Makefile.am): Likewise.
20993         * modules/sysexits (Makefile.am): Likewise.
20994         * modules/termios (Makefile.am): Likewise.
20995         * modules/time (Makefile.am): Likewise.
20996         * modules/unistd (Makefile.am): Likewise.
20997         * modules/wchar (Makefile.am): Likewise.
20998         * modules/wctype-h (Makefile.am): Likewise.
20999         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21000
21001 2011-04-05  Bruno Haible  <bruno@clisp.org>
21002
21003         pipe2: Relicense under LGPLv2+.
21004         * modules/pipe2 (License): Change to LGPLv2+.
21005         Requested by Eric Blake, for libvirt.
21006
21007 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21008
21009         bootstrap: compute gnulib_extra_files after updating build_aux
21010         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21011         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21012
21013 2011-04-05  Eric Blake  <eblake@redhat.com>
21014
21015         bootstrap: preserve git whitelist item sorting
21016         * build-aux/bootstrap (sort_patterns): New function.
21017         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21018
21019 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21020
21021         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21022         sc_space_tab check.
21023
21024 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         areadlink, areadlinkat: rewrite in terms of careadlinkat
21027         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21028         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21029         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21030         (malloc, realloc): Remove #undefs.
21031         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21032         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21033         readlink, ssize_t, stdint, unistd.
21034         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21035         areadlink, stdint.
21036
21037         careadlinkat: new module
21038         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21039         * modules/careadlinkat: New files, written by me with
21040         a review and feedback from Ben Pfaff in
21041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21042
21043 2011-04-01  Bruno Haible  <bruno@clisp.org>
21044
21045         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21046         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21047         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21048         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21049         Reported by Bruce Korb <bruce.korb@gmail.com>.
21050
21051 2011-04-01  Bruno Haible  <bruno@clisp.org>
21052
21053         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21054         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21055         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21056         * modules/wcpcpy (Depends-on): Add extensions.
21057         * modules/wcpncpy (Depends-on): Likewise.
21058         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21059         systems.
21060         * doc/posix-functions/wcpncpy.texi: Likewise.
21061         * doc/posix-functions/wcwidth.texi: Likewise.
21062
21063 2011-03-31  Eric Blake  <eblake@redhat.com>
21064
21065         nonblocking: fix mingw test failures
21066         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21067         non-blocking flag on regular file.
21068         (get_nonblocking_flag): Set errno on invalid fd.
21069         * tests/test-nonblocking.c (main): Avoid test failure on
21070         directories if fchdir is not active.
21071         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21072
21073 2011-03-31  Bruno Haible  <bruno@clisp.org>
21074
21075         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21076         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21077         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21078         Reported by Simon Josefsson <simon@josefsson.org>.
21079
21080 2011-03-31  Bruno Haible  <bruno@clisp.org>
21081         and Eric Blake  <eblake@redhat.com>
21082
21083         nonblocking: new module
21084         * modules/nonblocking: New module.
21085         * modules/nonblocking-tests: Likewise.
21086         * lib/nonblocking.h: New file.
21087         * lib/nonblocking.c: Likewise.
21088         * tests/test-nonblocking.c: New test.
21089         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21090
21091 2011-03-30  Bruno Haible  <bruno@clisp.org>
21092
21093         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21094         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21095         instead of 'printf' format for GCC >= 4.4.
21096         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21097         (fprintf, printf, vfprintf, vprintf): Declare with
21098         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21099         the system's vfprintf() function.
21100         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21101
21102 2011-03-30  Eric Blake  <eblake@redhat.com>
21103
21104         passfd: fix scoping bug
21105         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21106         before sendmsg/recvmsg.
21107
21108         passfd: standardize coding conventions
21109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21110         can be learned at compile time.
21111         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21112         ifdefs.
21113         (sendfd, recvfd): Follow gnulib code conventions.
21114
21115         passfd: fix incorrect sendmsg arguments
21116         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21117         incorrect msg_controllen value.
21118         * modules/passfd-tests (Depends-on): Check for alarm.
21119         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21120         Reported by Bastien ROUCARIES.
21121
21122 2011-03-30  Bruno Haible  <bruno@clisp.org>
21123
21124         c-strcasestr: Relicense under LGPLv2+.
21125         * modules/c-strcasestr (License): Change to LGPLv2+.
21126         Requested by Eric Blake, for libvirt.
21127
21128 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21129
21130         * users.txt: Add libidn2.  Fix libtasn1 link.
21131
21132 2011-03-30  Jim Meyering  <meyering@redhat.com>
21133
21134         tests: readlink* ("",... fails with EINVAL on newer kernels
21135         readlink and readlinkat have typically failed with ENOENT for
21136         the invalid, empty file name,  "".  However, with the advent
21137         of linux-2.6.39, they fail with EINVAL.
21138         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21139         when operating on the empty file name.
21140         * tests/test-readlink.h (test_readlink): Likewise.
21141
21142 2011-03-29  Bruno Haible  <bruno@clisp.org>
21143
21144         Relicense some modules under LGPLv2+, for libidn2.
21145         * modules/array-mergesort (License): Change to LGPLv2+.
21146         * modules/c-strcaseeq (License): Likewise.
21147         * modules/striconveh (License): Likewise.
21148         * modules/striconveha (License): Likewise.
21149         * modules/uniconv/base (License): Likewise.
21150         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21151         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21152         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21153         * modules/unictype/base (License): Likewise.
21154         * modules/unictype/bidiclass-of (License): Likewise.
21155         * modules/unictype/category-M (License): Likewise.
21156         * modules/unictype/category-none (License): Likewise.
21157         * modules/unictype/category-of (License): Likewise.
21158         * modules/unictype/category-test (License): Likewise.
21159         * modules/unictype/category-test-withtable (License): Likewise.
21160         * modules/unictype/combining-class (License): Likewise.
21161         * modules/unictype/joiningtype-of (License): Likewise.
21162         * modules/unictype/scripts (License): Likewise.
21163         * modules/uninorm/base (License): Likewise.
21164         * modules/uninorm/canonical-decomposition (License): Likewise.
21165         * modules/uninorm/composition (License): Likewise.
21166         * modules/uninorm/decompose-internal (License): Likewise.
21167         * modules/uninorm/decomposition-table (License): Likewise.
21168         * modules/uninorm/nfc (License): Likewise.
21169         * modules/uninorm/nfd (License): Likewise.
21170         * modules/uninorm/u32-normalize (License): Likewise.
21171         * modules/unistr/base (License): Likewise.
21172         * modules/unistr/u32-cpy (License): Likewise.
21173         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21174         * modules/unistr/u32-to-u8 (License): Likewise.
21175         * modules/unistr/u32-uctomb (License): Likewise.
21176         * modules/unistr/u8-check (License): Likewise.
21177         * modules/unistr/u8-mblen (License): Likewise.
21178         * modules/unistr/u8-mbtouc (License): Likewise.
21179         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21180         * modules/unistr/u8-mbtoucr (License): Likewise.
21181         * modules/unistr/u8-prev (License): Likewise.
21182         * modules/unistr/u8-strlen (License): Likewise.
21183         * modules/unistr/u8-to-u32 (License): Likewise.
21184         * modules/unistr/u8-uctomb (License): Likewise.
21185         * modules/unitypes (License): Likewise.
21186         Requested by Simon Josefsson.
21187
21188 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21189
21190         lib-symbol-visibility: Add a notice.
21191         * modules/lib-symbol-visibility (Notice): New field.
21192
21193 2011-03-29  Bruno Haible  <bruno@clisp.org>
21194
21195         getaddrinfo: Doc fix.
21196         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21197         section "fixed in Gnulib".
21198
21199 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21200
21201         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21202         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21203
21204 2011-03-26  Bruno Haible  <bruno@clisp.org>
21205
21206         unictype/property-byname: Reduce the number of load-time relocations.
21207         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21208         (UC_PROPERTY_INDEX_*): New enumeration values.
21209         (uc_property_byname): Convert an index from the lookup table to an
21210         uc_property_t.
21211         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21212         values.
21213
21214 2011-03-26  Bruno Haible  <bruno@clisp.org>
21215
21216         unictype/property-byname: Allow omitted word separators and aliases.
21217         * lib/unictype/pr_byname.gperf: Add property names without word
21218         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21219         for 'space'.
21220
21221 2011-03-26  Bruno Haible  <bruno@clisp.org>
21222
21223         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21224         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21225         also hyphens to space.
21226         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21227         without spaces.
21228         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21229
21230 2011-03-26  Bruno Haible  <bruno@clisp.org>
21231
21232         unictype/joiningtype-byname: Recognize long names as well.
21233         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21234         a long name.
21235         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21236         unictype/joiningtype_byname.h.
21237         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21238         * lib/unictype/joiningtype_byname.gperf: New file.
21239         * modules/unictype/joiningtype-byname (Files): Add
21240         lib/unictype/joiningtype_byname.gperf.
21241         (Depends-on): Add gperf.
21242         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21243         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21244         long names.
21245
21246         Tests for module 'unictype/joiningtype-longname'.
21247         * modules/unictype/joiningtype-longname-tests: New file.
21248         * tests/unictype/test-joiningtype_longname.c: New file.
21249
21250         New module 'unictype/joiningtype-longname'.
21251         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21252         * lib/unictype/joiningtype_longname.c: New file.
21253         * modules/unictype/joiningtype-longname: New file.
21254         * modules/unictype/joiningtype-all (Depends-on): Add
21255         unictype/joiningtype-longname.
21256
21257 2011-03-26  Bruno Haible  <bruno@clisp.org>
21258
21259         unictype/bidiclass-byname: Recognize long names as well.
21260         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21261         name.
21262         * lib/unictype/bidi_byname.c: Include <string.h>,
21263         unictype/bidi_byname.h.
21264         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21265         * lib/unictype/bidi_byname.gperf: New file.
21266         * modules/unictype/bidiclass-byname (Files): Add
21267         lib/unictype/bidi_byname.gperf.
21268         (Depends-on): Add gperf.
21269         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21270         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21271         long names.
21272
21273         Tests for module 'unictype/bidiclass-longname'.
21274         * modules/unictype/bidiclass-longname-tests: New file.
21275         * tests/unictype/test-bidi_longname.c: New file.
21276
21277         New module 'unictype/bidiclass-longname'.
21278         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21279         * lib/unictype/bidi_longname.c: New file.
21280         * modules/unictype/bidiclass-longname: New file.
21281         * modules/unictype/bidiclass-all (Depends-on): Add
21282         unictype/bidiclass-longname.
21283
21284 2011-03-26  Bruno Haible  <bruno@clisp.org>
21285
21286         unictype/bidi*: Rename modules.
21287         * modules/unictype/bidiclass-all: Renamed from
21288         modules/unictype/bidicategory-all.
21289         * modules/unictype/bidiclass-name: Renamed from
21290         modules/unictype/bidiclass-name.
21291         (Description): Update.
21292         * modules/unictype/bidiclass-name-tests: Renamed from
21293         modules/unictype/bidicategory-name-tests.
21294         * modules/unictype/bidiclass-byname: Renamed from
21295         modules/unictype/bidicategory-byname.
21296         (Description): Update.
21297         * modules/unictype/bidiclass-byname-tests: Renamed from
21298         modules/unictype/bidicategory-byname-tests.
21299         * modules/unictype/bidiclass-of: Renamed from
21300         modules/unictype/bidicategory-of.
21301         (Description): Update.
21302         * modules/unictype/bidiclass-of-tests: Renamed from
21303         modules/unictype/bidicategory-of-tests.
21304         * modules/unictype/bidiclass-test: Renamed from
21305         modules/unictype/bidicategory-test.
21306         (Description): Update.
21307         * modules/unictype/bidiclass-test-tests: Renamed from
21308         modules/unictype/bidicategory-test-tests.
21309         * modules/unictype/bidicategory-all: New file, a simple redirection.
21310         * modules/unictype/bidicategory-name: Likewise.
21311         * modules/unictype/bidicategory-byname: Likewise.
21312         * modules/unictype/bidicategory-of: Likewise.
21313         * modules/unictype/bidicategory-test: Likewise.
21314         * modules/unictype/property-bidi-* (Dependencies): Update.
21315         * lib/unictype/bidi_*.c: Update comment.
21316
21317 2011-03-26  Bruno Haible  <bruno@clisp.org>
21318
21319         unictype/bidi*: Rename functions, part 2.
21320         * modules/unictype/bidicategory-name (configure.ac): Update required
21321         libunistring version.
21322         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21323
21324 2011-03-25  Bruno Haible  <bruno@clisp.org>
21325
21326         New module 'unictype/combining-class-all'.
21327         * modules/unictype/combining-class-all: New file.
21328
21329         Tests for module 'unictype/combining-class-byname'.
21330         * modules/unictype/combining-class-byname-tests: New file.
21331         * tests/unictype/test-combiningclass_byname.c: New file.
21332
21333         New module 'unictype/combining-class-byname'.
21334         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21335         * lib/unictype/combiningclass_byname.c: New file.
21336         * lib/unictype/combiningclass_byname.gperf: New file.
21337         * modules/unictype/combining-class-byname: New file.
21338
21339         Tests for module 'unictype/combining-class-longname'.
21340         * modules/unictype/combining-class-longname-tests: New file.
21341         * tests/unictype/test-combiningclass_longname.c: New file.
21342
21343         New module 'unictype/combining-class-longname'.
21344         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21345         * lib/unictype/combiningclass_longname.c: New file.
21346         * modules/unictype/combining-class-longname: New file.
21347
21348         Tests for module 'unictype/combining-class-name'.
21349         * modules/unictype/combining-class-name-tests: New file.
21350         * tests/unictype/test-combiningclass_name.c: New file.
21351
21352         New module 'unictype/combining-class-name'.
21353         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21354         * lib/unictype/combiningclass_name.c: New file.
21355         * modules/unictype/combining-class-name: New file.
21356
21357 2011-03-25  Bruno Haible  <bruno@clisp.org>
21358
21359         unictype/combining-class: Rename source files.
21360         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21361         of unictype/combining.h.
21362         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21363         Update.
21364         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21365         * modules/unictype/combining-class (Description): Fix.
21366         (Files, Makefile.am): Update.
21367         * tests/unictype/test-combiningclass.c: Renamed from
21368         tests/unictype/test-combining.c.
21369         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21370
21371 2011-03-25  Bruno Haible  <bruno@clisp.org>
21372
21373         unictype: Update list of canonical combining classes.
21374         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21375
21376 2011-03-25  Bruno Haible  <bruno@clisp.org>
21377
21378         unictype/category-byname: Recognize long names as well.
21379         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21380         a long name.
21381         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21382         unictype/categ_byname.h.
21383         (UC_CATEGORY_INDEX_*): New enumeration values.
21384         (uc_general_category_byname): Use uc_general_category_lookup and
21385         convert from index to value.
21386         * lib/unictype/categ_byname.gperf: New file.
21387         * modules/unictype/category-byname (Files): Add
21388         lib/unictype/categ_byname.gperf.
21389         (Depends-on): Add gperf.
21390         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21391         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21392         long names.
21393
21394         Tests for module 'unictype/category-longname'.
21395         * modules/unictype/category-longname-tests: New file.
21396         * tests/unictype/test-categ_longname.c: New file.
21397
21398         New module 'unictype/category-longname'.
21399         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21400         * lib/unictype/categ_longname.c: New file.
21401         * modules/unictype/category-longname: New file.
21402         * modules/unictype/category-all (Depends-on): Add it.
21403
21404 2011-03-25  Bruno Haible  <bruno@clisp.org>
21405
21406         Tests for module 'unictype/category-LC'.
21407         * modules/unictype/category-LC-tests: New file.
21408         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21409
21410         New module 'unictype/category-LC'.
21411         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21412         (UC_CATEGORY_LC): New declaration.
21413         (UC_CASED_LETTER): New macro.
21414         * lib/gen-uni-tables.c (is_category_LC): New function.
21415         (output_categories): Also handle category LC.
21416         (UC_CATEGORY_MASK_LC): New enumeration value.
21417         (general_category_byname): Also handle category LC.
21418         * lib/unictype/categ_LC.c: New file.
21419         * lib/unictype/categ_LC.h: New file, automatically generated.
21420         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21421         category LC.
21422         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21423         * modules/unictype/category-LC: New file.
21424         * modules/unictype/category-byname (Depends-on): Add
21425         unictype/category-LC.
21426         * modules/unictype/category-all (Depends-on): Likewise.
21427
21428 2011-03-25  Eric Blake  <eblake@redhat.com>
21429
21430         xmalloc: revert yesterday's regression
21431         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21432         realloc's underlying behavior (allowing allocation of zero-size
21433         objects, especially if malloc-gnu is also in use).
21434
21435 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21436
21437         maint.mk: add missing version to VC-tag
21438         * top/maint.mk: git tag was missing actual tag name; add it.
21439
21440         valgrind: do leak checking, and exit with code 1 on error (not 0)
21441         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21442         to VALGRIND.
21443
21444 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21445
21446         posix-modules: say what it does.
21447         * posix-modules: Add a line to the --help output saying what it does.
21448
21449 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21450
21451         xmalloc: Do not leak if underlying realloc is C99 compatible.
21452         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21453         This avoids a leak on C99-based systems.  See
21454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21455
21456 2011-03-24  Eric Blake  <eblake@redhat.com>
21457
21458         realloc: document portability problem
21459         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21460         passing 0 size to realloc.
21461
21462 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21463
21464         doc: update users.txt
21465         * users.txt: Add cvsps, tmpwatch
21466
21467 2011-03-23  Matt Rice  <ratmice@gmail.com>
21468
21469         doc: update users.txt
21470         * users.txt: Add gdb.
21471
21472 2011-03-23  Jim Meyering  <meyering@redhat.com>
21473
21474         doc: update users.txt
21475         Looking through matches up to the following URL (there are still
21476         several more pages), I found several projects that use gnulib:
21477         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21478         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21479         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21480
21481 2011-03-22  Bruno Haible  <bruno@clisp.org>
21482
21483         unictype/bidi*: Rename functions.
21484         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21485         uc_bidi_class, uc_is_bidi_class): New declarations.
21486         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21487         uc_bidi_category_byname.
21488         (uc_bidi_category_byname): New function.
21489         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21490         u_bidi_category_name.
21491         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21492         (uc_bidi_category_name): New function.
21493         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21494         uc_bidi_category.
21495         (uc_bidi_category): New function.
21496         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21497         uc_is_bidi_category. Invoke uc_bidi_class.
21498         (uc_is_bidi_category): New function.
21499         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21500         instead of uc_bidi_category_byname.
21501         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21502         instead of uc_bidi_category_name.
21503         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21504         uc_bidi_category.
21505         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21506         instead of uc_is_bidi_category.
21507
21508 2011-03-21  Bruno Haible  <bruno@clisp.org>
21509
21510         New module 'unictype/joininggroup-all'.
21511         * modules/unictype/joininggroup-all: New file.
21512
21513         Tests for module 'unictype/joininggroup-of'.
21514         * modules/unictype/joininggroup-of-tests: New file.
21515         * tests/unictype/test-joininggroup_of.c: New file.
21516         * tests/unictype/test-joininggroup_of.h: New file, automatically
21517         generated by gen-uni-tables.
21518
21519         New module 'unictype/joininggroup-of'.
21520         * modules/unictype/joininggroup-of: New file.
21521         * lib/unictype/joininggroup_of.c: New file.
21522         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21523         gen-uni-tables.
21524
21525         Tests for module 'unictype/joininggroup-byname'.
21526         * modules/unictype/joininggroup-byname-tests: New file.
21527         * tests/unictype/test-joininggroup_byname.c: New file.
21528
21529         New module 'unictype/joininggroup-byname'.
21530         * modules/unictype/joininggroup-byname: New file.
21531         * lib/unictype/joininggroup_byname.c: New file.
21532         * lib/unictype/joininggroup_byname.gperf: New file.
21533
21534         Tests for module 'unictype/joininggroup-name'.
21535         * modules/unictype/joininggroup-name-tests: New file.
21536         * tests/unictype/test-joininggroup_name.c: New file.
21537
21538         New module 'unictype/joininggroup-name'.
21539         * modules/unictype/joininggroup-name: New file.
21540         * lib/unictype/joininggroup_name.c: New file.
21541         * lib/unictype/joininggroup_name.h: New file.
21542
21543         New module 'unictype/joiningtype-all'.
21544         * modules/unictype/joiningtype-all: New file.
21545
21546         Tests for module 'unictype/joiningtype-of'.
21547         * modules/unictype/joiningtype-of-tests: New file.
21548         * tests/unictype/test-joiningtype_of.c: New file.
21549         * tests/unictype/test-joiningtype_of.h: New file, automatically
21550         generated by gen-uni-tables.
21551
21552         New module 'unictype/joiningtype-of'.
21553         * modules/unictype/joiningtype-of: New file.
21554         * lib/unictype/joiningtype_of.c: New file.
21555         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21556         gen-uni-tables.
21557
21558         Tests for module 'unictype/joiningtype-byname'.
21559         * modules/unictype/joiningtype-byname-tests: New file.
21560         * tests/unictype/test-joiningtype_byname.c: New file.
21561
21562         New module 'unictype/joiningtype-byname'.
21563         * modules/unictype/joiningtype-byname: New file.
21564         * lib/unictype/joiningtype_byname.c: New file.
21565
21566         Tests for module 'unictype/joiningtype-name'.
21567         * modules/unictype/joiningtype-name-tests: New file.
21568         * tests/unictype/test-joiningtype_name.c: New file.
21569
21570         New module 'unictype/joiningtype-name'.
21571         * modules/unictype/joiningtype-name: New file.
21572         * lib/unictype/joiningtype_name.c: New file.
21573
21574         unictype: Add support for Arabic shaping properties.
21575         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21576         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21577         declarations.
21578         (UC_JOINING_GROUP_*): New enumeration values.
21579         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21580         declarations.
21581         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21582         (unicode_joining_type): New variable.
21583         (UC_JOINING_GROUP_*): New enumeration values.
21584         (unicode_joining_group): New variable.
21585         (fill_arabicshaping, joining_type_as_c_identifier,
21586         output_joining_type_test, output_joining_type,
21587         joining_group_as_c_identifier, output_joining_group_test,
21588         output_joining_group): New functions.
21589         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21590         fill_arabicshaping and output_joining_type_test, output_joining_type,
21591         output_joining_group_test, output_joining_group.
21592         Reported by Simon Josefsson.
21593
21594 2011-03-21  Jim Meyering  <meyering@redhat.com>
21595
21596         strftime: fix a bug in yesterday's change
21597         * lib/strftime.c (add): Accommodate width's initial value of -1.
21598         Otherwise, nstrftime would copy uninitialized data into
21599         the result buffer.
21600
21601 2011-03-21  Jim Meyering  <meyering@redhat.com>
21602
21603         tests: add strftime-tests module
21604         * tests/test-strftime.c: New file.
21605         * modules/strftime-tests: New module.
21606
21607 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21608
21609         strftime: don't assume a byte count fits in 'int'
21610         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21611         found this problem by static analysis, using gcc -Wstrict-overflow
21612         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21613         on an integer overflow having undefined behavior, but it turns out
21614         that the argument is a size, which might not fit in 'int' anyway,
21615
21616 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21617
21618         stdio: don't require ignore_value around fwrite
21619
21620         This patch works around libc bug 11959
21621         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21622         Without this patch, applications must often write
21623         ignore_value (fwrite (...)) even though the ignore_value is
21624         not helpful here.  It's common to write many objects, using
21625         fwrite/printf/etc., and then use ferror to detect output error.
21626
21627         I considered making this patch optional, but decided against it,
21628         because libc is obviously being inconsistent here: there is no
21629         reason libc should insist that user code must inspect fwrite
21630         return's value without also insisting that it inspect printf's,
21631         putchar's, etc.  If user code wants to have a strict style where
21632         all these functions' values are checked (so that ferror need not
21633         be checked), we could add support for that style in a new gnulib
21634         module, but in the meantime it's better to be consistent and to
21635         support common usage.
21636
21637         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21638         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21639         that we are compiling in checking mode, and if not C++, and
21640         if not already wrapping fwrite for some other reason.
21641         (fwrite): #define to rpl_fwrite if the latter is defined.
21642
21643 2011-03-20  Bruno Haible  <bruno@clisp.org>
21644
21645         verror: Fix compilation error introduced on 2011-02-13.
21646         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21647         instead of __attribute__.
21648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21649
21650 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21651             Bruno Haible  <bruno@clisp.org>
21652
21653         socklen: do not depend on sys_socket
21654         While trying to modify Emacs to use gnulib's socklen module,
21655         I discovered a circular dependency: socklen depends on sys_socket
21656         and vice versa.  Emacs can use socklen, but it does not need
21657         sys_socket because it has its own substitute for sys/socket.h.
21658         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21659         gl_TYPE_SOCKLEN_T.
21660         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21661         gl_PREREQ_SYS_H_SOCKET.
21662         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21663         gl_PREREQ_SYS_H_SOCKET.
21664         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21665         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21666         * modules/socklen (Depends-on): Do not depend on sys_socket.
21667         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21668
21669 2011-03-20  Jim Meyering  <meyering@redhat.com>
21670
21671         maint.mk: sort file names *after* new transformation
21672         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21673         prefix would have led to an unwarranted failure in GNU parted.
21674         Sort after that transformation.
21675
21676 2011-03-19  Jim Meyering  <meyering@redhat.com>
21677
21678         maint.mk: fix po-file syntax-check rule
21679         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21680         Patch by Bruno Haible.
21681
21682 2011-03-19  Bruno Haible  <bruno@clisp.org>
21683
21684         socklen: Update comment.
21685         * m4/socklen.m4: Update comment about platforms.
21686
21687 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21688             Bruno Haible  <bruno@clisp.org>
21689
21690         inet_ntop, inet_pton: Simplify.
21691         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21692         documented to provide socklen_t and we already depend on sys_socket.
21693         * modules/inet_pton (Depends-on): Likewise.
21694         * lib/arpa_inet.in.h: Adjust comment.
21695
21696 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21697             Bruno Haible  <bruno@clisp.org>
21698
21699         netdb: Simplify.
21700         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21701         documented to provide socklen_t and we already depend on sys_socket.
21702         * lib/netdb.in.h: Adjust comment.
21703
21704 2011-03-19  Bruno Haible  <bruno@clisp.org>
21705
21706         sys_socket, netdb: Document problem with socklen_t.
21707         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21708         platforms.
21709         * doc/posix-headers/netdb.texi: Likewise.
21710
21711 2011-03-18  Eric Blake  <eblake@redhat.com>
21712
21713         maint.mk: let po check work in VPATH build
21714         * top/maint.mk (po_file): Allow cfg.mk override.
21715         (sc_po_check): Allow VPATH use.
21716         Reported by Jiri Denemark.
21717
21718 2011-03-16  Jim Meyering  <meyering@redhat.com>
21719
21720         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21721         Before, you would have had to create one .x-sc_ file per rule in order
21722         to exempt offending files.  Now, you may instead use a Make variable --
21723         usually defined in cfg.mk -- whose name identifies the affected rule.
21724         * top/maint.mk (_sc_excl): Define.
21725         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21726         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21727
21728 2011-03-13  Bruno Haible  <bruno@clisp.org>
21729
21730         ignore-value tests: Avoid warnings.
21731         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21732         empty for gcc < 3.4.
21733
21734 2011-03-13  Bruno Haible  <bruno@clisp.org>
21735
21736         passfd: Fix link error on Solaris.
21737         * modules/passfd (Description): Correct.
21738         (Depends-on): Add socketlib.
21739         (Link): New section.
21740         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21741
21742 2011-03-13  Bruno Haible  <bruno@clisp.org>
21743
21744         passfd: Fix link error on AIX 5.2.
21745         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21746
21747 2011-03-13  Bruno Haible  <bruno@clisp.org>
21748
21749         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21750         * lib/sys_socket.in.h: Include <stddef.h>.
21751         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21752         CMSG_FIRSTHDR. Remove unused variable.
21753
21754 2011-03-13  Bruno Haible  <bruno@clisp.org>
21755
21756         passfd: Fix compilation error on OpenBSD.
21757         * lib/passfd.c: Include <sys/uio.h>.
21758
21759 2011-03-13  Bruno Haible  <bruno@clisp.org>
21760
21761         passfd test: Fix warnings.
21762         * tests/test-passfd.c: Include <sys/wait.h>.
21763         (main): Fix typo.
21764
21765 2011-03-13  Bruno Haible  <bruno@clisp.org>
21766
21767         passfd module, part 4, tweaks.
21768         * tests/test-passfd.c: Reorder includes.
21769         (main): Fix perror and printf calls.
21770
21771 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21772
21773         passfd module, part 4.
21774         * modules/passfd-tests: New file.
21775         * tests/test-passfd.c: New file.
21776
21777 2011-03-13  Jim Meyering  <meyering@redhat.com>
21778
21779         Makefile: rely on GNU make; derive syntax-check rule names
21780         Rather than requiring that each sc_ rule be listed as a dependent
21781         of "check", use features of GNU make to derive the list.
21782         * Makefile (syntax-check-rules): Define.
21783         (check): Depend on the new variable, not the hard-coded list.
21784
21785 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21786             Bruno Haible  <bruno@clisp.org>
21787
21788         passfd module, part 3.
21789         * lib/passfd.h (recvfd): Add a flags argument.
21790         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21791         (recvfd): Add a flags argument.
21792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21793         exists.
21794         * modules/passfd (Depends-on): Add cloexec.
21795         Suggested by Eric Blake.
21796
21797 2011-03-13  Bruno Haible  <bruno@clisp.org>
21798
21799         passfd module, part 2, tweaks.
21800         * modules/passfd (Files): Reorder.
21801         (Depends-on): Remove errno.
21802         (Include): Remove <sys/socket.h>, <sys/un.h>.
21803         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21804         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21805         specification header. Include <sys/socket.h> always. Don't include
21806         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21807         (sendfd): Clarify that it sets errno when it fails.
21808         (recvfd): Fix specification.
21809
21810 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21811
21812         passfd module, part 2.
21813         * modules/passfd: New file.
21814         * lib/passfd.h: New file.
21815         * lib/passfd.c: New file.
21816
21817 2011-03-12  Bruno Haible  <bruno@clisp.org>
21818
21819         wcswidth, mbswidth: Avoid integer overflow.
21820         * lib/wcswidth.c: Include <limits.h>.
21821         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21822         * lib/mbswidth.c: Include <limits.h>.
21823         (mbsnwidth): Avoid 'int' overflow.
21824         Reported by Jim Meyering.
21825
21826 2011-03-12  Bruno Haible  <bruno@clisp.org>
21827
21828         futimens, utimensat: Avoid endless recursion on Solaris 10.
21829         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21830         Solaris.
21831         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21832         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21833
21834 2011-03-11  Jim Meyering  <meyering@redhat.com>
21835
21836         maint.mk: relax a regexp to accommodate other formatting styles
21837         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21838         between "ngettext" and the following "(".
21839
21840 2011-03-11  Pádraig Brady <P@draigBrady.com>
21841
21842         maint.mk: suppress a false positive warning
21843         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21844         diagnostics are marked with ngettext.
21845
21846 2011-03-10  Eric Blake  <eblake@redhat.com>
21847
21848         wchar: add explicit dependencies, for Tru64
21849         * modules/mbmemcasecoll (Depends-on): Add wchar.
21850         * modules/mbtowc (Depends-on): Likewise.
21851         * modules/vasnprintf (Depends-on): Likewise.
21852         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21853         * modules/wctomb (Depends-on): Likewise.
21854         Reported by Peter O'Gorman.
21855
21856 2011-03-08  Bruno Haible  <bruno@clisp.org>
21857
21858         passfd module, part 1, tweaks.
21859         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21860         Improve indentation. Improve AC_MSG_CHECKING messages.
21861         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21862         gl_SOCKET_FAMILIES.
21863
21864 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21865
21866         passfd module, part 1.
21867         * m4/afunix.m4: New file.
21868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21869         sockets.
21870
21871 2011-03-08  Bruno Haible  <bruno@clisp.org>
21872
21873         regex-quote: New API.
21874         * lib/regex-quote.h: Include <stdbool.h>.
21875         (struct regex_quote_spec): New type.
21876         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21877         New declarations.
21878         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21879         'const struct regex_quote_spec *' argument.
21880         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21881         (pcre_special): New constant.
21882         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21883         New functions.
21884         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21885         'const struct regex_quote_spec *' argument.
21886         * modules/regex-quote (Depends-on): Add stdbool.
21887         * tests/test-regex-quote.c (check): Update for new API. Add test for
21888         anchored results.
21889         * NEWS: Mention the API change.
21890         Reported by Reuben Thomas and Eric Blake.
21891
21892 2011-03-06  Bruno Haible  <bruno@clisp.org>
21893
21894         regex-quote: Fix creation of POSIX extended regular expressions.
21895         * lib/regex-quote.c (ere_special): Add grouping and alternation
21896         operators.
21897
21898 2011-03-05  Bruno Haible  <bruno@clisp.org>
21899
21900         doc: Improve doc regarding autopoint vs. gnulib.
21901         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21902         disable autopoint while running autoreconf.
21903         Suggested by Ralf Wildenhues.
21904
21905 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21906
21907         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21908         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21909
21910 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21911
21912         parse-duration: remove xalloc.h dependency
21913         * lib/parse-duration.c (parse_period): handle NULL return from
21914         strdup instead of calling xstrdup().
21915         * modules/parse-duration: remove "xalloc" dependency
21916
21917 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21918
21919         bootstrap: honor m4_base when running aclocal
21920         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21921
21922 2011-03-02  Jim Meyering  <meyering@redhat.com>
21923
21924         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21925         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21926         on request from Matt Booth.
21927
21928 2011-03-01  Eric Blake  <eblake@redhat.com>
21929
21930         test-link: work on Hurd
21931         * tests/test-link.h (test_link): Hurd rejects linking directories
21932         with EISDIR instead of the POSIX-mandated EPERM.
21933
21934 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21935
21936         stdio: simplify by moving files to printf-posix, sigpipe
21937         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21938         since this symbol is needed only if printf is replaced.
21939         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21940         Require gl_ASM_SYMBOL_PREFIX.
21941         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21942         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21943         (Depends-on): Add 'raise'.
21944         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21945         * modules/stdio (Files): Remove lib/stdio-write.c,
21946         m4/asm-underscore.m4.
21947         (Depends-on): Remove 'raise'.
21948
21949         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21950         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21951         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21952         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21953
21954 2011-02-28  Bruno Haible  <bruno@clisp.org>
21955
21956         localcharset: Assume ANSI C behaviour of free().
21957         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21958         calling free().
21959         Suggested by Simon Josefsson <simon@josefsson.org>.
21960
21961 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21962             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21963             Bruno Haible  <bruno@clisp.org>  (tiny change)
21964
21965         On Cygwin, use /proc file system instead of win32 API.
21966         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21967         Win32 file names.
21968         (DllMain): Simplify by removing Cygwin specific code.
21969         (find_shared_library_fullname): Use Linux specific implementation also
21970         for Cygwin.
21971         (get_shared_library_fullname): Update accordingly.
21972         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21973         Win32 file names.
21974         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21975         Cygwin specific code.
21976
21977 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21978             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21979
21980         Fix OpenMP flag detection for various Fortran compilers.
21981         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21982         OpenMP-conditional compilation construct, to force compile
21983         failure with missing OpenMP flag.
21984         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21985
21986 2011-02-25  Eric Blake  <eblake@redhat.com>
21987
21988         strstr: expand test coverage
21989         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21990         compilation.
21991         * tests/test-memmem.c (main): Duplicate tests.
21992         * tests/test-strcasestr.c (main): Likewise.
21993         * tests/test-c-strcasestr.c (main): Likewise.
21994
21995 2011-02-25  Jim Meyering  <meyering@redhat.com>
21996
21997         maint.mk: detect missing-NL-at-EOF, too
21998         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21999         it also detects when a file lacks a newline at EOF.
22000         (require_exactly_one_NL_at_EOF_): Renamed from
22001         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22002         since people may well have .x-sc_... file names tied to the
22003         existing name.  Suggested by Eric Blake.
22004
22005 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22006
22007         dirname: move m4/dos.m4 functionality into lib/dosname.h
22008
22009         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22010         extracts symbols from it, puts them into config.h; but it's much
22011         easier to use the symbols directly.  filename.h already does this,
22012         but it disagrees with dos.m4 in some respects.  This patch
22013         introduces a different include file dosname.h that packages up
22014         dos.m4, and then later we can work on merging filename.h and
22015         dosname.h.  Applications that need only the easy-to-configure
22016         symbols should consider including dosname.h rather than dirname.h.
22017         * NEWS: Mention incompatible changes.
22018         * m4/dos.m4: Remove.
22019         * lib/dosname.h, modules/dosname: New files.
22020         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22021         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22022         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22023         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22024         Include dosname.h, not dirname.h.
22025         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22026         Include dosname.h, for definitions of symbols like ISSLASH
22027         that used to be in config.h.
22028         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22029         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22030         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22031         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22032         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22033         * modules/rmdir (Files): Likewise.
22034         * modules/stat (Files): Likewise.
22035         * modules/unlink (Files): Likewise.
22036         * modules/dirname-lgpl (Depends-on): Add dosname.
22037         * modules/lstat (Depends-on): Likewise.
22038         * modules/openat (Depends-on): Likewise.
22039         * modules/rmdir (Depends-on): Likewise.
22040         * modules/savewd (Depends-on): Likewise.
22041         * modules/stat (Depends-on): Likewise.
22042         * modules/unlink (Depends-on): Likewise.
22043         * modules/openat (Depends-on): Remove dirname-lgpl.
22044         * modules/savewd (Depends-on): Likewise.
22045         * tests/test-dirname.c: Do not use removed symbols like
22046         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22047         the remaining symbols, e.g., ISSLASH ('\\').
22048
22049 2011-02-25  Eric Blake  <eblake@redhat.com>
22050
22051         strstr: revert patches that introduced bug and pessimization
22052         * lib/str-two-way.h: Add another reference.
22053         (two_way_short_needle, two_way_long_needle): Revert changes from
22054         2011-02-24; they pessimize search speed.
22055         (critical_factorization): Partially revert changes from
22056         2010-06-22; they violate the requirement that the left half of the
22057         needle be smaller than the period of the needle.
22058
22059 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22060
22061         filenamecat: remove unnecessary dependency on dirname-lgpl
22062         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22063         is no direct dependency, just an indirect one via filenamecat-lgpl.
22064
22065         remove: remove unnecessary use of m4/dos.m4
22066         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22067         * modules/remove (FILES): Remove m4/dos.m4.
22068
22069         * lib/openat-proc.c: Don't include dirname.h; not needed.
22070
22071         backupfile: remove unnecessary use of m4/dos.m4
22072         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22073         of its symbols are used by the backupfile code.  backupfile.c does
22074         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22075         for the rare case of programs that want all their backup file
22076         names to live within 8+3 limits, and dos.m4 doesn't address that.
22077         * modules/backupfile (Files): Remove m4/dos.m4.
22078
22079 2011-02-24  Jim Meyering  <meyering@redhat.com>
22080
22081         strstr: fix a bug whereby strstr would mistakenly return NULL
22082         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22083         in period calculation.
22084         (two_way_long_needle): Likewise.
22085         The original problem was reported by Mike Stump in
22086         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22087         Ralf Wildenhues provided the short needle and haystack.
22088         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22089         Add a more involved test to trigger the bug in two_way_long_needle.
22090
22091 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22092
22093         gnulib-tool: remove use of bold display in help screen
22094         * gnulib-tool (func_usage): Do not use bold display anymore in the
22095         help screen.  That was just meant to be a temporary emphasis for a
22096         backward-incompatible change.
22097
22098 2011-02-23  Bruno Haible  <bruno@clisp.org>
22099
22100         Fix misindentation of preprocessor directives.
22101         * lib/argp-namefrob.h: Reindent preprocessor directives.
22102         * lib/getopt_int.h (struct _getopt_data): Likewise.
22103         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22104         * lib/vasnprintf.c (decode_long_double): Likewise.
22105         * tests/test-argmatch.c: Insert blank lines, for clarity.
22106         * tests/test-exclude.c: Likewise.
22107
22108 2011-02-22  Bruno Haible  <bruno@clisp.org>
22109
22110         ioctl: Fix for MacOS X in 64-bit mode.
22111         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22112         value.
22113         Suggested by Eric Blake.
22114         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22115
22116 2011-02-22  Jim Meyering  <meyering@redhat.com>
22117
22118         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22119         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22120         in lib/.
22121
22122 2011-02-22  Eric Blake  <eblake@redhat.com>
22123
22124         maint: avoid any CDPATH issue
22125         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22126
22127         maint: adjust cpp indentation for my modules, as well
22128         * Makefile (sc_cpp_indent_check): Add my name.
22129         * lib/fbufmode.c: Filter through cppi.
22130         * lib/fpurge.c: Likewise.
22131         * lib/freadable.c: Likewise.
22132         * lib/freading.c: Likewise.
22133         * lib/fwritable.c: Likewise.
22134         * lib/fwriting.c: Likewise.
22135         * lib/sigaction.c: Likewise.
22136
22137 2011-02-22  Jim Meyering  <meyering@redhat.com>
22138
22139         maint: adjust cpp indentation to reflect nesting depth
22140         I.e., in a block of code that begins with an unnested "#if",
22141         put one space between the "#" in column 1 and following token.
22142         For example,
22143         -#include <sys/vfs.h>
22144         +# include <sys/vfs.h>
22145         Do this only in .c files that are part of a module I maintain.
22146         * lib/linkat.c: Filter through cppi.
22147         * lib/nanosleep.c: Likewise.
22148         * lib/openat.c: Likewise.
22149         * lib/openat-die.c: Likewise.
22150         * lib/dup3.c: Likewise.
22151         * lib/fchownat.c: Likewise.
22152         * lib/flock.c: Likewise.
22153         * lib/fsync.c: Likewise.
22154         * lib/fts.c: Likewise.
22155         * lib/getpass.c: Likewise.
22156         * lib/gettimeofday.c: Likewise.
22157         * lib/userspec.c: Likewise.
22158         * Makefile (sc_cpp_indent_check): New rule, to check this.
22159
22160 2011-02-22  Bruno Haible  <bruno@clisp.org>
22161
22162         New module 'wctomb'.
22163         * lib/stdlib.in.h (wctomb): New declaration.
22164         * lib/wctomb.c: New file.
22165         * lib/wctomb-impl.h: New file.
22166         * m4/wctomb.m4: New file.
22167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22168         REPLACE_WCTOMB.
22169         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22170         REPLACE_WCTOMB.
22171         * modules/wctomb: New file.
22172         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22173         * doc/posix-functions/wctomb.texi: Mention the new module.
22174         * modules/wctob (Depends-on): Add wctomb.
22175
22176 2011-02-22  Bruno Haible  <bruno@clisp.org>
22177
22178         New module 'mbtowc'.
22179         * lib/stdlib.in.h (mbtowc): New declaration.
22180         * lib/mbtowc.c: New file.
22181         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22182         * m4/mbtowc.m4: New file.
22183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22184         REPLACE_MBTOWC.
22185         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22186         REPLACE_MBTOWC.
22187         * modules/mbtowc: New file.
22188         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22189         * doc/posix-functions/mbtowc.texi: Mention the new module.
22190         * modules/btowc (Depends-on): Add mbtowc.
22191
22192 2011-02-22  Bruno Haible  <bruno@clisp.org>
22193
22194         wcrtomb: Add more tests for native Windows platforms.
22195         * tests/test-wcrtomb-w32-1.sh: New file.
22196         * tests/test-wcrtomb-w32-2.sh: New file.
22197         * tests/test-wcrtomb-w32-3.sh: New file.
22198         * tests/test-wcrtomb-w32-4.sh: New file.
22199         * tests/test-wcrtomb-w32-5.sh: New file.
22200         * tests/test-wcrtomb-w32.c: New file.
22201         * modules/wcrtomb-tests (Files): Add them.
22202         (Makefile.am): Arrange to run these tests.
22203         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22204         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22205
22206 2011-02-20  Bruno Haible  <bruno@clisp.org>
22207
22208         wcrtomb: Enhance test.
22209         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22210
22211 2011-02-20  Bruno Haible  <bruno@clisp.org>
22212
22213         mbrtowc: Tiny optimization.
22214         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22215
22216 2011-02-20  Jim Meyering  <meyering@redhat.com>
22217
22218         test-exclude.c: remove unmatched #endif
22219         * tests/test-exclude.c: Remove stray #endif, left over from
22220         the change of a week ago.
22221
22222 2011-02-19  Jim Meyering  <meyering@redhat.com>
22223
22224         git-version-gen: skip "-dirty" check when appropriate
22225         * build-aux/git-version-gen: Don't run any git commands when the
22226         version string comes from .tarball-version.  Prior to this, we
22227         would run git update-index --refresh even from a just-unpacked
22228         tarball directory, and that could affect a .git/ directory in a
22229         parent of the build directory.  Reported by Mike Frysinger.
22230
22231 2011-02-19  Bruno Haible  <bruno@clisp.org>
22232
22233         unictype/property-byname: Reduce the size of the 'data' segment.
22234         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22235
22236 2011-02-19  Bruno Haible  <bruno@clisp.org>
22237
22238         unictype/scripts: Reduce the size of the 'data' segment.
22239         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22240         '%pic'.
22241         * lib/unictype/scripts_byname.gperf: Regenerated.
22242
22243 2011-02-19  Bruno Haible  <bruno@clisp.org>
22244
22245         stdint: Update documentation.
22246         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22247
22248 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22249
22250         stdint: omit redundant check for wchar.h
22251         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22252         always tests whether wchar.h exists, so remove the now-redundant test.
22253
22254 2011-02-18  Bruno Haible  <bruno@clisp.org>
22255
22256         stdint: Cut dependency to module 'wchar'.
22257         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22258         include the necessary prerequisites.
22259         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22260         * modules/stdint (Depends-on): Remove wchar.
22261         (Makefile.am): Substitute HAVE_WCHAR_H.
22262         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22263
22264 2011-02-18  Eric Blake  <eblake@redhat.com>
22265
22266         longlong: skip, rather than fail, on cross-compilation
22267         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22268         when cross-compiling; regression from 2011-02-16.
22269
22270 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22271
22272         * NEWS: Mention 2011-02-08 change to stdlib.
22273
22274 2011-02-17  Bruno Haible  <bruno@clisp.org>
22275
22276         getloadavg: Add comments about platforms.
22277         * m4/getloadavg.m4: Add comment.
22278         * lib/getloadavg.c: Likewise.
22279
22280 2011-02-17  Bruno Haible  <bruno@clisp.org>
22281
22282         getloadavg: Fix link error on Solaris 2.6.
22283         * modules/getloadavg (Link): New section.
22284         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22285         linking test-getloadavg.
22286         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22287         getloadavg.
22288
22289 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22290
22291         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22292         It was 'int', but this doesn't match the IRIX 6.5 manual.
22293         Suggested by Bruno Haible in
22294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22295
22296 2011-02-17  Bruno Haible  <bruno@clisp.org>
22297
22298         havelib: Fix comments.
22299         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22300         change.
22301
22302 2011-02-17  Bruno Haible  <bruno@clisp.org>
22303
22304         havelib: Update config.rpath.
22305         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22306
22307 2011-02-17  Bruno Haible  <bruno@clisp.org>
22308
22309         getloadavg test: Add some plausibility checks.
22310         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22311         is improbable.
22312
22313 2011-02-16  Eric Blake  <eblake@redhat.com>
22314
22315         maintainer-makefile: make syntax-check a no-op from tarballs
22316         * top/maint.mk (no-vc-detected): New rule.
22317         (local-checks-available): Use it to avoid hanging if someone tries
22318         'make syntax-check' from a tarball.  Also append to any non-syntax
22319         checks already defined in cfg.mk.
22320
22321 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22322
22323         longlong: tune, particularly for common case of c99
22324
22325         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22326         or running anything if c99, or if unsigned long long int does not
22327         work.  In either case, we know the answer without further tests.
22328         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22329         it at most once, and use its results for both long long int and
22330         unsigned long long int.  This is more likely to be efficient in
22331         the common case where the program wants to check for both long
22332         long int and unsigned long long int.
22333         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22334         since the answer is already known.
22335
22336 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22337
22338         getloadavg: set errno
22339         * lib/getloadavg.c: Set errno when returning -1.  If no other
22340         error number looks appropriate, set it to ENOSYS if the getloadavg
22341         looks like it can't possibly ever work, ENOTSUP otherwise.
22342         Suggested by Bruno Haible in
22343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22344
22345         getloadavg: trim unused parts and speed up 'configure'
22346         * NEWS: Document this.
22347         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22348         always compiled if getloadavg is absent.
22349         Move test code to ...
22350         * tests/test-getloadavg.c: New file, containing previous
22351         contents of test from lib/getloadavg.c.  It also contains
22352         suggestions by Bruno Haible in
22353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22354         * modules/getloadavg-tests: New file.
22355         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22356         Do tests in the same order as they're needed for getloadavg.c.
22357         Omit setgid-related tests that generate symbols KMEM_GROUP,
22358         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22359         Do only the tests that are needed to see whether the system has
22360         getloadavg, moving the other tests into ...
22361         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22362         NLIST_NAME_UNION; nobody should be using it.  Do not define
22363         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22364         relevant, as the user of this module shouldn't care how getloadavg
22365         is implemented.
22366
22367         getloadavg: omit unused var
22368         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22369
22370 2011-02-15  Jim Meyering  <meyering@redhat.com>
22371
22372         doc: update users.txt
22373         * users.txt: Update iwhd's URL.
22374
22375 2011-02-13  Bruno Haible  <bruno@clisp.org>
22376
22377         Consistent macro naming for macros that use GCC __attribute__.
22378         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22379         _ATTRIBUTE_NONNULL_.
22380         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22381         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22382         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22383         ATTRIBUTE_DEPRECATED.
22384         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22385         ATTRIBUTE_NORETURN.
22386         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22387         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22388         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22389         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22390         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22391         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22392         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22393         ATTRIBUTE_SENTINEL.
22394         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22395         ATTRIBUTE_RETURN_CHECK.
22396         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22397         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22398         ATTRIBUTE_NORETURN.
22399         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22400         Reported by Paul Eggert.
22401
22402 2011-02-13  Bruno Haible  <bruno@clisp.org>
22403
22404         Don't interfere with a program's definition of __attribute__.
22405         * lib/argp.h (__attribute__): Remove definition.
22406         (_GL_ATTRIBUTE_FORMAT): New macro.
22407         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22408         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22409         (_GL_ATTRIBUTE_FORMAT): New macro.
22410         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22411         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22412         GCC 3 or newer.
22413         * lib/error.h (__attribute__): Remove definition.
22414         (_GL_ATTRIBUTE_FORMAT): New macro.
22415         (error, error_at_line): Use it.
22416         * lib/hash.h (__attribute__): Remove definition.
22417         (ATTRIBUTE_WUR): Update definition. Define always.
22418         * lib/openat.h (__attribute__): Remove definition.
22419         (ATTRIBUTE_NORETURN): Update definition. Define always.
22420         * lib/sigpipe-die.h (__attribute__): Remove definition.
22421         (ATTRIBUTE_NORETURN): Update definition. Define always.
22422         * lib/vasnprintf.h (__attribute__): Remove definition.
22423         (_GL_ATTRIBUTE_FORMAT): New macro.
22424         (asnprintf, vasnprintf): Use it.
22425         * lib/xalloc.h (__attribute__): Remove definition.
22426         (ATTRIBUTE_NORETURN): Update definition. Define always.
22427         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22428         * lib/xmemdup0.h (__attribute__): Remove definition.
22429         (ATTRIBUTE_NORETURN): Update definition. Define always.
22430         * lib/xprintf.h (__attribute__): Remove definition.
22431         (_GL_ATTRIBUTE_FORMAT): New macro.
22432         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22433         * lib/xstrtol.h (__attribute__): Remove definition.
22434         (ATTRIBUTE_NORETURN): Update definition. Define always.
22435         * lib/xvasprintf.h (__attribute__): Remove definition.
22436         (_GL_ATTRIBUTE_FORMAT): New macro.
22437         (xasprintf, xvasprintf): Use it.
22438         * tests/test-argmatch.c (__attribute__): Remove definition.
22439         (ATTRIBUTE_NORETURN): Update definition. Define always.
22440         * tests/test-exclude.c (__attribute__): Remove definition.
22441         (ATTRIBUTE_NORETURN): Update definition. Define always.
22442         Reported by Paul Eggert.
22443
22444 2011-02-13  Bruno Haible  <bruno@clisp.org>
22445
22446         mbrtowc: Add more tests for native Windows platforms.
22447         * tests/test-mbrtowc-w32-1.sh: New file.
22448         * tests/test-mbrtowc-w32-2.sh: New file.
22449         * tests/test-mbrtowc-w32-3.sh: New file.
22450         * tests/test-mbrtowc-w32-4.sh: New file.
22451         * tests/test-mbrtowc-w32-5.sh: New file.
22452         * tests/test-mbrtowc-w32.c: New file.
22453         * modules/mbrtowc-tests (Files): Add them.
22454         (Makefile.am): Arrange to run these tests.
22455         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22456         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22457
22458 2011-02-13  Bruno Haible  <bruno@clisp.org>
22459
22460         mbrtowc: Work around native Windows bug.
22461         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22462         guess when no suitable locale for testing was found.
22463         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22464
22465 2011-02-13  Bruno Haible  <bruno@clisp.org>
22466
22467         mbsinit: Work around mingw bug.
22468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22469         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22470         Windows.
22471         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22472
22473 2011-02-13  Bruno Haible  <bruno@clisp.org>
22474
22475         mbsinit: Don't crash for a NULL argument.
22476         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22477         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22478
22479 2011-02-13  Bruno Haible  <bruno@clisp.org>
22480
22481         Don't interfere with a program's definition of __attribute__.
22482         * lib/stdio.in.h (__attribute__): Remove definition.
22483         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22484         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22485         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22486         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22487         * lib/string.in.h (__attribute__): Remove definition.
22488         Reported by Paul Eggert.
22489
22490 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22491
22492         stdlib: don't get in the way of non-GCC __attribute__
22493         See thread starting at
22494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22495         Revert previous stdlib change, installing the following instead:
22496         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22497         to get in the way of a non-GCC compiler that supports __attribute__.
22498         (_GL_ATTRIBUTE_RETURN): New macro.
22499         (_Exit): Use it instead of __attribute__.
22500
22501 2011-02-12  Bruno Haible  <bruno@clisp.org>
22502
22503         quotearg test: Avoid test failure on mingw.
22504         * tests/test-quotearg.sh: Convert the locale identifier from native
22505         Windows syntax to Unix syntax.
22506
22507 2011-02-12  Bruno Haible  <bruno@clisp.org>
22508
22509         setlocale: Prefer gnulib's override over libintl's override.
22510         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22511         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22512         GNULIB_defined_setlocale is set.
22513
22514 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22515
22516         stdlib: support non-GCC __attribute__
22517
22518         Fix a serious and tricky problem encountered when attempting to
22519         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22520         5.5, but it crashed due to memory corruption on Solaris 10 with
22521         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22522         bits that are otherwise zero.  This tagging is optional inside
22523         Emacs but is preferred and is used when __attribute__ ((__aligned
22524         (8))) works, as it does with both recent-enough GCC and with Sun C
22525         5.11.  However, Sun C 5.11 is not GCC and does not #define
22526         __GNUC__ and __GNUC_MINOR__.
22527
22528         When I added the getloadavg module to Emacs, it brought in
22529         stdlib.in.h, which contained this fragment:
22530
22531            #ifndef __attribute__
22532            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22533            #  define __attribute__(Spec)   /* empty */
22534            # endif
22535            #endif
22536
22537         When files that include <stdlib.h> were compiled with Sun C 5.11,
22538         the above code disabled __attribute__ ((__aligned (8))), which
22539         caused variables to not be properly aligned, which eventually led
22540         to the pointer corruption mentioned above.  (This was a bit hard
22541         to diagnose, unfortunately.)
22542
22543         Several "#define __attribute__(X) /* empty */" code snippets need
22544         to be eradicated from Gnulib to work with non-GCC compilers that
22545         support __attribute__.  The Autoconf way to do this is to test for
22546         each kind of attribute that we want support for, and selectively
22547         enable that in source code.
22548
22549         Fix this problem just for stdlib.h, by adding a test for the
22550         __noreturn__ attribute, and change stdlib.in.h to use that test
22551         when needed.  This technique can be easily generalized to the
22552         other *.in.h files and attributes, and a similar technique can be
22553         used for *.h and *.c files.  This patch is enough to solve the
22554         problem for Emacs + getloadavg, and I thought I'd publish it for
22555         feedback before undertaking further, similar fixes in other
22556         modules.
22557
22558         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22559         because it's not needed for stdlib.h.  It merely substitutes the
22560         value directly into stdlib.h.  We may well need to #define it, or
22561         similar symbols, for other modules, but it's nice to also have an
22562         option to not #define it for applications like Emacs that do not
22563         need it.
22564
22565         * lib/stdlib.in.h (__attribute__): Do not #define.
22566         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22567         be defined only if the _Exit module is also used.
22568         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22570         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22571         platforms.
22572         * modules/_Exit (Files): Add m4/attribute.m4.
22573         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22574         * m4/attribute.m4: New file.
22575
22576 2011-02-12  Bruno Haible  <bruno@clisp.org>
22577
22578         wcsrtombs: Work around bug on native Windows.
22579         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22580         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22581         instead of len.
22582         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22583
22584 2011-02-12  Bruno Haible  <bruno@clisp.org>
22585
22586         mbsrtowcs: Work around bug on native Windows.
22587         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22588         against mingw bug.
22589         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22590
22591 2011-02-12  Bruno Haible  <bruno@clisp.org>
22592
22593         Avoid setlocale bugs in tests.
22594         * modules/btowc (Dependencies): Add setlocale.
22595         * modules/c-strcase (Dependencies): Likewise.
22596         * modules/mbmemcasecmp (Dependencies): Likewise.
22597         * modules/mbmemcasecoll (Dependencies): Likewise.
22598         * modules/mbrtowc (Dependencies): Likewise.
22599         * modules/mbscasecmp (Dependencies): Likewise.
22600         * modules/mbscasestr (Dependencies): Likewise.
22601         * modules/mbschr (Dependencies): Likewise.
22602         * modules/mbscspn (Dependencies): Likewise.
22603         * modules/mbsinit (Dependencies): Likewise.
22604         * modules/mbsncasecmp (Dependencies): Likewise.
22605         * modules/mbsnrtowcs (Dependencies): Likewise.
22606         * modules/mbspbrk (Dependencies): Likewise.
22607         * modules/mbspcasecmp (Dependencies): Likewise.
22608         * modules/mbsrchr (Dependencies): Likewise.
22609         * modules/mbsrtowcs (Dependencies): Likewise.
22610         * modules/mbsspn (Dependencies): Likewise.
22611         * modules/mbsstr (Dependencies): Likewise.
22612         * modules/nl_langinfo (Dependencies): Likewise.
22613         * modules/quotearg (Dependencies): Likewise.
22614         * modules/unicase/locale-language (Dependencies): Likewise.
22615         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22616         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22617         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22618         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22619         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22620         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22621         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22622         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22623         * modules/vasnprintf-posix (Dependencies): Likewise.
22624         * modules/wcrtomb (Dependencies): Likewise.
22625         * modules/wcsnrtombs (Dependencies): Likewise.
22626         * modules/wcsrtombs (Dependencies): Likewise.
22627
22628 2011-02-12  Bruno Haible  <bruno@clisp.org>
22629
22630         setlocale: Workaround native Windows bug.
22631         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22632         succeeds but sets LC_CTYPE to "C", report a failure.
22633         * tests/test-setlocale2.sh: New file.
22634         * tests/test-setlocale2.c: New file.
22635         * modules/setlocale-tests (Files): Add the new files.
22636         (Makefile.am): Enable test-setlocale2.sh test.
22637         * doc/posix-functions/setlocale.texi: Mention workaround.
22638
22639 2011-02-11  Bruno Haible  <bruno@clisp.org>
22640
22641         Tests for module 'setlocale'.
22642         * modules/setlocale-tests: New file.
22643         * tests/test-setlocale1.sh: New file.
22644         * tests/test-setlocale1.c: New file.
22645
22646         New module 'setlocale'.
22647         * lib/locale.in.h (setlocale): New declaration.
22648         * lib/setlocale.c: New file, based on
22649         gettext/gettext-runtime/intl/setlocale.c.
22650         * m4/setlocale.m4: New file.
22651         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22652         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22653         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22654         REPLACE_SETLOCALE.
22655         * modules/setlocale: New file.
22656         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22657         * doc/posix-functions/setlocale.texi: Mention the new module.
22658
22659 2011-02-11  Bruno Haible  <bruno@clisp.org>
22660
22661         Prepare for locale dependent tests on mingw.
22662         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22663         because it has the wrong locale encoding.
22664         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22665         French_France.1252 instead of "fr".
22666         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22667         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22668         because it has the wrong locale encoding.
22669         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22670         native Windows, try Turkish_Turkey.65001.
22671         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22672         Chinese_China.54936.
22673
22674         Prepare for locale dependent tests on mingw.
22675         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22676         differently.
22677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22678         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22679         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22680         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22681
22682 2011-02-11  Eric Blake  <eblake@redhat.com>
22683
22684         strptime: avoid compiler warnings
22685         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22686         compiler warnings about dead code.
22687         Reported by Daniel P. Berrange.
22688
22689 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22690
22691         doc: update users.txt
22692         * users.txt: Add rcs.
22693
22694 2011-02-10  John W. Eaton  <jwe@gnu.org>
22695
22696         doc: update users.txt
22697         * users.txt: Add octave.
22698
22699 2011-02-10  Jim Meyering  <meyering@redhat.com>
22700
22701         doc: update users.txt
22702         * users.txt: Add iwhd.
22703
22704 2011-02-09  Bruno Haible  <bruno@clisp.org>
22705
22706         gnulib-tool: Make copyright notice adjustment more robust.
22707         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22708         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22709         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22710         License".
22711         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22712
22713 2011-02-06  Bruno Haible  <bruno@clisp.org>
22714
22715         New module 'towctrans'.
22716         * modules/towctrans: New file.
22717         * lib/wctype.in.h (towctrans): New declaration.
22718         * lib/towctrans.c: New file.
22719         * lib/towctrans-impl.h: New file.
22720         * m4/towctrans.m4: New file.
22721         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22722         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22723         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22724         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22725         * doc/posix-functions/towctrans.texi: Mention the new module.
22726
22727 2011-02-06  Bruno Haible  <bruno@clisp.org>
22728
22729         New module 'wctrans'.
22730         * modules/wctrans: New file.
22731         * lib/wctype.in.h (wctrans): New declaration.
22732         * lib/wctrans.c: New file.
22733         * lib/wctrans-impl.h: New file.
22734         * m4/wctrans.m4: New file.
22735         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22736         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22737         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22738         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22739         * doc/posix-functions/wctrans.texi: Mention the new module.
22740
22741 2011-02-06  Bruno Haible  <bruno@clisp.org>
22742
22743         New module 'iswctype'.
22744         * modules/iswctype: New file.
22745         * lib/wctype.in.h (iswctype): New declaration.
22746         * lib/iswctype.c: New file.
22747         * lib/iswctype-impl.h: New file.
22748         * m4/iswctype.m4: New file.
22749         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22750         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22751         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22752         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22753         * doc/posix-functions/iswctype.texi: Mention the new module and the
22754         HP-UX 11.00 problem.
22755
22756 2011-02-06  Bruno Haible  <bruno@clisp.org>
22757
22758         New module 'wctype'.
22759         * modules/wctype: Change to represent the wctype() substitute.
22760         * lib/wctype.in.h (wctype): New declaration.
22761         * lib/wctype.c: New file.
22762         * lib/wctype-impl.h: New file.
22763         * m4/wctype.m4: New file.
22764         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22765         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22766         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22767         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22768         * doc/posix-functions/wctype.texi: Mention the new module and the
22769         HP-UX 11.00 problem.
22770
22771 2011-02-06  Bruno Haible  <bruno@clisp.org>
22772
22773         wctype-h: Ensure wctype_t and wctrans_t are defined.
22774         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22775         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22776         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22777         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22778         HAVE_WCTRANS_T.
22779         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22780
22781 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22782
22783         flock: fix license typo
22784
22785         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22786         omitted.
22787
22788 2011-02-08  Bruno Haible  <bruno@clisp.org>
22789
22790         Split large sed scripts, for HP-UX sed.
22791         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22792         to avoid HP-UX limit of 99 commands, in the near future.
22793         * modules/stdlib (Makefile.am): Likewise.
22794         * modules/unistd (Makefile.am): Likewise.
22795         * modules/wchar (Makefile.am): Likewise.
22796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22797         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22799
22800 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22801             Bruno Haible  <bruno@clisp.org>
22802
22803         stdlib: improve random_r modularization
22804         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22805         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22806         you also need the random_r module to get this material right.
22807         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22808         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22809         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22810
22811 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22812
22813         stdlib: don't depend on stdint
22814         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22815         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22816         be independent of whether stdint.h is needed.
22817         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22818         here, instead of ...
22819         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22820         struct random_data should be using the random_r module, not just
22821         the stdlib module (which wouldn't make sense: what package needs
22822         just struct random_data without also needing random_r?).
22823         * modules/stdlib (Depends-on): Remove stdint.
22824
22825         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22826         See the thread rooted at
22827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22828         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22829         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22830         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22831         __VMS)); previously it was always included (via fcntl--.h).
22832         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22833         hand; this is good enough for load averages.  Also, do not use
22834         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22835         flags directly if available and don't bother otherwise.  (Packages
22836         that need the extra reliability should use the modules that define
22837         these flags on older platforms that lack them.)
22838         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22839         fcntl-safer.
22840
22841 2011-02-08  Jim Meyering  <meyering@redhat.com>
22842
22843         di-set.h, ino-map.h: add multiple-inclusion guard
22844         Technically, the guard is required only for ino-map.h, due to its
22845         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22846         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22847         * lib/ino-map.h: Likewise.
22848
22849 2011-02-06  Bruno Haible  <bruno@clisp.org>
22850
22851         iswblank: Ensure declaration on glibc systems.
22852         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22853         * modules/iswblank (Dependencies): Add 'extensions'.
22854         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22855
22856 2011-02-06  Bruno Haible  <bruno@clisp.org>
22857
22858         New module 'iswblank'.
22859         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22860         * modules/iswblank: New file.
22861         * modules/wctype-h (Files): Remove lib/iswblank.c.
22862         (Makefile.am): Substitute GNULIB_ISWBLANK.
22863         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22864         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22865         (gl_WCTYPE_H_DEFAULTS): New macro.
22866         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22867         * modules/iswblank-tests: New file.
22868         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22869         * tests/test-wctype-h.c (main): Remove iswblank tests.
22870         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22871         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22872         of 'wctype-h'.
22873         * NEWS: Mention the change.
22874         * modules/mbchar (Depends-on): Add iswblank.
22875
22876 2011-02-08  Bruno Haible  <bruno@clisp.org>
22877
22878         di-set tests: Refactor.
22879         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22880         unnecessary includes.
22881         (ASSERT): Remove macro.
22882         (main): Make C90 compliant by avoiding variable declaration after
22883         statement.
22884         * modules/di-set-tests (Files): Add tests/macros.h.
22885
22886 2011-02-08  Bruno Haible  <bruno@clisp.org>
22887
22888         ino-map tests: Refactor.
22889         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22890         unnecessary includes.
22891         (ASSERT): Remove macro.
22892         (main): Make C90 compliant by avoiding variable declaration after
22893         statement.
22894         * modules/ino-map-tests (Files): Add tests/macros.h.
22895
22896 2011-02-08  Jim Meyering  <meyering@redhat.com>
22897
22898         di-set: add "const" to a cast
22899         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22900         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22901
22902 2011-02-06  Bruno Haible  <bruno@clisp.org>
22903
22904         Rename module 'wctype' to 'wctype-h'.
22905         * modules/wctype-h: Renamed from modules/wctype.
22906         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22907         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22908         (Files, Depends-on, Makefile.am): Update.
22909         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22910         (Files, Makefile.am): Update.
22911         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22912         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22913         * doc/posix-headers/wctype.texi: Update.
22914         * doc/posix-functions/iswalnum.texi: Update.
22915         * doc/posix-functions/iswalpha.texi: Update.
22916         * doc/posix-functions/iswblank.texi: Update.
22917         * doc/posix-functions/iswcntrl.texi: Update.
22918         * doc/posix-functions/iswdigit.texi: Update.
22919         * doc/posix-functions/iswgraph.texi: Update.
22920         * doc/posix-functions/iswlower.texi: Update.
22921         * doc/posix-functions/iswprint.texi: Update.
22922         * doc/posix-functions/iswpunct.texi: Update.
22923         * doc/posix-functions/iswspace.texi: Update.
22924         * doc/posix-functions/iswupper.texi: Update.
22925         * doc/posix-functions/iswxdigit.texi: Update.
22926         * doc/posix-functions/towlower.texi: Update.
22927         * doc/posix-functions/towupper.texi: Update.
22928         * NEWS: Mention the change.
22929         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22930         * modules/mbchar (Dependencies): Likewise.
22931         * modules/mbswidth (Dependencies): Likewise.
22932         * modules/quotearg (Dependencies): Likewise.
22933         * modules/regex (Dependencies): Likewise.
22934         * modules/wcscasecmp (Dependencies): Likewise.
22935         * modules/wcsncasecmp (Dependencies): Likewise.
22936         * modules/wcwidth (Dependencies): Likewise.
22937
22938 2011-02-06  Bruno Haible  <bruno@clisp.org>
22939
22940         New module 'wcswidth'.
22941         * modules/wcswidth: New file.
22942         * lib/wchar.in.h (wcswidth): New declaration.
22943         * lib/wcswidth.c: New file.
22944         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22945         * m4/wcswidth.m4: New file.
22946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22948         REPLACE_WCSWIDTH.
22949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22950         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22951         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22952         * doc/posix-functions/wcswidth.texi: Mention the new module.
22953
22954 2011-02-06  Bruno Haible  <bruno@clisp.org>
22955
22956         New module 'wcstok'.
22957         * modules/wcstok: New file.
22958         * lib/wchar.in.h (wcstok): New declaration.
22959         * lib/wcstok.c: New file.
22960         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22961         * m4/wcstok.m4: New file.
22962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22965         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22966         * doc/posix-functions/wcstok.texi: Mention the new module.
22967
22968 2011-02-06  Bruno Haible  <bruno@clisp.org>
22969
22970         New module 'wcsstr'.
22971         * modules/wcsstr: New file.
22972         * lib/wchar.in.h (wcsstr): New declaration.
22973         * lib/wcsstr.c: New file.
22974         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22975         * m4/wcsstr.m4: New file.
22976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22979         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22980         * doc/posix-functions/wcsstr.texi: Mention the new module.
22981
22982 2011-02-06  Bruno Haible  <bruno@clisp.org>
22983
22984         New module 'wcspbrk'.
22985         * modules/wcspbrk: New file.
22986         * lib/wchar.in.h (wcspbrk): New declaration.
22987         * lib/wcspbrk.c: New file.
22988         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22989         * m4/wcspbrk.m4: New file.
22990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22993         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22994         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22995
22996 2011-02-06  Bruno Haible  <bruno@clisp.org>
22997
22998         New module 'wcsspn'.
22999         * modules/wcsspn: New file.
23000         * lib/wchar.in.h (wcsspn): New declaration.
23001         * lib/wcsspn.c: New file.
23002         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23003         * m4/wcsspn.m4: New file.
23004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23007         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23008         * doc/posix-functions/wcsspn.texi: Mention the new module.
23009
23010 2011-02-06  Bruno Haible  <bruno@clisp.org>
23011
23012         New module 'wcscspn'.
23013         * modules/wcscspn: New file.
23014         * lib/wchar.in.h (wcscspn): New declaration.
23015         * lib/wcscspn.c: New file.
23016         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23017         * m4/wcscspn.m4: New file.
23018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23021         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23022         * doc/posix-functions/wcscspn.texi: Mention the new module.
23023
23024 2011-02-06  Bruno Haible  <bruno@clisp.org>
23025
23026         New module 'wcsrchr'.
23027         * modules/wcsrchr: New file.
23028         * lib/wchar.in.h (wcsrchr): New declaration.
23029         * lib/wcsrchr.c: New file.
23030         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23031         * m4/wcsrchr.m4: New file.
23032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23035         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23036         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23037
23038 2011-02-06  Bruno Haible  <bruno@clisp.org>
23039
23040         New module 'wcschr'.
23041         * modules/wcschr: New file.
23042         * lib/wchar.in.h (wcschr): New declaration.
23043         * lib/wcschr.c: New file.
23044         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23045         * m4/wcschr.m4: New file.
23046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23049         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23050         * doc/posix-functions/wcschr.texi: Mention the new module.
23051
23052 2011-02-06  Bruno Haible  <bruno@clisp.org>
23053
23054         New module 'wcsdup'.
23055         * modules/wcsdup: New file.
23056         * lib/wchar.in.h (wcsdup): New declaration.
23057         * lib/wcsdup.c: New file.
23058         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23059         * m4/wcsdup.m4: New file.
23060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23063         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23064         * doc/posix-functions/wcsdup.texi: Mention the new module.
23065
23066 2011-02-06  Bruno Haible  <bruno@clisp.org>
23067
23068         New module 'wcsxfrm'.
23069         * modules/wcsxfrm: New file.
23070         * lib/wchar.in.h (wcsxfrm): New declaration.
23071         * lib/wcsxfrm.c: New file.
23072         * lib/wcsxfrm-impl.h: New file.
23073         * m4/wcsxfrm.m4: New file.
23074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23077         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23078         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23079
23080 2011-02-06  Bruno Haible  <bruno@clisp.org>
23081
23082         New module 'wcscoll'.
23083         * modules/wcscoll: New file.
23084         * lib/wchar.in.h (wcscoll): New declaration.
23085         * lib/wcscoll.c: New file.
23086         * lib/wcscoll-impl.h: New file.
23087         * m4/wcscoll.m4: New file.
23088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23091         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23092         * doc/posix-functions/wcscoll.texi: Mention the new module.
23093
23094 2011-02-06  Bruno Haible  <bruno@clisp.org>
23095
23096         New module 'wcsncasecmp'.
23097         * modules/wcsncasecmp: New file.
23098         * lib/wchar.in.h (wcsncasecmp): New declaration.
23099         * lib/wcsncasecmp.c: New file.
23100         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23101         * m4/wcsncasecmp.m4: New file.
23102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23105         HAVE_WCSNCASECMP.
23106         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23107         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23108
23109 2011-02-06  Bruno Haible  <bruno@clisp.org>
23110
23111         New module 'wcscasecmp'.
23112         * modules/wcscasecmp: New file.
23113         * lib/wchar.in.h (wcscasecmp): New declaration.
23114         * lib/wcscasecmp.c: New file.
23115         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23116         * m4/wcscasecmp.m4: New file.
23117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23120         HAVE_WCSCASECMP.
23121         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23122         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23123
23124 2011-02-05  Bruno Haible  <bruno@clisp.org>
23125
23126         New module 'wcsncmp'.
23127         * modules/wcsncmp: New file.
23128         * lib/wchar.in.h (wcsncmp): New declaration.
23129         * lib/wcsncmp.c: New file.
23130         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23131         * m4/wcsncmp.m4: New file.
23132         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23133         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23135         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23136         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23137
23138 2011-02-05  Bruno Haible  <bruno@clisp.org>
23139
23140         New module 'wcscmp'.
23141         * modules/wcscmp: New file.
23142         * lib/wchar.in.h (wcscmp): New declaration.
23143         * lib/wcscmp.c: New file.
23144         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23145         * m4/wcscmp.m4: New file.
23146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23148         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23149         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23150         * doc/posix-functions/wcscmp.texi: Mention the new module.
23151
23152 2011-02-05  Bruno Haible  <bruno@clisp.org>
23153
23154         New module 'wcsncat'.
23155         * modules/wcsncat: New file.
23156         * lib/wchar.in.h (wcsncat): New declaration.
23157         * lib/wcsncat.c: New file.
23158         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23159         * m4/wcsncat.m4: New file.
23160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23163         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23164         * doc/posix-functions/wcsncat.texi: Mention the new module.
23165
23166 2011-02-05  Bruno Haible  <bruno@clisp.org>
23167
23168         New module 'wcscat'.
23169         * modules/wcscat: New file.
23170         * lib/wchar.in.h (wcscat): New declaration.
23171         * lib/wcscat.c: New file.
23172         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23173         * m4/wcscat.m4: New file.
23174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23176         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23177         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23178         * doc/posix-functions/wcscat.texi: Mention the new module.
23179
23180 2011-02-05  Bruno Haible  <bruno@clisp.org>
23181
23182         New module 'wcpncpy'.
23183         * modules/wcpncpy: New file.
23184         * lib/wchar.in.h (wcpncpy): New declaration.
23185         * lib/wcpncpy.c: New file.
23186         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23187         * m4/wcpncpy.m4: New file.
23188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23190         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23191         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23192         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23193
23194 2011-02-05  Bruno Haible  <bruno@clisp.org>
23195
23196         New module 'wcsncpy'.
23197         * modules/wcsncpy: New file.
23198         * lib/wchar.in.h (wcsncpy): New declaration.
23199         * lib/wcsncpy.c: New file.
23200         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23201         * m4/wcsncpy.m4: New file.
23202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23205         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23206         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23207
23208 2011-02-05  Bruno Haible  <bruno@clisp.org>
23209
23210         New module 'wcpcpy'.
23211         * modules/wcpcpy: New file.
23212         * lib/wchar.in.h (wcpcpy): New declaration.
23213         * lib/wcpcpy.c: New file.
23214         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23215         * m4/wcpcpy.m4: New file.
23216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23218         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23219         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23220         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23221
23222 2011-02-05  Bruno Haible  <bruno@clisp.org>
23223
23224         New module 'wcscpy'.
23225         * modules/wcscpy: New file.
23226         * lib/wchar.in.h (wcscpy): New declaration.
23227         * lib/wcscpy.c: New file.
23228         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23229         * m4/wcscpy.m4: New file.
23230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23233         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23234         * doc/posix-functions/wcscpy.texi: Mention the new module.
23235
23236 2011-02-05  Bruno Haible  <bruno@clisp.org>
23237
23238         New module 'wcsnlen'.
23239         * modules/wcsnlen: New file.
23240         * lib/wchar.in.h (wcsnlen): New declaration.
23241         * lib/wcsnlen.c: New file.
23242         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23243         * m4/wcsnlen.m4: New file.
23244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23247         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23248         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23249
23250 2011-02-05  Bruno Haible  <bruno@clisp.org>
23251
23252         New module 'wcslen'.
23253         * modules/wcslen: New file.
23254         * lib/wchar.in.h (wcslen): New declaration.
23255         * lib/wcslen.c: New file.
23256         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23257         * m4/wcslen.m4: New file.
23258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23261         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23262         * doc/posix-functions/wcslen.texi: Mention the new module.
23263
23264 2011-02-05  Bruno Haible  <bruno@clisp.org>
23265
23266         New module 'wmemset'.
23267         * modules/wmemset: New file.
23268         * lib/wchar.in.h (wmemset): New declaration.
23269         * lib/wmemset.c: New file.
23270         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23271         * m4/wmemset.m4: New file.
23272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23274         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23275         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23276         * doc/posix-functions/wmemset.texi: Mention the new module.
23277
23278 2011-02-05  Bruno Haible  <bruno@clisp.org>
23279
23280         New module 'wmemmove'.
23281         * modules/wmemmove: New file.
23282         * lib/wchar.in.h (wmemmove): New declaration.
23283         * lib/wmemmove.c: New file.
23284         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23285         * m4/wmemmove.m4: New file.
23286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23288         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23289         HAVE_WMEMMOVE.
23290         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23291         * doc/posix-functions/wmemmove.texi: Mention the new module.
23292
23293 2011-02-05  Bruno Haible  <bruno@clisp.org>
23294
23295         New module 'wmemcpy'.
23296         * modules/wmemcpy: New file.
23297         * lib/wchar.in.h (wmemcpy): New declaration.
23298         * lib/wmemcpy.c: New file.
23299         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23300         * m4/wmemcpy.m4: New file.
23301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23303         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23304         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23305         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23306
23307 2011-02-05  Bruno Haible  <bruno@clisp.org>
23308
23309         New module 'wmemcmp'.
23310         * modules/wmemcmp: New file.
23311         * lib/wchar.in.h (wmemcmp): New declaration.
23312         * lib/wmemcmp.c: New file.
23313         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23314         * m4/wmemcmp.m4: New file.
23315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23317         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23318         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23319         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23320
23321 2011-02-07  Jim Meyering  <meyering@redhat.com>
23322
23323         di-set, ino-map: new modules, from coreutils
23324         * lib/di-set.c: New file.
23325         * lib/di-set.h: Likewise.
23326         * lib/ino-map.c: Likewise.
23327         * lib/ino-map.h: Likewise.
23328         * modules/di-set: Likewise.
23329         * modules/di-set-tests: Likewise.
23330         * modules/ino-map: Likewise.
23331         * modules/ino-map-tests: Likewise.
23332         * tests/test-di-set.c: Likewise.
23333         * tests/test-ino-map.c: Likewise.
23334
23335 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23336
23337         getloadavg: merge minor changes from Emacs
23338
23339         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23340         (getloadavg): Use memset, not bzero.
23341
23342         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23343         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23344         clash (bug#86).
23345
23346 2010-11-14  Bruno Haible  <bruno@clisp.org>
23347
23348         Allow multiple gnulib generated replacements to coexist.
23349         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23350         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23351         * lib/langinfo.in.h (nl_item): Likewise.
23352         * lib/math.in.h (_NaN, NAN): Likewise.
23353         * lib/netdb.in.h (struct addrinfo): Likewise.
23354         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23355         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23356         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23357         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23358         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23359         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23360         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23361         pthread_mutexattr_init, pthread_mutexattr_settype,
23362         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23363         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23364         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23365         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23366         * lib/sched.in.h (struct sched_param): Likewise.
23367         * lib/se-selinux.in.h (security_class_t, security_context_t,
23368         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23369         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23370         lsetfilecon, fsetfilecon, security_check_context,
23371         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23372         Likewise.
23373         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23374         Likewise.
23375         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23376         _gl_function_taking_int_returning_void_t, union sigval,
23377         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23378         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23379         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23380         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23381         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23382         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23383         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23384         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23385         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23386         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23387         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23388         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23389         socklen_t, rpl_fd_isset): Likewise.
23390         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23391         * lib/sys_time.in.h (struct timeval): Likewise.
23392         * lib/sys_times.in.h (struct tms): Likewise.
23393         * lib/sys_utsname.in.h (struct utsname):
23394         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23395         * lib/unistd.in.h (getpagesize): Likewise.
23396         * lib/wchar.in.h (mbstate_t): Likewise.
23397         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23398         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23399         towlower, towupper): Likewise.
23400         Reported by Sam Steingold <sds@gnu.org>.
23401
23402 2011-02-05  Eric Blake  <eblake@redhat.com>
23403
23404         unsetenv: work around Haiku issues
23405         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23406         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23407
23408 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23409
23410         libposix: avoid calling error() within libposix
23411         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23412         is defined.
23413
23414 2011-02-05  Eric Blake  <eblake@redhat.com>
23415
23416         strerror_r-posix: port to cygwin
23417         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23418         implementation.
23419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23420         * tests/test-strerror_r.c (main): Fix test.
23421         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23422         issue.
23423
23424 2011-02-05  Bruno Haible  <bruno@clisp.org>
23425
23426         New module 'wmemchr'.
23427         * modules/wmemchr: New file.
23428         * lib/wchar.in.h (wmemchr): New declaration.
23429         * lib/wmemchr.c: New file.
23430         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23431         * m4/wmemchr.m4: New file.
23432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23434         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23435         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23436         * doc/posix-functions/wmemchr.texi: Mention the new module.
23437
23438 2011-02-04  Eric Blake  <eblake@redhat.com>
23439
23440         fdopendir: detect FreeBSD bug
23441         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23442         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23443
23444 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23445
23446         stdbool: do not define HAVE_STDBOOL_H
23447         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23448         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23449         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23450         imported from the latest Autoconf git.  It was motivated by Emacs,
23451         which uses gnulib but does not need HAVE_STDBOOL_H.
23452
23453 2011-02-04  Bruno Haible  <bruno@clisp.org>
23454
23455         wcsnrtombs: Prepare for new module wwcsnrtombs.
23456         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23457         * lib/wcsnrtombs.c: Include it.
23458         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23459
23460         wcsrtombs: Prepare for new module wwcsrtombs.
23461         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23462         * lib/wcsrtombs.c: Include it.
23463         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23464
23465         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23466         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23467         * lib/mbsnrtowcs.c: Include it.
23468         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23469
23470         mbsrtowcs: Prepare for new module mbsrtowwcs.
23471         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23472         * lib/mbsrtowcs.c: Include it.
23473         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23474
23475 2011-02-04  Bruno Haible  <bruno@clisp.org>
23476
23477         vasnprintf: Reduce use of malloc for small format strings.
23478         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23479         (arguments): Add room for the first 7 arguments.
23480         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23481         (char_directives, u8_directives, u16_directives, u32_directives): Add
23482         room for the first 7 directives.
23483         * lib/printf-parse.c: Include <string.h>.
23484         (PRINTF_PARSE): Change memory handling code so that it uses the first
23485         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23486         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23487         Reported by Pádraig Brady <P@draigbrady.com>.
23488
23489 2011-01-31  Eric Blake  <eblake@redhat.com>
23490
23491         dup2: work around Haiku bug
23492         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23493         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23494         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23495         * tests/test-dup2.c (main): Enhance test.
23496
23497 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23498
23499         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23500         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23501         declared by eglibc 2.11.2.
23502         * lib/stdio.in.h: Likewise.
23503
23504 2011-01-31  Eric Blake  <eblake@redhat.com>
23505
23506         ignore-value: add missing test dependency
23507         * tests/test-ignore-value.c: Revert previous change; stdio.h
23508         provides off_t.
23509         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23510
23511 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23512
23513         mktime: clarify long_int width checking
23514         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23515         the top level, to make it clearer that the assumption about
23516         long_int width is being checked.  See
23517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23518
23519 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23520
23521         ignore-value: Fix self-test.
23522         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23523
23524 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23525
23526         TYPE_MAXIMUM: avoid theoretically undefined behavior
23527         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23528         negative number, which the C Standard says has undefined behavior.
23529         In practice this is not a problem, but might as well do it by the book.
23530         Reported by Rich Felker and Eric Blake; see
23531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23532         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23533         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23535         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23536         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23537         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23538
23539         mktime: #undef mktime before #defining it
23540         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23541
23542         mktime: systematically normalize tm_isdst comparisons
23543         * lib/mktime.c (isdst_differ): New function.
23544         (__mktime_internal): Use it systematically for all isdst comparisons.
23545         This completes the fix for libc BZ #6723, and removes the need for
23546         normalizing tm_isdst.  See
23547         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23548         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23549
23550         mktime: fix some integer overflow issues and sidestep the rest
23551
23552         This was prompted by a bug report by Benjamin Lindner for MinGW
23553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23554         His bug is due to signed integer overflow (0 - INT_MIN), and I
23555         I scanned through mktime.c looking for other integer overflow
23556         problems, fixing all the bugs I found.
23557
23558         Although the C Standard says the resulting code is still not safe
23559         in the presence of integer overflow, in practice it should be good
23560         enough for all real-world two's-complement implementations, except
23561         for debugging environments that deliberately trap on integer
23562         overflow (e.g., gcc -ftrapv).
23563
23564         * lib/mktime.c (WRAPV): New macro.
23565         (SHR): Also check that long_int and time_t shift right in the
23566         usual way, before using the fast-but-unportable method.
23567         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23568         used.  The code already assumed two's complement, so there's
23569         no need to test for alternatives.  All uses removed.
23570         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23571         the C standard.  Problem reported by Rich Felker in
23572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23573         (twos_complement_arithmetic): Also check long_int and time_t.
23574         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23575         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23576         (__mktime_internal): Avoid integer overflow with unary subtraction
23577         in two instances where -1 - X is an adequate replacement for -X,
23578         since the calculations are approximate.
23579
23580 2011-01-29  Eric Blake  <eblake@redhat.com>
23581
23582         mktime: avoid infinite loop
23583         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23584         type; behavior is still undefined but portable to all known targets.
23585         Reported by Rich Felker.
23586
23587 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23588
23589         rename, unlink, same-inode: Relicense.
23590         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23591         * modules/unlink (License): Likewise.
23592         * modules/same-inode (License): Likewise.
23593
23594 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23595
23596         mktime: avoid problems on NetBSD 5 / i386
23597         * lib/mktime.c (long_int): New type.  This works around a problem
23598         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23599         but time_t is 64 bits, and where I expect the existing code is
23600         wrong in some cases.
23601         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23602         (ydhms_diff): Bring back the compile-time check for wide-enough
23603         year and yday.
23604
23605         mktime: fix misspelling in comment
23606         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23607         This merges all recent glibc changes of importance.
23608
23609 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23610
23611         move-if-change: cope with concurrent mv of identical file.
23612         * build-aux/move-if-change (CMPPROG): Accept environment
23613         variable as an override for `cmp'.
23614         (usage): Document CMPPROG.
23615         Adjust comparison to drop stdout.  Cope with failure of mv if
23616         the target file exists and is identical to the source, for
23617         parallel builds.
23618         Report from H.J. Lu against binutils in PR binutils/12283.
23619
23620 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23621
23622         * users.txt: Mention sharutils.
23623
23624 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23625
23626         * users.txt: Mention OATH Toolkit.
23627
23628 2011-01-27  Bruno Haible  <bruno@clisp.org>
23629
23630         Prepare for supporting FreeBSD 10.
23631         * build-aux/config.libpath: Remove handling of freebsd1*.
23632
23633 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23634
23635         Prepare for supporting FreeBSD 10.
23636         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23637         match FreeBSD 10.0.
23638
23639 2011-01-27  Bruno Haible  <bruno@clisp.org>
23640
23641         vma-iter, get-rusage-as: Add OpenBSD support.
23642         * modules/vma-iter (configure.ac): Test for mquery.
23643         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23644         * lib/vma-iter.c: Include <sys/mman.h>.
23645         (vma_iterate): Add an implementation based on mquery().
23646         * lib/resource-ext.h (get_rusage_as): Update comments.
23647         * lib/get-rusage-as.c: Likewise.
23648         * lib/get-rusage-data.c: Likewise.
23649
23650 2011-01-26  Karl Berry  <karl@gnu.org>
23651
23652         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23653         variables to make it easier to override the makeinfo program used.
23654
23655 2011-01-26  Eric Blake  <eblake@redhat.com>
23656
23657         fcntl: work around Haiku F_DUPFD bugs
23658         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23659         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23660         cloexec bit on duplication.
23661         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23662
23663 2011-01-26  Bruno Haible  <bruno@clisp.org>
23664
23665         Enable memory leak tests on AIX.
23666         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23667         * tests/test-fprintf-posix3.c (main): Likewise.
23668
23669 2011-01-26  Bruno Haible  <bruno@clisp.org>
23670
23671         Tests for module 'get-rusage-data'.
23672         * modules/get-rusage-data-tests: New file.
23673         * tests/test-get-rusage-data.c: New file.
23674
23675         New module 'get-rusage-data'.
23676         * lib/resource-ext.h (get_rusage_data): New declaration.
23677         * lib/get-rusage-data.c: New file.
23678         * modules/get-rusage-data: New file.
23679
23680 2011-01-25  Bruno Haible  <bruno@clisp.org>
23681
23682         get-rusage-as: Allow for easier testing.
23683         * lib/resource-ext.h (get_rusage_as): Add comment.
23684         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23685         (main): New function for interactive testing.
23686
23687 2011-01-25  Bruno Haible  <bruno@clisp.org>
23688
23689         vma-iter: Treat Haiku like BeOS.
23690         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23691         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23692
23693 2011-01-25  Eric Blake  <eblake@redhat.com>
23694
23695         c-stack: fix regression on cygwin when libsigsegv is present
23696         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23697
23698 2011-01-24  Bruno Haible  <bruno@clisp.org>
23699
23700         vma-iter: Avoid empty intervals.
23701         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23702         on an empty interval.
23703
23704 2011-01-24  Jim Meyering  <meyering@redhat.com>
23705
23706         u64: remove unnecessary #include
23707         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23708
23709 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23710
23711         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23712         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23713
23714 2011-01-23  Bruno Haible  <bruno@clisp.org>
23715
23716         New module 'vma-iter'.
23717         * lib/vma-iter.h: New file.
23718         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23719         * modules/vma-iter: New file.
23720         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23721         for get_rusage_as_via_iterator.
23722         (vma_iterate_callback): New function.
23723         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23724         * modules/get-rusage-as (Depends-on): Add vma-iter.
23725
23726 2011-01-23  Bruno Haible  <bruno@clisp.org>
23727
23728         uninorm: Tweak includes.
23729         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23730         Reported by Jim Meyering.
23731
23732 2011-01-23  Bruno Haible  <bruno@clisp.org>
23733
23734         get-rusage-as: Improve on NetBSD.
23735         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23736         /proc, like on FreeBSD.
23737
23738 2011-01-23  Jim Meyering  <meyering@redhat.com>
23739
23740         xreadlink.h: remove unnecessary #include
23741         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23742
23743         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23744         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23745
23746 2011-01-23  Bruno Haible  <bruno@clisp.org>
23747
23748         get-rusage-as: Fix bug.
23749         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23750         original limit when aborting the first loop.
23751
23752 2011-01-23  Bruno Haible  <bruno@clisp.org>
23753
23754         wctype: Ensure valid C syntax.
23755         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23756         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23757
23758 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23759
23760         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23762         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23763         as they are needed only for configure's test case.
23764         This removes two unnecessary symbols from config.h.
23765
23766         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23767         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23769         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23770         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23771         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23772         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23773         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23774         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23775         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23776         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23778         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23779         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23780         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23781         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23782         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23783         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23784
23785 2011-01-21  Eric Blake  <eblake@redhat.com>
23786
23787         maintainer-makefile: work with older git for submodule check
23788         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23789         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23790         Reported by Matthias Bolte.
23791
23792         bootstrap: minor portability fixes
23793         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23794         (usage): Omit leading capital and trailing . on help phrases, per
23795         GNU Coding Standards.
23796         (check_versions, top level): Prefix messages with script name.
23797
23798 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23799
23800         bootstrap: support --no-git option
23801         * build-aux/bootstrap: Add --no-git option, to be used when
23802         --gnulib-srcdir points to the exact desired checkout.
23803
23804 2011-01-21  Eric Blake  <eblake@redhat.com>
23805
23806         strerror_r-posix: work with glibc 2.13
23807         * lib/strerror_r.c (strerror_r): Fix return type.
23808
23809 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23810             Bruno Haible  <bruno@clisp.org>
23811
23812         uN_strstr: New unit tests.
23813         * modules/unistr/u8-strstr-tests: New file.
23814         * modules/unistr/u16-strstr-tests: New file.
23815         * modules/unistr/u32-strstr-tests: New file.
23816         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23817         * tests/unistr/test-u8-strstr.c: New file.
23818         * tests/unistr/test-u16-strstr.c: New file.
23819         * tests/unistr/test-u32-strstr.c: New file.
23820
23821 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23822             Bruno Haible  <bruno@clisp.org>
23823
23824         Make uN_strstr functions O(n) worst-case.
23825         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23826         16-bit and 32-bit unit cases, use the unibyte algorithm from
23827         lib/mbsstr.c.
23828         * lib/unistr/u8-strstr.c: Include <string.h>.
23829         (UNIT_IS_UINT8_T): New macro.
23830         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23831         (U_STRLEN, U_STRNLEN): New macros.
23832         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23833         (U_STRLEN, U_STRNLEN): New macros.
23834         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23835         (configure.ac): Update required libunistring version.
23836         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23837         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23838         malloca.
23839         (configure.ac): Update required libunistring version.
23840         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23841         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23842         malloca.
23843         (configure.ac): Update required libunistring version.
23844
23845 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23846             Bruno Haible  <bruno@clisp.org>
23847
23848         Prepare for faster uN_strstr functions.
23849         * lib/str-kmp.h: Support definable UNITs.
23850         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23851         needle_len argument.
23852         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23853         * lib/mbscasestr.c (mbscasestr): Likewise.
23854
23855 2011-01-21  Pádraig Brady <P@draigBrady.com>
23856
23857         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23858         * tests/test-malloca.c (main): Unset the environment variable
23859         to greatly speed up the test.
23860         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23861         * modules/malloca-tests: Depend on unsetenv.
23862
23863 2011-01-21  Pádraig Brady <P@draigBrady.com>
23864
23865         ignore-value: remove stdint dependency
23866         * lib/ignore-value.h: Remove <stdint.h>
23867         * modules/ignore-value: Remove stdint dependency.
23868
23869 2011-01-21  Jim Meyering  <meyering@redhat.com>
23870
23871         maint.mk: adjust variable name to be consistent with other gl_ vars
23872         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23873         to be lower case.
23874
23875 2011-01-20  Jim Meyering  <meyering@redhat.com>
23876
23877         maint.mk: make "check" depend on public-submodule-commit by default
23878         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23879
23880 2011-01-20  Bruno Haible  <bruno@clisp.org>
23881
23882         mbfile, mbiter: Complete change from 2008-12-21.
23883         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23884         * m4/mbiter.m4 (gl_MBITER): Likewise.
23885
23886 2011-01-20  Jim Meyering  <meyering@redhat.com>
23887
23888         init.sh: insert space between each function name and "()"
23889         * tests/init.sh: Make it a little easier to see that a function's
23890         name is "warn_", and not "warn" when looking at the first part of
23891         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23892
23893 2011-01-20  Jim Meyering  <meyering@redhat.com>
23894
23895         mountlist: clean up code formatting
23896         * lib/mountlist.c (read_file_system_list): Split a long line,
23897         correct bracing style, use NULL in place of "(struct statfs *)0",
23898         don't parenthesize return value, add spaces around "=" and after
23899         ";-in-for-stmt".
23900
23901 2011-01-14  Markus Duft <mduft@gentoo.org>
23902
23903         mountlist: add support for Interix
23904         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23905         Apply statvfs to all entries of /dev/fs.
23906         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23907         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23908
23909 2011-01-20  Jim Meyering  <meyering@redhat.com>
23910
23911         maint.mk: improve the public-submodule-commit rule
23912         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23913         to suppress printing of its commands... unless V=1.
23914         Add git submodule's --quiet option to suppress printing of e.g.,
23915         "Entering gnulib" output.
23916         "cd" into $(srcdir) before running git submodule.
23917
23918 2011-01-20  Bruno Haible  <bruno@clisp.org>
23919
23920         include_next: Fix bug introduced on 2011-01-18.
23921         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23922         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23923         ac_cv_header_... variable if the second argument is not 'check'.
23924         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23925         gl_NEXT_HEADERS_INTERNAL.
23926
23927 2011-01-20  Bruno Haible  <bruno@clisp.org>
23928
23929         Allow the user to avoid the GNULIB_TEST_* macros.
23930         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23931         Suggested by Paul Eggert.
23932
23933 2011-01-14  Jim Meyering  <meyering@redhat.com>
23934
23935         bootstrap: avoid failure when there is no .gitmodules file
23936         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23937         has been assigned to, even when its value is the empty string.
23938         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23939         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23940         Reported by John W. Eaton <jwe@gnu.org>.
23941
23942 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23943
23944         assume <ctype.h>, ..., <time.h> exist
23945         For years gnulib has been assuming the existence of the headers
23946         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23947         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23948         them, since they don't appear to be needed.
23949         * README (Portability guidelines): Document this.
23950         * lib/flock.c: Assume <fcntl.h> exists.
23951         * lib/regex_internal.h: Assume <locale.h> exists.
23952         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23954         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23955         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23956         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23957         * m4/regex.m4 (gl_REGEX): Likewise.
23958         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23959         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23960         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23961         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23962         * tests/test-argp.c: Likewise.
23963         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23964
23965         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23966         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23967         AA_APPLE_UNIVERSAL_BUILD.  See
23968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23969         * NEWS: Document this.
23970
23971 2011-01-19  Eric Blake  <eblake@redhat.com>
23972
23973         c-stack: assume stack overflow if SA_SIGINFO unsupported
23974         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23975         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23976         sigaction will work.
23977         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23978         behavior match Linux.
23979         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23980
23981         stdbool-tests: accommodate Haiku
23982         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23983
23984         binary-io: fix O_TEXT on Haiku
23985         * modules/binary-io (Depends-on): Add fcntl-h.
23986         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23987         than blindly undefining O_TEXT.
23988         Reported by Scott McCreary.
23989
23990 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         include_next: do not check for standard headers like stddef.h
23993
23994         I found this problem when modifying Emacs to use gnulib.
23995         I noticed that it added HAVE_STDDEF_H to config.h, even though
23996         gnulib always assumes <stddef.h> exists as per README and this
23997         symbol is unnecessary.
23998         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23999         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24000         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24001         faster for headers like stddef.h that are known to exist.
24002         (gl_CHECK_NEXT_HEADERS): Use it.
24003         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24004         rather than gl_CHECK_NEXT_HEADERS.
24005         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24006         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24007
24008 2011-01-18  Eric Blake  <eblake@redhat.com>
24009
24010         ansi-c++-opt: skip C++ dependency style if C++ is unused
24011         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24012         tests when we know C++ compilation is not desired.
24013         Reported by Scott McCreary.
24014
24015 2011-01-18  Bruno Haible  <bruno@clisp.org>
24016
24017         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24018         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24019         (main): Perform test also when getrlimit and setrlimit don't exist or
24020         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24021         limiting the address space size using setrlimit, compare the address
24022         space size before and after the the test.
24023         * tests/test-dprintf-posix2.c: Likewise.
24024         * tests/test-fprintf-posix3.sh: Update skip messages.
24025         * tests/test-dprintf-posix2.sh: Likewise.
24026         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24027         * modules/dprintf-posix-tests (Depends-on): Likewise.
24028         Reported by Bruce Korb <bkorb@gnu.org> and
24029         Gary V. Vaughan <gary@gnu.org>.
24030
24031 2011-01-18  Bruno Haible  <bruno@clisp.org>
24032
24033         get-rusage-as: Improvement for Cygwin.
24034         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24035         areas that are merely reserved.
24036
24037 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         strftime: remove dependencies on multibyte modules
24040
24041         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24042         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24043         only if __osf__ is defined, and I suspect OSF doesn't need these
24044         other modules.  If my guess is wrong, we'll need to come up with a
24045         variant of strftime that doesn't need the multibyte modules.
24046
24047         I discovered this problem when attempting modify Emacs to use the
24048         strftime module.  With the previous gnulib, this caused Emacs to
24049         need 31 new files, ranging from lib/config.charset to
24050         m4/wint_t.m4.  This was overkill and I expect would be offputting
24051         to the Emacs maintainers.  After this change, only 6 new files are
24052         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24053         stdbool.m4, and tm_gmtoff.m4.
24054
24055         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24056         Suggested by Bruno Haible in
24057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24058         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24059         and do not check for wchar.h.
24060         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24061         (Depends-on): Remove mbrlen, mbsinit, wchar.
24062
24063 2011-01-18  Bruno Haible  <bruno@clisp.org>
24064
24065         Tests for module 'get-rusage-as'.
24066         * modules/get-rusage-as-tests: New file.
24067         * tests/test-get-rusage-as.c: New file.
24068
24069         New module 'get-rusage-as'.
24070         * modules/get-rusage-as: New file.
24071         * lib/resource-ext.h: New file.
24072         * lib/get-rusage-as.c: New file.
24073
24074 2011-01-17  Eric Blake  <eblake@redhat.com>
24075
24076         sigaction: relax license from LGPLv3+ to LGPLv2+
24077         * modules/sigaction (License): Relax to LGPLv2+.
24078
24079 2011-01-14  Bruno Haible  <bruno@clisp.org>
24080
24081         filemode: Make function declarations usable in C++ mode.
24082         * lib/filemode.h: Enclose function declarations in extern "C" block.
24083         Reported by John W. Eaton <jwe@gnu.org>.
24084
24085 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24086
24087         save-cwd: no longer include "xgetcwd.h"
24088         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24089         This avoids a compilation failure in projects that use save-cwd
24090         without also using the xgetcwd module.
24091
24092 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24093
24094         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24095         This is so that a program like Emacs, which needs only dtoastr,
24096         does not have to bother with distributing and compiling ftoastr
24097         and ldtoastr.
24098         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24099         * modules/dtoastr, modules/ldtoastr: New files.
24100         * modules/ftoastr: Now works just for 'float'.
24101         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24102         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24103         dtoastr.c, ldtoastr.c.
24104
24105 2011-01-11  Jim Meyering  <meyering@redhat.com>
24106
24107         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24108         There is no need to work around the lack of the fchdir function,
24109         since gnulib can now provide a replacement when required.
24110         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24111         * modules/save-cwd (Depends-on): Add fchdir.
24112
24113 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24114
24115         openat, save-cwd: avoid xmalloc
24116
24117         This removes a direct (but undocumented) dependency of openat on
24118         xalloc, along with an indirect dependency via save-cwd.  It also
24119         removes a dependency of save-cwd on xgetcwd, and thereby
24120         indirectly on xalloc.  This change causes the openat substitute
24121         to fall back on save_cwd when memory is tight, and for save_cwd to
24122         fail instead of dying when memory is tight, but that's good enough.
24123         Problem and initial idea for fix reported by Bastien Roucaries in
24124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24125
24126         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24127         xalloc.h (for xmalloc).
24128         (openat_proc_name): Use malloc, not xmalloc.
24129         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24130         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24131
24132         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24133         This avoids heap allocation for file names whose lengths are in
24134         the range 512..1023, with the upper bound increasing to at most
24135         4031 depending on the platform's PATH_MAX.  (We do not want
24136         pathmax.h here as it might supply a non-constant PATH_MAX.)
24137         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24138         Perhaps they should be moved to malloca.h?
24139         (OPENAT_BUFFER_SIZE): Use them.
24140
24141 2011-01-10  Bruno Haible  <bruno@clisp.org>
24142
24143         doc: Update users.txt.
24144         * users.txt: Add recutils.
24145
24146 2011-01-09  Karl Berry  <karl@gnu.org>
24147
24148         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24149
24150         * doc/configmake.texi: New file.
24151         * doc/gnulib.texi: Include it.
24152         * modules/configmake: Move documentation from here.
24153
24154 2011-01-09  Bruno Haible  <bruno@clisp.org>
24155
24156         Update to Unicode 6.0.0.
24157         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24158         (get_lbp): Update for Unicode 6.0.0.
24159         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24160         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24161         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24162         U+11001, U+11038..U+11046. Remove U+06DE.
24163         (uc_width): Fix bounds of planes.
24164         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24165         lib/uniwidth/width.c.
24166         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24167         trailing whitespace removed.
24168         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24169         without comments, but with the original copyright notice.
24170         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24171         * lib/unicase/ignorable.h: Likewise.
24172         * lib/unicase/tocasefold.h: Likewise.
24173         * lib/unicase/tolower.h: Likewise.
24174         * lib/unicase/totitle.h: Likewise.
24175         * lib/unicase/toupper.h: Likewise.
24176         * lib/unictype/bidi_of.h: Likewise.
24177         * lib/unictype/blocks.h: Likewise.
24178         * lib/unictype/categ_C.h: Likewise.
24179         * lib/unictype/categ_Cn.h: Likewise.
24180         * lib/unictype/categ_L.h: Likewise.
24181         * lib/unictype/categ_Ll.h: Likewise.
24182         * lib/unictype/categ_Lm.h: Likewise.
24183         * lib/unictype/categ_Lo.h: Likewise.
24184         * lib/unictype/categ_Lu.h: Likewise.
24185         * lib/unictype/categ_M.h: Likewise.
24186         * lib/unictype/categ_Mc.h: Likewise.
24187         * lib/unictype/categ_Me.h: Likewise.
24188         * lib/unictype/categ_Mn.h: Likewise.
24189         * lib/unictype/categ_N.h: Likewise.
24190         * lib/unictype/categ_Nd.h: Likewise.
24191         * lib/unictype/categ_No.h: Likewise.
24192         * lib/unictype/categ_P.h: Likewise.
24193         * lib/unictype/categ_Po.h: Likewise.
24194         * lib/unictype/categ_S.h: Likewise.
24195         * lib/unictype/categ_Sc.h: Likewise.
24196         * lib/unictype/categ_Sk.h: Likewise.
24197         * lib/unictype/categ_Sm.h: Likewise.
24198         * lib/unictype/categ_So.h: Likewise.
24199         * lib/unictype/categ_of.h: Likewise.
24200         * lib/unictype/combining.h: Likewise.
24201         * lib/unictype/ctype_alnum.h: Likewise.
24202         * lib/unictype/ctype_alpha.h: Likewise.
24203         * lib/unictype/ctype_graph.h: Likewise.
24204         * lib/unictype/ctype_lower.h: Likewise.
24205         * lib/unictype/ctype_print.h: Likewise.
24206         * lib/unictype/ctype_punct.h: Likewise.
24207         * lib/unictype/ctype_upper.h: Likewise.
24208         * lib/unictype/decdigit.h: Likewise.
24209         * lib/unictype/digit.h: Likewise.
24210         * lib/unictype/numeric.h: Likewise.
24211         * lib/unictype/pr_alphabetic.h: Likewise.
24212         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24213         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24214         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24215         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24216         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24217         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24218         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24219         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24220         * lib/unictype/pr_case_ignorable.h: Likewise.
24221         * lib/unictype/pr_cased.h: Likewise.
24222         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24223         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24224         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24225         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24226         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24227         * lib/unictype/pr_combining.h: Likewise.
24228         * lib/unictype/pr_composite.h: Likewise.
24229         * lib/unictype/pr_currency_symbol.h: Likewise.
24230         * lib/unictype/pr_decimal_digit.h: Likewise.
24231         * lib/unictype/pr_deprecated.h: Likewise.
24232         * lib/unictype/pr_format_control.h: Likewise.
24233         * lib/unictype/pr_grapheme_base.h: Likewise.
24234         * lib/unictype/pr_grapheme_extend.h: Likewise.
24235         * lib/unictype/pr_grapheme_link.h: Likewise.
24236         * lib/unictype/pr_id_continue.h: Likewise.
24237         * lib/unictype/pr_id_start.h: Likewise.
24238         * lib/unictype/pr_ideographic.h: Likewise.
24239         * lib/unictype/pr_lowercase.h: Likewise.
24240         * lib/unictype/pr_math.h: Likewise.
24241         * lib/unictype/pr_numeric.h: Likewise.
24242         * lib/unictype/pr_other_alphabetic.h: Likewise.
24243         * lib/unictype/pr_other_id_continue.h: Likewise.
24244         * lib/unictype/pr_other_math.h: Likewise.
24245         * lib/unictype/pr_punctuation.h: Likewise.
24246         * lib/unictype/pr_sentence_terminal.h: Likewise.
24247         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24248         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24249         * lib/unictype/pr_unified_ideograph.h: Likewise.
24250         * lib/unictype/pr_uppercase.h: Likewise.
24251         * lib/unictype/pr_xid_continue.h: Likewise.
24252         * lib/unictype/pr_xid_start.h: Likewise.
24253         * lib/unictype/scripts.h: Likewise.
24254         * lib/unictype/scripts_byname.gperf: Likewise.
24255         * lib/unictype/sy_java_ident.h: Likewise.
24256         * lib/unigbrk/gbrkprop.h: Likewise.
24257         * lib/unilbrk/lbrkprop1.h: Likewise.
24258         * lib/unilbrk/lbrkprop2.h: Likewise.
24259         * lib/uninorm/decomposition-table2.h: Likewise.
24260         * lib/uniwbrk/wbrkprop.h: Likewise.
24261         * tests/unicase/test-cased.c: Likewise.
24262         * tests/unicase/test-ignorable.c: Likewise.
24263         * tests/unicase/test-uc_tolower.c: Likewise.
24264         * tests/unicase/test-uc_totitle.c: Likewise.
24265         * tests/unicase/test-uc_toupper.c: Likewise.
24266         * tests/unictype/test-categ_C.c: Likewise.
24267         * tests/unictype/test-categ_Cn.c: Likewise.
24268         * tests/unictype/test-categ_L.c: Likewise.
24269         * tests/unictype/test-categ_Ll.c: Likewise.
24270         * tests/unictype/test-categ_Lm.c: Likewise.
24271         * tests/unictype/test-categ_Lo.c: Likewise.
24272         * tests/unictype/test-categ_Lu.c: Likewise.
24273         * tests/unictype/test-categ_M.c: Likewise.
24274         * tests/unictype/test-categ_Mc.c: Likewise.
24275         * tests/unictype/test-categ_Me.c: Likewise.
24276         * tests/unictype/test-categ_Mn.c: Likewise.
24277         * tests/unictype/test-categ_N.c: Likewise.
24278         * tests/unictype/test-categ_Nd.c: Likewise.
24279         * tests/unictype/test-categ_No.c: Likewise.
24280         * tests/unictype/test-categ_P.c: Likewise.
24281         * tests/unictype/test-categ_Po.c: Likewise.
24282         * tests/unictype/test-categ_S.c: Likewise.
24283         * tests/unictype/test-categ_Sc.c: Likewise.
24284         * tests/unictype/test-categ_Sk.c: Likewise.
24285         * tests/unictype/test-categ_Sm.c: Likewise.
24286         * tests/unictype/test-categ_So.c: Likewise.
24287         * tests/unictype/test-ctype_alnum.c: Likewise.
24288         * tests/unictype/test-ctype_alpha.c: Likewise.
24289         * tests/unictype/test-ctype_graph.c: Likewise.
24290         * tests/unictype/test-ctype_lower.c: Likewise.
24291         * tests/unictype/test-ctype_print.c: Likewise.
24292         * tests/unictype/test-ctype_punct.c: Likewise.
24293         * tests/unictype/test-ctype_upper.c: Likewise.
24294         * tests/unictype/test-decdigit.h: Likewise.
24295         * tests/unictype/test-digit.h: Likewise.
24296         * tests/unictype/test-numeric.h: Likewise.
24297         * tests/unictype/test-pr_alphabetic.c: Likewise.
24298         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24299         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24300         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24301         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24302         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24303         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24304         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24305         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24306         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24307         * tests/unictype/test-pr_cased.c: Likewise.
24308         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24309         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24310         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24311         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24312         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24313         * tests/unictype/test-pr_combining.c: Likewise.
24314         * tests/unictype/test-pr_composite.c: Likewise.
24315         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24316         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24317         * tests/unictype/test-pr_deprecated.c: Likewise.
24318         * tests/unictype/test-pr_format_control.c: Likewise.
24319         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24320         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24321         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24322         * tests/unictype/test-pr_id_continue.c: Likewise.
24323         * tests/unictype/test-pr_id_start.c: Likewise.
24324         * tests/unictype/test-pr_ideographic.c: Likewise.
24325         * tests/unictype/test-pr_lowercase.c: Likewise.
24326         * tests/unictype/test-pr_math.c: Likewise.
24327         * tests/unictype/test-pr_numeric.c: Likewise.
24328         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24329         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24330         * tests/unictype/test-pr_other_math.c: Likewise.
24331         * tests/unictype/test-pr_punctuation.c: Likewise.
24332         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24333         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24334         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24335         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24336         * tests/unictype/test-pr_uppercase.c: Likewise.
24337         * tests/unictype/test-pr_xid_continue.c: Likewise.
24338         * tests/unictype/test-pr_xid_start.c: Likewise.
24339         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24340         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24341         changes.
24342         * lib/unictype/categ_Cc.h: Likewise.
24343         * lib/unictype/categ_Cf.h: Likewise.
24344         * lib/unictype/categ_Co.h: Likewise.
24345         * lib/unictype/categ_Cs.h: Likewise.
24346         * lib/unictype/categ_Lt.h: Likewise.
24347         * lib/unictype/categ_Nl.h: Likewise.
24348         * lib/unictype/categ_Pc.h: Likewise.
24349         * lib/unictype/categ_Pd.h: Likewise.
24350         * lib/unictype/categ_Pe.h: Likewise.
24351         * lib/unictype/categ_Pf.h: Likewise.
24352         * lib/unictype/categ_Pi.h: Likewise.
24353         * lib/unictype/categ_Ps.h: Likewise.
24354         * lib/unictype/categ_Z.h: Likewise.
24355         * lib/unictype/categ_Zl.h: Likewise.
24356         * lib/unictype/categ_Zp.h: Likewise.
24357         * lib/unictype/categ_Zs.h: Likewise.
24358         * lib/unictype/ctype_blank.h: Likewise.
24359         * lib/unictype/ctype_cntrl.h: Likewise.
24360         * lib/unictype/ctype_digit.h: Likewise.
24361         * lib/unictype/ctype_space.h: Likewise.
24362         * lib/unictype/ctype_xdigit.h: Likewise.
24363         * lib/unictype/mirror.h: Likewise.
24364         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24365         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24366         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24367         * lib/unictype/pr_bidi_control.h: Likewise.
24368         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24369         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24370         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24371         * lib/unictype/pr_bidi_pdf.h: Likewise.
24372         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24373         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24374         * lib/unictype/pr_dash.h: Likewise.
24375         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24376         * lib/unictype/pr_diacritic.h: Likewise.
24377         * lib/unictype/pr_extender.h: Likewise.
24378         * lib/unictype/pr_hex_digit.h: Likewise.
24379         * lib/unictype/pr_hyphen.h: Likewise.
24380         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24381         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24382         * lib/unictype/pr_ignorable_control.h: Likewise.
24383         * lib/unictype/pr_iso_control.h: Likewise.
24384         * lib/unictype/pr_join_control.h: Likewise.
24385         * lib/unictype/pr_left_of_pair.h: Likewise.
24386         * lib/unictype/pr_line_separator.h: Likewise.
24387         * lib/unictype/pr_logical_order_exception.h: Likewise.
24388         * lib/unictype/pr_non_break.h: Likewise.
24389         * lib/unictype/pr_not_a_character.h: Likewise.
24390         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24391         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24392         * lib/unictype/pr_other_id_start.h: Likewise.
24393         * lib/unictype/pr_other_lowercase.h: Likewise.
24394         * lib/unictype/pr_other_uppercase.h: Likewise.
24395         * lib/unictype/pr_paired_punctuation.h: Likewise.
24396         * lib/unictype/pr_paragraph_separator.h: Likewise.
24397         * lib/unictype/pr_pattern_syntax.h: Likewise.
24398         * lib/unictype/pr_pattern_white_space.h: Likewise.
24399         * lib/unictype/pr_private_use.h: Likewise.
24400         * lib/unictype/pr_quotation_mark.h: Likewise.
24401         * lib/unictype/pr_radical.h: Likewise.
24402         * lib/unictype/pr_soft_dotted.h: Likewise.
24403         * lib/unictype/pr_space.h: Likewise.
24404         * lib/unictype/pr_titlecase.h: Likewise.
24405         * lib/unictype/pr_variation_selector.h: Likewise.
24406         * lib/unictype/pr_white_space.h: Likewise.
24407         * lib/unictype/pr_zero_width.h: Likewise.
24408         * lib/unictype/sy_c_ident.h: Likewise.
24409         * lib/unictype/sy_c_whitespace.h: Likewise.
24410         * lib/unictype/sy_java_whitespace.h: Likewise.
24411         * lib/uninorm/composition-table.gperf: Likewise.
24412         * lib/uninorm/decomposition-table1.h: Likewise.
24413         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24414         LB8.
24415         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24416         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24417         * modules/unictype/*: Bump version number of expected libunistring
24418         version.
24419
24420 2011-01-09  Bruno Haible  <bruno@clisp.org>
24421
24422         Update to Unicode 5.2.0.
24423         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24424         trailing whitespace removed.
24425
24426 2011-01-09  Bruno Haible  <bruno@clisp.org>
24427
24428         New Unicode character properties, from Unicode 5.2.0.
24429         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24430         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24431         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24432         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24433         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24434         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24435         uc_is_property_cased, uc_is_property_case_ignorable,
24436         uc_is_property_changes_when_lowercased,
24437         uc_is_property_changes_when_uppercased,
24438         uc_is_property_changes_when_titlecased,
24439         uc_is_property_changes_when_casefolded,
24440         uc_is_property_changes_when_casemapped): New declarations.
24441         * lib/unictype/pr_byname.gperf: Add the new properties.
24442         * modules/unictype/property-byname (Depends-on): Depend on the new
24443         properties modules.
24444         * modules/unictype/property-all (Depends-on): Likewise.
24445         * MODULES.html.sh (Unicode string functions): Add
24446         unictype/property-case-ignorable, unictype/property-cased,
24447         unictype/property-changes-when-casefolded,
24448         unictype/property-changes-when-casemapped,
24449         unictype/property-changes-when-lowercased,
24450         unictype/property-changes-when-titlecased,
24451         unictype/property-changes-when-uppercased.
24452
24453         New module 'unictype/property-changes-when-casemapped'.
24454         * modules/unictype/property-changes-when-casemapped: New file.
24455         * lib/unictype/pr_changes_when_casemapped.c: New file.
24456         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24457         generated by gen-uni-tables.
24458         * modules/unictype/property-changes-when-casemapped-tests: New file.
24459         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24460         automatically generated by gen-uni-tables.
24461
24462         New module 'unictype/property-changes-when-casefolded'.
24463         * modules/unictype/property-changes-when-casefolded: New file.
24464         * lib/unictype/pr_changes_when_casefolded.c: New file.
24465         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24466         generated by gen-uni-tables.
24467         * modules/unictype/property-changes-when-casefolded-tests: New file.
24468         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24469         automatically generated by gen-uni-tables.
24470
24471         New module 'unictype/property-changes-when-titlecased'.
24472         * modules/unictype/property-changes-when-titlecased: New file.
24473         * lib/unictype/pr_changes_when_titlecased.c: New file.
24474         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24475         generated by gen-uni-tables.
24476         * modules/unictype/property-changes-when-titlecased-tests: New file.
24477         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24478         automatically generated by gen-uni-tables.
24479
24480         New module 'unictype/property-changes-when-uppercased'.
24481         * modules/unictype/property-changes-when-uppercased: New file.
24482         * lib/unictype/pr_changes_when_uppercased.c: New file.
24483         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24484         generated by gen-uni-tables.
24485         * modules/unictype/property-changes-when-uppercased-tests: New file.
24486         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24487         automatically generated by gen-uni-tables.
24488
24489         New module 'unictype/property-changes-when-lowercased'.
24490         * modules/unictype/property-changes-when-lowercased: New file.
24491         * lib/unictype/pr_changes_when_lowercased.c: New file.
24492         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24493         generated by gen-uni-tables.
24494         * modules/unictype/property-changes-when-lowercased-tests: New file.
24495         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24496         automatically generated by gen-uni-tables.
24497
24498         New module 'unictype/property-case-ignorable'.
24499         * modules/unictype/property-case-ignorable: New file.
24500         * lib/unictype/pr_case_ignorable.c: New file.
24501         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24502         by gen-uni-tables.
24503         * modules/unictype/property-case-ignorable-tests: New file.
24504         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24505         generated by gen-uni-tables.
24506
24507         New module 'unictype/property-cased'.
24508         * modules/unictype/property-cased: New file.
24509         * lib/unictype/pr_cased.c: New file.
24510         * lib/unictype/pr_cased.h: New file, automatically generated by
24511         gen-uni-tables.
24512         * modules/unictype/property-cased-tests: New file.
24513         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24514         gen-uni-tables.
24515
24516 2011-01-09  Bruno Haible  <bruno@clisp.org>
24517
24518         Update to Unicode 5.2.0.
24519         * lib/gen-uni-tables.c (output_predicate, output_category,
24520         output_combclass, output_bidi_category, output_decimal_digit_test,
24521         output_decimal_digit, output_digit_test, output_digit,
24522         output_numeric_test, output_numeric, output_mirror, output_scripts,
24523         output_scripts_byname, output_blocks, output_ident_category): Fix
24524         comment header.
24525         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24526         get_wbp.
24527         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24528         items.
24529         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24530         Changes_When_Lowercased, Changes_When_Uppercased,
24531         Changes_When_Titlecased, Changes_When_Casefolded,
24532         Changes_When_Casemapped.
24533         (is_property_alphabetic, is_property_default_ignorable_code_point):
24534         Update for Unicode 5.2.0.
24535         (is_property_cased, is_property_case_ignorable,
24536         is_property_changes_when_lowercased,
24537         is_property_changes_when_uppercased,
24538         is_property_changes_when_titlecased,
24539         is_property_changes_when_casefolded,
24540         is_property_changes_when_casemapped): New functions.
24541         (output_properties): Output also the properties cased, case_ignorable,
24542         changes_when_lowercased, changes_when_uppercased,
24543         changes_when_titlecased, changes_when_casefolded,
24544         changes_when_casemapped.
24545         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24546         Unicode TR#11 revision 17 -> 19.
24547         (LBP_CP): New enumeration value.
24548         (LBP_*): Adjust values accordingly.
24549         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24550         TR#14 revision 22 -> 24.
24551         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24552         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24553         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24554         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24555         is_WBP_MIDLETTER.
24556         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24557         the code1 and code2 of each composition rule.
24558         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24559         * lib/unicase/ignorable.h: Likewise.
24560         * lib/unicase/tocasefold.h: Likewise.
24561         * lib/unicase/tolower.h: Likewise.
24562         * lib/unicase/totitle.h: Likewise.
24563         * lib/unicase/toupper.h: Likewise.
24564         * lib/unictype/bidi_of.h: Likewise.
24565         * lib/unictype/blocks.h: Likewise.
24566         * lib/unictype/categ_C.h: Likewise.
24567         * lib/unictype/categ_Cf.h: Likewise.
24568         * lib/unictype/categ_Cn.h: Likewise.
24569         * lib/unictype/categ_L.h: Likewise.
24570         * lib/unictype/categ_Ll.h: Likewise.
24571         * lib/unictype/categ_Lm.h: Likewise.
24572         * lib/unictype/categ_Lo.h: Likewise.
24573         * lib/unictype/categ_Lu.h: Likewise.
24574         * lib/unictype/categ_M.h: Likewise.
24575         * lib/unictype/categ_Mc.h: Likewise.
24576         * lib/unictype/categ_Mn.h: Likewise.
24577         * lib/unictype/categ_N.h: Likewise.
24578         * lib/unictype/categ_Nd.h: Likewise.
24579         * lib/unictype/categ_Nl.h: Likewise.
24580         * lib/unictype/categ_No.h: Likewise.
24581         * lib/unictype/categ_P.h: Likewise.
24582         * lib/unictype/categ_Pd.h: Likewise.
24583         * lib/unictype/categ_Po.h: Likewise.
24584         * lib/unictype/categ_S.h: Likewise.
24585         * lib/unictype/categ_Sc.h: Likewise.
24586         * lib/unictype/categ_So.h: Likewise.
24587         * lib/unictype/categ_of.h: Likewise.
24588         * lib/unictype/combining.h: Likewise.
24589         * lib/unictype/ctype_alnum.h: Likewise.
24590         * lib/unictype/ctype_alpha.h: Likewise.
24591         * lib/unictype/ctype_graph.h: Likewise.
24592         * lib/unictype/ctype_lower.h: Likewise.
24593         * lib/unictype/ctype_print.h: Likewise.
24594         * lib/unictype/ctype_punct.h: Likewise.
24595         * lib/unictype/ctype_upper.h: Likewise.
24596         * lib/unictype/decdigit.h: Likewise.
24597         * lib/unictype/digit.h: Likewise.
24598         * lib/unictype/numeric.h: Likewise.
24599         * lib/unictype/pr_alphabetic.h: Likewise.
24600         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24601         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24602         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24603         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24604         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24605         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24606         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24607         * lib/unictype/pr_combining.h: Likewise.
24608         * lib/unictype/pr_composite.h: Likewise.
24609         * lib/unictype/pr_currency_symbol.h: Likewise.
24610         * lib/unictype/pr_dash.h: Likewise.
24611         * lib/unictype/pr_decimal_digit.h: Likewise.
24612         * lib/unictype/pr_deprecated.h: Likewise.
24613         * lib/unictype/pr_diacritic.h: Likewise.
24614         * lib/unictype/pr_extender.h: Likewise.
24615         * lib/unictype/pr_grapheme_base.h: Likewise.
24616         * lib/unictype/pr_grapheme_extend.h: Likewise.
24617         * lib/unictype/pr_grapheme_link.h: Likewise.
24618         * lib/unictype/pr_id_continue.h: Likewise.
24619         * lib/unictype/pr_id_start.h: Likewise.
24620         * lib/unictype/pr_ideographic.h: Likewise.
24621         * lib/unictype/pr_ignorable_control.h: Likewise.
24622         * lib/unictype/pr_logical_order_exception.h: Likewise.
24623         * lib/unictype/pr_lowercase.h: Likewise.
24624         * lib/unictype/pr_numeric.h: Likewise.
24625         * lib/unictype/pr_other_alphabetic.h: Likewise.
24626         * lib/unictype/pr_punctuation.h: Likewise.
24627         * lib/unictype/pr_sentence_terminal.h: Likewise.
24628         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24629         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24630         * lib/unictype/pr_unified_ideograph.h: Likewise.
24631         * lib/unictype/pr_uppercase.h: Likewise.
24632         * lib/unictype/pr_xid_continue.h: Likewise.
24633         * lib/unictype/pr_xid_start.h: Likewise.
24634         * lib/unictype/pr_zero_width.h: Likewise.
24635         * lib/unictype/scripts.h: Likewise.
24636         * lib/unictype/scripts_byname.gperf: Likewise.
24637         * lib/unictype/sy_java_ident.h: Likewise.
24638         * lib/unigbrk/gbrkprop.h: Likewise.
24639         * lib/unilbrk/lbrkprop1.h: Likewise.
24640         * lib/unilbrk/lbrkprop2.h: Likewise.
24641         * lib/unilbrk/lbrktables.h: Likewise.
24642         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24643         LBP_CP. Implement rule LB30.
24644         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24645         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24646         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24647         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24648         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24649         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24650         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24651         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24652         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24653         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24654         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24655         bits instead of 16 bits in the code1 and code2 of each composition
24656         rule.
24657         (uc_composition): Update for Unicode 5.2.0.
24658         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24659         * lib/uninorm/decomposition-table2.h: Likewise.
24660         * lib/uniwbrk/wbrkprop.h: Likewise.
24661         * tests/unicase/test-cased.c: Likewise.
24662         * tests/unicase/test-ignorable.c: Likewise.
24663         * tests/unicase/test-uc_tolower.c: Likewise.
24664         * tests/unicase/test-uc_totitle.c: Likewise.
24665         * tests/unicase/test-uc_toupper.c: Likewise.
24666         * tests/unictype/test-categ_C.c: Likewise.
24667         * tests/unictype/test-categ_Cf.c: Likewise.
24668         * tests/unictype/test-categ_Cn.c: Likewise.
24669         * tests/unictype/test-categ_L.c: Likewise.
24670         * tests/unictype/test-categ_Ll.c: Likewise.
24671         * tests/unictype/test-categ_Lm.c: Likewise.
24672         * tests/unictype/test-categ_Lo.c: Likewise.
24673         * tests/unictype/test-categ_Lu.c: Likewise.
24674         * tests/unictype/test-categ_M.c: Likewise.
24675         * tests/unictype/test-categ_Mc.c: Likewise.
24676         * tests/unictype/test-categ_Mn.c: Likewise.
24677         * tests/unictype/test-categ_N.c: Likewise.
24678         * tests/unictype/test-categ_Nd.c: Likewise.
24679         * tests/unictype/test-categ_Nl.c: Likewise.
24680         * tests/unictype/test-categ_No.c: Likewise.
24681         * tests/unictype/test-categ_P.c: Likewise.
24682         * tests/unictype/test-categ_Pd.c: Likewise.
24683         * tests/unictype/test-categ_Po.c: Likewise.
24684         * tests/unictype/test-categ_S.c: Likewise.
24685         * tests/unictype/test-categ_Sc.c: Likewise.
24686         * tests/unictype/test-categ_So.c: Likewise.
24687         * tests/unictype/test-ctype_alnum.c: Likewise.
24688         * tests/unictype/test-ctype_alpha.c: Likewise.
24689         * tests/unictype/test-ctype_graph.c: Likewise.
24690         * tests/unictype/test-ctype_lower.c: Likewise.
24691         * tests/unictype/test-ctype_print.c: Likewise.
24692         * tests/unictype/test-ctype_punct.c: Likewise.
24693         * tests/unictype/test-ctype_upper.c: Likewise.
24694         * tests/unictype/test-decdigit.h: Likewise.
24695         * tests/unictype/test-digit.h: Likewise.
24696         * tests/unictype/test-numeric.h: Likewise.
24697         * tests/unictype/test-pr_alphabetic.c: Likewise.
24698         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24699         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24700         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24701         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24702         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24703         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24704         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24705         * tests/unictype/test-pr_combining.c: Likewise.
24706         * tests/unictype/test-pr_composite.c: Likewise.
24707         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24708         * tests/unictype/test-pr_dash.c: Likewise.
24709         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24710         * tests/unictype/test-pr_deprecated.c: Likewise.
24711         * tests/unictype/test-pr_diacritic.c: Likewise.
24712         * tests/unictype/test-pr_extender.c: Likewise.
24713         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24714         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24715         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24716         * tests/unictype/test-pr_id_continue.c: Likewise.
24717         * tests/unictype/test-pr_id_start.c: Likewise.
24718         * tests/unictype/test-pr_ideographic.c: Likewise.
24719         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24720         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24721         * tests/unictype/test-pr_lowercase.c: Likewise.
24722         * tests/unictype/test-pr_numeric.c: Likewise.
24723         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24724         * tests/unictype/test-pr_punctuation.c: Likewise.
24725         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24726         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24727         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24728         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24729         * tests/unictype/test-pr_uppercase.c: Likewise.
24730         * tests/unictype/test-pr_xid_continue.c: Likewise.
24731         * tests/unictype/test-pr_xid_start.c: Likewise.
24732         * tests/unictype/test-pr_zero_width.c: Likewise.
24733         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24734         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24735         changed behaviour: line breaking is now disallowed between a letter
24736         or '=' and '('.
24737         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24738         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24739         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24740         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24741         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24742         lib/uniwidth/width.c.
24743         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24744         without comments, but with the original copyright notice.
24745         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24746         changes.
24747         * lib/unictype/categ_Cc.h: Likewise.
24748         * lib/unictype/categ_Co.h: Likewise.
24749         * lib/unictype/categ_Cs.h: Likewise.
24750         * lib/unictype/categ_Lt.h: Likewise.
24751         * lib/unictype/categ_Me.h: Likewise.
24752         * lib/unictype/categ_Pc.h: Likewise.
24753         * lib/unictype/categ_Pe.h: Likewise.
24754         * lib/unictype/categ_Pf.h: Likewise.
24755         * lib/unictype/categ_Pi.h: Likewise.
24756         * lib/unictype/categ_Ps.h: Likewise.
24757         * lib/unictype/categ_Sk.h: Likewise.
24758         * lib/unictype/categ_Sm.h: Likewise.
24759         * lib/unictype/categ_Z.h: Likewise.
24760         * lib/unictype/categ_Zl.h: Likewise.
24761         * lib/unictype/categ_Zp.h: Likewise.
24762         * lib/unictype/categ_Zs.h: Likewise.
24763         * lib/unictype/ctype_blank.h: Likewise.
24764         * lib/unictype/ctype_cntrl.h: Likewise.
24765         * lib/unictype/ctype_digit.h: Likewise.
24766         * lib/unictype/ctype_space.h: Likewise.
24767         * lib/unictype/ctype_xdigit.h: Likewise.
24768         * lib/unictype/mirror.h: Likewise.
24769         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24770         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24771         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24772         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24773         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24774         * lib/unictype/pr_bidi_control.h: Likewise.
24775         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24776         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24777         * lib/unictype/pr_bidi_pdf.h: Likewise.
24778         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24779         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24780         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24781         * lib/unictype/pr_format_control.h: Likewise.
24782         * lib/unictype/pr_hex_digit.h: Likewise.
24783         * lib/unictype/pr_hyphen.h: Likewise.
24784         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24785         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24786         * lib/unictype/pr_iso_control.h: Likewise.
24787         * lib/unictype/pr_join_control.h: Likewise.
24788         * lib/unictype/pr_left_of_pair.h: Likewise.
24789         * lib/unictype/pr_line_separator.h: Likewise.
24790         * lib/unictype/pr_math.h: Likewise.
24791         * lib/unictype/pr_non_break.h: Likewise.
24792         * lib/unictype/pr_not_a_character.h: Likewise.
24793         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24794         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24795         * lib/unictype/pr_other_id_continue.h: Likewise.
24796         * lib/unictype/pr_other_id_start.h: Likewise.
24797         * lib/unictype/pr_other_lowercase.h: Likewise.
24798         * lib/unictype/pr_other_math.h: Likewise.
24799         * lib/unictype/pr_other_uppercase.h: Likewise.
24800         * lib/unictype/pr_paired_punctuation.h: Likewise.
24801         * lib/unictype/pr_paragraph_separator.h: Likewise.
24802         * lib/unictype/pr_pattern_syntax.h: Likewise.
24803         * lib/unictype/pr_pattern_white_space.h: Likewise.
24804         * lib/unictype/pr_private_use.h: Likewise.
24805         * lib/unictype/pr_quotation_mark.h: Likewise.
24806         * lib/unictype/pr_radical.h: Likewise.
24807         * lib/unictype/pr_soft_dotted.h: Likewise.
24808         * lib/unictype/pr_space.h: Likewise.
24809         * lib/unictype/pr_titlecase.h: Likewise.
24810         * lib/unictype/pr_variation_selector.h: Likewise.
24811         * lib/unictype/pr_white_space.h: Likewise.
24812         * lib/unictype/sy_c_ident.h: Likewise.
24813         * lib/unictype/sy_c_whitespace.h: Likewise.
24814         * lib/unictype/sy_java_whitespace.h: Likewise.
24815         * modules/uni*/*: Bump version number of expected libunistring version.
24816         Reported by Simon Josefsson.
24817
24818 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24819
24820         useless-if-before-free: fix typo in --help and make the internal,
24821         automatic version date update process work once again.
24822         --help output contained a NUL character instead of the
24823         backslash-zero that was intended.  Also, the "must lie within
24824         the first 8 lines" line is on line 9, and hence not getting
24825         automatically updated.
24826         * build-aux/useless-if-before-free: Fix the former by adding a
24827         backslash, and the latter by condensing the three lines of what-it-does
24828         to a single line, leaving one line of slack for the future.
24829
24830 2011-01-09  Bruno Haible  <bruno@clisp.org>
24831
24832         uniwidth/width: Fix width of U+1D173..U+1D17A.
24833         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24834         symbolic_width, output_width_property_test): New functions.
24835         (main): Invoke output_nonspacing_property, output_width_property_test.
24836         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24837         U+1D173..U+1D17A.
24838         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24839         1.
24840         * modules/uniwidth/*: Bump version number of expected libunistring
24841         version.
24842         * modules/unilbrk/*: Likewise.
24843
24844 2011-01-08  Bruno Haible  <bruno@clisp.org>
24845
24846         uninorm tests: Preserve copyright of Unicode data file.
24847         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24848         Mention modifications.
24849
24850 2011-01-08  Bruno Haible  <bruno@clisp.org>
24851
24852         gen-uni-tables: Prepare for Unicode 5.2.0.
24853         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24854         (debug_output_lbp, output_lbp): Update.
24855
24856 2011-01-08  Bruno Haible  <bruno@clisp.org>
24857
24858         unilbrk: Clarify gen-uni-tables.c code.
24859         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24860         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24861         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24862
24863 2011-01-07  Bruno Haible  <bruno@clisp.org>
24864
24865         strtod: Restore errno when successfully parsing Infinity or NaN.
24866         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24867         restore the original errno.
24868
24869 2011-01-07  Bruno Haible  <bruno@clisp.org>
24870
24871         remove test: Avoid failure on HP-UX 11.
24872         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24873
24874 2011-01-07  Bruno Haible  <bruno@clisp.org>
24875
24876         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24877         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24878         error code.
24879
24880 2011-01-07  Pádraig Brady <P@draigBrady.com>
24881
24882         ignore-value: fixup comments, and add Eric Blake
24883         as an author since he rewrote the macros.
24884         * lib/ignore-value.h (ignore_value):  State that
24885         we now support aggregates.  Also specify exactly
24886         when the GCC warn_unused_result feature was added.
24887
24888 2011-01-06  Eric Blake  <eblake@redhat.com>
24889
24890         ignore-value: support aggregate types
24891         * lib/ignore-value.h (ignore_value): Provide separate gcc
24892         definition.
24893         * modules/ignore-value-tests: New test module.
24894         * tests/test-ignore-value.c: New test.
24895
24896         maint.mk: improve sc_prohibit_strcmp regex
24897         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24898         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24899         definition of STRNEQ.
24900
24901         signal: work around Haiku issue with SIGBUS
24902         * lib/siglist.h: Add comment.
24903         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24904         strsignal's favoring of SIGSEGV.
24905         * tests/test-signal.c (main): Avoid test failure.
24906         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24907         Reported by Scott McCreary.
24908
24909         maint.mk: add pre-release check to ensure submodule commits are public
24910         * top/maint.mk (public-submodule-commit): New rule.
24911         (submodule-checks): New variable.
24912         (alpha beta stable): Depend on the variable.
24913
24914 2011-01-05  Pádraig Brady <P@draigBrady.com>
24915         and Jim Meyering  <meyering@redhat.com>
24916
24917         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24918         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24919         (ATTRIBUTE_DEPRECATED): Define.
24920         (_ignore_case): New function.
24921         (ignore_value): New macro, to replace the old function.
24922         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24923         * modules/ignore-value (Depends-on): Add stdint.
24924
24925 2011-01-04  Eric Blake  <eblake@redhat.com>
24926
24927         doc: regenerate INSTALL
24928         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24929         @firstparagraphindent support, now that autoconf dropped it.
24930         (INSTALL_PRELUDE): Reinstate old macro.
24931         * doc/install.texi: Resync from autoconf.
24932         * doc/INSTALL: Reflect recent autoconf update.
24933         * doc/INSTALL.ISO: Likewise.
24934         * doc/INSTALL.UTF-8: Likewise.
24935         Reported by Karl Berry.
24936
24937 2011-01-04  Bruce Korb  <address@hidden>
24938
24939         git-version-gen: avoid a sub-shell
24940         * build-aux/git-version-gen: Redirect stderr in `...` via
24941         "exec 2>...", rather than via an added sub-shell.
24942
24943 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24944
24945         git-version-gen: use (...) rather than sh -c '...'
24946         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24947         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24948
24949 2011-01-03  Jim Meyering  <meyering@redhat.com>
24950
24951         git-version-gen: convert leading TABs to spaces
24952         * build-aux/git-version-gen: Expand leading TABs.
24953
24954         git-version-gen: handle failed "git rev-list"
24955         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24956         from git and proceeding as if it had succeeded but printed no SHA1
24957         checksums, suppress the diagnostic and handle the failure.
24958         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24959
24960         git-version-gen: include command name in one more diagnostic
24961         * build-aux/git-version-gen: When the required .tarball-version file
24962         was missing or unreadable, you might see the diagnostic from "cat",
24963         but no trace of the name of the invoking script.  Now, you still see
24964         the diagnostic from cat, but also get one from "git-version-gen: ".
24965         Inspired by a patch from Bruce Korb.
24966
24967         update-copyright: adjust test to match changed code
24968         * tests/test-update-copyright.sh: Change test's expected output
24969         to match new actual output.
24970
24971 2011-01-02  Bruno Haible  <bruno@clisp.org>
24972
24973         getlogin_r: Avoid test failure on HP-UX 11.
24974         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24975         ERANGE when the second argument is zero.
24976         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24977         portability problem.
24978
24979 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24980
24981         * build-aux/update-copyright: doc Simon's changes
24982
24983 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24984
24985         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24986         environment variable.
24987
24988 2011-01-02  Bruno Haible  <bruno@clisp.org>
24989
24990         unigbrk: Avoid gcc warnings.
24991         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24992         unused variable.
24993         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24994         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24995         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24996         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24997         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24998         Change type of first argument to 'const char *'.
24999         (main): Remove unused variable.
25000         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25001         type of first argument to 'const char *'.
25002         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25003         Likewise.
25004         (main): Change type of variable 's'.
25005         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25006         to 'int'.
25007
25008 2011-01-02  Bruno Haible  <bruno@clisp.org>
25009
25010         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25011         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25012         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25013         bug.
25014         * lib/pwrite.c: Undo 2010-12-31 patch.
25015         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25016
25017 2011-01-02  Bruno Haible  <bruno@clisp.org>
25018
25019         pread: Fix test whether it works.
25020         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25021
25022 2011-01-02  Bruno Haible  <bruno@clisp.org>
25023
25024         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25025         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25026         ends in "6". Don't require a specific month name. Try also the locale
25027         names found on HP-UX 11 and Solaris 7.
25028
25029 2011-01-02  Bruno Haible  <bruno@clisp.org>
25030
25031         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25032         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25033         C linkage.
25034         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25035
25036 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25037
25038         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25039         for consistency, since the "cluster" term is not used elsewhere.
25040         * lib/unigbrk.in.h: Update name.
25041         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25042         * lib/unigbrk/u16-grapheme-next.c: Update name.
25043         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25044         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25045         * lib/unigbrk/u32-grapheme-next.c: Update name.
25046         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25047         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25048         * lib/unigbrk/u8-grapheme-next.c: Update name.
25049         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25050         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25051         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25052         Suggested by Bruno Haible.
25053
25054 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25055
25056         Remove module 'u8-grapheme-len' as too redundant with
25057         'u8-grapheme-next'.
25058         * modules/unigbrk/u8-grapheme-len: Delete file.
25059         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25060         * lib/unigbrk.in.h: Remove prototype for deleted function.
25061         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25062         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25063
25064         Remove module 'u16-grapheme-len' as too redundant with
25065         'u16-grapheme-next'.
25066         * modules/unigbrk/u16-grapheme-len: Delete file.
25067         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25068         * lib/unigbrk.in.h: Remove prototype for deleted function.
25069         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25070         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25071
25072         Remove module 'u32-grapheme-len' as too redundant with
25073         'u32-grapheme-next'.
25074         * modules/unigbrk/u32-grapheme-len: Delete file.
25075         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25076         * lib/unigbrk.in.h: Remove prototype for deleted function.
25077         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25078         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25079
25080         Suggested by Bruno Haible.
25081
25082 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25083
25084         * unigbrk.in.h: Fix typo: "ben" => "been".
25085         Reported by Bruno Haible.
25086
25087 2011-01-01  Jim Meyering  <meyering@redhat.com>
25088
25089         maint: update almost all copyright ranges to include 2011
25090         Run the new "make update-copyright" rule.
25091
25092 2011-01-01  Jim Meyering  <meyering@redhat.com>
25093
25094         maint: update-copyright: exempt doc/INSTALL*
25095         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25096         since they are generated.  Suggested by Bruno Haible.
25097
25098 2011-01-01  Jim Meyering  <meyering@redhat.com>
25099
25100         maint: refine the update-copyright rule
25101         * Makefile (update-copyright): Also exclude any file that includes
25102         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25103         code that merely generates the comment.
25104
25105 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25106
25107         New module 'u8-grapheme-len'.
25108         * modules/unigbrk/u8-grapheme-len: New file.
25109         * modules/unigbrk/u8-grapheme-len-tests: New file.
25110         * lib/unigbrk.in.h: Add prototype for new function.
25111         * lib/unigbrk/u8-grapheme-len.c: New file.
25112         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25113
25114         New module 'u16-grapheme-len'.
25115         * modules/unigbrk/u16-grapheme-len: New file.
25116         * modules/unigbrk/u16-grapheme-len-tests: New file.
25117         * lib/unigbrk.in.h: Add prototype for new function.
25118         * lib/unigbrk/u16-grapheme-len.c: New file.
25119         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25120
25121         New module 'u32-grapheme-len'.
25122         * modules/unigbrk/u32-grapheme-len: New file.
25123         * modules/unigbrk/u32-grapheme-len-tests: New file.
25124         * lib/unigbrk.in.h: Add prototype for new function.
25125         * lib/unigbrk/u32-grapheme-len.c: New file.
25126         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25127
25128         New module 'u8-grapheme-next'.
25129         * modules/unigbrk/u8-grapheme-next: New file.
25130         * modules/unigbrk/u8-grapheme-next-tests: New file.
25131         * lib/unigbrk.in.h: Add prototype for new function.
25132         * lib/unigbrk/u8-grapheme-next.c: New file.
25133         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25134
25135         New module 'u16-grapheme-next'.
25136         * modules/unigbrk/u16-grapheme-next: New file.
25137         * modules/unigbrk/u16-grapheme-next-tests: New file.
25138         * lib/unigbrk.in.h: Add prototype for new function.
25139         * lib/unigbrk/u16-grapheme-next.c: New file.
25140         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25141
25142         New module 'u32-grapheme-next'.
25143         * modules/unigbrk/u32-grapheme-next: New file.
25144         * modules/unigbrk/u32-grapheme-next-tests: New file.
25145         * lib/unigbrk.in.h: Add prototype for new function.
25146         * lib/unigbrk/u32-grapheme-next.c: New file.
25147         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25148
25149         New module 'u8-grapheme-prev'.
25150         * modules/unigbrk/u8-grapheme-prev: New file.
25151         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25152         * lib/unigbrk.in.h: Add prototype for new function.
25153         * lib/unigbrk/u8-grapheme-prev.c: New file.
25154         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25155
25156         New module 'u16-grapheme-prev'.
25157         * modules/unigbrk/u16-grapheme-prev: New file.
25158         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25159         * lib/unigbrk.in.h: Add prototype for new function.
25160         * lib/unigbrk/u16-grapheme-prev.c: New file.
25161         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25162
25163         New module 'u32-grapheme-prev'.
25164         * modules/unigbrk/u32-grapheme-prev: New file.
25165         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25166         * lib/unigbrk.in.h: Add prototype for new function.
25167         * lib/unigbrk/u32-grapheme-prev.c: New file.
25168         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25169
25170         New module 'u8-grapheme-breaks'.
25171         * modules/unigbrk/u8-grapheme-breaks: New file.
25172         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25173         * lib/unigbrk.in.h: Add prototype for new function.
25174         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25175         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25176
25177         New module 'u16-grapheme-breaks'.
25178         * modules/unigbrk/u16-grapheme-breaks: New file.
25179         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25180         * lib/unigbrk.in.h: Add prototype for new function.
25181         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25182         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25183
25184         New module 'u32-grapheme-breaks'.
25185         * modules/unigbrk/u32-grapheme-breaks: New file.
25186         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25187         * lib/unigbrk.in.h: Add prototype for new function.
25188         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25189         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25190
25191         New module 'ulc-grapheme-breaks'.
25192         * modules/unigbrk/ulc-grapheme-breaks: New file.
25193         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25194         * m4/locale-ar.m4: New file.
25195         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25196         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25197         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25198
25199 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25200
25201         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25202         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25203         modified how this file was generated before I initially submitted
25204         the module, but failed to regenerate it.  This meant that several
25205         of the level2 entries were wrong.
25206         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25207         Remove the division-by-2 that is folded into the table now that
25208         gbrkprop.h has been regenerated properly.  Now -1 entries are
25209         handled correctly.
25210
25211         New module 'unigbrk/uc-gbrk-prop-tests'.
25212         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25213         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25214         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25215         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25216
25217 2011-01-01  Bruno Haible  <bruno@clisp.org>
25218
25219         Avoid use of hexadecimal escapes.
25220         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25221         instead of hexadecimal escapes.
25222
25223 2011-01-01  Jim Meyering  <meyering@redhat.com>
25224
25225         maint: new rule to update copyright year ranges
25226         * Makefile (update-copyright): New rule.
25227
25228         maint: indent with TABs in Makefile
25229         * Makefile: Expand leading sequences of spaces to TABs
25230
25231         version-etc: update the copyright year it reports
25232         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25233
25234 2010-12-31  Bruno Haible  <bruno@clisp.org>
25235
25236         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25237         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25238         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25239         zero.
25240
25241 2010-12-31  Bruno Haible  <bruno@clisp.org>
25242
25243         pwrite: Work around HP-UX 11.11 bug.
25244         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25245         works and set REPLACE_PWRITE if not.
25246         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25247         function.
25248         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25249
25250 2010-12-31  Bruno Haible  <bruno@clisp.org>
25251
25252         pread: Work around HP-UX 11 bugs.
25253         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25254         and set REPLACE_PREAD if not.
25255         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25256
25257 2010-12-31  Eric Blake  <eblake@redhat.com>
25258
25259         nl_langinfo: fix YESEXPR on Irix 6.5
25260         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25261         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25262         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25263         it.
25264
25265 2010-12-31  Bruno Haible  <bruno@clisp.org>
25266
25267         iconv: Document HP-UX 11 bug.
25268         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25269
25270 2010-12-31  Bruno Haible  <bruno@clisp.org>
25271
25272         ldexpl: Fix link error on HP-UX 11.
25273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25274         LDEXPL_LIBM, using $ISNANL_LIBM.
25275
25276 2010-12-31  Eric Blake  <eblake@redhat.com>
25277
25278         ftello: avoid compilation failure with SunStudio c89
25279         * lib/ftello.c (ftello): Use lseek, not llseek.
25280
25281         tests: avoid failing coreutils tests on cygwin
25282         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25283         (create_exe_shims_): Return 0 when skipping.
25284
25285 2010-12-31  Bruno Haible  <bruno@clisp.org>
25286
25287         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25288         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25289
25290 2010-12-31  Bruno Haible  <bruno@clisp.org>
25291
25292         waitpid: Fix link error in C++ mode.
25293         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25294
25295 2010-12-31  Bruno Haible  <bruno@clisp.org>
25296
25297         isnan: Use GCC built-ins when possible.
25298         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25299         __builtin_isnan.
25300         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25301         (isnan): Define using GCC built-ins for GCC >= 4.0.
25302
25303 2010-12-31  Bruno Haible  <bruno@clisp.org>
25304
25305         isnand: Fix mistake.
25306         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25307         __builtin_isnand.
25308
25309 2010-12-31  Bruno Haible  <bruno@clisp.org>
25310
25311         open: Avoid C++ error on HP-UX 11.
25312         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25313
25314 2010-12-31  Bruno Haible  <bruno@clisp.org>
25315
25316         time_r: Add missing declarations on HP-UX 11.
25317         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25318         instead of HAVE_LOCALTIME_R.
25319         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25320         HAVE_LOCALTIME_R always.
25321         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25322         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25323         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25324         HAVE_LOCALTIME_R.
25325         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25326         * doc/posix-functions/localtime_r.texi: Likewise.
25327
25328 2010-12-29  Eric Blake  <eblake@redhat.com>
25329
25330         mountlist: tweak previous commit
25331         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25332         Reported by Paul Eggert.
25333
25334         mountlist: fix local drive detection on cygwin
25335         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25336         that works for cygwin.
25337
25338 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25339
25340         ftoastr, snprintf: ftoastr + snprintf module
25341         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25342         since the snprintf module now should be good enough here.
25343         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25344         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25345         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25346         GNULIB_SNPRINTF only for the test directory, and the latter
25347         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25348         seems to suffice by itself.
25349
25350 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25351
25352         alloca: one step towards thread-safety
25353         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25354         need for a static variable.  All callers changed.  This does not
25355         make the alloca replacement thread-safe, but it's one step.
25356
25357         tests: minor indenting change
25358         * tests/init.sh: Sync from coreutils housekeeping patch
25359         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25360         to keep lines within 80 columns.
25361
25362 2010-12-28  Jim Meyering  <meyering@redhat.com>
25363
25364         regex: don't infloop on persistent failing calloc
25365         * lib/regexec.c (build_trtable): Return failure indication upon
25366         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25367         In glibc, this was fixed for version 2.13:
25368         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25369
25370 2010-12-28  Bruno Haible  <bruno@clisp.org>
25371             Paul Eggert <eggert@cs.ucla.edu>
25372
25373         linkat: Make implementation robust against system behaviour variations.
25374         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25375         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25376         way, and to -2 if it needs a generic runtime test.
25377         * lib/linkat.c (solaris_optimized_link_immediate,
25378         solaris_optimized_link_follow): New functions.
25379         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25380         (check_same_link): Use it.
25381
25382 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25383
25384         New module 'unigbrk/base'.
25385         * modules/unigbrk/base: New file.
25386         * lib/unigbrk.in.h: New file.
25387
25388         New module 'unigbrk/uc-gbrk-prop'.
25389         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25390         * modules/unigbrk/uc-gbrk-prop: New file.
25391         * lib/unigbrk/gbrkprop.h: New file.
25392         * lib/unigbrk/uc-gbrk-prop.c: New file.
25393
25394         New module 'unigbrk/uc-is-grapheme-break'.
25395         * modules/unigbrk/uc-is-grapheme-break: New file.
25396         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25397         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25398         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25399         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25400         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25401
25402         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25403
25404 2010-12-27  Bruno Haible  <bruno@clisp.org>
25405
25406         linkat test: Avoid failure on Solaris 11 2010-11.
25407         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25408
25409 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25410
25411         utimens: work around glibc rounding bug on more platforms
25412         * lib/utimens.c (fdutimens): Work around rounding bug even if
25413         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25415
25416 2010-12-27  Bruno Haible  <bruno@clisp.org>
25417
25418         select tests: Improve comments.
25419         * tests/test-select.c (do_select): Add comments.
25420
25421 2010-12-27  Bruno Haible  <bruno@clisp.org>
25422
25423         select tests: Safer way of handling timeout.
25424         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25425         at every invocation.
25426
25427 2010-12-27  Bruno Haible  <bruno@clisp.org>
25428
25429         select tests: Use 'bool' where appropriate.
25430         * tests/test-select.c (connect_to_socket): Change argument type to
25431         'bool'.
25432
25433 2010-12-27  Bruno Haible  <bruno@clisp.org>
25434
25435         select tests: Use existing modules.
25436         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25437         (configure.ac): Don't test for unistd.h.
25438         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25439         declared in <unistd.h>.
25440
25441 2010-12-27  Bruno Haible  <bruno@clisp.org>
25442
25443         mbrtowc: Work around a Solaris 7 bug.
25444         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25445         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25446         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25447         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25448         MBRTOWC_NULL_ARG1_BUG.
25449         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25450         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25451         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25452         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25453
25454 2010-12-27  Jim Meyering  <meyering@redhat.com>
25455
25456         read-file.c: tweak syntax
25457         * lib/read-file.c (fread_file): Remove space after "*" in function
25458         definitions.
25459
25460 2010-12-27  Bruno Haible  <bruno@clisp.org>
25461
25462         times test: Avoid gcc warnings on OSF/1.
25463         * tests/test-times.c (main): Cast printf arguments from clock_t to
25464         'long int'.
25465
25466 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25467
25468         utimens: work around glibc rounding bug on older Linux kernels
25469         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25470         on Linux with a glibc whose utimes might not work, then work
25471         around a longstanding glibc bug involving rounding rather than
25472         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25473         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25474
25475 2010-12-26  Bruno Haible  <bruno@clisp.org>
25476
25477         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25478         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25479         _GL_CXXALIAS_SYS.
25480         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25481
25482 2010-12-26  Bruno Haible  <bruno@clisp.org>
25483
25484         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25485         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25486         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25487         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25488         looking for the declaration.
25489         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25490         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25491         problem.
25492         * doc/posix-functions/inet_pton.texi: Likewise.
25493
25494 2010-12-26  Bruno Haible  <bruno@clisp.org>
25495
25496         arpa_inet: Use the common idioms with C++ support.
25497         * lib/arpa_inet.in.h: Include c++defs.h.
25498         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25499         support.
25500         * modules/arpa_inet (Depends-on): Add c++defs.
25501         (Makefile.am): Substitute the contents of c++defs.h.
25502         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25503         * modules/arpa_inet-c++-tests: New file.
25504         * tests/test-arpa_inet-c++.cc: New file.
25505
25506 2010-12-25  Bruno Haible  <bruno@clisp.org>
25507
25508         Fix more C++ link errors on Solaris 8.
25509         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25510         $(LIB_EACCESS).
25511         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25512         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25513         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25514         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25515         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25516
25517 2010-12-25  Bruno Haible  <bruno@clisp.org>
25518
25519         printf-posix: Fix link error when a non-GCC compiler is used.
25520         * lib/stdio.in.h (printf): When not using GCC, override printf
25521         correctly.
25522         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25523
25524 2010-12-25  Bruno Haible  <bruno@clisp.org>
25525
25526         strerror_r-posix: Update doc.
25527         * doc/posix-functions/strerror_r.texi: Update doc about the return
25528         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25529
25530 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25531
25532         utimens: simplify the logic of the previous change
25533         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25534         This should not affect whether the test succeeds or fails.
25535
25536         utimens: configure better on hosts with NFS clock skew
25537         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25538         uses the clock of the local host.  It might use the clock of the
25539         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25541
25542 2010-12-25  Bruno Haible  <bruno@clisp.org>
25543
25544         ptsname test: Avoid failure on Solaris.
25545         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25546         open a pseudo-terminal; don't use BSD-style ptys.
25547         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25548
25549 2010-12-25  Bruno Haible  <bruno@clisp.org>
25550
25551         ptsname: Avoid ERANGE failure on some systems.
25552         * lib/ptsname.c (buffer): Increase size.
25553
25554 2010-12-25  Bruno Haible  <bruno@clisp.org>
25555
25556         rename, renameat: Avoid test failures at NFS mounted locations.
25557         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25558         so that subsequent mkdir calls succeed.
25559
25560 2010-12-25  Bruno Haible  <bruno@clisp.org>
25561
25562         iswblank: Fix C++ link error on Solaris 8.
25563         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25564         _GL_FUNCDECL_SYS.
25565
25566 2010-12-25  Bruno Haible  <bruno@clisp.org>
25567
25568         unistd: Fix C++ link error on Solaris 8.
25569         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25570
25571 2010-12-25  Bruno Haible  <bruno@clisp.org>
25572
25573         readlink doc: Mention an old glibc bug.
25574         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25575
25576 2010-12-25  Bruno Haible  <bruno@clisp.org>
25577
25578         fcntl-h: Fix for use of C++ on glibc systems.
25579         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25580         also on glibc systems in C++ mode.
25581         Reported by Gary V. Vaughan <gary@gnu.org>.
25582
25583 2010-12-25  Bruno Haible  <bruno@clisp.org>
25584
25585         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25586         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25587
25588 2010-12-25  Bruno Haible  <bruno@clisp.org>
25589
25590         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25591         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25592         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25593         test whether truncl works according to ISO C 99 with IEC 60559.
25594         * m4/truncl-ieee.m4: New file.
25595         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25596         m4/signbit.m4.
25597         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25598
25599 2010-12-25  Bruno Haible  <bruno@clisp.org>
25600
25601         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25602         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25603         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25604         test whether ceill works according to ISO C 99 with IEC 60559.
25605         * m4/ceill-ieee.m4: New file.
25606         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25607         m4/signbit.m4.
25608         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25609
25610 2010-12-25  Bruno Haible  <bruno@clisp.org>
25611
25612         Ensure all prerequisites of <wchar.h> are included.
25613         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25614         before <wchar.h>.
25615         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25616         gl_MBRLEN_NUL_RETVAL): Likewise.
25617         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25618         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25619         AC_FUNC_MBRTOWC): Likewise.
25620         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25621         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25622         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25623         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25624         Likewise.
25625         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25626         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25627         (gl_WCHAR_H): Improve comments.
25628         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25629
25630 2010-12-25  Bruno Haible  <bruno@clisp.org>
25631
25632         strtok_r: Fix C syntax error in autoconf macro.
25633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25634         characters in test program.
25635
25636 2010-12-24  Bruno Haible  <bruno@clisp.org>
25637
25638         ceil, trunc, round: Fix gcc warnings.
25639         * lib/ceil.c (MIN): Undefine before redefining.
25640         * lib/trunc.c (MIN): Likewise.
25641         * lib/round.c (MIN): Likewise.
25642         Include <math.h> first.
25643
25644 2010-12-24  Bruno Haible  <bruno@clisp.org>
25645
25646         select tests: Avoid failures on OSF/1 5.1.
25647         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25648         failure of closing the last socket; it may fail with ECONNRESET.
25649
25650 2010-12-24  Eric Blake  <eblake@redhat.com>
25651
25652         stdint: avoid HP-UX 10.20 preprocessor bug
25653         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25654         than #if.
25655         * tests/test-floor2.c (main): Likewise.
25656         Reported by Peter O'Gorman.
25657
25658         pipe: make obsoletion transition easier
25659         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25660         * modules/pipe (Files): Include revived file.
25661         (Include): Drop reference, to mirror getdate's behavior.
25662
25663 2010-12-24  Bruno Haible  <bruno@clisp.org>
25664
25665         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25666         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25667         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25668         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25669
25670 2010-12-24  Bruno Haible  <bruno@clisp.org>
25671
25672         gethostname: Ensure declaration on NonStop Kernel.
25673         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25674         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25675
25676 2010-12-24  Bruno Haible  <bruno@clisp.org>
25677
25678         sys_select: Ensure all necessary types on NonStop Kernel.
25679         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25680         include <sys/time.h>.
25681         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25682         NonStop Kernel.
25683         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25684
25685 2010-12-24  Bruno Haible  <bruno@clisp.org>
25686
25687         sys_select: Remove unneeded include.
25688         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25689         have <sys/select.h>.
25690
25691 2010-12-24  Bruno Haible  <bruno@clisp.org>
25692
25693         gethostname: Provide a fallback for HOST_NAME_MAX.
25694         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25695         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25696         instead.
25697         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25698
25699 2010-12-24  Bruno Haible  <bruno@clisp.org>
25700
25701         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25702         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25703         (SA_RESTART): Likewise.
25704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25705
25706 2010-12-24  Bruno Haible  <bruno@clisp.org>
25707
25708         signal: Define NSIG.
25709         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25710         * tests/test-signal.c (nsig): New variable.
25711         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25712
25713 2010-12-24  Bruno Haible  <bruno@clisp.org>
25714
25715         rename, renameat: Avoid test failures on OSF/1 5.1.
25716         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25717         alternative error codes.
25718         * tests/test-renameat.c (main): Likewise.
25719
25720 2010-12-24  Bruno Haible  <bruno@clisp.org>
25721
25722         *printf: Detect large precisions bug on Solaris 10/SPARC.
25723         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25724         by Paul Eggert.
25725         * tests/test-snprintf-posix.h (test_function): Add this test code here
25726         too.
25727         * tests/test-sprintf-posix.h (test_function): Likewise.
25728         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25729         * tests/test-vasprintf-posix.c (test_function): Likewise.
25730         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25731         around by gnulib.
25732         * doc/posix-functions/printf.texi: Likewise.
25733         * doc/posix-functions/snprintf.texi: Likewise.
25734         * doc/posix-functions/sprintf.texi: Likewise.
25735         * doc/posix-functions/vfprintf.texi: Likewise.
25736         * doc/posix-functions/vprintf.texi: Likewise.
25737         * doc/posix-functions/vsnprintf.texi: Likewise.
25738         * doc/posix-functions/vsprintf.texi: Likewise.
25739         * doc/posix-functions/dprintf.texi: Undo last commit.
25740         * doc/posix-functions/vdprintf.texi: Likewise.
25741
25742 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25743
25744         tests: port test-fdutimensat.c to Solaris 8
25745         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25746         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25747         On Solaris 8, it fails with errno == ENOSYS, because there is no
25748         futimens (so it can't use the fd), and there is no lutimens (so it
25749         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25750
25751         vsnprintf: make more consistent with snprintf; doc fixes
25752
25753         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25754         the byte count return problem was promoted from the snprintf-posix
25755         to the snprintf module.
25756         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25757         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25758         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25759         * tests/test-snprintf.c (main): Check the byte count returned.
25760         * tests/test-vsnprintf.c (main): Likewise.
25761
25762 2010-12-23  Eric Blake  <eblake@redhat.com>
25763
25764         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25765         * modules/sigpipe (License): Relax license.
25766
25767 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25768
25769         doc: document Solaris printf bug with large float precisions
25770         * doc/posix-functions/dprintf.texi (dprintf):
25771         * doc/posix-functions/fprintf.texi (fprintf):
25772         * doc/posix-functions/printf.texi (printf):
25773         * doc/posix-functions/snprintf.texi (snprintf):
25774         * doc/posix-functions/sprintf.texi (sprintf):
25775         * doc/posix-functions/vdprintf.texi (vdprintf):
25776         * doc/posix-functions/vfprintf.texi (vfprintf):
25777         * doc/posix-functions/vprintf.texi (vprintf):
25778         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25779         * doc/posix-functions/vsprintf.texi (vsprintf):
25780         Mention that these functions mishandle large floating point
25781         precisions on Solaris 10.  The same bug is also present in Solaris
25782         8, and I assume earlier.  This causes "cd gnulib-tests; make
25783         check" to fail on Solaris 8 (and I assume, later) when building
25784         the latest coreutils, in test-vasprintf-posix's call to
25785         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25786         the wide flavors (e.g., wprintf) so this patch just updates the
25787         documentation for the narrow ones.
25788
25789         test-posixtm.c: add two tests
25790         * tests/test-posixtm.c: Add two tests, to highlight the
25791         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25792         around this bug; this is merely to document it.
25793
25794 2010-12-22  Bruno Haible  <bruno@clisp.org>
25795
25796         getlogin_r: Work around portability problem on OSF/1.
25797         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25798         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25799         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25800         test for a truncated result.
25801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25802         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25803         * modules/getlogin_r (Depends-on): Add memchr.
25804         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25805
25806 2010-12-22  Bruno Haible  <bruno@clisp.org>
25807
25808         ptsname: Avoid test failure on OSF/1 5.1.
25809         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25810         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25811         (same_slave): New function.
25812         (main): Use it to compare ptsname's result with the expected file name.
25813
25814 2010-12-22  Bruno Haible  <bruno@clisp.org>
25815
25816         Port extended stdio modules to HP NonStop Kernel.
25817         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25818         macros.
25819         * lib/fbufmode.c: Update comments.
25820         * lib/fflush.c: Likewise.
25821         * lib/fpurge.c: Likewise.
25822         * lib/freadable.c: Likewise.
25823         * lib/freadahead.c: Likewise.
25824         * lib/freading.c: Likewise.
25825         * lib/freadptr.c: Likewise.
25826         * lib/freadseek.c: Likewise.
25827         * lib/fseeko.c: Likewise.
25828         * lib/fseterr.c: Likewise.
25829         * lib/fwritable.c: Likewise.
25830         * lib/fwriting.c: Likewise.
25831         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25832
25833 2010-12-22  Bruno Haible  <bruno@clisp.org>
25834
25835         ttyname_r: Work around bug on OSF/1 5.1.
25836         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25837         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25838         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25839         present.
25840         * lib/ttyname_r.c (ttyname_r): Update comments.
25841
25842 2010-12-22  Bruno Haible  <bruno@clisp.org>
25843
25844         round: Implement result sign according to IEEE 754.
25845         * lib/round.c (MIN, MINUS_ZERO): New macros.
25846         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25847         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25848         * tests/test-round-ieee.c (main): Likewise.
25849         * tests/test-roundl-ieee.c (main): Likewise.
25850
25851         trunc: Implement result sign according to IEEE 754.
25852         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25853         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25854         * tests/test-trunc2.c: Include minus-zero.h.
25855         (MINUS_ZERO): New macro.
25856         (trunc_reference): Keep in sync with lib/trunc.c.
25857         * tests/test-truncf2.c: Include minus-zero.h.
25858         (MINUS_ZERO): New macro.
25859         (truncf_reference): Keep in sync with lib/trunc.c.
25860         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25861         * tests/test-trunc-ieee.c (main): Likewise.
25862         * tests/test-truncl-ieee.c (main): Likewise.
25863
25864         ceil: Implement result sign according to IEEE 754.
25865         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25866         (FUNC): Return -0.0 for -1 < x < 0.
25867         * tests/test-ceil2.c: Include minus-zero.h.
25868         (MINUS_ZERO): New macro.
25869         (ceil_reference): Keep in sync with lib/ceil.c.
25870         * tests/test-ceilf2.c: Include minus-zero.h.
25871         (MINUS_ZERO): New macro.
25872         (ceilf_reference): Keep in sync with lib/ceil.c.
25873         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25874         * tests/test-ceil-ieee.c (main): Likewise.
25875         * tests/test-ceill-ieee.c (main): Likewise.
25876
25877         floor: Implement result sign according to IEEE 754.
25878         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25879         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25880         * tests/test-floorf2.c (floorf_reference): Likewise.
25881         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25882         * tests/test-floor-ieee.c (main): Likewise.
25883         * tests/test-floorl-ieee.c (main): Likewise.
25884
25885 2010-12-22  Bruno Haible  <bruno@clisp.org>
25886
25887         getaddrinfo: Update doc.
25888         * doc/posix-functions/gai_strerror.texi: Return type is also different
25889         on AIX and HP-UX.
25890
25891 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25892
25893         getaddrinfo, inet_ntop: Update doc for Solaris.
25894         * doc/posix-functions/gai_strerror.texi: Return type is also an
25895         issue on Solaris 9 and earlier.
25896         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25897         on Solaris 10 and earlier.
25898
25899 2010-12-21  Bruno Haible  <bruno@clisp.org>
25900
25901         New module 'roundl-ieee'.
25902         * modules/roundl-ieee: New file.
25903         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25904         test whether roundl works according to ISO C 99 with IEC 60559.
25905         * m4/roundl-ieee.m4: New file.
25906         * modules/roundl-ieee-tests: New file.
25907         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25908         * tests/test-roundl.c (main): Remove signbit tests.
25909         * modules/roundl-tests (Depends-on): Remove signbit.
25910         * doc/posix-functions/roundl.texi: Mention the new module.
25911
25912 2010-12-21  Bruno Haible  <bruno@clisp.org>
25913
25914         New module 'truncl-ieee'.
25915         * modules/truncl-ieee: New file.
25916         * modules/truncl-ieee-tests: New file.
25917         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25918         * tests/test-truncl.c (main): Remove signbit tests.
25919         * modules/truncl-tests (Depends-on): Remove signbit.
25920         * doc/posix-functions/truncl.texi: Mention the new module.
25921
25922 2010-12-21  Bruno Haible  <bruno@clisp.org>
25923
25924         New module 'ceill-ieee'.
25925         * modules/ceill-ieee: New file.
25926         * modules/ceill-ieee-tests: New file.
25927         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25928         * tests/test-ceill.c (main): Remove signbit tests.
25929         * modules/ceill-tests (Depends-on): Remove signbit.
25930         * doc/posix-functions/ceill.texi: Mention the new module.
25931
25932 2010-12-21  Bruno Haible  <bruno@clisp.org>
25933
25934         New module 'floorl-ieee'.
25935         * modules/floorl-ieee: New file.
25936         * modules/floorl-ieee-tests: New file.
25937         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25938         * tests/test-floorl.c (main): Remove signbit tests.
25939         * modules/floorl-tests (Depends-on): Remove signbit.
25940         * doc/posix-functions/floorl.texi: Mention the new module.
25941
25942 2010-12-21  Bruno Haible  <bruno@clisp.org>
25943
25944         New module 'round-ieee'.
25945         * modules/round-ieee: New file.
25946         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25947         whether round works according to ISO C 99 with IEC 60559.
25948         * m4/round-ieee.m4: New file.
25949         * modules/round-ieee-tests: New file.
25950         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25951         * tests/test-round1.c (main): Remove signbit tests.
25952         * modules/round-tests (Depends-on): Remove 'signbit'.
25953         * doc/posix-functions/round.texi: Mention the new module.
25954
25955 2010-12-21  Bruno Haible  <bruno@clisp.org>
25956
25957         New module 'trunc-ieee'.
25958         * modules/trunc-ieee: New file.
25959         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25960         whether trunc works according to ISO C 99 with IEC 60559.
25961         * m4/trunc-ieee.m4: New file.
25962         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25964         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25965         * modules/trunc-ieee-tests: New file.
25966         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25967         * tests/test-trunc1.c (main): Remove signbit tests.
25968         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25969         * doc/posix-functions/trunc.texi: Mention the new module.
25970
25971 2010-12-21  Bruno Haible  <bruno@clisp.org>
25972
25973         New module 'ceil-ieee'.
25974         * modules/ceil-ieee: New file.
25975         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25976         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25977         ISO C 99 with IEC 60559.
25978         * m4/ceil-ieee.m4: New file.
25979         * modules/ceil (Files): Add lib/ceil.c.
25980         (Depends-on): Add 'float'.
25981         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25982         * lib/math.in.h (ceil): New declaration.
25983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25984         REPLACE_CEIL.
25985         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25986         * modules/ceil-ieee-tests: New file.
25987         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25988         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25989         * doc/posix-functions/ceil.texi: Mention the new module.
25990
25991 2010-12-21  Bruno Haible  <bruno@clisp.org>
25992
25993         New module 'floor-ieee'.
25994         * modules/floor-ieee: New file.
25995         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25996         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25997         ISO C 99 with IEC 60559.
25998         * m4/floor-ieee.m4: New file.
25999         * modules/floor (Files): Add lib/floor.c.
26000         (Depends-on): Add 'float'.
26001         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26002         * lib/math.in.h (floor): New declaration.
26003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26004         REPLACE_FLOOR.
26005         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26006         * modules/floor-ieee-tests: New file.
26007         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26008         * tests/test-math-c++.cc: Check the signature of 'floor'.
26009         * doc/posix-functions/floor.texi: Mention the new module.
26010
26011 2010-12-21  Bruno Haible  <bruno@clisp.org>
26012
26013         New module 'roundf-ieee'.
26014         * modules/roundf-ieee: New file.
26015         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26016         test whether roundf works according to ISO C 99 with IEC 60559.
26017         * m4/roundf-ieee.m4: New file.
26018         * modules/roundf-ieee-tests: New file.
26019         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26020         * tests/test-roundf1.c (main): Remove signbit tests.
26021         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26022         * doc/posix-functions/roundf.texi: Mention the new module.
26023
26024 2010-12-21  Bruno Haible  <bruno@clisp.org>
26025
26026         New module 'truncf-ieee'.
26027         * modules/truncf-ieee: New file.
26028         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26029         test whether truncf works according to ISO C 99 with IEC 60559.
26030         * m4/truncf-ieee.m4: New file.
26031         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26033         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26034         * modules/truncf-ieee-tests: New file.
26035         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26036         * tests/test-truncf1.c (main): Remove signbit tests.
26037         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26038         * doc/posix-functions/truncf.texi: Mention the new module.
26039
26040 2010-12-21  Bruno Haible  <bruno@clisp.org>
26041
26042         New module 'ceilf-ieee'.
26043         * modules/ceilf-ieee: New file.
26044         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26045         test whether ceilf works according to ISO C 99 with IEC 60559.
26046         * m4/ceilf-ieee.m4: New file.
26047         * modules/ceilf-ieee-tests: New file.
26048         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26049         * tests/test-ceilf1.c (main): Remove signbit tests.
26050         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26051         * doc/posix-functions/ceilf.texi: Mention the new module.
26052
26053 2010-12-21  Bruno Haible  <bruno@clisp.org>
26054
26055         New module 'floorf-ieee'.
26056         * modules/floorf-ieee: New file.
26057         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26058         test whether floorf works according to ISO C 99 with IEC 60559.
26059         * m4/floorf-ieee.m4: New file.
26060         * modules/floorf-ieee-tests: New file.
26061         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26062         * tests/test-floorf1.c (main): Remove signbit tests.
26063         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26064         * doc/posix-functions/floorf.texi: Mention the new module.
26065
26066 2010-12-21  Bruno Haible  <bruno@clisp.org>
26067
26068         Support for minus zero in autoconf macros.
26069         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26070         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26071         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26072         * tests/minus-zero.h: Update comments.
26073
26074 2010-12-21  Bruno Haible  <bruno@clisp.org>
26075
26076         Tests for module 'ceil'.
26077         * modules/ceil-tests: New file.
26078         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26079         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26080
26081 2010-12-21  Bruno Haible  <bruno@clisp.org>
26082
26083         Tests for module 'floor'.
26084         * modules/floor-tests: New file.
26085         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26086         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26087
26088 2010-12-21  Bruno Haible  <bruno@clisp.org>
26089
26090         math: Fix indentation.
26091         * lib/math.in.h (floorf): Fix indentation.
26092
26093 2010-12-21  Bruno Haible  <bruno@clisp.org>
26094
26095         Fix cross-compilation guesses on Solaris.
26096         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26097         not match "solaris2.10".
26098         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26099         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26100         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26101
26102 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26103
26104         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26105         This fixes a problem observed with the latest coreutils snapshot
26106         that caused a test to fail on Solaris 8.  src/csplit.c's call
26107         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26108         earlier, instead of returning the number of bytes that would have
26109         been generated; this causes csplit to incorrectly report memory
26110         exhaustion.
26111         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26112         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26113         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26114         comments to match.
26115         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26116         Fix typo in matching older versions of Solaris: "solaris2.10"
26117         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26118         only for guessing while cross-compiling.
26119         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26120
26121 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26122
26123         ftoastr: fix comment again
26124         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26126         Also, simplify example a bit by using flags = 0.
26127
26128 2010-12-20  Bruno Haible  <bruno@clisp.org>
26129
26130         round*, trunc*: Update documentation regarding glibc.
26131         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26132         * doc/posix-functions/round.texi: Likewise.
26133         * doc/posix-functions/roundl.texi: Likewise.
26134         * doc/posix-functions/truncf.texi: Likewise.
26135         * doc/posix-functions/trunc.texi: Likewise.
26136         * doc/posix-functions/truncl.texi: Likewise.
26137
26138 2010-12-20  Bruno Haible  <bruno@clisp.org>
26139
26140         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26141         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26142         * doc/posix-functions/round.texi: Likewise.
26143         * doc/posix-functions/roundl.texi: Likewise.
26144
26145 2010-12-20  Bruno Haible  <bruno@clisp.org>
26146
26147         ttyname_r: Add missing declaration on HP-UX 11.
26148         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26149         HAVE_TTYNAME_R.
26150         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26151         declared. Set HAVE_TTYNAME_R always.
26152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26153         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26154         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26155         HAVE_TTYNAME_R.
26156         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26157
26158 2010-12-20  Bruno Haible  <bruno@clisp.org>
26159
26160         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26161         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26162         * doc/posix-functions/getlogin_r.texi: Likewise.
26163         * tests/test-getlogin.c: Include <errno.h>.
26164         (main): Avoid test failure on HP-UX 11.11.
26165         * tests/test-getlogin_r.c (main): Likewise.
26166
26167 2010-12-20  Bruno Haible  <bruno@clisp.org>
26168
26169         getlogin_r: Add missing declaration on HP-UX 11.
26170         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26171         declared also when it exists as a function.
26172         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26173
26174 2010-12-20  Bruno Haible  <bruno@clisp.org>
26175
26176         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26177         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26178         through wcrtomb.
26179
26180 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26181
26182         ftoastr: fix comment
26183         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26185
26186 2010-12-19  Bruno Haible  <bruno@clisp.org>
26187
26188         isnan: Ensure it is a macro.
26189         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26190         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26191         Solaris.
26192
26193 2010-12-19  Bruno Haible  <bruno@clisp.org>
26194
26195         ldexpl test: Fix link error on OSF/1 5.1.
26196         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26197
26198 2010-12-19  Bruno Haible  <bruno@clisp.org>
26199
26200         wctype: Make it work in C++ mode on OSF/1 5.1.
26201         * lib/wctype.in.h (iswblank): Declare but not define here.
26202         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26203         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26204         * modules/wctype (Files): Add lib/iswblank.c.
26205
26206 2010-12-19  Bruno Haible  <bruno@clisp.org>
26207
26208         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26209         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26210         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26211
26212 2010-12-19  Bruno Haible  <bruno@clisp.org>
26213
26214         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26216         _POSIX_PII_SOCKET.
26217         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26218         * doc/posix-functions/recvfrom.texi: Likewise.
26219         * doc/posix-functions/send.texi: Likewise.
26220         * doc/posix-functions/sendto.texi: Likewise.
26221
26222 2010-12-19  Bruno Haible  <bruno@clisp.org>
26223
26224         tcgetsid: Add missing declaration on OSF/1 5.1.
26225         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26226         HAVE_TCGETSID.
26227         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26228         Don't set HAVE_TCGETSID.
26229         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26230         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26231         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26232         HAVE_TCGETSID.
26233         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26234
26235 2010-12-19  Bruno Haible  <bruno@clisp.org>
26236
26237         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26238         * lib/stdio.in.h: During the include_next statement, let recursive
26239         includes of this file include only the system header file.
26240
26241 2010-12-19  Bruno Haible  <bruno@clisp.org>
26242
26243         iconv_open: Fix regression from 2010-12-04.
26244         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26245         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26246
26247 2010-12-19  Bruno Haible  <bruno@clisp.org>
26248
26249         stdbool test: Avoid a gcc warning.
26250         * tests/test-stdbool.c (main): Fail if e1 is false.
26251         Reported by Jim Meyering.
26252
26253 2010-12-19  Jim Meyering  <meyering@redhat.com>
26254
26255         setenv: restore to working order
26256         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26257         mistakenly removed.
26258         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26259         HAVE_SETENV.
26260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26261         HAVE_SETENV.
26262
26263 2010-12-19  Bruno Haible  <bruno@clisp.org>
26264
26265         Document some different function declarations on OSF/1 5.1.
26266         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26267         * doc/posix-functions/inet_ntop.texi: Likewise.
26268         * doc/posix-functions/gethostname.texi: Likewise.
26269         * lib/unistd.in.h (gethostname): Update comment.
26270
26271 2010-12-19  Bruno Haible  <bruno@clisp.org>
26272
26273         doc: Mention vasprintf-posix module.
26274         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26275         the 'vasprintf-posix' module.
26276         * doc/glibc-functions/vasprintf.texi: Likewise.
26277
26278 2010-12-19  Bruno Haible  <bruno@clisp.org>
26279
26280         unsetenv: Add missing declaration on OSF/1 5.1.
26281         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26282         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26283         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26285         not HAVE_UNSETENV.
26286         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26287         HAVE_UNSETENV.
26288         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26289
26290 2010-12-19  Bruno Haible  <bruno@clisp.org>
26291
26292         setenv: Add missing declaration on OSF/1 5.1.
26293         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26295         declared. Don't set HAVE_SETENV.
26296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26297         not HAVE_SETENV.
26298         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26299         HAVE_SETENV.
26300         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26301
26302 2010-12-19  Bruno Haible  <bruno@clisp.org>
26303
26304         nl_langinfo tests: Avoid gcc warning.
26305         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26306
26307 2010-12-19  Bruno Haible  <bruno@clisp.org>
26308
26309         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26310         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26311         _GL_CXXALIAS_SYS.
26312
26313 2010-12-19  Bruno Haible  <bruno@clisp.org>
26314
26315         stdbool: Relax test.
26316         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26317         address to 'bool' work in static initializer, for compilers other than
26318         GCC.
26319
26320 2010-12-19  Bruno Haible  <bruno@clisp.org>
26321
26322         ftello: Add missing declaration on OSF/1 5.1.
26323         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26324         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26326         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26327         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26328
26329 2010-12-19  Bruno Haible  <bruno@clisp.org>
26330
26331         fseeko: Add missing declaration on OSF/1 5.1.
26332         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26333         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26335         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26336         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26337
26338 2010-12-19  Bruno Haible  <bruno@clisp.org>
26339
26340         fchdir: Add missing declaration on OSF/1 5.1.
26341         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26344         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26345         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26346
26347 2010-12-19  Bruno Haible  <bruno@clisp.org>
26348
26349         relocatable-prog-wrapper: Separate from relocatable-prog.
26350         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26351         uninstall-relocwrapper rule here.
26352         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26353         Reported by Ian Beckwith <ianb@erislabs.net>.
26354
26355 2010-12-19  Bruno Haible  <bruno@clisp.org>
26356
26357         unistr/u8-mbsnlen: Add missing dependency.
26358         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26359         Reported by Ian Beckwith <ianb@erislabs.net>.
26360
26361 2010-12-19  Bruno Haible  <bruno@clisp.org>
26362
26363         iconv: Make it possible again to use this module without 'iconv-h'.
26364         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26365         if it is not defined.
26366         Reported by Ian Beckwith <ianb@erislabs.net>.
26367
26368 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26369
26370         acl: port to Solaris 8 when copying from tmpfs to ufs
26371         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26372         error number.  Problem observed on Solaris 8 with latest
26373         coreutils, with "mv A B", where A is on a tmpfs file system and B
26374         is on a ufs file system.  This caused coreutils' mv/part-symlink
26375         test to fail.
26376
26377         tests: set fail=0 at start
26378         * tests/init.sh (setup_): Move fail=0 initialization here ...
26379         (mktempd_): ... from here, so that tests can rely on fail being
26380         set to 0 initially.  This fixes a problem in coreutils; see:
26381         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26382
26383 2010-12-18  Bruno Haible  <bruno@clisp.org>
26384
26385         memmem-simple: Stylistic changes.
26386         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26387         Fix preprocessor directive indentation.
26388
26389 2010-12-15  Pádraig Brady <P@draigBrady.com>
26390
26391         memmem, memmem-simple: reorganize and expand empty needle check
26392         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26393         functional checks to memmem-simple so that one has a fully functional
26394         memmem by using just this module.
26395         Restrict the performance only check to the memmem module.
26396         Also expand the empty needle check to ensure the correct
26397         pointer is returned, not just a non NULL pointer.
26398         * doc/glibc-functions/memmem.texi: Rearrange the portability
26399         documentation to correlate with the rearranged checks.
26400         Clarify exactly how the memmem and memmem-simple modules
26401         relate to each other.
26402
26403 2010-12-15  Pádraig Brady <P@draigBrady.com>
26404             Bruno Haible  <bruno@clisp.org>
26405
26406         Improve cross-compilation guesses for uClibc.
26407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26408         that uClibc does not have the glibc bug.
26409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26410         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26411
26412 2010-12-14  Eric Blake  <eblake@redhat.com>
26413
26414         configmake: provide fallbacks for oldest supported autotools
26415         * m4/configmake.m4: New file.
26416         * modules/configmake (Files): Ship it.
26417         (configure.ac): Use it to guarantee fallbacks.
26418
26419 2010-12-13  Pádraig Brady <P@draigBrady.com>
26420
26421         read-file: Improve handling of large files
26422         * lib/read-file.c (fread_file): Minimize realloc()s
26423         for regular files, and better manage sizes around SIZE_MAX.
26424
26425 2010-12-13  Eric Blake  <eblake@redhat.com>
26426
26427         cloexec, fcntl: relax license
26428         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26429         consent from all contributors.
26430         * modules/fcntl (License): Likewise.
26431
26432 2010-12-10  Bruno Haible  <bruno@clisp.org>
26433
26434         Tests for module 'pipe-posix'.
26435         * modules/pipe-posix-tests: New file.
26436         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26437
26438 2010-12-10  Bruno Haible  <bruno@clisp.org>
26439
26440         pipe-posix: Make it work in C++ mode.
26441         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26442         (pipe): Use common idiom, not a macro definition.
26443         * lib/pipe.c: New file.
26444         * m4/pipe.m4: New file.
26445         * modules/pipe-posix (Description): Enhance.
26446         (Files): Add lib/pipe.c, m4/pipe.m4.
26447         (configure.ac): Invoke gl_FUNC_PIPE.
26448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26449         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26450         * tests/test-unistd-c++.cc: Check the signature of pipe.
26451
26452 2010-12-10  Bruno Haible  <bruno@clisp.org>
26453
26454         Rename module 'pipe' to 'spawn-pipe'.
26455         * modules/spawn-pipe: New file, renamed from modules/pipe.
26456         (Files, configure.ac, Makefile.am): Update.
26457         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26458         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26459         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26460         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26461         "spawn-pipe.h" instead of "pipe.h".
26462         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26463         to gl_SPAWN_PIPE.
26464         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26465         (Files, Makefile.am): Update.
26466         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26467         Update.
26468         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26469         Include "spawn-pipe.h" instead of "pipe.h".
26470         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26471         * lib/javacomp.c: Likewise.
26472         * lib/javaversion.c: Likewise.
26473         * lib/pipe-filter-gi.c: Likewise.
26474         * lib/pipe-filter-ii.c: Likewise.
26475         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26476         * modules/javacomp (Depends-on): Likewise.
26477         * modules/javaversion (Depends-on): Likewise.
26478         * modules/pipe-filter-gi (Depends-on): Likewise.
26479         * modules/pipe-filter-ii (Depends-on): Likewise.
26480         * MODULES.html.sh (Executing programs): Update.
26481         * NEWS: Mention the change.
26482
26483 2010-12-10  Eric Blake  <eblake@redhat.com>
26484
26485         pipe-posix: new module
26486         * modules/pipe-posix: New file.
26487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26488         (gl_UNISTD_H): Check for declaration.
26489         * modules/unistd (Makefile.am): Substitute it.
26490         * lib/unistd.in.h (pipe): Provide it for mingw.
26491         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26492         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26493
26494 2010-12-07  Bruno Haible  <bruno@clisp.org>
26495
26496         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26497         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26498         u8_strcmp_gnu.
26499         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26500
26501 2010-12-06  Bruno Haible  <bruno@clisp.org>
26502
26503         Update internal documentation.
26504         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26505
26506 2010-12-04  Bruno Haible  <bruno@clisp.org>
26507
26508         Put more information about failed tests into the test return codes.
26509         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26510         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26513         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26514         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26515         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26516         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26517         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26519         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26520         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26521         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26522         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26523         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26524         returns a bit mask.
26525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26526         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26527         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26528         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26529         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26530         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26531         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26533         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26534         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26535         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26536         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26537         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26539         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26540         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26541         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26542         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26543         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26544         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26545         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26546         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26548         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26549         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26550         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26551         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26552         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26553         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26554         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26555         gl_PRINTF_PRECISION): Likewise.
26556         * m4/regex.m4 (gl_REGEX): Likewise.
26557         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26559         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26560         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26561         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26563         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26564         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26565         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26566         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26567         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26568         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26569         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26570         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26571         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26572         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26573         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26574         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26576         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26577         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26578         enumerated value.
26579         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26580
26581 2010-12-04  Bruno Haible  <bruno@clisp.org>
26582
26583         Update for Solaris 11 2010-11.
26584         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26585         Express, released in November 2010.
26586
26587 2010-12-04  Bruno Haible  <bruno@clisp.org>
26588
26589         nproc: Relax license.
26590         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26591         and Paul Eggert.
26592         Requested by Ludovic Courtès <ludo@gnu.org>.
26593
26594 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26595
26596         utimecmp: fine-grained src to nearby coarse-grained dest
26597
26598         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26599         and the source is on a file system with higher-resolution time
26600         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26601         not work, and the time stamps are close together, the algorithm to
26602         determine the exact resolution from the read-back mtime was buggy:
26603         it had a "!=" where it should have had an "==".  This bug has been
26604         in the code ever since it was introduced to gnulib.
26605         Problem reported by Dan Jacobson in
26606         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26607
26608 2010-11-30  Bruno Haible  <bruno@clisp.org>
26609
26610         strerror_r-posix: Fix autoconf test.
26611         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26612
26613 2010-11-28  Bruno Haible  <bruno@clisp.org>
26614             Paul Eggert  <eggert@cs.ucla.edu>
26615
26616         Tests for module 'getdomainname'.
26617         * modules/getdomainname-tests: New file.
26618         * tests/test-getdomainname.c: New file, based on
26619         tests/test-gethostname.c.
26620
26621 2010-11-28  Bruno Haible  <bruno@clisp.org>
26622             Paul Eggert  <eggert@cs.ucla.edu>
26623
26624         getdomainname: Use the system function when possible.
26625         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26626         (getdomainname): Replace if needed. Provide the declaration if it is
26627         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26628         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26629         (getdomainname): When the system has getdomainname, call the system
26630         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26631         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26632         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26633         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26634         the function if its second argument is of type 'int' or if it is found
26635         in libnsl.
26636         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26637         <sys/systeminfo.h> and sysinfo().
26638         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26640         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26641         HAVE_GETDOMAINNAME.
26642         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26643         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26644         * doc/glibc-functions/getdomainname.texi: Document the problems with
26645         the getdomainname declaration.
26646
26647 2010-11-28  Bruno Haible  <bruno@clisp.org>
26648
26649         sys_socket: Ensure ss_family field on AIX.
26650         * lib/sys_socket.in.h (ss_family): New macro definition.
26651         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26652         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26653         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26654         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26655         * modules/sys_socket (Makefile.am): Substitute
26656         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26657         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26658
26659 2010-11-27  Bruno Haible  <bruno@clisp.org>
26660
26661         readline: Improve configure output.
26662         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26663         "checking for readline..." result understandable.
26664
26665 2010-11-27  Bruno Haible  <bruno@clisp.org>
26666
26667         *printf-posix: Detect a bug on Solaris 10/x86.
26668         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26669         for floating-point output.
26670         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26671         directive.
26672         * tests/test-snprintf-posix.h (test_function): Likewise.
26673         * tests/test-sprintf-posix.h (test_function): Likewise.
26674         * tests/test-vasprintf-posix.c (test_function): Likewise.
26675         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26676         * doc/posix-functions/printf.texi: Likewise.
26677         * doc/posix-functions/snprintf.texi: Likewise.
26678         * doc/posix-functions/sprintf.texi: Likewise.
26679         * doc/posix-functions/vfprintf.texi: Likewise.
26680         * doc/posix-functions/vprintf.texi: Likewise.
26681         * doc/posix-functions/vsnprintf.texi: Likewise.
26682         * doc/posix-functions/vsprintf.texi: Likewise.
26683         * doc/glibc-functions/obstack_printf.texi: Likewise.
26684         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26685
26686 2010-11-27  Bruno Haible  <bruno@clisp.org>
26687
26688         Fix link error when module libunistring-optional is in use.
26689         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26690         * modules/striconveha-tests (Makefile.am): Likewise.
26691
26692 2010-11-27  Bruno Haible  <bruno@clisp.org>
26693
26694         regex: Mention link dependencies.
26695         * modules/regex (Link): New section.
26696         * modules/rpmatch (Link): Likewise.
26697         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26698
26699 2010-11-27  Bruno Haible  <bruno@clisp.org>
26700
26701         ftoastr: Fix compilation error on Solaris.
26702         * lib/ftoastr.c: Include <config.h>.
26703
26704 2010-11-27  Bruno Haible  <bruno@clisp.org>
26705
26706         getloadavg: Update documentation.
26707         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26708
26709 2010-11-27  Bruno Haible  <bruno@clisp.org>
26710
26711         sys_socket: Fix test whether the functions are declared.
26712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26713         not <sys/select.h>.
26714
26715 2010-11-27  Bruno Haible  <bruno@clisp.org>
26716
26717         getpass: Make sure to get system declaration on some platforms.
26718         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26719         gl_USE_SYSTEM_EXTENSIONS.
26720         * modules/getpass (Depends-on): Add extensions.
26721
26722 2010-11-26  Bruno Haible  <bruno@clisp.org>
26723
26724         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26725         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26726         'iconv' module is present.
26727         (ICONV_CONST): New macro.
26728         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26729         ICONV_CONST.
26730         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26731         set ICONV_CONST.
26732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26733         here.
26734         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26735         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26736         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26737         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26738         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26739         present.
26740
26741 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26742
26743         ftoastr: comment fix
26744         * lib/ftoastr.c: "little" -> "little or no" in comment
26745
26746 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26747
26748         stdint: port to GCC 4.3 + OSX + Octave
26749         On this platform, stdint.h is buggy and defines int64_t to long
26750         long int.  The replacement defined it to long int, causing
26751         problems with C++ style name mangling.  Instead, trust the system
26752         definition if INT64_MAX is defined, and likewise for the unsigned
26753         variant.   Problem reported by Jarno Rajahalme in
26754         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26755         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26756         and don't mess with int64_t and INT64_MAX in this case.
26757         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26758
26759 2010-11-24  Bruno Haible  <bruno@clisp.org>
26760
26761         doc: Corrections regarding MacOS X 10.4 and 10.5.
26762         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26763         MacOS X.
26764         Reported by Simon Josefsson.
26765
26766 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26767
26768         Uninstall ".bin" files installed by relocwrapper.
26769         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26770         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26771         unless it is already there.
26772
26773 2010-11-21  Bruno Haible  <bruno@clisp.org>
26774
26775         Update for NetBSD 5.0.
26776         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26777         NetBSD; the test fails on NetBSD 5.0.
26778         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26779         about NetBSD.
26780
26781 2010-11-21  Bruno Haible  <bruno@clisp.org>
26782
26783         Update for HP-UX 11.23 and HP-UX 11.31.
26784         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26785         HP-UX.
26786
26787 2010-11-21  Bruno Haible  <bruno@clisp.org>
26788
26789         Update for MacOS X 10.5.
26790         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26791         MacOS X; the test fails on MacOS X 10.5.8.
26792         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26793         about MacOS X.
26794
26795 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26796
26797         bootstrap: add bootstrap_sync option.
26798         See discussion at
26799         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26800         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26801         * build-aux/bootstrap: Accept --bootstrap-sync to update
26802         bootstrap if it is not identical to the local gnulib's
26803         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26804         enable this by default.  Accept --no-bootstrap-sync to disable
26805         it.
26806
26807 2010-11-20  Bruno Haible  <bruno@clisp.org>
26808
26809         Ensure that <features.h> is included before __GLIBC__ is tested.
26810         * lib/printf-parse.h: Include <features.h>.
26811         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26812         Reported by Mike Frysinger <vapier@gentoo.org>.
26813
26814         Ensure that <features.h> is included before __GLIBC__ is tested.
26815         * lib/wchar.in.h: Include <features.h>.
26816         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26817         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26818         Reported by Mike Frysinger <vapier@gentoo.org>.
26819
26820         Ensure that <features.h> is included before __GLIBC__ is tested.
26821         * lib/arpa_inet.in.h: Include <features.h>.
26822         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26823         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26824         Reported by Mike Frysinger <vapier@gentoo.org>.
26825
26826         Ensure that <features.h> is included before __GLIBC__ is tested.
26827         * build-aux/link-warning.h: Include <features.h>.
26828         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26829         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26830         Reported by Mike Frysinger <vapier@gentoo.org>.
26831
26832         Ensure that <features.h> is included before __GLIBC__ is tested.
26833         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26834         Reported by Mike Frysinger <vapier@gentoo.org>.
26835
26836 2010-11-20  Bruno Haible  <bruno@clisp.org>
26837
26838         memmem: Fix autoconf test.
26839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26840
26841 2010-11-20  Bruno Haible  <bruno@clisp.org>
26842
26843         Port to uClibc.
26844         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26845         * lib/fcntl.in.h: Likewise.
26846         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26847         * lib/mbrtowc.c (mbrtowc): Likewise.
26848         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26849         * lib/strerror_r.c: Likewise.
26850         * lib/unistr/u8-strnlen.c: Likewise.
26851         * lib/vasnprintf.c (decimal_point_char): Likewise.
26852         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26853         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26854         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26855         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26856         * tests/test-sigaction.c (handler, main): Likewise.
26857         * lib/freading.h: Treat uClibc like a non-glibc platform.
26858         * lib/freading.c: Likewise.
26859         * lib/gettext.h: Likewise.
26860         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26861         Likewise.
26862         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26863         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26864         * lib/propername.c (proper_name_utf8): Likewise.
26865         * lib/spawn.in.h: Likewise.
26866         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26867         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26868         mem_cd_iconveh_internal): Likewise.
26869         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26870         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26871         strstr, strcasestr): Likewise.
26872         * lib/unicodeio.c (unicode_to_mb): Likewise.
26873         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26874         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26875         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26876         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26877         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26878         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26879         * lib/unistr/u8-stpncpy.c: Likewise.
26880         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26881         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26882         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26883         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26884         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26886         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26889         Likewise.
26890         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26892         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26895         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26896         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26897         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26898         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26899         * tests/test-striconveha.c (main): Likewise.
26900         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26901         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26902         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26903         * doc/posix-functions/getline.texi: Likewise.
26904         Reported by Mike Frysinger <vapier@gentoo.org>.
26905
26906 2010-11-20  Bruno Haible  <bruno@clisp.org>
26907
26908         nproc: Fix condition.
26909         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26910         HAVE_PTHREAD_AFFINITY_NP.
26911
26912 2010-11-20  Bruno Haible  <bruno@clisp.org>
26913
26914         Fix a comment.
26915         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26916
26917 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26918
26919         ftoastr: don't assume snprintf
26920         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26921         Implement a subset of snprintf here, by using sprintf safely.
26922         * modules/ftoastr (Depends-on): Remove snprintf.
26923
26924 2010-11-19  Jim Meyering  <meyering@redhat.com>
26925
26926         test-rename.h: fix compilation failure
26927         * tests/test-rename.h (test_rename): Add omitted "}".
26928
26929 2010-11-17  Jim Meyering  <meyering@redhat.com>
26930
26931         maint.mk: add a URL discussing the no-@acronym policy
26932         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26933
26934 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26935
26936         ftoastr: depend on snprintf, improve comments
26937         * lib/ftoastr.c: Also mention Loitsch's draft.
26938         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26939         needed in the current implementation, but it might simplify
26940         speeding up the code later.
26941         * modules/ftoastr: Depend on snprintf; this improves portability.
26942         Suggested by Bruno Haible in the same email.
26943
26944         ftoastr: port to hosts lacking strtof and strtold
26945         Problem reported by Bruno Haible in
26946         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26947         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26948         environment and strtold (and presumably strtof) are not available.
26949         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26950         (configure.ac): Require gl_C99_STRTOLD.
26951
26952 2010-11-18  Bruno Haible  <bruno@clisp.org>
26953
26954         c-strtold: Avoid link error on AIX 7.
26955         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26956         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26957         (gl_C_STRTOLD): Test whether strtold_l exists.
26958         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26959
26960 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26961
26962         intprops: new macro INT_BITS_STRLEN_BOUND
26963         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26964         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26965         not exposed.  Also, it uses a slightly tighter bound than before;
26966         though this makes no practical difference, we might as well be as
26967         tight as we easily can.
26968
26969         ftoastr: new module, for lossless conversion of floats to short strings
26970         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26971         * modules/ftoastr: New files.
26972
26973 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26974
26975         bootstrap: port to Solaris sed
26976         * build-aux/bootstrap (get_version): Port to Solaris sed.
26977         See Ralf Wildenhues's note in
26978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26979
26980 2010-11-14  Jim Meyering  <meyering@redhat.com>
26981
26982         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26983         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26984         and move definition closer to sole use.
26985
26986 2010-11-13  Jim Meyering  <meyering@redhat.com>
26987
26988         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26989         Now we require at least autoconf-2.59, which means the work-around
26990         is no longer needed.
26991         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26992         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26993         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26994         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26995         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26996
26997 2010-11-13  Bruno Haible  <bruno@clisp.org>
26998
26999         rename, renameat: Avoid test failures at NFS mounted locations.
27000         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27001         functions.
27002         (test_rename): Use assert_nonexistent.
27003         * tests/test-rename.c: Include <dirent.h>.
27004         * tests/test-renameat.c: Likewise.
27005         Reported by Gary V. Vaughan <gary@gnu.org>.
27006
27007         rename, renameat: Document Linux bug with NFS
27008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27009         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27010         * doc/posix-functions/renameat.texi: Likewise.
27011         Suggested by Eric Blake.
27012
27013 2010-11-13  Bruno Haible  <bruno@clisp.org>
27014
27015         rename test: Add comments.
27016         * tests/test-rename.h (test_rename): Add structure and comments.
27017
27018 2010-11-13  Eric Blake  <eblake@redhat.com>
27019
27020         maintainer-makefile: cover a few more files
27021         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27022         scripts generated within C files, for libvirt.
27023
27024 2010-11-13  Bruno Haible  <bruno@clisp.org>
27025
27026         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27027         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27028         character, return the number of bytes that belong together, not always
27029         1.
27030         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27031         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27032         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27033         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27034         number of bytes of an invalid character.
27035         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27036         (main): Invoke it.
27037         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27038         results.
27039         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27040         malformed byte sequences.
27041         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27042         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27043         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27044         Reported by Ben Pfaff and Paolo Bonzini.
27045
27046 2010-11-13  Bruno Haible  <bruno@clisp.org>
27047
27048         openat: Work around glibc bug with fchownat() and empty file names.
27049         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27050         (gl_FUNC_FCHOWNAT): Invoke it.
27051         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27052         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27053         Reported by Gary V. Vaughan <gary@gnu.org>.
27054
27055 2010-11-13  Bruno Haible  <bruno@clisp.org>
27056
27057         openat: Ensure autoconf macro ordering.
27058         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27059         gl_USE_SYSTEM_EXTENSIONS.
27060         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27061
27062 2010-11-13  Bruno Haible  <bruno@clisp.org>
27063
27064         Update comments.
27065         * lib/unistr/u8-check.c: Update file name in comments.
27066         * lib/unistr/u8-mblen.c: Likewise.
27067         * lib/unistr/u8-prev.c: Likewise.
27068         * lib/unistr/u8-strmblen.c: Likewise.
27069         * lib/unistr/u8-strmbtouc.c: Likewise.
27070
27071 2010-11-13  Jim Meyering  <meyering@redhat.com>
27072
27073         tests: avoid test failure on Solaris 10 due to lack of PATH export
27074         * tests/test-update-copyright.sh: Don't forget to export PATH.
27075
27076         init.sh: ensure that IFS is defined, just in case...
27077         * tests/init.sh (setup_): Ensure that IFS is defined,
27078         so that saving and restoring it works as expected.  This
27079         appears to be useful at least for an old version of dash
27080         from a long time ago (RH 6).  See here for details:
27081         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27082
27083         maint.mk: tighten "test a == b" check
27084         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27085         test to files that contain something like #!/bin/sh.
27086         Without this, coreutils would get two false positives in
27087         the comments of C source files.
27088
27089 2010-11-12  Eric Blake  <eblake@redhat.com>
27090
27091         bootstrap: fix typo in previous attempt
27092         * build-aux/bootstrap (buildreq): Correct the grouping.
27093         Reported by Paul Eggert.
27094
27095         maintainer-makefile: prohibit test x == x
27096         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27097         Based on a report by Matthias Bolte.
27098
27099         bootstrap: allow FreeBSD gzip
27100         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27101         which has no '.' and goes to stderr.
27102         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27103         Reported by Matthias Bolte.
27104
27105         maintainer-makefile: check for i18n setup
27106         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27107         will likely work.
27108
27109 2010-11-12  Bruno Haible  <bruno@clisp.org>
27110
27111         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27112         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27113         * lib/nanosleep.c (nanosleep): Likewise.
27114
27115 2010-11-11  Bruno Haible  <bruno@clisp.org>
27116
27117         fcntl-h: Fix for use of C++ on glibc systems.
27118         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27119         also on glibc systems in C++ mode.
27120         Reported by Gary V. Vaughan <gary@gnu.org>.
27121
27122 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27123
27124         mknod: avoid false failure with dash
27125         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27126
27127 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27128
27129         unlink: Fix "is it should" typo in diagnostic.
27130         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27132
27133 2010-11-11  Bruno Haible  <bruno@clisp.org>
27134
27135         Tests for module 'strerror_r-posix'.
27136         * modules/strerror_r-posix-tests: New file.
27137         * tests/test-strerror_r.c: New file.
27138         * tests/test-string-c++.cc: Check the signature of strerror_r.
27139
27140         New module 'strerror_r-posix'.
27141         * lib/string.in.h (strerror_r): New declaration.
27142         * lib/strerror_r.c: New file.
27143         * m4/strerror_r.m4: New file.
27144         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27145         of strerror_r.
27146         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27147         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27148         * modules/strerror_r-posix: New file.
27149         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27150         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27151         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27152         portability problems.
27153
27154 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27155
27156         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27157         line is also considered for output. Quoted function name in shell
27158         command, so temporary files for functions like MyClass::operator()
27159         are removed correctly without errors.
27160
27161 2010-11-09  Bruno Haible  <bruno@clisp.org>
27162
27163         * doc/posix-functions/strerror.texi: List more failing platforms.
27164
27165         * doc/posix-functions/strerror.texi: Add a comment.
27166
27167 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27168
27169         fdopendir: fix bug on MacOS X when low on file descriptors
27170
27171         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27172         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27173         All callers changed.
27174         (fdopendir): Invoke save_cwd at the top level, not after using
27175         multiple dup() calls to use up file descriptors.  Then retry
27176         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27177         less than the maximum number of open file descriptors, because
27178         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27179         on Mac OS X 10.6.4 for tar 1.24
27180         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27181         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27182         and for tar 1.25
27183         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27184
27185 2010-11-07  Bruno Haible  <bruno@clisp.org>
27186
27187         vasnprintf: Support I flag on glibc systems.
27188         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27189         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27190         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27191         snprintf function.
27192         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27193         glibc systems.
27194         * tests/test-vasnprintf-posix3.c: New file.
27195         * modules/vasnprintf-posix-tests (Files): Add it.
27196         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27197
27198 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27199
27200         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27201         * MODULES.html.sh: For compiler warnings, use name
27202         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27203
27204 2010-11-05  Eric Blake  <eblake@redhat.com>
27205
27206         ceil, floor: avoid spurious failure with icc
27207         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27208         [denormals-as-zero] when optimizing without -mieee-fp option.
27209         * tests/test-floorf2.c (floorf_reference): Likewise.
27210         * tests/test-ceilf1.c (dummy): New function.
27211         (main): Use it to outsmart icc's optimization.
27212         * tests/test-floorf1.c (dummy, main): Likewise.
27213
27214         tests: require working signbit
27215         * modules/ceilf-tests (Depends-on): Add signbit.
27216         * modules/ceill-tests (Depends-on): Likewise.
27217         * modules/floorf-tests (Depends-on): Likewise.
27218         * modules/floorl-tests (Depends-on): Likewise.
27219         * modules/round-tests (Depends-on): Likewise.
27220         * modules/roundf-tests (Depends-on): Likewise.
27221         * modules/roundl-tests (Depends-on): Likewise.
27222         * modules/trunc-tests (Depends-on): Likewise.
27223         * modules/truncf-tests (Depends-on): Likewise.
27224         * modules/truncl-tests (Depends-on): Likewise.
27225
27226         strtod: work around icc bug
27227         * lib/strtod.c (minus_zero): Define to working value.
27228         (strtod): Use it to avoid icc bug.
27229
27230         copysign: enhance tests
27231         * modules/copysign-tests (Files): Add minus-zero.h.
27232         * tests/test-copysign.c (main): Also test zeros.
27233
27234 2010-11-04  Eric Blake  <eblake@redhat.com>
27235
27236         ceil, floor, round, trunc: enhance tests of -0
27237         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27238         * tests/test-ceill.c (main): Likewise.
27239         * tests/test-floorf1.c (main): Likewise.
27240         * tests/test-floorl.c (main): Likewise.
27241         * tests/test-round1.c (main): Likewise.
27242         * tests/test-roundf1.c (main): Likewise.
27243         * tests/test-roundl.c (main): Likewise.
27244         * tests/test-trunc1.c (main): Likewise.
27245         * tests/test-truncf1.c (main): Likewise.
27246         * tests/test-truncl.c (main): Likewise.
27247
27248 2010-11-04  Eric Blake  <eblake@redhat.com>
27249
27250         frexp, tests: work around ICC bug with -zero
27251         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27252         works with more compilers.
27253         * tests/minus-zero.h: New file.
27254         * modules/ceilf-tests (Files): Include it.
27255         * modules/ceill-tests (Files): Likewise.
27256         * modules/floorf-tests (Files): Likewise.
27257         * modules/floorl-tests (Files): Likewise.
27258         * modules/frexp-nolibm-tests (Files): Likewise.
27259         * modules/frexp-tests (Files): Likewise.
27260         * modules/frexpl-nolibm-tests (Files): Likewise.
27261         * modules/frexpl-tests (Files): Likewise.
27262         * modules/isnan-tests (Files): Likewise.
27263         * modules/isnand-nolibm-tests (Files): Likewise.
27264         * modules/isnand-tests (Files): Likewise.
27265         * modules/isnanf-nolibm-tests (Files): Likewise.
27266         * modules/isnanf-tests (Files): Likewise.
27267         * modules/isnanl-nolibm-tests (Files): Likewise.
27268         * modules/isnanl-tests (Files): Likewise.
27269         * modules/round-tests (Files): Likewise.
27270         * modules/roundf-tests (Files): Likewise.
27271         * modules/roundl-tests (Files): Likewise.
27272         * modules/ldexpl-tests (Files): Likewise.
27273         * modules/signbit-tests (Files): Likewise.
27274         * modules/snprintf-posix-tests (Files): Likewise.
27275         * modules/sprintf-posix-tests (Files): Likewise.
27276         * modules/strtod-tests (Files): Likewise.
27277         * modules/trunc-tests (Files): Likewise.
27278         * modules/truncf-tests (Files): Likewise.
27279         * modules/truncl-tests (Files): Likewise.
27280         * modules/vsnprintf-posix-tests (Files): Likewise.
27281         * modules/vsprintf-posix-tests (Files): Likewise.
27282         * modules/vasnprintf-posix-tests (Files): Likewise.
27283         * modules/vasprintf-posix-tests (Files): Likewise.
27284         * tests/test-ceilf1.c (main): Use it.
27285         * tests/test-ceill.c (main): Likewise.
27286         * tests/test-floorf1.c (main): Likewise.
27287         * tests/test-floorl.c (main): Likewise.
27288         * tests/test-frexp.c (main): Likewise.
27289         * tests/test-frexpl.c (main): Likewise.
27290         * tests/test-isnan.c (main): Likewise.
27291         * tests/test-isnand.h (main): Likewise.
27292         * tests/test-isnanf.h (main): Likewise.
27293         * tests/test-isnanl.h (main): Likewise.
27294         * tests/test-ldexpl.c (main): Likewise.
27295         * tests/test-round.c (main): Likewise.
27296         * tests/test-roundf.c (main): Likewise.
27297         * tests/test-roundl.c (main): Likewise.
27298         * tests/test-signbit.c (test_signbitf, test_signbitd)
27299         (test_signbitl): Likewise.
27300         * tests/test-snprintf-posix.h (test_function): Likewise.
27301         * tests/test-sprintf-posix.h (test_function): Likewise.
27302         * tests/test-strtod.c (main): Likewise.
27303         * tests/test-trunc1.c (main): Likewise.
27304         * tests/test-truncf1.c (main): Likewise.
27305         * tests/test-truncl.c (main): Likewise.
27306
27307         isnanl: work around icc bug
27308         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27309
27310 2010-11-03  Eric Blake  <eblake@redhat.com>
27311
27312         tests: fix compiler warnings
27313         * tests/test-getopt.h (test_getopt): Fix condition.
27314         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27315         * tests/test-pipe2.c (main): Likewise.
27316         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27317
27318         utimens: fix broken m4 test
27319         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27320
27321 2010-10-28  Bruno Haible  <bruno@clisp.org>
27322
27323         posix_spawn*, getdtablesize: Relax license.
27324         * modules/posix_spawn (License): Change to LGPLv2+.
27325         * modules/posix_spawnp (License): Likewise.
27326         * modules/posix_spawn-internal (License): Likewise.
27327         * modules/posix_spawnattr_init (License): Likewise.
27328         * modules/posix_spawnattr_getflags (License): Likewise.
27329         * modules/posix_spawnattr_setflags (License): Likewise.
27330         * modules/posix_spawnattr_getpgroup (License): Likewise.
27331         * modules/posix_spawnattr_setpgroup (License): Likewise.
27332         * modules/posix_spawnattr_getschedparam (License): Likewise.
27333         * modules/posix_spawnattr_setschedparam (License): Likewise.
27334         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27335         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27336         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27337         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27338         * modules/posix_spawnattr_getsigmask (License): Likewise.
27339         * modules/posix_spawnattr_setsigmask (License): Likewise.
27340         * modules/posix_spawnattr_destroy (License): Likewise.
27341         * modules/posix_spawn_file_actions_init (License): Likewise.
27342         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27343         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27344         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27345         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27346         * modules/getdtablesize (License): Likewise.
27347         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27348
27349 2010-10-26  Bruno Haible  <bruno@clisp.org>
27350
27351         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27352         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27353         Cygwin and mingw.
27354         Suggested by Eric Blake.
27355
27356 2010-10-26  Bruno Haible  <bruno@clisp.org>
27357
27358         stdio: Work around compilation error due to renameat() on Solaris 10.
27359         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27360         * lib/renameat.c: Don't include <unistd.h> here.
27361         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27362         Reported by Paul Eggert and Eric Blake.
27363
27364 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27365
27366         renameat: port to Solaris 10, which declares renameat in unistd.h
27367
27368         * lib/renameat.c: Include unistd.h before stdio.h, because
27369         Solaris 10 declares renameat in unistd.h.  Problem encountered
27370         when building GNU tar 1.24 on Solaris 10.
27371
27372 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27373
27374         fdopendir: fix C89 compilation
27375         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27376         compilers.
27377
27378 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27379
27380         inttostr: simplify by removing unnecessary redundancy
27381         * lib/anytostr.c: Don't include verify.h.
27382         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27383         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27384         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27385         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27386         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27387         Likewise.
27388         * modules/inttostr (Depends-on): Remove 'verify'.
27389
27390 2010-10-23  Bruno Haible  <bruno@clisp.org>
27391
27392         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27393         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27394         Reported by Eric Blake.
27395
27396 2010-10-23  Bruno Haible  <bruno@clisp.org>
27397
27398         Tests: Fix LOCALE_JA on MirBSD 10.
27399         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27400         to an UTF-8 locale.
27401         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27402         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27403         Reported by Eric Blake.
27404
27405 2010-10-21  Bruno Haible  <bruno@clisp.org>
27406
27407         nl_langinfo test: Avoid test failure on NetBSD 5.
27408         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27409         Reported by Eric Blake.
27410
27411 2010-10-21  Eric Blake  <eblake@redhat.com>
27412
27413         c-stack: work around libsigsegv 2.8 bug
27414         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27415         overflow on at least PowerPC64.
27416
27417 2010-10-17  Bruno Haible  <bruno@clisp.org>
27418
27419         userspec: Drop redundant file.
27420         * modules/userspec (Files): Remove lib/inttostr.h.
27421
27422 2010-10-17  Bruno Haible  <bruno@clisp.org>
27423
27424         nl_langinfo tests: Silence some warnings.
27425         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27426         Reported by Jim Meyering.
27427
27428 2010-10-17  Bruno Haible  <bruno@clisp.org>
27429
27430         Make use of GCC's attribute __alloc_size__.
27431         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27432         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27433         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27434         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27435         __alloc_size__.
27436         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27437         Suggested by Jim Meyering.
27438
27439 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27440
27441         bootstrap: anchor .gitignore entries.
27442         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27443         with...
27444         (insert_vc_ignore): ... this new function, which prepends `/' to
27445         all .gitignore entries before passing them to
27446         insert_sorted_if_absent.
27447
27448 2010-10-16  Bruno Haible  <bruno@clisp.org>
27449
27450         nextafter: Fix configure check.
27451         * modules/nextafter (configure.ac): Correct expected prototype.
27452
27453 2010-10-16  Bruno Haible  <bruno@clisp.org>
27454
27455         termios: Update documentation.
27456         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27457
27458 2010-10-16  Bruno Haible  <bruno@clisp.org>
27459
27460         tests: Make them compile with TinyCC.
27461         * tests/test-strstr.c (main): Remove parentheses around array
27462         initializer.
27463
27464 2010-10-15  Eric Blake  <eblake@redhat.com>
27465
27466         ignore-value: make header idempotent
27467         * lib/ignore-value.h: Add double-inclusion guards.
27468         Reported by Stefan Berger.
27469
27470 2010-10-15  Jim Meyering  <meyering@redhat.com>
27471
27472         GNUmakefile: handle "stable" target, not "major"
27473         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27474         lists in maint.mk and announce-gen.  Without this, "make stable"
27475         would fail to ensure that $(VERSION) is up to date.
27476
27477 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27478
27479         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27480         & co.
27481
27482 2010-10-14  Bruno Haible  <bruno@clisp.org>
27483
27484         vasnprintf: Don't set errno to 0.
27485         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27486         block that sets it to 0.
27487         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27488
27489 2010-10-14  Bruno Haible  <bruno@clisp.org>
27490
27491         socketlib: Fix.
27492         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27493         gl_PREREQ_SYS_H_WINSOCK2.
27494         Reported by Ian Beckwith <ianb@erislabs.net>.
27495
27496 2010-10-13  Jim Meyering  <meyering@redhat.com>
27497
27498         test-select-stdin.c: avoid warn_unused_result warnings
27499         * tests/test-select-stdin.c: Include "macros.h".
27500         ASSERT that read and fflush succeed.
27501
27502 2010-10-13  Jim Meyering  <meyering@redhat.com>
27503
27504         git-version-gen: do require git-VC'd files in cwd
27505         * build-aux/git-version-gen: Reject a git version string
27506         if there are no commits associated with the current directory.
27507         This avoids an unlikely false-positive (unrelated dir whose parent
27508         repository also contains a tag matching v*), as pointed out
27509         by Giuseppe Scrivano in
27510         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27511
27512 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27513
27514         argv-iter: omit nonconforming declaration
27515         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27516         enum arg_iter_err declaration, which doesn't conform to C99.
27517         Solaris 10 cc warns about this.
27518
27519 2010-10-13  Eric Blake  <eblake@redhat.com>
27520
27521         termios: fix compilation on mingw
27522         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27523         (gl_TERMIOS_H): Adjust it on mingw.
27524         * modules/termios (Makefile.am): Substitute new key.
27525         * lib/termios.in.h (includes): Make include_next conditional.
27526         * doc/posix-headers/termios.texi (termios.h): Update
27527         documentation.
27528         Reported by Daniel P. Berrange.
27529
27530 2010-10-13  Jim Meyering  <meyering@redhat.com>
27531
27532         git-version-gen: don't require that .git/ be in the current dir
27533         * build-aux/git-version-gen: Adjust this script so that it works
27534         when run from any working directory beneath the top-level .git/-
27535         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27537
27538         test-select: avoid warn_unused_result warnings
27539         * tests/test-select.c: Include "macros.h".
27540         ASSERT that each call to read, write, and pipe succeeds.
27541         While not technically required, also check each "close".
27542         * modules/select-tests (Files): Add tests/macros.h.
27543
27544         test-symlinkat: remove declaration of unused local
27545         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27546
27547         test-inttostr: avoid shadowing warnings
27548         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27549         and use malloc rather than the stack for the same reason as
27550         mentioned in the comment justifying the other allocation.
27551
27552 2010-10-11  Bruno Haible  <bruno@clisp.org>
27553
27554         stdlib: Allow multiple gnulib generated replacements to coexist.
27555         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27556         Reported by Sam Steingold <sds@gnu.org>.
27557
27558 2010-10-11  Jim Meyering  <meyering@redhat.com>
27559
27560         fix a documentation typo
27561         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27562
27563 2010-10-11  Eric Blake  <eblake@redhat.com>
27564
27565         futimens: work around Solaris 11 bug
27566         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27567         * tests/test-futimens.h (test_futimens): Enhance, rather than
27568         weaken test.
27569         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27570
27571 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27572
27573         Indentation.
27574         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27575         higher-level operators more to the left.
27576
27577 2010-10-11  Jim Meyering  <meyering@redhat.com>
27578
27579         test-futimens: avoid unwarranted test failure on Solaris 5.11
27580         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27581         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27582         because it tries to dereference the NULL name argument.
27583
27584 2010-10-11  Bruno Haible  <bruno@clisp.org>
27585
27586         Indentation.
27587         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27588         indentation.
27589
27590 2010-10-11  Jim Meyering  <meyering@redhat.com>
27591
27592         spawn.in.h: make indentation consistent with parentheses
27593         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27594         Make indentation consistent with parentheses.
27595
27596 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27597
27598         Fix mismatched parens in previous commit
27599         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27600         parens.
27601
27602 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27603
27604         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27605
27606         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27607         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27608         * lib/malloca.c: Include "verify.h".
27609         (verify1): Remove, replacing with a verify call.
27610         * lib/relocwrapper.c (verify1): Likewise.
27611         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27612         Likewise.
27613         * modules/malloca (Depends-on): Add 'verify'.
27614         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27615         * modules/vasnprintf (Depends-on): Add 'verify'.
27616         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27617         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27618         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27619         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27620         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27621         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27622         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27623
27624         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27625
27626         Formerly the style was sometimes 2*X - 1, because the C standard
27627         was wrongly thought to disallow ?: in integral constant expressions.
27628         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27629         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27630         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27631         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27632         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27633         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27634         verify that time_t cannot be floating.
27635
27636 2010-10-08  Eric Blake  <eblake@redhat.com>
27637
27638         time: enforce recent POSIX ruling that time_t is integral
27639         * lib/time.in.h (__time_t_must_be_integral): Detect any
27640         problematic systems, allowing the rest of gnulib to assume POSIX.
27641
27642 2010-10-08  Jim Meyering  <meyering@redhat.com>
27643
27644         fdopendir: fix a bug on systems lacking openat and /proc support
27645         OpenBSD 4.7 is one such system.  The most noticeable effect was
27646         failure of any application making nontrivial use of fts: rm, du,
27647         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27648           ./rm: traversal failed: `a': Bad file descriptor
27649         Debugging that, you see that even though FD 6 was closed just
27650         prior to the opendir call in fd_clone_opendir, its resulting
27651         dir->dd_fd was 8, rather than the expected value of 6:
27652
27653         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27654         93                close (fd);
27655         (gdb) n
27656         94                dir = fd_clone_opendir (dupfd);
27657         (gdb) n
27658         95                saved_errno = errno;
27659         (gdb) p dir->dd_fd
27660         $11 = 8
27661
27662         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27663         The problem is that on OpenBSD, fd_clone_opendir has to resort
27664         to using the old-style save/restore CWD mechanism, due to its
27665         lack of openat/proc support, and *that* would steal the FD (6)
27666         that opendir was supposed to use.
27667
27668         The fix is to squirrel away the desired FD so that save_cwd uses a
27669         different one, and then free the dest FD right before calling opendir.
27670         That guarantees opendir will use the required file descriptor.
27671
27672         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27673
27674 2010-10-08  Bruno Haible  <bruno@clisp.org>
27675
27676         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27677         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27678
27679 2010-10-08  Bruno Haible  <bruno@clisp.org>
27680
27681         nanosleep: Make replacement POSIX compliant.
27682         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27683         is out of range.
27684         Reported by Jim Meyering.
27685
27686 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27687
27688         bootstrap: add hook for altering gnulib.mk, for Bison
27689         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27690         the Bison bootstrapping process can rewrite file names and variables
27691         in this file before later parts of 'bootstrap' use the file.
27692         Bison wants to include lib/gnulib.mk from the top-level makefile,
27693         so it needs the file names in this file to be relative to the top
27694         level, not relative to lib; plus it needs variable names to be
27695         rewritten.
27696         (slurp): Use the new function.
27697
27698         bootstrap: reformat for readability
27699         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27700
27701 2010-10-08  Eric Blake  <eblake@redhat.com>
27702
27703         docs: update cygwin progress
27704         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27705         1.7.7.
27706         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27707         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27708         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27709         * doc/posix-functions/carg.texi (carg): Likewise.
27710         * doc/posix-functions/cargf.texi (cargf): Likewise.
27711         * doc/posix-functions/casin.texi (casin): Likewise.
27712         * doc/posix-functions/casinf.texi (casinf): Likewise.
27713         * doc/posix-functions/casinh.texi (casinh): Likewise.
27714         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27715         * doc/posix-functions/catan.texi (catan): Likewise.
27716         * doc/posix-functions/catanf.texi (catanf): Likewise.
27717         * doc/posix-functions/catanh.texi (catanh): Likewise.
27718         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27719         * doc/posix-functions/ccos.texi (ccos): Likewise.
27720         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27721         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27722         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27723         * doc/posix-functions/cexp.texi (cexp): Likewise.
27724         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27725         * doc/posix-functions/cimag.texi (cimag): Likewise.
27726         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27727         * doc/posix-functions/clog.texi (clog): Likewise.
27728         * doc/posix-functions/clogf.texi (clogf): Likewise.
27729         * doc/posix-functions/conj.texi (conj): Likewise.
27730         * doc/posix-functions/conjf.texi (conjf): Likewise.
27731         * doc/posix-functions/cpow.texi (cpow): Likewise.
27732         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27733         * doc/posix-functions/cproj.texi (cproj): Likewise.
27734         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27735         * doc/posix-functions/creal.texi (creal): Likewise.
27736         * doc/posix-functions/crealf.texi (crealf): Likewise.
27737         * doc/posix-functions/csin.texi (csin): Likewise.
27738         * doc/posix-functions/csinf.texi (csinf): Likewise.
27739         * doc/posix-functions/csinh.texi (csinh): Likewise.
27740         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27741         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27742         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27743         * doc/posix-functions/ctan.texi (ctan): Likewise.
27744         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27745         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27746         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27747         * doc/posix-headers/complex.texi (complex.h): Likewise.
27748
27749 2010-10-07  Jim Meyering  <meyering@redhat.com>
27750
27751         parse-datetime: avoid compilation failure on OpenBSD 4.7
27752         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27753         This works around a compilation failure on OpenBSD 4.7:
27754         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27755
27756 2010-10-07  Eric Blake  <eblake@redhat.com>
27757
27758         docs: update cygwin progress
27759         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27760         1.7.6.
27761         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27762         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27763         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27764         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27765         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27766         Likewise.
27767         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27768         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27769         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27770         Likewise.
27771         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27772         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27773         Likewise.
27774         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27775         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27776         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27777         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27778         Likewise.
27779         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27780         Likewise.
27781         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27782
27783         docs: update parse-datetime history
27784         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27785         documentation of this function's history and alternatives.
27786
27787         cygwin: use more robust version check
27788         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27789         exclude an eventual cygwin 1.9.1.
27790         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27792         (gl_FUNC_STRCASESTR): Likewise.
27793         Reported by Bruno Haible.
27794
27795 2010-10-06  Bruno Haible  <bruno@clisp.org>
27796
27797         string, sys_select: Avoid #including large headers unless necessary.
27798         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27799         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27800         OSF/1, BeOS, Haiku.
27801         Reported by Jim Meyering.
27802
27803 2010-10-05  Eric Blake  <eblake@redhat.com>
27804
27805         memmem, strstr, strcasestr: fix bug with long periodic needle
27806         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27807         periodic needle having false positive.
27808         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27809         and cygwin 1.7.7.
27810         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27812         (gl_FUNC_STRCASESTR): Likewise.
27813         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27814         * tests/test-memmem.c (main): Expose the bug.
27815         * tests/test-strcasestr.c (main): Likewise.
27816         * tests/test-strstr.c (main): Likewise.
27817         * tests/test-c-strcasestr.c (main): Likewise.
27818         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27819         * doc/posix-functions/strstr.texi (strstr): Likewise.
27820         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27821         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27822
27823 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27824
27825         parse-datetime: do some more renaming
27826         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27827         parse_datetime, not get_date.  Mention the renaming.
27828         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27829         in comments.
27830         * m4/bison.m4: Likewise.
27831
27832 2010-10-05  Eric Blake  <eblake@redhat.com>
27833
27834         parse-datetime: better name than get_date
27835         * NEWS: Reword the deprecation notice.
27836         * modules/get_date: Rename to modules/parse-datetime.
27837         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27838         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27839         * lib/get_date.y: Rename to lib/parse-datetime.y.
27840         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27841         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27842         * doc/getdate.texi: Provide fallback wrapper.
27843         * lib/getdate.h: Move guts, and wrap...
27844         * lib/parse-datetime.h: ...new file.
27845         * lib/parse-datetime.y (get_date): Rename...
27846         (parse_datetime): ...to this.
27847         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27848         (gl_PARSE_DATETIME): ...to this.
27849         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27850         documentation.
27851         * modules/getdate (Files): Provide fallback docs and header.
27852         (Notice, Depends-on): Update references.
27853         * tests/test-parse-datetime.c: Likewise.
27854         * DEPENDENCIES: Likewise.
27855         * MODULES.html.sh (Date and time <time.h>): Likewise.
27856         * doc/parse-datetime.texi (Date input formats)
27857         (Authors of parse_datetime): Likewise.
27858         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27859         (Include): Likewise.
27860         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27861         * gnulib-tool: Likewise.
27862         * m4/bison.m4 (gl_BISON): Likewise.
27863         Suggested by Bruno Haible.
27864
27865 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27866
27867         more ports to Solaris tr, which needs [] around ranges
27868         * gnulib-tool: Solaris tr needs [] around ranges.
27869         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27870         * tests/test-pipe-filter-gi1.c (main): Likewise.
27871         * tests/test-pipe-filter-ii1.c (main): Likewise.
27872
27873 2010-10-05  Eric Blake  <eblake@redhat.com>
27874
27875         bootstrap: fix Solaris regression
27876         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27877         around ranges.
27878         Reported by Pádraig Brady.
27879
27880         bootstrap: work with pkg-config
27881         * build-aux/bootstrap (check_versions): Also transliterate - in
27882         prerequisite name.
27883         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27884         prerequisites that were already found, to avoid confusion.
27885         Reported by Justin Clift.
27886
27887         faccessat: remove unused wrappers
27888         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27889         presence of these wrappers dragged in -lgen on Solaris.
27890         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27891
27892 2010-10-05  Jim Meyering  <meyering@redhat.com>
27893
27894         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27895         * Makefile (sc_pragma_columns): New syntax-check rule.
27896
27897 2010-10-04  Bruno Haible  <bruno@clisp.org>
27898
27899         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27900         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27901         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27902         Reported by Bruce Korb and Eric Blake.
27903
27904 2010-10-04  Bruno Haible  <bruno@clisp.org>
27905
27906         threadlib: Make option --with-libpth-prefix work.
27907         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27908         use $LIBPTH, not just -lpth.
27909
27910 2010-10-04  Bruno Haible  <bruno@clisp.org>
27911
27912         Avoid line length limitation from HP NonStop system header files.
27913         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27914         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27915         * lib/ctype.in.h: Likewise.
27916         * lib/dirent.in.h: Likewise.
27917         * lib/errno.in.h: Likewise.
27918         * lib/fcntl.in.h: Likewise.
27919         * lib/float.in.h: Likewise.
27920         * lib/getopt.in.h: Likewise.
27921         * lib/iconv.in.h: Likewise.
27922         * lib/inttypes.in.h: Likewise.
27923         * lib/langinfo.in.h: Likewise.
27924         * lib/locale.in.h: Likewise.
27925         * lib/math.in.h: Likewise.
27926         * lib/netdb.in.h: Likewise.
27927         * lib/netinet_in.in.h: Likewise.
27928         * lib/poll.in.h: Likewise.
27929         * lib/pthread.in.h: Likewise.
27930         * lib/pty.in.h: Likewise.
27931         * lib/sched.in.h: Likewise.
27932         * lib/se-selinux.in.h: Likewise.
27933         * lib/search.in.h: Likewise.
27934         * lib/signal.in.h: Likewise.
27935         * lib/spawn.in.h: Likewise.
27936         * lib/stdarg.in.h: Likewise.
27937         * lib/stddef.in.h: Likewise.
27938         * lib/stdint.in.h: Likewise.
27939         * lib/stdio.in.h: Likewise.
27940         * lib/stdlib.in.h: Likewise.
27941         * lib/string.in.h: Likewise.
27942         * lib/strings.in.h: Likewise.
27943         * lib/sys_file.in.h: Likewise.
27944         * lib/sys_ioctl.in.h: Likewise.
27945         * lib/sys_select.in.h: Likewise.
27946         * lib/sys_socket.in.h: Likewise.
27947         * lib/sys_stat.in.h: Likewise.
27948         * lib/sys_time.in.h: Likewise.
27949         * lib/sys_times.in.h: Likewise.
27950         * lib/sys_utsname.in.h: Likewise.
27951         * lib/sys_wait.in.h: Likewise.
27952         * lib/sysexits.in.h: Likewise.
27953         * lib/termios.in.h: Likewise.
27954         * lib/time.in.h: Likewise.
27955         * lib/unistd.in.h: Likewise.
27956         * lib/wchar.in.h: Likewise.
27957         * lib/wctype.in.h: Likewise.
27958         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27959         * modules/ctype (Makefile.am): Likewise.
27960         * modules/dirent (Makefile.am): Likewise.
27961         * modules/errno (Makefile.am): Likewise.
27962         * modules/fcntl-h (Makefile.am): Likewise.
27963         * modules/float (Makefile.am): Likewise.
27964         * modules/getopt-posix (Makefile.am): Likewise.
27965         * modules/iconv-h (Makefile.am): Likewise.
27966         * modules/inttypes (Makefile.am): Likewise.
27967         * modules/langinfo (Makefile.am): Likewise.
27968         * modules/locale (Makefile.am): Likewise.
27969         * modules/math (Makefile.am): Likewise.
27970         * modules/netdb (Makefile.am): Likewise.
27971         * modules/netinet_in (Makefile.am): Likewise.
27972         * modules/poll-h (Makefile.am): Likewise.
27973         * modules/pthread (Makefile.am): Likewise.
27974         * modules/pty (Makefile.am): Likewise.
27975         * modules/sched (Makefile.am): Likewise.
27976         * modules/search (Makefile.am): Likewise.
27977         * modules/selinux-h (Makefile.am): Likewise.
27978         * modules/signal (Makefile.am): Likewise.
27979         * modules/spawn (Makefile.am): Likewise.
27980         * modules/stdarg (Makefile.am): Likewise.
27981         * modules/stddef (Makefile.am): Likewise.
27982         * modules/stdint (Makefile.am): Likewise.
27983         * modules/stdio (Makefile.am): Likewise.
27984         * modules/stdlib (Makefile.am): Likewise.
27985         * modules/string (Makefile.am): Likewise.
27986         * modules/strings (Makefile.am): Likewise.
27987         * modules/sys_file (Makefile.am): Likewise.
27988         * modules/sys_ioctl (Makefile.am): Likewise.
27989         * modules/sys_select (Makefile.am): Likewise.
27990         * modules/sys_socket (Makefile.am): Likewise.
27991         * modules/sys_stat (Makefile.am): Likewise.
27992         * modules/sys_time (Makefile.am): Likewise.
27993         * modules/sys_times (Makefile.am): Likewise.
27994         * modules/sys_utsname (Makefile.am): Likewise.
27995         * modules/sys_wait (Makefile.am): Likewise.
27996         * modules/sysexits (Makefile.am): Likewise.
27997         * modules/termios (Makefile.am): Likewise.
27998         * modules/time (Makefile.am): Likewise.
27999         * modules/unistd (Makefile.am): Likewise.
28000         * modules/wchar (Makefile.am): Likewise.
28001         * modules/wctype (Makefile.am): Likewise.
28002
28003 2010-10-04  Bruno Haible  <bruno@clisp.org>
28004
28005         read-file tests: Avoid a test failure on NonStop Kernel.
28006         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28007         a regular file.
28008         Reported by Joachim Schmitz <schmitz@hp.com>.
28009
28010 2010-10-03  Bruno Haible  <bruno@clisp.org>
28011
28012         gnulib-tool: Fixes for --create-testdir with --libtool.
28013         * gnulib-tool (func_get_automake_snippet): Don't augment
28014         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28015         an executable.
28016         (func_create_testdir): Handle module 'alloca' like func_import.
28017         Reported by Bruce Korb <bruce.korb@gmail.com>.
28018
28019 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28020
28021         Avoid some lines longer than 80 characters.
28022         * lib/stdint.in.h: Break long comment lines.
28023         * lib/math.in.h: Likewise.
28024         (_GL_NUM_UINT_WORDS): New macro, for readability.
28025         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28026         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28027         * lib/stdlib.in.h: Likewise.
28028         * lib/spawn.in.h: Likewise.
28029         * lib/sys_socket.in.h: Update an URL.
28030         * lib/sys_stat.in.h: Break long line.
28031
28032 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28033
28034         Improve pmccabe2html.
28035         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28036         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28037         when the sources change. Remove the line in the HTML about "Used
28038         ranges" (which implied that there might be other unused ranges),
28039         rename "Resume" to "Summary" (easier to understand for more users).
28040         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28041         styles, and some unnecessary blank lines.
28042
28043 2010-10-03  Bruno Haible  <bruno@clisp.org>
28044             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28045
28046         acl: Add support for ACLs on NonStop Kernel.
28047         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28048         Check whether the function aclsort() exists.
28049         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28050         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28051         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28052         (acl_nontrivial [HAVE_ACLSORT]: New function.
28053         (file_has_acl): Implement for NonStop Kernel.
28054         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28055         (qset_acl): Implement for NonStop Kernel.
28056         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28057         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28058         (main): Implement for NonStop Kernel.
28059         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28060         Kernel. Handle this flavor.
28061         * tests/test-set-mode-acl.sh: Likewise.
28062         * tests/test-copy-acl.sh: Likewise.
28063         * tests/test-copy-file.sh: Likewise.
28064
28065 2010-10-03  Bruno Haible  <bruno@clisp.org>
28066
28067         Info about ACLs on NonStop Kernel.
28068         * doc/acl-resources.txt: Add info about NonStop Kernel.
28069         References by Joachim Schmitz <schmitz@hp.com>.
28070
28071 2010-10-02  Bruno Haible  <bruno@clisp.org>
28072
28073         Define missing EDQUOT on NonStop Kernel.
28074         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28075         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28076         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28077         missing.
28078         * doc/posix-headers/errno.texi: Mention the NSK bug.
28079         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28080         Reported by Joachim Schmitz <schmitz@hp.com>.
28081
28082 2010-10-02  Bruno Haible  <bruno@clisp.org>
28083
28084         Update doc for POSIX:2008.
28085         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28086         Update URL of POSIX specification.
28087
28088 2010-10-02  Bruno Haible  <bruno@clisp.org>
28089
28090         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28091         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28092         from gnulib, not from Automake.
28093
28094 2010-10-02  Bruno Haible  <bruno@clisp.org>
28095
28096         New module 'system-posix'.
28097         * modules/system-posix: New file.
28098         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28099         module is present.
28100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28101         GNULIB_SYSTEM_POSIX.
28102         * modules/stdlib (Depends-on): Remove sys_wait.
28103         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28104         * doc/posix-functions/system.texi: Mention the new module.
28105         * doc/posix-headers/stdlib.texi: Likewise.
28106         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28107         define test_sys_wait_macros to a no-op.
28108         Reported by Sam Steingold <sds@gnu.org>.
28109
28110 2010-09-30  Bruno Haible  <bruno@clisp.org>
28111
28112         More renaming from 'getdate' to 'get_date'.
28113         * doc/get_date.texi: Renamed from doc/getdate.texi.
28114         * modules/get_date (Files): Update.
28115         * MODULES.html.sh (Date and time <time.h>): Update.
28116         * DEPENDENCIES: Update.
28117         * gnulib-tool: Update comment.
28118         * m4/bison.m4 (gl_BISON): Likewise.
28119         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28120
28121 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28122
28123         bootstrap: support ACLOCAL_FLAGS during aclocal
28124         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28125         can add additional -I dir for third-party .m4 files.
28126
28127 2010-09-30  Eric Blake  <eblake@redhat.com>
28128
28129         bootstrap: use glibtoolize on MacOS
28130         * build-aux/bootstrap (check_versions): Convert libtool into
28131         libtoolize.
28132         (tool search): Move libtool check earlier, and look for
28133         glibtoolize for MacOS.
28134         (gnulib_tool_options): Auto-add --libtool when appropriate.
28135         Reported by Justin Clift.
28136
28137         poll: fix typo that broke test on MacOS
28138         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28139         Reported by Justin Clift.
28140
28141         getdate: rename to get_date
28142         Note: getdate.h is not renamed, to minimize client impact.
28143         * modules/getdate: Mark obsolete.  Move old contents...
28144         * modules/get_date: ...to new module name.
28145         * modules/getdate-tests: Move...
28146         * modules/get_date-tests: ...here.
28147         * m4/getdate.m4: Move...
28148         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28149         * lib/getdate.y: Move...
28150         * lib/get_date.y: ...here.
28151         * tests/test-getdate.c: Move...
28152         * tests/test-get_date.c: ...here.
28153         * doc/posix-functions/getdate.texi (getdate): Update name.
28154         * NEWS: Mention the change.
28155
28156 2010-09-29  Bruno Haible  <bruno@clisp.org>
28157
28158         Separate the module 'waitpid' from the module 'sys_wait'.
28159         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28160         present.
28161         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28162         gl_MODULE_INDICATOR_FOR_TESTS.
28163         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28164         * modules/sys_wait (Depends-on): Remove waitpid.
28165         (Makefile.am): Substitute GNULIB_WAITPID.
28166         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28167         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28168         signature only if the 'waitpid' module is present.
28169         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28170         * NEWS: Mention the change.
28171         * modules/grantpt (Depends-on): Add waitpid.
28172         * modules/wait-process (Depends-on): Likewise.
28173
28174 2010-09-29  Bruno Haible  <bruno@clisp.org>
28175
28176         More tests for module 'sys_wait'.
28177         * modules/sys_wait-c++-tests: New file.
28178         * tests/test-sys_wait-c++.cc: New file.
28179         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28180         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28181
28182 2010-09-29  Bruno Haible  <bruno@clisp.org>
28183
28184         New module 'waitpid'.
28185         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28186         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28187         Don't include <process.h>.
28188         (waitpid): Declare only, using modern idiom.
28189         * m4/waitpid.m4: New file.
28190         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28191         * modules/waitpid: New file.
28192         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28193         (Makefile.am): Update.
28194         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28195
28196 2010-09-28  Bruno Haible  <bruno@clisp.org>
28197
28198         poll: Assume ANSI C.
28199         * lib/poll.c (poll): Use an ANSI C declaration.
28200
28201 2010-09-28  Bruno Haible  <bruno@clisp.org>
28202
28203         poll-h: Create poll.h on all platforms.
28204         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28205         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28206         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28207         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28208         (gl_REPLACE_POLL_H): Don't set POLL_H.
28209         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28210         * modules/poll-h (Depends-on): Add include_next.
28211         (Makefile.am): Create poll.h unconditionally. Substitute also
28212         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28213
28214 2010-09-28  Bruno Haible  <bruno@clisp.org>
28215
28216         Tests for module 'poll-h'.
28217         * modules/poll-h-c++-tests: New file.
28218         * tests/test-poll-h-c++.cc: New file.
28219
28220         Tests for module 'poll-h'.
28221         * modules/poll-h-tests: New file.
28222         * tests/test-poll-h.c: New file.
28223
28224 2010-09-28  Bruno Haible  <bruno@clisp.org>
28225
28226         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28227         * modules/poll-h (Depends-on): Add 'extensions'.
28228
28229 2010-09-28  Bruno Haible  <bruno@clisp.org>
28230
28231         New module 'poll-h'.
28232         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28233         (poll): Use modern idiom.
28234         * modules/poll-h: New file.
28235         * modules/poll (Files): Remove lib/poll.in.h.
28236         (Depends-on): Add poll-h.
28237         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28238         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28239         * m4/poll_h.m4: New file.
28240         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28241         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28242         and invoke gl_REPLACE_POLL_H.
28243         * lib/poll.c: Use common idiom.
28244         * tests/test-poll.c: Likewise.
28245         * doc/posix-headers/poll.texi: Mention the poll-h module.
28246         Suggested by Eric Blake.
28247
28248 2010-09-26  Bruno Haible  <bruno@clisp.org>
28249
28250         sys_wait: Implement WSTOPSIG.
28251         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28252         Reported by Simon Josefsson.
28253
28254 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28255
28256         stdlib, sys_wait: Avoid compilation error on mingw.
28257         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28258
28259 2010-09-26  Bruno Haible  <bruno@clisp.org>
28260
28261         stdlib tests: Avoid code duplication.
28262         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28263         * modules/sys_wait-tests (Files): Likewise.
28264         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28265         * tests/test-stdlib.c: Include test-sys_wait.h.
28266         (main): Invoke test_sys_wait_macros.
28267         * tests/test-sys_wait.c: Include test-sys_wait.h.
28268         (main): Invoke test_sys_wait_macros.
28269
28270 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28271
28272         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28273         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28274         sure Windows sockets are working before calling getaddrinfo.
28275         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28276         * doc/gnulib.texi (Windows sockets): Fix typo.
28277
28278 2010-09-25  Bruno Haible  <bruno@clisp.org>
28279
28280         Tests for module 'regex-quote'.
28281         * modules/regex-quote-tests: New file.
28282         * tests/test-regex-quote.c: New file.
28283
28284         New module 'regex-quote'.
28285         * lib/regex-quote.h: New file.
28286         * lib/regex-quote.c: New file.
28287         * modules/regex-quote: New file.
28288         Suggested by Reuben Thomas <rrt@sc3d.org>.
28289
28290 2010-09-24  Bruno Haible  <bruno@clisp.org>
28291
28292         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28293         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28294
28295 2010-09-23  Bruno Haible  <bruno@clisp.org>
28296
28297         setenv: Relax license.
28298         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28299         Blake.
28300         Requested by Eric Blake.
28301
28302 2010-09-22  Bruno Haible  <bruno@clisp.org>
28303
28304         termios: Relax license.
28305         * modules/termios (License): Change to LGPLv2+.
28306         Requested by Eric Blake.
28307
28308 2010-09-22  Bruno Haible  <bruno@clisp.org>
28309
28310         threadlib: Allow the package to change the default to 'no'.
28311         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28312         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28313         Reported by Paul Eggert.
28314
28315 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28316             Bruno Haible  <bruno@clisp.org>
28317
28318         Fix endless loop in mbmemcasecoll.
28319         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28320         byte.
28321         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28322
28323 2010-09-22  Bruno Haible  <bruno@clisp.org>
28324
28325         Tests for module 'memcoll'.
28326         * modules/memcoll-tests: New file.
28327         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28328
28329         memcoll, xmemcoll: Clarify size vs. length.
28330         * modules/memcoll.c (memcoll0): Clarify specification.
28331         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28332         passed to collate_error.
28333
28334 2010-09-22  Bruno Haible  <bruno@clisp.org>
28335
28336         Tests for module 'memcasecmp'.
28337         * modules/memcasecmp-tests: New file.
28338         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28339
28340 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28341
28342         * lib/pthread.in.h: Add split double-inclusion guard, and include
28343         system <pthread.h> if there is one.  Use @@-style as in other
28344         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28345         pthread.h doesn't.
28346         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28347         (pthread_mutexattr_settype, pthread_mutex_trylock):
28348         New static inline functions, if there's no system <pthread.h>.
28349         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28350         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28351         Approximate with mutexes if the system lacks spinlocks, as in
28352         MacOS.
28353         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28354         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28355         @@-style.  Check for spinlocks separately.
28356         (gl_PTHREAD_DEFAULTS): New macro.
28357         * modules/pthread: Redo to use a more typical style for in.h files.
28358
28359 2010-09-21  Eric Blake  <eblake@redhat.com>
28360
28361         net_if: enhance tests
28362         * tests/test-net_if.c (main): Move signature checks earlier.
28363         Print failures to stderr.
28364         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28365         Document the bug that we do not yet fix.
28366
28367 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28368
28369         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28370         about gnulib, not GSS.
28371
28372 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28373
28374         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28375         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28376         for Emacs.
28377         * build-aux/pmccabe2html: Make Makefile.am example code more
28378         cut-and-paste friendly.
28379
28380 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28381
28382         * tests/test-net_if.c: New file.
28383         * modules/net_if-tests: New file.
28384
28385 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28386
28387         pthread: add pthread_spin_destroy
28388         * lib/pthread.in.h (pthread_spin_destroy): New function.
28389
28390 2010-09-19  Bruno Haible  <bruno@clisp.org>
28391
28392         gnulib-tool: Fix --help output.
28393         * gnulib-tool (func_usage): Fix help message.
28394         Reported by Reuben Thomas <rrt@sc3d.org>.
28395
28396 2010-09-18  Jim Meyering  <meyering@redhat.com>
28397
28398         maint.mk: avoid unexpanded \n in two diagnostics
28399         * top/maint.mk (sc_prohibit_always_true_header_tests):
28400         Don't use a literal \n in a halt=... assignment.  It would not be
28401         expanded, and the two \n bytes would appear in the diagnostic output
28402         rather than the desired newline.  Use halt=$$(printf ... instead.
28403         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28404
28405 2010-09-18  Bruno Haible  <bruno@clisp.org>
28406
28407         netinet_in: Doc tweak.
28408         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28409         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28410
28411 2010-09-18  Jim Meyering  <meyering@redhat.com>
28412
28413         init.sh: correct an outdated comment
28414         * tests/init.sh (create_exe_shims_):  s/function/alias/
28415
28416         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28417         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28418         a file named "*.exe" is removed between the glob expansion and the
28419         processing of that oddly named file.
28420
28421 2010-09-17  Eric Blake  <eblake@redhat.com>
28422
28423         mirbsd: add some more support
28424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28425         in BSD family.
28426         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28427         devices as OpenBSD.
28428         * m4/host-os.m4 (mirbsd): Add MirBSD.
28429
28430         tests: fix unportable assumption on sys/wait.h
28431         * tests/test-sys_wait.c (main): Relax test.
28432         * tests/test-stdlib.c (main): Likewise.
28433
28434         init.sh: accommodate directory with no .exes
28435         * tests/init.sh: Accomodate directory containing only scripts.
28436
28437         tests: avoid compiler warning
28438         * tests/test-stdlib.c (main): Use the variable.
28439
28440         fdutimens, fdutimensat: update signature, again
28441         * lib/utimens.h (gl_futimens): Delete, and move signature...
28442         (fdutimens): ...here.
28443         (fdutimensat): Rearrange signature.
28444         (lutimensat): Rename variable for clarity.
28445         * lib/fdutimensat.c (fdutimensat): Update signature.
28446         * lib/utimens.c (fdutimens): Likewise.
28447         (gl_futimens): Delete.
28448         (utimens, lutimens): Update callers.
28449         * lib/futimens.c (futimens): Likewise.
28450         * tests/test-fdutimensat.c: Likewise.
28451         * tests/test-utimens.c: Likewise.
28452         * tests/test-futimens.h: Update comment.
28453         * NEWS: Mention this.
28454         Suggested by Paul Eggert.
28455
28456 2010-09-17  Bruno Haible  <bruno@clisp.org>
28457
28458         Take over the maintenance of some older macros from Autoconf.
28459         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28460         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28461         GNU Autoconf.
28462         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28463         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28464
28465 2010-09-17  Eric Blake  <eblake@redhat.com>
28466
28467         fdutimensat: drop atflag validation
28468         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28469         with valid fd, to close a race scenario where futimens is
28470         unsupported and FILE was replaced by a symlink.
28471         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28472         accordingly.
28473         Suggested by Paul Eggert.
28474
28475 2010-09-16  Bruno Haible  <bruno@clisp.org>
28476
28477         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28478         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28479
28480 2010-09-16  Bruno Haible  <bruno@clisp.org>
28481
28482         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28483         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28484         login_tty exists.
28485         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28486
28487 2010-09-16  Bruno Haible  <bruno@clisp.org>
28488
28489         login_tty: Make the replacement code work on BSD systems.
28490         * lib/login_tty.c: Include <sys/ioctl.h>.
28491         (login_tty): Use ioctl TIOCSCTTY when available.
28492         * modules/login_tty (Depends-on): Add sys_ioctl.
28493         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28494
28495 2010-09-16  Bruno Haible  <bruno@clisp.org>
28496
28497         login_tty: Stricter unit test.
28498         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28499         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28500         and tcgetsid() after login_tty.
28501         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28502
28503 2010-09-16  Bruno Haible  <bruno@clisp.org>
28504
28505         New module 'tcgetsid'.
28506         * lib/tcgetsid.c: New file.
28507         * m4/tcgetsid.m4: New file.
28508         * modules/tcgetsid: New file.
28509         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28510         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28511         GNULIB_TCGETSID, HAVE_TCGETSID.
28512         * lib/termios.in.h: Include <sys/types.h>.
28513         (tcgetsid): New declaration.
28514         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28515         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28516         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28517         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28518
28519 2010-09-16  Bruno Haible  <bruno@clisp.org>
28520
28521         Tests for module 'termios'.
28522         * modules/termios-c++-tests: New file.
28523         * modules/termios-tests: New file.
28524         * tests/test-termios-c++.cc: New file.
28525         * tests/test-termios.c: New file.
28526
28527         New module 'termios'.
28528         * modules/termios: New file.
28529         * lib/termios.in.h: New file.
28530         * m4/termios_h.m4: New file.
28531         * doc/posix-headers/termios.texi: Mention the new module.
28532
28533 2010-09-16  Eric Blake  <eblake@redhat.com>
28534
28535         fdutimensat: add an atflag parameter
28536         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28537         * lib/utimens.h (fdutimensat): Update prototype.
28538         * tests/test-fdutimensat.c: Adjust test to match.
28539         * NEWS: Document the change.
28540         Suggested by Paul Eggert.
28541
28542 2010-09-16  Bruno Haible  <bruno@clisp.org>
28543
28544         Fix typos in comments.
28545         * lib/striconveh.h: Fix typo in comment.
28546         * lib/login_tty.c (login_tty): Likewise.
28547
28548 2010-09-15  Bruno Haible  <bruno@clisp.org>
28549
28550         stdlib: clarify MirBSD WEXITSTATUS bug
28551         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28552         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28553
28554 2010-09-15  Eric Blake  <eblake@redhat.com>
28555
28556         stdlib: work around MirBSD WEXITSTATUS bug
28557         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28558         * modules/stdlib (Depends-on): Add sys_wait.
28559         * tests/test-sys_wait.c (main): Enhance test.
28560         * tests/test-stdlib.c (main): Likewise.
28561         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28562
28563         docs: mention MacOS issue with WEXITSTATUS(constant)
28564         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28565         issue.
28566         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28567
28568         strnlen: add tests
28569         * modules/strnlen-tests: New file.
28570         * tests/test-strnlen.c: Likewise.
28571
28572 2010-09-14  Bruno Haible  <bruno@clisp.org>
28573
28574         unistr/base: Avoid link errors when module 'libunistring' is also used.
28575         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28576         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28577         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28578         Declare also when HAVE_LIBUNISTRING is set.
28579         Reported by Pádraig Brady <P@draigbrady.com>.
28580
28581 2010-09-14  Eric Blake  <eblake@redhat.com>
28582
28583         test-rawmemchr: make more robust
28584         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28585         (Depends-on, configure.ac): Add needed prerequisites to use it.
28586         * modules/memchr-tests (Files, Depends-on, configure.ac):
28587         Likewise, to avoid implicit reliance on memchr module prereqs.
28588         * tests/test-memchr.c (main): Ensure proper masking.
28589         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28590         reads.
28591
28592         memchr: detect glibc Alpha bug
28593         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28594         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28595         Alpha.
28596         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28597         * tests/test-memchr.c (main): Enhance test.
28598         Reported by Nelson H. F. Beebe.
28599
28600 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28601
28602         fts, getcwd, glob: audit for dirfd returning -1
28603         * lib/fts.c (opendir): Remove #define; no longer used.
28604         (opendirat): New arg PDIR_FD.  All callers changed.
28605         (fts_build, _opendir2): Use new opendirat to avoid the need for
28606         dirfd, or for checking whether dirfd returns a negative value.
28607         Don't use opendir; always use openat followed by fdopendir.
28608         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28609         it.
28610         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28611         returns -1 here.
28612         * modules/fts (Depends-on): Remove dirfd.
28613         * modules/getcwd (Depends-on): Likewise.
28614
28615 2010-09-13  Eric Blake  <eblake@redhat.com>
28616
28617         float: fix broken MirBSD header
28618         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28619         * doc/posix-headers/float.texi (float.h): Document it.
28620
28621 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28622
28623         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28624         * lib/fts.c (opendirat): New arg extra_flags.
28625         (__opendir2): Use it to avoid following symlinks when opening
28626         a directory, if symlinks are not supposed to be followed.  See
28627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28628
28629         fdopendir: preserve argument fd before returning
28630         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28631         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28632         (fdopendir): Use them, arranging for FD to be open to the same
28633         directory that it was when it started.  (It might be temporarily
28634         closed while fdopendir is running, so this not thread- or
28635         signal-safe.)  Be careful to do the right thing even when file
28636         descriptors are scarce and dup fails with errno == EMFILE.  See
28637         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28638
28639 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28640
28641         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28642         * NEWS: Document change.
28643         * m4/regex.m4: Disable test for regoff_t size.
28644
28645 2010-09-13  Jim Meyering  <meyering@redhat.com>
28646
28647         fts: don't operate on an invalid file descriptor after failed dup
28648         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28649         negative file descriptor.
28650
28651 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28652
28653         savedir: add streamsavedir, deprecate fdsavedir
28654         * NEWS: Mention deprecation of fdsavedir.
28655         * lib/savedir.c (streamsavedir): New extern function, whose name
28656         ends in "savedir" to be consistent with the others.  This differs
28657         from savedirstream in that it doesn't close its argument.  The
28658         next version of GNU tar will use this instead of fdsavedir, to
28659         avoid some race conditions and conserve file descriptors.
28660         (savedirstream): Reimplement as a wrapper around streamsavedir.
28661         (fdsavedir): Add a comment deprecating this function.  As far as
28662         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28663         * lib/savedir.h (streamsavedir): New decl.
28664         (fdsavedir): Add a comment deprecating this.
28665
28666 2010-09-10  Bruno Haible  <bruno@clisp.org>
28667
28668         langinfo: Fix last commit.
28669         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28670         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28672
28673 2010-09-10  Bruno Haible  <bruno@clisp.org>
28674
28675         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28676         * lib/progreloc.c (O_EXEC): Define fallback.
28677
28678 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28679
28680         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28681         * NEWS: Document recent changes to fcntl-h.
28682         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28683         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28684         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28685         Similarly for O_SEARCH; this last was already true, but not documented.
28686         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28687         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28688         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28689         Likewise.
28690         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28691         is zero, not whether it is defined.
28692         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28693         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28694         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28695
28696 2010-09-10  Bruno Haible  <bruno@clisp.org>
28697
28698         langinfo, nl_langinfo: Fix for IRIX 5.3.
28699         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28700         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28701         HAVE_LANGINFO_YESEXPR.
28702         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28703         HAVE_LANGINFO_YESEXPR.
28704         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28705         HAVE_LANGINFO_T_FMT_AMPM is 0.
28706         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28707         HAVE_LANGINFO_YESEXPR is 0.
28708         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28709         NOEXPR.
28710         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28711         * doc/posix-functions/nl_langinfo.texi: Likewise.
28712         Reported by Eric Blake.
28713
28714 2010-09-10  Bruno Haible  <bruno@clisp.org>
28715
28716         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28717         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28718         on FreeBSD 8.0 and OpenBSD 4.6.
28719         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28720         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28721         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28722         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28723         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28724         ac_includes_default.
28725         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28726
28727 2010-09-09  Eric Blake  <eblake@redhat.com>
28728
28729         strsignal: work around NetBSD bug
28730         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28731         * lib/string.in.h (includes): Likewise.
28732         * doc/posix-functions/strsignal.texi (strsignal): Document the
28733         bug.
28734         Reported by Nelson H. F. Beebe.
28735
28736         gnulib-tool: work with NetBSD /bin/sh
28737         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28738         (func_get_description, func_get_comment, func_get_status)
28739         (func_get_notice, func_get_applicability, func_get_filelist)
28740         (func_get_dependencies, func_get_autoconf_early_snippet)
28741         (func_get_autoconf_snippet, func_get_automake_snippet)
28742         (func_get_include_directive, func_get_link_directive)
28743         (func_get_license, func_get_maintainer, func_import): Avoid
28744         shell syntax errors from parsing syntax extensions.
28745
28746 2010-09-09  Bruno Haible  <bruno@clisp.org>
28747
28748         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28749         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28750         a reliable way to determine whether the 'alias' command works.
28751
28752 2010-09-08  Jim Meyering  <meyering@redhat.com>
28753
28754         init.sh: penalize a set-x-impaired shell; don't disqualify it
28755         * tests/init.sh: Too many shells corrupt application stderr when
28756         you set -x, so we can't afford to disqualify them, since at least
28757         on Irix-6.5, that would disqualify all bourne shells.
28758         Instead, use a two-pass approach.
28759         On the first pass, try to find a shell that meets the stricter
28760         condition that set -x does not corrupt stderr.
28761         If no shell meets the stricter condition, retest each candidate
28762         shell, but without that extra condition.  Finally, when
28763         VERBOSE=yes is requested and set -x might cause trouble, simply
28764         issue a warning and refrain from enabling debug output.
28765
28766 2010-09-08  Eric Blake  <eblake@redhat.com>
28767
28768         unsetenv: fix OpenBSD bug
28769         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28770         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28771         documentation.
28772         Reported by Jim Meyering.
28773
28774         strtod: work around IRIX 6.5 bug
28775         * lib/strtod.c (strtod): Reparse number on shorter string if
28776         exponent parse was invalid.
28777         * tests/test-strtod.c (main): Add check for "0x1p 2".
28778         Reported by Tom G. Christensen.
28779
28780         getopt: optimize previous patch
28781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28782         empty variable.  Speed up awk script.
28783         Reported by Paolo Bonzini.
28784
28785 2010-09-08  Jim Meyering  <meyering@redhat.com>
28786
28787         test.sh: disqualify shells for which set -x corrupts stderr
28788         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28789         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28790         appear in stderr output.  For example, this command:
28791             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28792         prints "P=1" on those two systems:
28793
28794 2010-09-08  Bruno Haible  <bruno@clisp.org>
28795
28796         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28797         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28798         commands, because some shells ignore redirections when there is an
28799         error in the command lookup.
28800         Reported by Eric Blake.
28801
28802 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28803
28804         * lib/regex.h: Fix a mention of `regex_compile' (should be
28805         `re_compile_pattern').
28806         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28807         (re_set_registers): Correct name of parameter in comment.
28808
28809         * doc/regex.texi: Add documentation for missing syntax flags.
28810         Remove commented-out documentation of defunct syntax option
28811         RE_NO_EMPTY_ALTS.
28812         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28813         Add documentation of re_set_registers.
28814         Document trick to re-use a pattern buffer by setting fastmap manually.
28815         Update documentation of struct re_pattern_buffer per public members.
28816         Uncomment documentation of equivalence class operators and
28817         collating symbol operators, since they are now implemented,
28818         Explain leftmost-longest matching in relation to alternatives.
28819         Tidy documentation of substring matching.
28820         Remove POSIX documentation, which is done better in
28821         glibc, and refer the reader there. Keep BSD API documentation, as
28822         that is not readily available elsewhere.
28823
28824 2010-09-07  Eric Blake  <eblake@redhat.com>
28825
28826         getopt: handle POSIXLY_CORRECT set but not exported
28827         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28828         export state of POSIXLY_CORRECT, due to bash set -o posix.
28829         Reported by Dustin J. Mitchell.
28830
28831 2010-09-05  Bruno Haible  <bruno@clisp.org>
28832
28833         gnulib-tool: Highlight the changed options.
28834         * gnulib-tool (func_usage): Display the --import, --add-import,
28835         --remove-import explanations in bold font.
28836
28837 2010-09-06  Karl Berry  <karl@gnu.org>
28838
28839         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28840
28841 2010-09-05  Bruno Haible  <bruno@clisp.org>
28842
28843         uniwidth/width: Update comment.
28844         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28845         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28846
28847 2010-09-05  Bruno Haible  <bruno@clisp.org>
28848
28849         isinf, isnan: Relax license.
28850         * modules/isinf (License): Change from GPL to LGPL, with consent from
28851         Ben Pfaff.
28852         * modules/isnan (License): Likewise.
28853         Requested by Ludovic Courtès.
28854
28855 2010-09-04  Bruno Haible  <bruno@clisp.org>
28856
28857         gnulib-tool: Help migration from --import to --add-import or --update.
28858         * gnulib-tool: Emit a verbose error message when --import is used
28859         without any module name.
28860
28861 2010-09-04  Bruno Haible  <bruno@clisp.org>
28862
28863         Update doc about gnulib-tool.
28864         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28865         'gnulib-tool --update' in more detail.
28866         Reported by Eric Blake.
28867
28868 2010-09-04  Bruno Haible  <bruno@clisp.org>
28869
28870         gnulib-tool: Change --import. New options --add/remove-import.
28871         * gnulib-tool: New options --add-import, --remove-import.
28872         (func_usage): Document them.
28873         (have_associative): Define always.
28874         (func_import): In import mode, don't merge the specified settings with
28875         the cached settings. Implement remove-import mode.
28876         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28877         Explain when to use them versus --import.
28878         (Simple update): Use --add-import instead of --import.
28879         * NEWS: Mention the change.
28880
28881 2010-09-04  Bruno Haible  <bruno@clisp.org>
28882
28883         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28884         separate gnulib.mk.
28885
28886 2010-09-04  Bruno Haible  <bruno@clisp.org>
28887
28888         gnulib-tool: Don't talk about CVS any more.
28889         * gnulib-tool (func_usage, func_import): Write "version control"
28890         instead of CVS.
28891
28892 2010-09-04  Jim Meyering  <meyering@redhat.com>
28893
28894         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28895         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28896         false positives (whose names may be ill-chosen) when searching
28897         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28898         would cause a false-positive.
28899
28900         avoid coreutils "make distcheck" failure
28901         Coreutils tests with an absolute build directory name that contains
28902         a space.  Not quoting this directory name caused a failure.
28903         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28904         * tests/test-vc-list-files-cvs.sh: Likewise.
28905
28906 2010-09-04  Bruno Haible  <bruno@clisp.org>
28907
28908         gnulib-tool: Avoid error when run in a package without Makefile.am.
28909         * gnulib-tool: When collecting the m4dirs in a package that does not
28910         have a Makefile.am, eliminate those directories that contain no
28911         gnulib-cache.m4. Fix expression that counts these directories.
28912
28913 2010-09-04  Bruno Haible  <bruno@clisp.org>
28914
28915         update-copyright test: Improve output when perl is missing or too old.
28916         * tests/test-update-copyright.sh: Move test of Perl version down after
28917         the test whether Perl exists. Provide an explanation relating Perl's
28918         error message to Automake's SKIP: message.
28919
28920 2010-09-04  Bruno Haible  <bruno@clisp.org>
28921
28922         Don't augment PATH in TESTS_ENVIRONMENT.
28923         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28924         set abs_aux_dir instead of augmenting PATH.
28925         * modules/vc-list-files-tests (Makefile.am): Likewise.
28926         * tests/test-update-copyright.sh: Augment PATH here.
28927         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28928         path_prepend_.
28929         * tests/test-vc-list-files-git.sh: Likewise.
28930
28931 2010-09-04  Jim Meyering  <meyering@redhat.com>
28932
28933         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28934         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28935
28936 2010-09-04  Bruno Haible  <bruno@clisp.org>
28937
28938         strdup: Fix compilation error in C++ mode.
28939         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28940         the macro.
28941
28942 2010-09-04  Bruno Haible  <bruno@clisp.org>
28943
28944         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28945         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28946         macro into a function.
28947         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28948
28949 2010-09-04  Bruno Haible  <bruno@clisp.org>
28950
28951         Set PATH_SEPARATOR the same way autoconf does.
28952         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28953         the value of PATH_SEPARATOR the same way autoconf-generated configure
28954         scripts do.
28955         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28956         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28957
28958 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28959
28960         Set PATH_SEPARATOR the same way autoconf does.
28961         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28962         the same way autoconf-generated configure scripts do.
28963         * posix-modules: Likewise.
28964
28965 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28966
28967         hash: fix safe_hasher const typo
28968         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28969         const; otherwise, there is a type error later.
28970
28971 2010-09-02  Jim Meyering  <meyering@redhat.com>
28972
28973         test-update-copyright.sh: require perl 5.8.0
28974         * tests/test-update-copyright.sh: Require 5.8.0,
28975         which Tom G. Christensen has confirmed is adequate,
28976         while 5.6.1 is not.
28977
28978 2010-09-02  Eric Blake  <eblake@redhat.com>
28979
28980         tests: init.sh improvements for re-exec'ing with zsh
28981         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28982         -vx through shell re-exec.
28983         Reported by Tom G. Christensen.
28984
28985         wctype: fix typo in previous commit
28986         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28987         Reported by Ludovic Courtès.
28988
28989 2010-09-02  Jim Meyering  <meyering@redhat.com>
28990
28991         test-update-copyright.sh: skip test if Perl is too old
28992         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28993         Reported by Tom G. Christensen.
28994
28995 2010-09-02  Bruno Haible  <bruno@clisp.org>
28996
28997         wctype: Avoid compilation error on IRIX 6.5.30.
28998         * lib/wctype.in.h (iswblank): Declare with a replacement if
28999         REPLACE_ISWBLANK is set.
29000         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29001         declared. Set REPLACE_ISWBLANK.
29002         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29003         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29004         * doc/posix-headers/wctype.texi: Likewise.
29005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29006
29007 2010-09-01  Bruno Haible  <bruno@clisp.org>
29008
29009         New module 'socketlib'.
29010         * modules/socketlib: New file.
29011         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29012         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29013         * modules/sockets (Depends-on): Add socketlib.
29014         Suggested by Sam Steingold <sds@gnu.org>.
29015
29016 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29017
29018         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29019
29020         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29021         when one needs search access to a directory but not read access.
29022         On systems where it is available, it works in some cases where
29023         O_RDONLY does not, namely on directories that are searchable but
29024         not readable, and which need only to be searchable.  If O_SEARCH
29025         is not available, fall back to the traditional method of using
29026         O_RDONLY.
29027
29028         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29029         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29030         when opening a directory that needs only to be searchable.
29031         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29032         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29033         * lib/openat-proc.c (openat_proc_name): Likewise.
29034         * lib/openat.c (openat_needs_fchdir): Likewise.
29035         * lib/save-cwd.c (save_cwd): Likewise.
29036         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29037
29038 2010-08-28  Bruno Haible  <bruno@clisp.org>
29039
29040         New module 'host-cpu-c-abi'.
29041         * modules/host-cpu-c-abi: New file.
29042         * m4/host-cpu-c-abi.m4: New file, based on part of
29043         clisp/src/m4/general.m4.
29044         Requested by Sam Steingold <sds@gnu.org>.
29045
29046 2010-08-31  Eric Blake  <eblake@redhat.com>
29047         and Jim Meyering  <meyering@redhat.com>
29048
29049         hash: factor, and guard against misbehaving hasher function
29050         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29051         of table->hasher's return value.  Also protect against a hash value
29052         so large that adding it to table->bucket results in a NULL pointer.
29053         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29054         Use it in place of open-coded check-and-abort.
29055
29056 2010-08-30  Bruno Haible  <bruno@clisp.org>
29057
29058         hash: silence spurious clang warning
29059         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29060         Reported by Eric Blake.
29061
29062 2010-08-30  Eric Blake  <eblake@redhat.com>
29063
29064         strstr, memmem, strcasestr: avoid leaked shell message
29065         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29066         FreeBSD.
29067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29069
29070         tests: silence clang warning
29071         * tests/test-malloca.c (do_allocation): Avoid dead store.
29072
29073 2010-08-29  Bruno Haible  <bruno@clisp.org>
29074
29075         gettext: Fix recent mistake.
29076         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29077
29078 2010-08-29  Bruno Haible  <bruno@clisp.org>
29079
29080         selinux-h: Offer a --without-selinux option.
29081         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29082         --without-selinux was specified, skip all tests and define
29083         HAVE_SELINUX_SELINUX_H to 0.
29084         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29085         set LIB_SELINUX to empty.
29086         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29087         gl_LIBSELINUX. If --without-selinux was specified, replace
29088         selinux/context.h.
29089         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29090
29091 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29092             Bruno Haible  <bruno@clisp.org>
29093
29094         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29095         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29096         of HAVE_REALLOC.
29097         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29098         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29099         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29100         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29101
29102 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29103             Bruno Haible  <bruno@clisp.org>
29104
29105         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29106         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29107         HAVE_CALLOC.
29108         * lib/xmalloc.c: Update accordingly.
29109         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29110         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29111         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29112
29113 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29114             Bruno Haible  <bruno@clisp.org>
29115
29116         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29117         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29118         HAVE_MALLOC.
29119         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29120         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29121         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29122
29123 2010-08-29  Bruno Haible  <bruno@clisp.org>
29124
29125         Update modules list.
29126         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29127         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29128         (String handling <string.h>): Add astrxfrm.
29129         (File system functions): Add readlinkat.
29130
29131 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29132
29133         Tests for module 'realloc-gnu'.
29134         * modules/realloc-gnu-tests: New file.
29135         * tests/test-realloc-gnu.c: New file.
29136
29137         Tests for module 'calloc-gnu'.
29138         * modules/calloc-gnu-tests: New file.
29139         * tests/test-calloc-gnu.c: New file.
29140
29141         Tests for module 'malloc-gnu'.
29142         * modules/malloc-gnu-tests: New file.
29143         * tests/test-malloc-gnu.c: New file.
29144
29145 2010-08-28  Bruno Haible  <bruno@clisp.org>
29146
29147         Rename module 'realloc' -> 'realloc-gnu'.
29148         * modules/realloc-gnu: New file, copied from modules/realloc.
29149         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29150         obsolete.
29151         * modules/mgetgroups (Depends-on): Update.
29152         * doc/posix-functions/realloc.texi: Update.
29153         * NEWS: Mention the change.
29154
29155         Rename module 'calloc' -> 'calloc-gnu'.
29156         * modules/calloc-gnu: New file, copied from modules/calloc.
29157         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29158         obsolete.
29159         * doc/posix-functions/calloc.texi: Update.
29160         * NEWS: Mention the change.
29161
29162         Rename module 'malloc' -> 'malloc-gnu'.
29163         * modules/malloc-gnu: New file, copied from modules/malloc.
29164         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29165         obsolete.
29166         * modules/argp (Depends-on): Update.
29167         * modules/regex (Depends-on): Update.
29168         * doc/posix-functions/malloc.texi: Update.
29169         * NEWS: Mention the change.
29170
29171 2010-08-28  Eric Blake  <eblake@redhat.com>
29172
29173         pread, pwrite: add missing dependency
29174         * modules/pread (Depends-on): Add extensions.
29175         * modules/pwrite (Depends-on): Likewise.
29176
29177 2010-08-28  Bruno Haible  <bruno@clisp.org>
29178
29179         unistr/u*-strchr: Fix tests dependencies.
29180         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29181         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29182         Reported by Ian Beckwith <ianb@erislabs.net>.
29183
29184 2010-08-28  Bruno Haible  <bruno@clisp.org>
29185
29186         read-file: Don't occupy too much unused memory.
29187         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29188
29189 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29190             Eric Blake  <eblake@redhat.com>
29191             Bruno Haible  <bruno@clisp.org>
29192
29193         read-file: Avoid memory reallocations with regular files.
29194         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29195         (fread_file): With regular files, use the remaining length as the
29196         initial buffer size.  Check against overflow.
29197         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29198         sys_stat.
29199
29200 2010-08-28  Bruno Haible  <bruno@clisp.org>
29201
29202         ftello: Relax license.
29203         * modules/ftello (License): Relax to LGPLv2+.
29204         Reported by Eric Blake.
29205
29206 2010-08-28  Bruno Haible  <bruno@clisp.org>
29207
29208         Avoid relocwrapper link errors due to gnulib replacement functions.
29209         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29210         function.
29211         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29212
29213 2010-08-28  Bruno Haible  <bruno@clisp.org>
29214
29215         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29216         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29217         defined.
29218         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29219         Suggested by Eric Blake.
29220
29221 2010-08-28  Bruno Haible  <bruno@clisp.org>
29222
29223         sys_socket, netdb: Ensure socklen_t gets defined.
29224         * modules/sys_socket (Depends-on): Add socklen.
29225         * modules/netdb (Depends-on): Likewise.
29226         * modules/getaddrinfo (Depends-on): Remove socklen.
29227         * modules/getsockopt (Depends-on): Likewise.
29228         * modules/setsockopt (Depends-on): Likewise.
29229         * tests/test-sys_socket.c: Check that socklen_t is defined.
29230         * tests/test-netdb.c: Likewise.
29231         * m4/socklen.m4: Update comments.
29232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29233
29234 2010-08-27  Eric Blake  <eblake@redhat.com>
29235
29236         login_tty: add missing dependency
29237         * modules/login_tty (Depends-on): Add pty.
29238
29239 2010-08-26  Eric Blake  <eblake@redhat.com>
29240
29241         lib-symbol-versions: fix m4 quoting
29242         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29243         format for AC_LINK_IFELSE.
29244
29245         glob: fix compile test
29246         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29247
29248         btowc: fix missing file
29249         * modules/btowc (Files): Also ship locale-fr.m4.
29250
29251         lseek: fix link test
29252         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29253         AC_LINK_IFELSE.
29254
29255         include_next: silence autoconf 2.68 warning
29256         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29257         AC_COMPILE_IFELSE as special.
29258         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29259         autoconf < 2.68.
29260
29261         acl: fix compilation test
29262         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29263         AC_COMPILE_IFELSE.
29264
29265 2010-08-26  Bruno Haible  <bruno@clisp.org>
29266
29267         Modernize AC_TRY_RUN invocations.
29268         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29269         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29270         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29271         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29272         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29273         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29274         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29275         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29276         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29277         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29278         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29279         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29280         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29281         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29283         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29284         gl_MBRLEN_NUL_RETVAL): Likewise.
29285         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29286         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29287         Likewise.
29288         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29289         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29290         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29291         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29292         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29293         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29294         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29295         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29296         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29297         Likewise.
29298         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29299         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29300         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29301         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29302         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29303         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29305         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29306         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29308
29309 2010-08-26  Bruno Haible  <bruno@clisp.org>
29310
29311         Modernize AC_TRY_LINK invocations.
29312         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29313         AC_TRY_LINK.
29314         * m4/argp.m4 (gl_ARGP): Likewise.
29315         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29316         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29317         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29318         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29319         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29320         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29321         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29322         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29323         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29324         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29325         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29326         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29327         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29328         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29329         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29330         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29331         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29332         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29333         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29334         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29335         Likewise.
29336         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29337         Likewise.
29338         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29339         Likewise.
29340         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29341         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29342         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29343         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29344         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29345         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29346         * m4/servent.m4 (gl_SERVENT): Likewise.
29347         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29348         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29349         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29350         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29351         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29352         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29353         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29354         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29355         * modules/tsearch-tests (configure.ac): Likewise.
29356
29357 2010-08-26  Bruno Haible  <bruno@clisp.org>
29358
29359         Modernize AC_TRY_COMPILE invocations.
29360         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29361         AC_TRY_COMPILE.
29362         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29363         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29364         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29365         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29366         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29367         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29368         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29369         * m4/lock.m4 (gl_LOCK): Likewise.
29370         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29371         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29372         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29373         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29374         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29375         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29376         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29377         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29378         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29379         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29380         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29381         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29382         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29383         extraneous semicolon.
29384
29385 2010-08-26  Jim Meyering  <meyering@redhat.com>
29386
29387         stat-time: relax license LGPL
29388         * modules/stat-time (License): Change from GPL to LGPL,
29389         with consent from all contributors, for use in libguile.
29390         Requested by Ludovic Courtès.
29391
29392 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29393
29394         poll: return immediately on POLLHUP.
29395         * lib/poll.c (poll): Always set timeout before wait_timeout is
29396         computed.
29397
29398 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29399
29400         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29401         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29402         rmdir ("dir/.//"), unlinkat.
29403
29404 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29405
29406         stdbool: avoid spurious failure with modern xlc
29407         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29408
29409 2010-08-24  Bruno Haible  <bruno@clisp.org>
29410
29411         getloadavg: simplify code
29412         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29413         gl_have_func. Update comments.
29414
29415 2010-08-24  Eric Blake  <eblake@redhat.com>
29416
29417         getloadavg: don't define SVR4 on cygwin
29418         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29419         only define SVR4 when -lkvm is required.
29420         Reported by Yaakov Selkowitz.
29421
29422 2010-08-24  Bruno Haible  <bruno@clisp.org>
29423
29424         priv-set: fix comment
29425         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29426
29427 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29428
29429         priv-set: fix comments
29430         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29431         to match code, as suggested by David Bartley in:
29432         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29433
29434 2010-08-23  Eric Blake  <eblake@redhat.com>
29435
29436         stdbool: avoid rejecting clang
29437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29438         * tests/test-stdbool.c: Enable more tests if using the system
29439         <stdbool.h> instead of the gnulib replacement.
29440         (main): Move xlc bug test to a runtime test for all compilers.
29441         Reported by Anders Kaseorg.
29442
29443         argz: fix shell quoting issue
29444         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29445         Reported by Charles Wilson.
29446
29447 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29448             Erik Faye-Lund <kusmabite@gmail.com>
29449
29450         poll, select: handle ERROR_BROKEN_PIPE.
29451         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29452         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29453         * lib/select.c (win32_compute_revents): Do not mark a pipe
29454         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29455
29456 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29457
29458         fts: allow compilation with C++
29459         * lib/fts_.h: Specify extern "C" linkage with C++.
29460
29461 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29462
29463         Fix gnulib-tool sed script de-commentation for AIX sed.
29464         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29465         sed.
29466
29467 2010-08-17  Eric Blake  <eblake@redhat.com>
29468
29469         test-stddef: test for (some) offsetof bugs
29470         * tests/test-stddef.c: Enhance test to ensure correct type of
29471         offsetof.
29472         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29473         that we are not fixing at this time.
29474
29475 2010-08-15  Bruno Haible  <bruno@clisp.org>
29476
29477         stpncpy: Allow stpncpy to be defined as a macro.
29478         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29479         if it's already correctly declared.
29480         * lib/string.in.h (stpncpy): Undefine before redefining.
29481         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29482
29483 2010-08-14  Bruno Haible  <bruno@clisp.org>
29484
29485         Rename module 'memxfrm' to 'amemxfrm'.
29486         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29487         (amemxfrm): Renamed from memxfrm.
29488         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29489         (amemxfrm): Renamed from memxfrm.
29490         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29491         * NEWS: Mention the change.
29492         * MODULES.html.sh (String handling <string.h>): Update.
29493         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29494         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29495         * lib/unicase/u16-casexfrm.c: Likewise.
29496         * lib/unicase/u32-casexfrm.c: Likewise.
29497         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29498         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29499         * lib/uninorm/u16-normxfrm.c: Likewise.
29500         * lib/uninorm/u32-normxfrm.c: Likewise.
29501         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29502         memxfrm.
29503         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29504         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29505         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29506         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29507         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29508         Suggested by Paul Eggert.
29509
29510 2010-08-14  Bruno Haible  <bruno@clisp.org>
29511
29512         Tests for module 'astrxfrm'.
29513         * modules/astrxfrm-tests: New file.
29514         * tests/test-astrxfrm.c: New file.
29515
29516         New module 'astrxfrm'.
29517         * lib/astrxfrm.h: New file.
29518         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29519         * modules/astrxfrm: New file.
29520
29521 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29522
29523         regex: Tweak doc.
29524         * doc/regex.texi (Overview): Don't mention regex.c.
29525         (GNU Regular Expression Compiling): Likewise.
29526         (Match-end-of-line Operator): Mention 'not_eol'.
29527
29528 2010-08-14  Brian Gough  <bjg@gnu.org>
29529             Bruno Haible  <bruno@clisp.org>
29530
29531         git-merge-changelog: add doc relating to use with bzr and hg.
29532         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29533
29534 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29535
29536         pthread: fix pthread.h creation for srcdir != builddir
29537         * modules/pthread (Makefile.am): Fix the rule to work also in a
29538         non-srcdir build.
29539
29540 2010-08-13  Karl Berry  <karl@gnu.org>
29541
29542         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29543         * doc/posix-*/*: force line break before @url of POSIX
29544         specifications.
29545         Suggested by Werner Lemberg.
29546
29547 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29548
29549         strtod: fix const diagnostic
29550         * lib/strtod.c (strtod): Don't assign const char * to char *,
29551         as this elicits a warning from GCC when warnings are enabled.
29552
29553 2010-08-10  Pádraig Brady <P@draigbrady.com>
29554         and Eric Blake  <eblake@redhat.com>
29555
29556         copy-acl: ignore ENOTSUP on HP-UX
29557         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29558         so that it is available for HP-UX.
29559         * lib/copy-acl.c (qcopy_acl): Use it.
29560         Reported by Patrick M. Callahan.
29561
29562 2010-08-10  Eric Blake  <eblake@redhat.com>
29563
29564         open, chown: relax license
29565         * modules/open (License): Change to LGPLv2+, with consent by all
29566         authors, for use in augeas.
29567         * modules/chown (License): Likewise.
29568         * modules/lchown (Likewise): Likewise.
29569         Requested by Adam Stokes.
29570
29571 2010-08-09  Karl Berry  <karl@gnu.org>
29572
29573         * build-aux/ar-lib: new file, import from Automake.
29574         * config/srclist.txt: autocheck for updates.
29575
29576 2010-08-09  Eric Blake  <eblake@redhat.com>
29577
29578         readlinkat: adjust client modules
29579         * modules/areadlinkat (Depends-on): Use readlinkat, not
29580         symlinkat.
29581         * modules/areadlinkat-with-size (Depends-on): Likewise.
29582
29583         mknod: be more vocal about danger of running tests as root
29584         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29585         root, since that is just asking for problems.
29586         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29587
29588         readlinkat: split into its own module
29589         * modules/symlinkat: Split readlinkat...
29590         * modules/readlinkat: ...into separate module.
29591         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29592         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29593         * lib/symlinkat.c (readlinkat): Move...
29594         * lib/readlinkat.c: ...into new file.
29595         * modules/symlinkat-tests: Split readlinkat test...
29596         * modules/readlinkat-tests: ...into separate module.
29597         * tests/test-symlinkat.c: Split...
29598         * tests/test-readlinkat.c: ...into new file.
29599         * NEWS: Document the split.
29600         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29601         * lib/unistd.in.h (readlinkat): Likewise.
29602         Suggested by Bruno Haible.
29603
29604 2010-08-08  Bruno Haible  <bruno@clisp.org>
29605
29606         memxfrm: Speed up.
29607         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29608         that usually only one call to strxfrm is necessary for each string
29609         part.
29610         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29611
29612 2010-08-07  Karl Berry  <karl@gnu.org>
29613
29614         * doc/posix-headers/limits.texi,
29615         * doc/posix-functions/malloc.texi,
29616         * doc/posix-functions/strsignal.texi: missing @item.
29617         * doc/ld-version-script.texi: spurious leading i.
29618         * doc/regex.texi (Interval Operators): no commas inside @var.
29619
29620 2010-08-01  Bruno Haible  <bruno@clisp.org>
29621
29622         Integrate the regex documentation.
29623         * doc/gnulib.texi: Define 'cn' index.
29624         (Regular expressions): New a chapter that includes regex.texi and
29625         regexprops-generic.texi.
29626         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29627         syntax.
29628
29629         Whitespace cleanup.
29630         * doc/regex.texi: Remove trailing spaces.
29631
29632         Add regex documentation.
29633         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29634         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29635         Written by Kathy A. Hargreaves and Karl Berry.
29636
29637 2010-08-01  Bruno Haible  <bruno@clisp.org>
29638
29639         link: Update documentation.
29640         * doc/posix-functions/link.texi: Update regarding Solaris.
29641
29642 2010-07-31  Bruno Haible  <bruno@clisp.org>
29643
29644         Update modules list.
29645         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29646         (String handling <string.h>): Add memcmp2, memxfrm.
29647         (Container data structures): Add xlist, xsublist, xoset.
29648         (Core language properties): Add alignof, unused-parameter.
29649         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29650         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29651         (Unibyte characters <ctype.h>): New section.
29652         (String handling <string.h>): New section.
29653         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29654         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29655         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29656         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29657         tan, tanh, tanl, y0, y1, yn.
29658         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29659         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29660         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29661         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29662         unlockpt, vdprintf, vdprintf-posix.
29663         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29664         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29665         xconcat-filename.
29666         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29667         getdtablesize, pipe2, pipe2-safer.
29668         (Security): New section.
29669         (Networking functions): Add accept4.
29670         (Signal handling): Add sigpipe.
29671         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29672         mbmemcasecoll.
29673         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29674         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29675         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29676         pipe-filter-ii.
29677         (Misc): Add argp-version-etc, login_tty, parse-duration.
29678
29679 2010-07-31  Bruno Haible  <bruno@clisp.org>
29680
29681         Improve doc in MODULES.html.
29682         * modules/linkat (Description): Add the word "function".
29683         * modules/mkfifo (Description): Likewise.
29684         * modules/mknod (Description): Likewise.
29685         * modules/remove (Description): Likewise.
29686         * modules/renameat (Description): Likewise.
29687         * modules/stat (Description): Likewise.
29688         * modules/symlink (Description): Likewise.
29689         * modules/unlink (Description): Likewise.
29690
29691 2010-07-31  Bruno Haible  <bruno@clisp.org>
29692
29693         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29694         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29695         option --enable/disable-c++ instead of --enable/disable-cxx.
29696         * NEWS: Mention the change.
29697
29698 2010-07-31  Bruno Haible  <bruno@clisp.org>
29699
29700         readlink, areadlink: Relax test a bit.
29701         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29702         alternative to ENOTDIR.
29703         * tests/test-areadlink.h (test_areadlink): Likewise.
29704         Reported by Rainer Tammer.
29705
29706 2010-07-31  Bruno Haible  <bruno@clisp.org>
29707
29708         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29709         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29710         character, perform the search using U_STRCHR.
29711         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29712         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29713         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29714         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29715         Suggested by Paolo Bonzini.
29716
29717 2010-07-31  Bruno Haible  <bruno@clisp.org>
29718
29719         unistr/u*-strstr: Fix dependencies.
29720         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29721         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29722         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29723
29724 2010-07-31  Bruno Haible  <bruno@clisp.org>
29725
29726         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29727         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29728         the beginning of the loop.
29729         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29730         cases in 'switch' statement.
29731
29732         unistr/u8-strchr: Fix several bugs.
29733         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29734         the string. When not found, return NULL, not a pointer near the end.
29735
29736         More tests for unistr/u8-strchr.
29737         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29738         that the function does not read past the first occurrence of the byte
29739         being searched.
29740         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29741         * tests/unistr/test-u16-strchr.c (main): New function.
29742         * tests/unistr/test-u32-strchr.c (main): New function.
29743
29744 2010-07-31  Bruno Haible  <bruno@clisp.org>
29745
29746         posix-modules: Ignore backup files of documentation files.
29747         * posix-modules: grep only through files named *.texi.
29748
29749 2010-07-31  Bruno Haible  <bruno@clisp.org>
29750
29751         symlinkat: Fix documentation.
29752         * doc/posix-functions/readlinkat.texi: Fix module name.
29753
29754 2010-07-31  Bruno Haible  <bruno@clisp.org>
29755
29756         fchownat: Replace also when chown has the trailing slash bug.
29757         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29758         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29759         introduced on 2010-04-10.
29760         Reported by Rainer Tammer.
29761
29762 2010-07-31  Bruno Haible  <bruno@clisp.org>
29763
29764         linkat: Work around AIX 7.1 bug.
29765         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29766         whether linkat handles trailing slash correctly. If not, replace linkat
29767         and define LINKAT_TRAILING_SLASH_BUG.
29768         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29769         check whether (fd1,file1) points to a directory if file1 or file2 ends
29770         in a slash. Code taken from lib/link.c.
29771         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29772         Reported by Rainer Tammer.
29773
29774 2010-07-31  Bruno Haible  <bruno@clisp.org>
29775
29776         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29777         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29778         This disables an xlc optimization that was causing wrong test results.
29779         Reported by Rainer Tammer.
29780
29781 2010-07-31  Bruno Haible  <bruno@clisp.org>
29782
29783         iconv: Work around AIX 6.1..7.1 bug.
29784         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29785         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29786         cross-compiling, guess no on all versions of AIX.
29787         Reported by Rainer Tammer.
29788
29789 2010-07-31  Bruno Haible  <bruno@clisp.org>
29790
29791         readlink: Relax test a bit.
29792         * tests/test-readlink.h (test_readlink): Allow different errno value
29793         when readlink is called with a file name that ends in / and refers to
29794         a file.
29795         Suggested by Eric Blake.
29796         Reported by Rainer Tammer.
29797
29798 2010-07-31  Bruno Haible  <bruno@clisp.org>
29799
29800         copysign: Does not require -lm on glibc systems.
29801         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29802         gl_COMMON_DOUBLE_MATHFUNC.
29803         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29804
29805 2010-07-31  Bruno Haible  <bruno@clisp.org>
29806
29807         duplocale: Work around AIX 7.1 bug.
29808         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29809         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29810         * lib/duplocale.c (rpl_duplocale): Update comment.
29811         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29812         Reported by Rainer Tammer.
29813
29814 2010-07-30  Bruno Haible  <bruno@clisp.org>
29815
29816         dirfd: Avoid link error on AIX 7.1.
29817         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29818         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29819         exist, set REPLACE_DIRFD.
29820         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29821         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29822         * doc/posix-functions/dirfd.texi: Update.
29823         Reported by Rainer Tammer.
29824
29825 2010-07-30  Eric Blake  <eblake@redhat.com>
29826
29827         strtod: next round of AIX fixes
29828         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29829         exponent.
29830         * tests/test-strtod.c (main): Enhance tests.
29831         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29832         Reported by Rainer Tammer.
29833
29834         futimens: fix configure check
29835         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29836         Reported by Bruno Haible.
29837
29838 2010-07-30  Bruno Haible  <bruno@clisp.org>
29839
29840         getline: Update regarding AIX.
29841         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29842         Reported by Rainer Tammer.
29843
29844 2010-07-30  Bruno Haible  <bruno@clisp.org>
29845
29846         wcwidth: Drop replacement on AIX 7.
29847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29848         AIX 7.
29849         Reported by Rainer Tammer.
29850
29851 2010-07-30  Bruno Haible  <bruno@clisp.org>
29852
29853         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29854         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29855         a 'char *'.
29856         Reported by Rainer Tammer.
29857
29858 2010-07-30  Bruno Haible  <bruno@clisp.org>
29859
29860         unlink: Update regarding AIX.
29861         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29862         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29863         Reported by Rainer Tammer.
29864
29865 2010-07-30  Bruno Haible  <bruno@clisp.org>
29866
29867         symlink: Update regarding AIX.
29868         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29869         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29870         Reported by Rainer Tammer.
29871
29872 2010-07-30  Bruno Haible  <bruno@clisp.org>
29873
29874         strndup: Update regarding AIX.
29875         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29876         AIX 7.
29877         Reported by Rainer Tammer.
29878
29879 2010-07-30  Bruno Haible  <bruno@clisp.org>
29880
29881         stat: Update regarding AIX.
29882         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29883         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29884         Reported by Rainer Tammer.
29885
29886 2010-07-30  Bruno Haible  <bruno@clisp.org>
29887
29888         truncl: Fix autoconf test.
29889         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29890         whether truncl works.
29891         Reported by Rainer Tammer.
29892
29893 2010-07-30  Bruno Haible  <bruno@clisp.org>
29894
29895         round: Update regarding AIX.
29896         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29897         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29898         Reported by Rainer Tammer.
29899
29900 2010-07-30  Bruno Haible  <bruno@clisp.org>
29901
29902         rename: Update regarding AIX.
29903         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29904         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29905         Reported by Rainer Tammer.
29906
29907 2010-07-30  Bruno Haible  <bruno@clisp.org>
29908
29909         printf.m4: Update regarding AIX.
29910         * m4/printf.m4: Update comments regarding AIX.
29911         Reported by Rainer Tammer.
29912
29913 2010-07-30  Bruno Haible  <bruno@clisp.org>
29914
29915         iconv: Update regarding AIX.
29916         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29917         AIX 7.
29918         Reported by Rainer Tammer.
29919
29920 2010-07-30  Bruno Haible  <bruno@clisp.org>
29921
29922         getopt: Update regarding AIX.
29923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29924         no on AIX.
29925         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29926         Reported by Rainer Tammer.
29927
29928 2010-07-30  Bruno Haible  <bruno@clisp.org>
29929
29930         ldexpl; Update regarding AIX.
29931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29932         on AIX 7.
29933         Reported by Rainer Tammer.
29934
29935 2010-07-30  Bruno Haible  <bruno@clisp.org>
29936
29937         frexpl: Update regarding AIX.
29938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29939         on AIX 7.
29940         Reported by Rainer Tammer.
29941
29942 2010-07-30  Bruno Haible  <bruno@clisp.org>
29943
29944         open, fopen: Update regarding AIX.
29945         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29946         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29947         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29948         * doc/posix-functions/fopen.texi: Likewise.
29949         Reported by Rainer Tammer.
29950
29951 2010-07-30  Bruno Haible  <bruno@clisp.org>
29952
29953         chown: Update doc regarding AIX.
29954         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29955         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29956         Reported by Rainer Tammer.
29957
29958 2010-07-30  Eric Blake  <eblake@redhat.com>
29959
29960         strtod: fix bug in replacement function on AIX
29961         * lib/strtod.c (strtod): Special case broken "0x" parse in
29962         underlying strtod.
29963         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29964         * doc/posix-functions/strtod.texi (strtod): Likewise.
29965         Reported by Rainer Tammer.
29966
29967 2010-07-30  Bruno Haible  <bruno@clisp.org>
29968
29969         mbrlen: Fix cross-compilation guess for AIX.
29970         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29971         guess. Leftover from 2008-12-22.
29972
29973 2010-07-30  Bruno Haible  <bruno@clisp.org>
29974
29975         mbrtowc: Fix cross-compilation guess for AIX.
29976         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29977         guess. Leftover from 2008-12-21.
29978
29979 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29980
29981         init.sh: work around trap limitation of some shells
29982         * tests/init.sh (setup_): Move exit trap outside of shell function.
29983
29984 2010-07-29  Eric Blake  <eblake@redhat.com>
29985
29986         strtod: aid debugging
29987         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29988         understanding why strtod is rejected.
29989
29990 2010-07-28  Bruno Haible  <bruno@clisp.org>
29991
29992         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29993         * lib/unistr/u8-chr.c: Include <string.h>.
29994         * tests/unistr/test-u8-chr.c: Likewise.
29995         * tests/unistr/test-u16-chr.c: Likewise.
29996         * tests/unistr/test-u32-chr.c: Likewise.
29997         * tests/unistr/test-u8-strchr.c: Likewise.
29998         * tests/unistr/test-u16-strchr.c: Likewise.
29999         * tests/unistr/test-u32-strchr.c: Likewise.
30000         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30001         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30002         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30003         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30004
30005 2010-07-28  Bruno Haible  <bruno@clisp.org>
30006
30007         Use spaces for indentation, not tabs.
30008         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30009
30010 2010-07-27  Bruno Haible  <bruno@clisp.org>
30011
30012         mbspcasecmp: Fix function specification.
30013         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30014         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30015         Reported by Eric Blake <eblake@redhat.com>.
30016
30017 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30018
30019         timespec: use cast and not conditional, as truncation isn't possible
30020         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30021         instead of a conditional.  Comment about the situation in more detail.
30022         This undoes most of the 2009-10-29 patch.
30023
30024 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30025
30026         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30027         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30028         * lib/unistr/u8-strchr.c: Likewise.
30029         * modules/unistr/u8-chr: Depend on memchr.
30030
30031         unistr/u*-strchr: add tests
30032         * modules/unistr/u8-strchr-tests: New file.
30033         * modules/unistr/u16-strchr-tests: New file.
30034         * modules/unistr/u32-strchr-tests: New file.
30035         * tests/unistr/test-strchr.h: New file.
30036         * tests/unistr/test-u8-strchr.c: New file.
30037         * tests/unistr/test-u16-strchr.c: New file.
30038         * tests/unistr/test-u32-strchr.c: New file.
30039
30040         unistr/u*-chr: test multibyte sequences more
30041         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30042         test vector.
30043         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30044         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30045         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30046
30047         unistr/u*-chr: test multibyte sequences
30048         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30049
30050         unistr/u*-chr: prepare for multibyte tests
30051         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30052         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30053         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30054         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30055         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30056         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30057
30058 2010-07-18  Bruno Haible  <bruno@clisp.org>
30059
30060         unistr/u8-strchr: Optimize non-ASCII argument case.
30061         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30062         because the first byte often matches anyway.
30063         Reported by Pádraig Brady <P@draigbrady.com>.
30064
30065 2010-07-15  Karl Berry  <karl@gnu.org>
30066
30067         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30068
30069 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30070
30071         getcwd: on Solaris, work better if ancestors are inaccessible
30072         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30073         buffer and size, try again with a large buffer.  This works better
30074         on Solaris, since its getcwd succeeds even if the path to the root
30075         is inaccessible, and this is helpful in common cases such as .zfs
30076         hidden directories.  Problem reported by J Chapman Flack in
30077         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30078         Use system getcwd if it's declared, not merely if it's partly
30079         working; use the partly-working test only to avoid needless effort
30080         if the system getcwd fails.
30081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30082         comment that was already obsolete and is now even more obsolete.
30083         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30084         now might call strdup.
30085
30086 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30087
30088         pthread: Add enough so that coreutils/src/sort.c compiles.
30089         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30090         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30091         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30092         Include <sys/types.h>, in case it defines pthread_t.
30093         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30094         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30095         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30096         (pthread_rwlockattr_t, pthread_spinlock_t):
30097         New typedefs, if HAVE_PTHREAD_T is not defined.
30098         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30099         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30100         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30101         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30102         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30103         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30104         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30105         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30106         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30107         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30108         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30109         New macros.
30110         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30111         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30112         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30113         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30114         (pthread_spin_unlock): New dummy functions.
30115         (pthread_create): Return EAGAIN; don't set errno.
30116         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30117         require AC_C_INLINE.
30118         * modules/pthread (Depends-on): Add sched, time.
30119         (pthread.h): Use AM_V_GEN.
30120
30121 2010-07-13  Bruno Haible  <bruno@clisp.org>
30122
30123         striconveh: Don't malloc memory if the result buffer is sufficient.
30124         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30125         buffer if its size is sufficient.
30126         Reported by Ludovic Courtès <ludo@gnu.org>.
30127
30128 2010-07-13  Bruno Haible  <bruno@clisp.org>
30129
30130         strtod: Add safety check.
30131         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30132
30133 2010-07-12  Bruno Haible  <bruno@clisp.org>
30134
30135         Unify tests that set gl_cv_func_ldexpl_no_libm.
30136         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30137         gl_FUNC_LDEXPL.
30138         (gl_FUNC_LDEXPL): Invoke it.
30139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30140
30141 2010-07-12  Bruno Haible  <bruno@clisp.org>
30142
30143         Unify tests that set gl_cv_func_ldexp_no_libm.
30144         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30145         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30146         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30147         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30148         * modules/strtod (Files): Add m4/ldexp.m4.
30149
30150 2010-07-12  Bruno Haible  <bruno@clisp.org>
30151
30152         Unify tests that set gl_cv_func_frexpl_no_libm.
30153         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30154         gl_FUNC_FREXPL_NO_LIBM.
30155         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30157
30158 2010-07-12  Bruno Haible  <bruno@clisp.org>
30159
30160         Unify tests that set gl_cv_func_frexp_no_libm.
30161         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30162         gl_FUNC_FREXP_NO_LIBM.
30163         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30164         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30165
30166 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30167
30168         memcoll: clarify sizes versus lengths, document better, and tweak perf
30169         * lib/memcoll.c (strcoll_loop, memcoll0):
30170         Improve quality of descriptive comments.  Name variables
30171         consistently as to whether they are lengths (which do not include
30172         terminating null) versus sizes (which do).
30173         * lib/xmemcoll.c (xmemcoll0): Likewise.
30174         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30175         returned when s1size == 0; this is easier to compile and saves
30176         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30177
30178 2010-07-12  Bruno Haible  <bruno@clisp.org>
30179
30180         Tests for module '_Exit'.
30181         * modules/_Exit-tests: New file.
30182         * tests/test-_Exit.sh: New file.
30183         * tests/test-_Exit.c: New file.
30184
30185         New module '_Exit'.
30186         * lib/stdlib.in.h (__attribute__): New macro.
30187         (_Exit): New declaration.
30188         * lib/_Exit.c: New file.
30189         * m4/_Exit.m4: New file.
30190         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30191         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30192         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30193         * modules/_Exit: New file.
30194         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30195         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30196
30197 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30198
30199         strtod: make it more-accurate typically, and don't require libm
30200         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30201         Include limits.h.  Don't include string.h.
30202         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30203         (locale_isspace): New function, so that no casts are needed to
30204         check whether *s is a space.
30205         (ldexp): Provide an unused dummy if not available.
30206         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30207         (strtod): Use them.  This implementation prefers to use the
30208         underlying strtod if available, falling back on our own code
30209         only to fix known bugs.  This is more likely to produce an
30210         accurate result.  Also, it avoids the use of libm functions.
30211         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30212         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30213         was absent, but it caused a test failure with coreutils.
30214         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30215         with libm.
30216         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30217         * modules/strtod-tests (Makefile.am): Likewise.
30218
30219 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30220             Bruno Haible  <bruno@clisp.org>
30221
30222         unistr/u8-strchr: Optimize ASCII argument case.
30223         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30224
30225 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30226
30227         (x)memcoll: minor tweaks
30228         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30229         is after the type that it qualifies.
30230         (memcoll0): Likewise.
30231         * lib/memcoll.h (memcoll0): Likewise.
30232         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30233         * lib/xmemcoll.h (xmemcoll0): Likewise.
30234         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30235         differs from memcoll in that the NUL byte is part of the argument.
30236         Omit the abort-checks, as performance is a real issue here.  Plus,
30237         the checks were wrong anyway (an off-by-one error).  Omit local
30238         variable 'diff', as it's a bit clearer that way.
30239         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30240         no longer needed.
30241
30242 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30243
30244         (x)memcoll: speedup when input is known to be NUL delimited
30245         * lib/memcoll.c: Include stdlib.
30246         (memcoll0): New function.
30247         (strcoll_loop): New function, refactored for use in both memcoll
30248         and memcoll0.
30249         * lib/memcoll.h (memcoll0): Add prototype.
30250         * lib/xmemcoll.c (xmemcoll0): New function.
30251         (collate_error): New function, refactored for use in both xmemcoll
30252         and xmemcoll0.
30253         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30254         * m4/memcoll.m4: add inline invocation.
30255
30256 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30257
30258         * build-aux/bootstrap: Remove any local translations
30259         from the translation project synchronization directory,
30260         so that local only translations are not distributed.
30261
30262 2010-07-04  Bruno Haible  <bruno@clisp.org>
30263
30264         fsusage: Clarify which code applies to which platforms.
30265         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30266         platform.
30267         * lib/fsusage.c (get_fs_usage): Likewise.
30268
30269 2010-07-04  Bruno Haible  <bruno@clisp.org>
30270
30271         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30272         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30273         Reported by Martin Lambers <marlam@marlam.de>.
30274
30275 2010-07-04  Jim Meyering  <meyering@redhat.com>
30276
30277         hash: once again explicitly disallow insertion of NULL
30278         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30279         inserting a NULL pointer cannot work with these functions.
30280         Add a comment with details.
30281         This reverts part of the 2010-07-01 commit, 5bef1a35
30282         "hash: extend module to deal with non-pointer keys".
30283
30284 2010-07-01  Bruno Haible  <bruno@clisp.org>
30285
30286         stdbool: Update doc.
30287         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30288         Info from Christian Weisgerber <naddy@mips.inka.de>.
30289
30290 2010-07-01  Jim Meyering  <meyering@redhat.com>
30291
30292         hash: extend module to deal with non-pointer keys
30293         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30294         but that allows insertion of non-pointer entries.
30295         Do not disallow an ENTRY value of NULL.
30296         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30297         * lib/hash.h (hash_insert0): Declare.
30298
30299 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30300
30301         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30302         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30303         not present (i.e. with autoconf 2.59 and when using gettextize, not
30304         gnulib), require AC_GNU_SOURCE instead.
30305
30306 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30307
30308         idpriv-drop: Fix tests.
30309         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30310         not to the test-idpriv-droptemp program.
30311
30312 2010-06-29  Bruno Haible  <bruno@clisp.org>
30313
30314         string: Fix syntax error with g++ 2.96.
30315         * lib/string.in.h (__pure__): Remove definition.
30316         (_GL_ATTRIBUTE_PURE): New macro.
30317         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30318         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30319         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30320
30321 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30322
30323         unitypes: Fix bug introduced on 2010-05-18.
30324         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30325
30326 2010-06-22  Eric Blake  <eblake@redhat.com>
30327
30328         memmem: slight optimization
30329         * lib/str-two-way.h (critical_factorization): Update comments.
30330         Reduce work during factorization phase.
30331         Reported by Carlos Bueno <carlos@bueno.org>.
30332
30333 2010-06-21  Bruno Haible  <bruno@clisp.org>
30334
30335         Fix HAVE_CALLOC_POSIX misnomer.
30336         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30337         !HAVE_CALLOC_POSIX.
30338         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30339         HAVE_CALLOC_POSIX.
30340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30341         instead of HAVE_CALLOC_POSIX.
30342         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30343         HAVE_CALLOC_POSIX.
30344
30345         Use modern idiom for calloc() replacement.
30346         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30347         AC_FUNC_CALLOC.
30348         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30349         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30350         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30351         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30352         (gl_REPLACE_CALLOC): New macro.
30353
30354 2010-06-21  Bruno Haible  <bruno@clisp.org>
30355
30356         Fix HAVE_REALLOC_POSIX misnomer.
30357         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30358         !HAVE_REALLOC_POSIX.
30359         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30360         HAVE_REALLOC_POSIX.
30361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30362         instead of HAVE_REALLOC_POSIX.
30363         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30364         HAVE_REALLOC_POSIX.
30365
30366         Use modern idiom for realloc() replacement.
30367         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30368         AC_FUNC_REALLOC.
30369         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30370         Autoconf's AC_FUNC_REALLOC.
30371         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30372         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30373         (gl_REPLACE_REALLOC): New macro.
30374         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30375
30376 2010-06-21  Bruno Haible  <bruno@clisp.org>
30377
30378         Fix HAVE_MALLOC_POSIX misnomer.
30379         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30380         !HAVE_MALLOC_POSIX.
30381         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30382         HAVE_MALLOC_POSIX.
30383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30384         instead of HAVE_MALLOC_POSIX.
30385         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30386         HAVE_MALLOC_POSIX.
30387
30388         Use modern idiom for malloc() replacement.
30389         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30390         AC_FUNC_MALLOC.
30391         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30392         Autoconf's AC_FUNC_MALLOC.
30393         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30394         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30395         (gl_REPLACE_MALLOC): New macro.
30396         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30397
30398 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30399
30400         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30401         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30402         This macro takes 3 arguments, not 4.
30403
30404 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30405
30406         ipv6: fix detection under mingw
30407         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30408         in6_addr.
30409
30410 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30411
30412         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30413         that strtod() works when cross-compiling to a glibc version known
30414         to work.
30415
30416 2010-06-15  Bruno Haible  <bruno@clisp.org>
30417
30418         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30419
30420 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30421
30422         select: Correct timeout.
30423         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30424
30425 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30426
30427         git-version-gen: init shell var to avoid env var influence
30428         * build-aux/git-version-gen (v): Init shell var to empty.
30429
30430 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30431
30432         priv-set: Don't assume that priv.h exists merely because getppriv does.
30433         See Jan Andersen's bug report about AIX 5L in
30434         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30435         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30436         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30437         * lib/priv-set.h: Likewise.
30438         * tests/test-priv-set.c: Likewise.
30439
30440 2010-06-13  Bruno Haible  <bruno@clisp.org>
30441
30442         relocatable: Make it easier to test whether to install wrappers.
30443         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30444         RELOCATABLE_VIA_WRAPPER.
30445
30446 2010-06-13  Bruno Haible  <bruno@clisp.org>
30447
30448         gnulib-tool: Display specified modules and dependencies differently.
30449         * gnulib-tool (func_show_module_list): New function.
30450         (func_import, func_create_testdir): Invoke it.
30451         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30452
30453 2010-06-13  Bruno Haible  <bruno@clisp.org>
30454
30455         gnulib-tool: Align code of func_import and func_create_testdir.
30456         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30457         specified_modules.
30458
30459 2010-06-12  Jim Meyering  <meyering@redhat.com>
30460
30461         test-inttostr: avoid spurious failure on Solaris 9
30462         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30463         to accept "%ju".  Reported by Bruno Haible.
30464
30465 2010-06-11  Jim Meyering  <meyering@redhat.com>
30466
30467         test-sys_socket: mark variables as used more readably
30468         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30469         as "used" explicitly via (void) statement casts.  This is more
30470         readable than using them in an artificial return expression.
30471         Suggestion from Bruno Haible.
30472
30473 2010-06-11  Bruno Haible  <bruno@clisp.org>
30474
30475         Avoid some more warnings from "gcc -Wwrite-strings".
30476         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30477         to 'const char *'.
30478         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30479         * tests/test-c-strcasestr.c (main): Likewise.
30480         * tests/test-mbscasestr1.c (main): Likewise.
30481         * tests/test-mbscasestr2.c (main): Likewise.
30482         * tests/test-memmem.c (main): Likewise.
30483         * tests/test-strstr.c (main): Likewise.
30484         * tests/test-strcasestr.c (main): Likewise.
30485
30486 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30487
30488         init.sh: change framework_failure_ to fail with status 99, not 1
30489         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30490         automake's parallel-tests rule that this is an unexpected failure,
30491         even if the test is listed in XFAIL_TESTS.
30492
30493 2010-06-11  Jim Meyering  <meyering@redhat.com>
30494
30495         test-inttostr: avoid warnings about 4-6KB literal strings
30496         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30497         Include "macros.h", for its definition of ASSERT.
30498         (CK): s/assert/ASSERT/
30499         * modules/inttostr-tests (Files): Add macros.h.
30500
30501         init.sh: don't use $ME_ or skip_ before they are defined
30502         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30503         their first uses.  Also hoist their companions: warn_, fail_,
30504         framework_failure_, $stderr_fileno.  Prompted by a patch from
30505         Stefano Lattarini.
30506
30507         test-sys_socket: avoid set-but-not-used warnings from gcc
30508         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30509         avoid warning about set-but-not-used variables.
30510
30511         test-xvasprintf: avoid 'const' discard warnings
30512         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30513         "const" when assigning from literal strings.
30514         (test_xasprintf): Add "void" in function argument list to placate
30515         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30516
30517         tests: avoid compilation warnings in argmatch and exclude tests...
30518         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30519         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30520         Since it always exits, declare with the "noreturn" attribute.
30521         * tests/test-argmatch.c: Likewise.
30522
30523         tests: avoid 'const' discard warnings in mbsstr tests
30524         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30525         * tests/test-mbsstr2.c (main): Likewise.
30526
30527         test-verify: avoid warning from gcc's -Wmissing-declarations
30528         * tests/test-verify.c (function): Declare to be static.
30529
30530         test-inttostr.c: include <string.h> for use of strcmp
30531         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30532
30533         test-linkat: avoid failed assertion on "other" architectures
30534         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30535         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30536         sparc: https://bugs.launchpad.net/bugs/591968
30537
30538 2010-06-11  Jim Meyering  <meyering@redhat.com>
30539
30540         printf.m4: avoid autoconf's "Expanded Before Required" warning
30541         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30542         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30543         autoconf warning.
30544
30545 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30546
30547         Replacement header templates are now named with ".in", not "_".
30548         * doc/gnulib-intro.texi: Correct.
30549
30550 2010-06-10  Jim Meyering  <meyering@redhat.com>
30551
30552         inttostr-tests: depend on snprintf, not snprintf-posix
30553         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30554         snprintf-posix, to avoid this aclocal failure:
30555           missing file gnulib-tests/vasnprintf.c
30556           configure.ac:45: error: expected source file, required through \
30557           AC_LIBSOURCES, not found
30558
30559 2010-06-10  Jim Meyering  <meyering@redhat.com>
30560
30561         inttostr: add a new function, inttostr, and tests
30562         The namesake function was not available.  The existence of the
30563         template file, inttostr.c makes its addition nontrivial.
30564         * lib/anytostr.c: Rename from inttostr.c.
30565         (anytostr): Rename from inttostr.
30566         * lib/inttostr.c: New file.
30567         * modules/inttostr (Files): Add anytostr.c.
30568         (Makefile.am): Set lib_SOURCES instead of ...
30569         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30570         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30571         * lib/offtostr.c: Likewise.
30572         * lib/uinttostr.c: Likewise.
30573         * lib/umaxtostr.c: Likewise.
30574         * modules/inttostr-tests: New file.
30575         * tests/test-inttostr.c: New file.  Test these functions.
30576
30577 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30578             Bruno Haible  <bruno@clisp.org>
30579
30580         Add "Extending Gnulib" chapter to manual.
30581         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30582         chapter.
30583         (Extending Gnulib): New chapter.
30584         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30585         chapter.
30586
30587 2010-06-09  Bruno Haible  <bruno@clisp.org>
30588
30589         Avoid relocwrapper link errors due to gnulib replacement functions.
30590         * lib/areadlink.c: Use the system's malloc, realloc functions.
30591         (areadlink): Set errno to ENOMEM explicitly.
30592         * modules/areadlink (Depends-on): Remove malloc-posix.
30593         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30594
30595 2010-06-09  Bruno Haible  <bruno@clisp.org>
30596
30597         Avoid relocwrapper link errors due to gnulib replacement functions.
30598         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30599         * lib/malloca.c: Likewise.
30600         * lib/relocatable.c: Likewise.
30601         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30602         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30603         * lib/setenv.c: Use the system's malloc, realloc functions.
30604         * lib/strerror.c: Use the system's sprintf function.
30605         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30606
30607 2010-06-04  Bruno Haible  <bruno@clisp.org>
30608
30609         Prefer documented low-level autoconf macro names.
30610         * m4/lib-link.m4: Use m4_translit instead of translit.
30611         * m4/environ.m4: Likewise.
30612         * m4/mathfunc.m4: Likewise.
30613         * m4/onceonly.m4: Likewise.
30614         * m4/stdint.m4: Likewise.
30615         Suggested by Eric Blake.
30616
30617 2010-06-04  Martin Lambers  <marlam@marlam.de>
30618             Bruno Haible  <bruno@clisp.org>
30619
30620         havelib: Allow library names with '+' characters.
30621         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30622         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30623
30624 2010-06-09  Bruno Haible  <bruno@clisp.org>
30625
30626         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30627         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30628         realloc failed.
30629
30630 2010-06-08  Peter Simons  <simons@cryp.to>
30631
30632         maint.mk: make the news-check rule more configurable
30633         * top/maint.mk (news-check-lines-spec): New variable.
30634         (news-check): Use "sed -n 1,10p" in place of "head".
30635
30636 2010-06-07  Jim Meyering  <meyering@redhat.com>
30637
30638         do-release-commit-and-tag: fix typo in --help
30639         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30640
30641         regex: avoid new dead-code warning with gcc-4.6.0
30642         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30643         if-block containing a while-loop.  It's been unused for at least
30644         5 years.
30645
30646 2010-06-05  Bruno Haible  <bruno@clisp.org>
30647
30648         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30649         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30650
30651 2010-06-04  Bruno Haible  <bruno@clisp.org>
30652
30653         Update to GNU gettext 0.18.1.
30654         * modules/gettext (configure.ac): Require gettext infrastructure from
30655         version 0.18.1.
30656
30657 2010-06-03  Bruno Haible  <bruno@clisp.org>
30658
30659         Don't use AC_LIBOBJ with file names in subdirectories.
30660         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30661         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30662         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30663         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30664         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30665         gl_LIBUNISTRING_LIBSOURCE.
30666         (Makefile.am): Augment lib_SOURCES here, conditionally.
30667         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30668
30669 2010-06-03  Bruno Haible  <bruno@clisp.org>
30670
30671         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30672         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30673         expansion does not end with a newline.
30674         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30675         unnecessary newline.
30676
30677 2010-06-03  Bruno Haible  <bruno@clisp.org>
30678
30679         Reduce dependencies.
30680         * tests/test-quotearg.h: New file, extracted from
30681         tests/test-quotearg.c.
30682         * tests/test-quotearg-simple.c: New file, extracted from
30683         tests/test-quotearg.c.
30684         * tests/test-quotearg.c: Don't include <ctype.h>.
30685         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30686         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30687         use_quote_double_quotes, use_quotearg_colon): Moved to
30688         tests/test-quotearg.h.
30689         (results_g, flag_results, custom_quotes, custom_results): Moved
30690         to tests/test-quotearg-simple.c.
30691         (main): Moved the part that does not depend on gettext to
30692         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30693         performed.
30694         * modules/quotearg-simple: New file.
30695         * modules/quotearg-simple-tests: New file.
30696         * modules/quotearg (Depends-on): Add quotearg-simple.
30697         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30698         (Files): Add tests/test-quotearg.h.
30699         Reported by Paolo Bonzini.
30700
30701 2010-06-03  Bruno Haible  <bruno@clisp.org>
30702
30703         Reduce dependencies.
30704         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30705
30706 2010-06-03  Bruno Haible  <bruno@clisp.org>
30707
30708         time: Undefine more broken macros.
30709         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30710         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30711         Reported by Eric Blake.
30712
30713 2010-06-03  Bruno Haible  <bruno@clisp.org>
30714
30715         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30716         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30717         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30718         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30719         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30720         Reported by Ludovic Courtès <ludo@gnu.org>.
30721
30722 2010-06-02  Eric Blake  <eblake@redhat.com>
30723
30724         time: work with mingw + pthreads-win32 library
30725         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30726         if timespec is defined only in pthread.h.
30727         * modules/time (Makefile.am): Substitute it.
30728         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30729         <pthread.h>, when needed.
30730         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30731         from the library.
30732
30733 2010-05-31  Bruno Haible  <bruno@clisp.org>
30734
30735         Avoid expanding two macros in the wrong order.
30736         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30737         gl_LIBUNISTRING if it is defined.
30738         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30739         autoconf >= 2.64.
30740         Reported by Ludovic Courtès <ludo@gnu.org>.
30741
30742 2010-05-27  Jim Meyering  <meyering@redhat.com>
30743
30744         maint.mk: also prohibit "#undef" of always-defined symbols
30745         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30746         Allow more than one space before the symbol name.
30747         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30748         the regexp uses alternation.
30749
30750 2010-05-26  Eric Blake  <eblake@redhat.com>
30751
30752         maint.mk: avoid echo -e
30753         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30754         Convert all uses of echo -* to printf.
30755         Reported by Matthias Bolte.
30756
30757 2010-05-25  Bruno Haible  <bruno@clisp.org>
30758
30759         Update to GNU gettext 0.18, part 2.
30760         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30761         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30762
30763 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30764
30765         Add missing include in test-pwrite.c.
30766         * tests/test-pwrite.c: Include string.h, for strcmp.
30767
30768 2010-05-24  Bruno Haible  <bruno@clisp.org>
30769
30770         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30771
30772 2010-05-24  Bruno Haible  <bruno@clisp.org>
30773
30774         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30775         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30776         iconveh_error argument.
30777         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30778         U_STRCONV_TO_LOCALE.
30779         * lib/unistr/u16-strcoll.c: Likewise.
30780         * lib/unistr/u32-strcoll.c: Likewise.
30781         * modules/unistr/u8-strcoll (Depends-on): Add
30782         uniconv/u8-strconv-to-enc, localcharset. Remove
30783         uniconv/u8-strconv-to-locale.
30784         (configure.ac): Bump version number.
30785         * modules/unistr/u16-strcoll (Depends-on): Add
30786         uniconv/u16-strconv-to-enc, localcharset. Remove
30787         uniconv/u16-strconv-to-locale.
30788         (configure.ac): Bump version number.
30789         * modules/unistr/u32-strcoll (Depends-on): Add
30790         uniconv/u32-strconv-to-enc, localcharset. Remove
30791         uniconv/u32-strconv-to-locale.
30792         (configure.ac): Bump version number.
30793
30794 2010-05-24  Bruno Haible  <bruno@clisp.org>
30795
30796         Avoid a test failure on NetBSD 5.0.
30797         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30798         an iconv() bug.
30799
30800 2010-05-24  Bruno Haible  <bruno@clisp.org>
30801
30802         Adjust #include directive style.
30803         * modules/regex (Includes): Recommend to write <regex.h>.
30804
30805 2010-05-24  Bruno Haible  <bruno@clisp.org>
30806
30807         regex: Don't require alloca.
30808         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30809         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30810         only inside if (0).
30811
30812 2010-05-23  Jim Meyering  <meyering@redhat.com>
30813
30814         test-renameat.c: include <sys/stat.h>
30815         * tests/test-renameat.c: Include <sys/stat.h>; required for
30816         definition of S_IS* macros.
30817
30818 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30819
30820         Update maintainer documentation for 'relocatable-prog' module.
30821         * doc/relocatable-maint.texi: Update.
30822         Comments by Bruno Haible.
30823
30824 2010-05-23  Bruno Haible  <bruno@clisp.org>
30825
30826         git-merge-changelog: Enable --split-merged-entry by default.
30827         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30828         (usage): Don't mention this option any more.
30829         Reported by Ralf Wildenhues.
30830
30831 2010-05-23  Jim Meyering  <meyering@redhat.com>
30832
30833         test-pwrite: do not leave behind a test file named "out"
30834         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30835         The trivial-looking use of init.sh is really necessary.
30836         It ensures that the temporary file, "out", is created in
30837         a temporary directory, and removed upon termination.
30838         * tests/test-pwrite.sh: Re-add file.
30839         * modules/pwrite-tests: Reference it.
30840
30841 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30842
30843         Fix output redirection buglet in init.sh.
30844         * tests/init.sh: Fix redirection of stderr.
30845
30846 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30847
30848         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30849
30850 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30851
30852         * modules/valgrind-tests: New file.
30853         * m4/valgrind-tests.m4: New file.
30854         * doc/valgrind-tests.texi: New file.
30855         * doc/gnulib.texi (Running self-tests under valgrind): New
30856         section.
30857
30858 2010-05-19  Bruno Haible  <bruno@clisp.org>
30859
30860         Clean up dead code in recent commit.
30861         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30862         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30863         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30864         Suggested by Paolo Bonzini.
30865
30866 2010-05-19  Bruno Haible  <bruno@clisp.org>
30867
30868         Avoid valgrind error reports from libunistring.
30869         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30870         * modules/libunistring (Files): Add it.
30871         * modules/libunistring-optional (Files): Likewise.
30872
30873 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30874             Bruno Haible  <bruno@clisp.org>
30875
30876         New module 'libunistring-optional'.
30877         * modules/libunistring-optional: New file.
30878         * m4/libunistring-base.m4: New file.
30879         * m4/libunistring-optional.m4: New file.
30880         * lib/unicase.in.h: Renamed from lib/unicase.h.
30881         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30882         * lib/unictype.in.h: Renamed from lib/unictype.h.
30883         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30884         * lib/uniname.in.h: Renamed from lib/uniname.h.
30885         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30886         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30887         * lib/unistr.in.h: Renamed from lib/unistr.h.
30888         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30889         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30890         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30891         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30892         gl_LIBUNISTRING. If the library was found, determine the installed
30893         version and set LIBUNISTRING_VERSION.
30894         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30895         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30896         handle a configuration option --with-included-libunistring.
30897         * modules/libunistring (Files): Add m4/absolute-header.m4.
30898         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30899         Add m4/libunistring-base.m4.
30900         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30901         (Makefile.am): Build unicase.h from unicase.in.h.
30902         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30903         Add m4/libunistring-base.m4.
30904         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30905         (Makefile.am): Build uniconv.h from uniconv.in.h.
30906         * modules/unictype/base (Files): Use unictype.in.h instead of
30907         unictype.h. Add m4/libunistring-base.m4.
30908         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30909         (Makefile.am): Build unictype.h from unictype.in.h.
30910         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30911         Add m4/libunistring-base.m4.
30912         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30913         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30914         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30915         Add m4/libunistring-base.m4.
30916         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30917         (Makefile.am): Build uniname.h from uniname.in.h.
30918         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30919         Add m4/libunistring-base.m4.
30920         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30921         (Makefile.am): Build uninorm.h from uninorm.in.h.
30922         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30923         unistdio.h. Add m4/libunistring-base.m4.
30924         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30925         (Makefile.am): Build unistdio.h from unistdio.in.h.
30926         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30927         Add m4/libunistring-base.m4.
30928         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30929         (Makefile.am): Build unistr.h from unistr.in.h.
30930         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30931         Add m4/libunistring-base.m4.
30932         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30933         (Makefile.am): Build unitypes.h from unitypes.in.h.
30934         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30935         Add m4/libunistring-base.m4.
30936         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30937         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30938         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30939         uniwidth.h. Add m4/libunistring-base.m4.
30940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30941         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30942         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30943         instead of augmenting lib_SOURCES.
30944         * modules/unicase/empty-suffix-context: Likewise.
30945         * modules/unicase/locale-language: Likewise.
30946         * modules/unicase/tolower: Likewise.
30947         * modules/unicase/totitle: Likewise.
30948         * modules/unicase/toupper: Likewise.
30949         * modules/unicase/u8-casecmp: Likewise.
30950         * modules/unicase/u8-casecoll: Likewise.
30951         * modules/unicase/u8-casefold: Likewise.
30952         * modules/unicase/u8-casexfrm: Likewise.
30953         * modules/unicase/u8-ct-casefold: Likewise.
30954         * modules/unicase/u8-ct-tolower: Likewise.
30955         * modules/unicase/u8-ct-totitle: Likewise.
30956         * modules/unicase/u8-ct-toupper: Likewise.
30957         * modules/unicase/u8-is-cased: Likewise.
30958         * modules/unicase/u8-is-casefolded: Likewise.
30959         * modules/unicase/u8-is-lowercase: Likewise.
30960         * modules/unicase/u8-is-titlecase: Likewise.
30961         * modules/unicase/u8-is-uppercase: Likewise.
30962         * modules/unicase/u8-prefix-context: Likewise.
30963         * modules/unicase/u8-suffix-context: Likewise.
30964         * modules/unicase/u8-tolower: Likewise.
30965         * modules/unicase/u8-totitle: Likewise.
30966         * modules/unicase/u8-toupper: Likewise.
30967         * modules/unicase/u16-casecmp: Likewise.
30968         * modules/unicase/u16-casecoll: Likewise.
30969         * modules/unicase/u16-casefold: Likewise.
30970         * modules/unicase/u16-casexfrm: Likewise.
30971         * modules/unicase/u16-ct-casefold: Likewise.
30972         * modules/unicase/u16-ct-tolower: Likewise.
30973         * modules/unicase/u16-ct-totitle: Likewise.
30974         * modules/unicase/u16-ct-toupper: Likewise.
30975         * modules/unicase/u16-is-cased: Likewise.
30976         * modules/unicase/u16-is-casefolded: Likewise.
30977         * modules/unicase/u16-is-lowercase: Likewise.
30978         * modules/unicase/u16-is-titlecase: Likewise.
30979         * modules/unicase/u16-is-uppercase: Likewise.
30980         * modules/unicase/u16-prefix-context: Likewise.
30981         * modules/unicase/u16-suffix-context: Likewise.
30982         * modules/unicase/u16-tolower: Likewise.
30983         * modules/unicase/u16-totitle: Likewise.
30984         * modules/unicase/u16-toupper: Likewise.
30985         * modules/unicase/u32-casecmp: Likewise.
30986         * modules/unicase/u32-casecoll: Likewise.
30987         * modules/unicase/u32-casefold: Likewise.
30988         * modules/unicase/u32-casexfrm: Likewise.
30989         * modules/unicase/u32-ct-casefold: Likewise.
30990         * modules/unicase/u32-ct-tolower: Likewise.
30991         * modules/unicase/u32-ct-totitle: Likewise.
30992         * modules/unicase/u32-ct-toupper: Likewise.
30993         * modules/unicase/u32-is-cased: Likewise.
30994         * modules/unicase/u32-is-casefolded: Likewise.
30995         * modules/unicase/u32-is-lowercase: Likewise.
30996         * modules/unicase/u32-is-titlecase: Likewise.
30997         * modules/unicase/u32-is-uppercase: Likewise.
30998         * modules/unicase/u32-prefix-context: Likewise.
30999         * modules/unicase/u32-suffix-context: Likewise.
31000         * modules/unicase/u32-tolower: Likewise.
31001         * modules/unicase/u32-totitle: Likewise.
31002         * modules/unicase/u32-toupper: Likewise.
31003         * modules/unicase/ulc-casecmp: Likewise.
31004         * modules/unicase/ulc-casecoll: Likewise.
31005         * modules/unicase/ulc-casexfrm: Likewise.
31006         * modules/uniconv/u8-conv-from-enc: Likewise.
31007         * modules/uniconv/u8-conv-to-enc: Likewise.
31008         * modules/uniconv/u8-strconv-from-enc: Likewise.
31009         * modules/uniconv/u8-strconv-from-locale: Likewise.
31010         * modules/uniconv/u8-strconv-to-enc: Likewise.
31011         * modules/uniconv/u8-strconv-to-locale: Likewise.
31012         * modules/uniconv/u16-conv-from-enc: Likewise.
31013         * modules/uniconv/u16-conv-to-enc: Likewise.
31014         * modules/uniconv/u16-strconv-from-enc: Likewise.
31015         * modules/uniconv/u16-strconv-from-locale: Likewise.
31016         * modules/uniconv/u16-strconv-to-enc: Likewise.
31017         * modules/uniconv/u16-strconv-to-locale: Likewise.
31018         * modules/uniconv/u32-conv-from-enc: Likewise.
31019         * modules/uniconv/u32-conv-to-enc: Likewise.
31020         * modules/uniconv/u32-strconv-from-enc: Likewise.
31021         * modules/uniconv/u32-strconv-from-locale: Likewise.
31022         * modules/uniconv/u32-strconv-to-enc: Likewise.
31023         * modules/uniconv/u32-strconv-to-locale: Likewise.
31024         * modules/unictype/bidicategory-byname: Likewise.
31025         * modules/unictype/bidicategory-name: Likewise.
31026         * modules/unictype/bidicategory-of: Likewise.
31027         * modules/unictype/bidicategory-test: Likewise.
31028         * modules/unictype/block-list: Likewise.
31029         * modules/unictype/block-test: Likewise.
31030         * modules/unictype/category-C: Likewise.
31031         * modules/unictype/category-Cc: Likewise.
31032         * modules/unictype/category-Cf: Likewise.
31033         * modules/unictype/category-Cn: Likewise.
31034         * modules/unictype/category-Co: Likewise.
31035         * modules/unictype/category-Cs: Likewise.
31036         * modules/unictype/category-L: Likewise.
31037         * modules/unictype/category-Ll: Likewise.
31038         * modules/unictype/category-Lm: Likewise.
31039         * modules/unictype/category-Lo: Likewise.
31040         * modules/unictype/category-Lt: Likewise.
31041         * modules/unictype/category-Lu: Likewise.
31042         * modules/unictype/category-M: Likewise.
31043         * modules/unictype/category-Mc: Likewise.
31044         * modules/unictype/category-Me: Likewise.
31045         * modules/unictype/category-Mn: Likewise.
31046         * modules/unictype/category-N: Likewise.
31047         * modules/unictype/category-Nd: Likewise.
31048         * modules/unictype/category-Nl: Likewise.
31049         * modules/unictype/category-No: Likewise.
31050         * modules/unictype/category-P: Likewise.
31051         * modules/unictype/category-Pc: Likewise.
31052         * modules/unictype/category-Pd: Likewise.
31053         * modules/unictype/category-Pe: Likewise.
31054         * modules/unictype/category-Pf: Likewise.
31055         * modules/unictype/category-Pi: Likewise.
31056         * modules/unictype/category-Po: Likewise.
31057         * modules/unictype/category-Ps: Likewise.
31058         * modules/unictype/category-S: Likewise.
31059         * modules/unictype/category-Sc: Likewise.
31060         * modules/unictype/category-Sk: Likewise.
31061         * modules/unictype/category-Sm: Likewise.
31062         * modules/unictype/category-So: Likewise.
31063         * modules/unictype/category-Z: Likewise.
31064         * modules/unictype/category-Zl: Likewise.
31065         * modules/unictype/category-Zp: Likewise.
31066         * modules/unictype/category-Zs: Likewise.
31067         * modules/unictype/category-and: Likewise.
31068         * modules/unictype/category-and-not: Likewise.
31069         * modules/unictype/category-byname: Likewise.
31070         * modules/unictype/category-name: Likewise.
31071         * modules/unictype/category-none: Likewise.
31072         * modules/unictype/category-of: Likewise.
31073         * modules/unictype/category-or: Likewise.
31074         * modules/unictype/category-test: Likewise.
31075         * modules/unictype/combining-class: Likewise.
31076         * modules/unictype/ctype-alnum: Likewise.
31077         * modules/unictype/ctype-alpha: Likewise.
31078         * modules/unictype/ctype-blank: Likewise.
31079         * modules/unictype/ctype-cntrl: Likewise.
31080         * modules/unictype/ctype-digit: Likewise.
31081         * modules/unictype/ctype-graph: Likewise.
31082         * modules/unictype/ctype-lower: Likewise.
31083         * modules/unictype/ctype-print: Likewise.
31084         * modules/unictype/ctype-punct: Likewise.
31085         * modules/unictype/ctype-space: Likewise.
31086         * modules/unictype/ctype-upper: Likewise.
31087         * modules/unictype/ctype-xdigit: Likewise.
31088         * modules/unictype/decimal-digit: Likewise.
31089         * modules/unictype/digit: Likewise.
31090         * modules/unictype/mirror: Likewise.
31091         * modules/unictype/numeric: Likewise.
31092         * modules/unictype/property-alphabetic: Likewise.
31093         * modules/unictype/property-ascii-hex-digit: Likewise.
31094         * modules/unictype/property-bidi-arabic-digit: Likewise.
31095         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31096         * modules/unictype/property-bidi-block-separator: Likewise.
31097         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31098         * modules/unictype/property-bidi-common-separator: Likewise.
31099         * modules/unictype/property-bidi-control: Likewise.
31100         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31101         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31102         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31103         * modules/unictype/property-bidi-european-digit: Likewise.
31104         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31105         * modules/unictype/property-bidi-left-to-right: Likewise.
31106         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31107         * modules/unictype/property-bidi-other-neutral: Likewise.
31108         * modules/unictype/property-bidi-pdf: Likewise.
31109         * modules/unictype/property-bidi-segment-separator: Likewise.
31110         * modules/unictype/property-bidi-whitespace: Likewise.
31111         * modules/unictype/property-byname: Likewise.
31112         * modules/unictype/property-combining: Likewise.
31113         * modules/unictype/property-composite: Likewise.
31114         * modules/unictype/property-currency-symbol: Likewise.
31115         * modules/unictype/property-dash: Likewise.
31116         * modules/unictype/property-decimal-digit: Likewise.
31117         * modules/unictype/property-default-ignorable-code-point: Likewise.
31118         * modules/unictype/property-deprecated: Likewise.
31119         * modules/unictype/property-diacritic: Likewise.
31120         * modules/unictype/property-extender: Likewise.
31121         * modules/unictype/property-format-control: Likewise.
31122         * modules/unictype/property-grapheme-base: Likewise.
31123         * modules/unictype/property-grapheme-extend: Likewise.
31124         * modules/unictype/property-grapheme-link: Likewise.
31125         * modules/unictype/property-hex-digit: Likewise.
31126         * modules/unictype/property-hyphen: Likewise.
31127         * modules/unictype/property-id-continue: Likewise.
31128         * modules/unictype/property-id-start: Likewise.
31129         * modules/unictype/property-ideographic: Likewise.
31130         * modules/unictype/property-ids-binary-operator: Likewise.
31131         * modules/unictype/property-ids-trinary-operator: Likewise.
31132         * modules/unictype/property-ignorable-control: Likewise.
31133         * modules/unictype/property-iso-control: Likewise.
31134         * modules/unictype/property-join-control: Likewise.
31135         * modules/unictype/property-left-of-pair: Likewise.
31136         * modules/unictype/property-line-separator: Likewise.
31137         * modules/unictype/property-logical-order-exception: Likewise.
31138         * modules/unictype/property-lowercase: Likewise.
31139         * modules/unictype/property-math: Likewise.
31140         * modules/unictype/property-non-break: Likewise.
31141         * modules/unictype/property-not-a-character: Likewise.
31142         * modules/unictype/property-numeric: Likewise.
31143         * modules/unictype/property-other-alphabetic: Likewise.
31144         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31145         * modules/unictype/property-other-grapheme-extend: Likewise.
31146         * modules/unictype/property-other-id-continue: Likewise.
31147         * modules/unictype/property-other-id-start: Likewise.
31148         * modules/unictype/property-other-lowercase: Likewise.
31149         * modules/unictype/property-other-math: Likewise.
31150         * modules/unictype/property-other-uppercase: Likewise.
31151         * modules/unictype/property-paired-punctuation: Likewise.
31152         * modules/unictype/property-paragraph-separator: Likewise.
31153         * modules/unictype/property-pattern-syntax: Likewise.
31154         * modules/unictype/property-pattern-white-space: Likewise.
31155         * modules/unictype/property-private-use: Likewise.
31156         * modules/unictype/property-punctuation: Likewise.
31157         * modules/unictype/property-quotation-mark: Likewise.
31158         * modules/unictype/property-radical: Likewise.
31159         * modules/unictype/property-sentence-terminal: Likewise.
31160         * modules/unictype/property-soft-dotted: Likewise.
31161         * modules/unictype/property-space: Likewise.
31162         * modules/unictype/property-terminal-punctuation: Likewise.
31163         * modules/unictype/property-test: Likewise.
31164         * modules/unictype/property-titlecase: Likewise.
31165         * modules/unictype/property-unassigned-code-value: Likewise.
31166         * modules/unictype/property-unified-ideograph: Likewise.
31167         * modules/unictype/property-uppercase: Likewise.
31168         * modules/unictype/property-variation-selector: Likewise.
31169         * modules/unictype/property-white-space: Likewise.
31170         * modules/unictype/property-xid-continue: Likewise.
31171         * modules/unictype/property-xid-start: Likewise.
31172         * modules/unictype/property-zero-width: Likewise.
31173         * modules/unictype/scripts: Likewise.
31174         * modules/unictype/syntax-c-ident: Likewise.
31175         * modules/unictype/syntax-c-whitespace: Likewise.
31176         * modules/unictype/syntax-java-ident: Likewise.
31177         * modules/unictype/syntax-java-whitespace: Likewise.
31178         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31179         * modules/unilbrk/u8-width-linebreaks: Likewise.
31180         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31181         * modules/unilbrk/u16-width-linebreaks: Likewise.
31182         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31183         * modules/unilbrk/u32-width-linebreaks: Likewise.
31184         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31185         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31186         * modules/uniname/uniname: Likewise.
31187         * modules/uninorm/canonical-decomposition: Likewise.
31188         * modules/uninorm/composition: Likewise.
31189         * modules/uninorm/decomposing-form: Likewise.
31190         * modules/uninorm/decomposition: Likewise.
31191         * modules/uninorm/filter: Likewise.
31192         * modules/uninorm/nfc: Likewise.
31193         * modules/uninorm/nfd: Likewise.
31194         * modules/uninorm/nfkc: Likewise.
31195         * modules/uninorm/nfkd: Likewise.
31196         * modules/uninorm/u8-normalize: Likewise.
31197         * modules/uninorm/u8-normcmp: Likewise.
31198         * modules/uninorm/u8-normcoll: Likewise.
31199         * modules/uninorm/u8-normxfrm: Likewise.
31200         * modules/uninorm/u16-normalize: Likewise.
31201         * modules/uninorm/u16-normcmp: Likewise.
31202         * modules/uninorm/u16-normcoll: Likewise.
31203         * modules/uninorm/u16-normxfrm: Likewise.
31204         * modules/uninorm/u32-normalize: Likewise.
31205         * modules/uninorm/u32-normcmp: Likewise.
31206         * modules/uninorm/u32-normcoll: Likewise.
31207         * modules/uninorm/u32-normxfrm: Likewise.
31208         * modules/unistdio/u8-asnprintf: Likewise.
31209         * modules/unistdio/u8-asprintf: Likewise.
31210         * modules/unistdio/u8-snprintf: Likewise.
31211         * modules/unistdio/u8-sprintf: Likewise.
31212         * modules/unistdio/u8-u8-asnprintf: Likewise.
31213         * modules/unistdio/u8-u8-asprintf: Likewise.
31214         * modules/unistdio/u8-u8-snprintf: Likewise.
31215         * modules/unistdio/u8-u8-sprintf: Likewise.
31216         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31217         * modules/unistdio/u8-u8-vasprintf: Likewise.
31218         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31219         * modules/unistdio/u8-u8-vsprintf: Likewise.
31220         * modules/unistdio/u8-vasnprintf: Likewise.
31221         * modules/unistdio/u8-vasprintf: Likewise.
31222         * modules/unistdio/u8-vsnprintf: Likewise.
31223         * modules/unistdio/u8-vsprintf: Likewise.
31224         * modules/unistdio/u16-asnprintf: Likewise.
31225         * modules/unistdio/u16-asprintf: Likewise.
31226         * modules/unistdio/u16-snprintf: Likewise.
31227         * modules/unistdio/u16-sprintf: Likewise.
31228         * modules/unistdio/u16-u16-asnprintf: Likewise.
31229         * modules/unistdio/u16-u16-asprintf: Likewise.
31230         * modules/unistdio/u16-u16-snprintf: Likewise.
31231         * modules/unistdio/u16-u16-sprintf: Likewise.
31232         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31233         * modules/unistdio/u16-u16-vasprintf: Likewise.
31234         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31235         * modules/unistdio/u16-u16-vsprintf: Likewise.
31236         * modules/unistdio/u16-vasnprintf: Likewise.
31237         * modules/unistdio/u16-vasprintf: Likewise.
31238         * modules/unistdio/u16-vsnprintf: Likewise.
31239         * modules/unistdio/u16-vsprintf: Likewise.
31240         * modules/unistdio/u32-asnprintf: Likewise.
31241         * modules/unistdio/u32-asprintf: Likewise.
31242         * modules/unistdio/u32-snprintf: Likewise.
31243         * modules/unistdio/u32-sprintf: Likewise.
31244         * modules/unistdio/u32-u32-asnprintf: Likewise.
31245         * modules/unistdio/u32-u32-asprintf: Likewise.
31246         * modules/unistdio/u32-u32-snprintf: Likewise.
31247         * modules/unistdio/u32-u32-sprintf: Likewise.
31248         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31249         * modules/unistdio/u32-u32-vasprintf: Likewise.
31250         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31251         * modules/unistdio/u32-u32-vsprintf: Likewise.
31252         * modules/unistdio/u32-vasnprintf: Likewise.
31253         * modules/unistdio/u32-vasprintf: Likewise.
31254         * modules/unistdio/u32-vsnprintf: Likewise.
31255         * modules/unistdio/u32-vsprintf: Likewise.
31256         * modules/unistdio/ulc-asnprintf: Likewise.
31257         * modules/unistdio/ulc-asprintf: Likewise.
31258         * modules/unistdio/ulc-fprintf: Likewise.
31259         * modules/unistdio/ulc-snprintf: Likewise.
31260         * modules/unistdio/ulc-sprintf: Likewise.
31261         * modules/unistdio/ulc-vasnprintf: Likewise.
31262         * modules/unistdio/ulc-vasprintf: Likewise.
31263         * modules/unistdio/ulc-vfprintf: Likewise.
31264         * modules/unistdio/ulc-vsnprintf: Likewise.
31265         * modules/unistdio/ulc-vsprintf: Likewise.
31266         * modules/unistr/u8-check: Likewise.
31267         * modules/unistr/u8-chr: Likewise.
31268         * modules/unistr/u8-cmp: Likewise.
31269         * modules/unistr/u8-cmp2: Likewise.
31270         * modules/unistr/u8-cpy: Likewise.
31271         * modules/unistr/u8-cpy-alloc: Likewise.
31272         * modules/unistr/u8-endswith: Likewise.
31273         * modules/unistr/u8-mblen: Likewise.
31274         * modules/unistr/u8-mbsnlen: Likewise.
31275         * modules/unistr/u8-mbtouc: Likewise.
31276         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31277         * modules/unistr/u8-mbtoucr: Likewise.
31278         * modules/unistr/u8-move: Likewise.
31279         * modules/unistr/u8-next: Likewise.
31280         * modules/unistr/u8-prev: Likewise.
31281         * modules/unistr/u8-set: Likewise.
31282         * modules/unistr/u8-startswith: Likewise.
31283         * modules/unistr/u8-stpcpy: Likewise.
31284         * modules/unistr/u8-stpncpy: Likewise.
31285         * modules/unistr/u8-strcat: Likewise.
31286         * modules/unistr/u8-strchr: Likewise.
31287         * modules/unistr/u8-strcmp: Likewise.
31288         * modules/unistr/u8-strcoll: Likewise.
31289         * modules/unistr/u8-strcpy: Likewise.
31290         * modules/unistr/u8-strcspn: Likewise.
31291         * modules/unistr/u8-strdup: Likewise.
31292         * modules/unistr/u8-strlen: Likewise.
31293         * modules/unistr/u8-strmblen: Likewise.
31294         * modules/unistr/u8-strmbtouc: Likewise.
31295         * modules/unistr/u8-strncat: Likewise.
31296         * modules/unistr/u8-strncmp: Likewise.
31297         * modules/unistr/u8-strncpy: Likewise.
31298         * modules/unistr/u8-strnlen: Likewise.
31299         * modules/unistr/u8-strpbrk: Likewise.
31300         * modules/unistr/u8-strrchr: Likewise.
31301         * modules/unistr/u8-strspn: Likewise.
31302         * modules/unistr/u8-strstr: Likewise.
31303         * modules/unistr/u8-strtok: Likewise.
31304         * modules/unistr/u8-to-u16: Likewise.
31305         * modules/unistr/u8-to-u32: Likewise.
31306         * modules/unistr/u8-uctomb: Likewise.
31307         * modules/unistr/u16-check: Likewise.
31308         * modules/unistr/u16-chr: Likewise.
31309         * modules/unistr/u16-cmp: Likewise.
31310         * modules/unistr/u16-cmp2: Likewise.
31311         * modules/unistr/u16-cpy: Likewise.
31312         * modules/unistr/u16-cpy-alloc: Likewise.
31313         * modules/unistr/u16-endswith: Likewise.
31314         * modules/unistr/u16-mblen: Likewise.
31315         * modules/unistr/u16-mbsnlen: Likewise.
31316         * modules/unistr/u16-mbtouc: Likewise.
31317         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31318         * modules/unistr/u16-mbtoucr: Likewise.
31319         * modules/unistr/u16-move: Likewise.
31320         * modules/unistr/u16-next: Likewise.
31321         * modules/unistr/u16-prev: Likewise.
31322         * modules/unistr/u16-set: Likewise.
31323         * modules/unistr/u16-startswith: Likewise.
31324         * modules/unistr/u16-stpcpy: Likewise.
31325         * modules/unistr/u16-stpncpy: Likewise.
31326         * modules/unistr/u16-strcat: Likewise.
31327         * modules/unistr/u16-strchr: Likewise.
31328         * modules/unistr/u16-strcmp: Likewise.
31329         * modules/unistr/u16-strcoll: Likewise.
31330         * modules/unistr/u16-strcpy: Likewise.
31331         * modules/unistr/u16-strcspn: Likewise.
31332         * modules/unistr/u16-strdup: Likewise.
31333         * modules/unistr/u16-strlen: Likewise.
31334         * modules/unistr/u16-strmblen: Likewise.
31335         * modules/unistr/u16-strmbtouc: Likewise.
31336         * modules/unistr/u16-strncat: Likewise.
31337         * modules/unistr/u16-strncmp: Likewise.
31338         * modules/unistr/u16-strncpy: Likewise.
31339         * modules/unistr/u16-strnlen: Likewise.
31340         * modules/unistr/u16-strpbrk: Likewise.
31341         * modules/unistr/u16-strrchr: Likewise.
31342         * modules/unistr/u16-strspn: Likewise.
31343         * modules/unistr/u16-strstr: Likewise.
31344         * modules/unistr/u16-strtok: Likewise.
31345         * modules/unistr/u16-to-u32: Likewise.
31346         * modules/unistr/u16-to-u8: Likewise.
31347         * modules/unistr/u16-uctomb: Likewise.
31348         * modules/unistr/u32-check: Likewise.
31349         * modules/unistr/u32-chr: Likewise.
31350         * modules/unistr/u32-cmp: Likewise.
31351         * modules/unistr/u32-cmp2: Likewise.
31352         * modules/unistr/u32-cpy: Likewise.
31353         * modules/unistr/u32-cpy-alloc: Likewise.
31354         * modules/unistr/u32-endswith: Likewise.
31355         * modules/unistr/u32-mblen: Likewise.
31356         * modules/unistr/u32-mbsnlen: Likewise.
31357         * modules/unistr/u32-mbtouc: Likewise.
31358         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31359         * modules/unistr/u32-mbtoucr: Likewise.
31360         * modules/unistr/u32-move: Likewise.
31361         * modules/unistr/u32-next: Likewise.
31362         * modules/unistr/u32-prev: Likewise.
31363         * modules/unistr/u32-set: Likewise.
31364         * modules/unistr/u32-startswith: Likewise.
31365         * modules/unistr/u32-stpcpy: Likewise.
31366         * modules/unistr/u32-stpncpy: Likewise.
31367         * modules/unistr/u32-strcat: Likewise.
31368         * modules/unistr/u32-strchr: Likewise.
31369         * modules/unistr/u32-strcmp: Likewise.
31370         * modules/unistr/u32-strcoll: Likewise.
31371         * modules/unistr/u32-strcpy: Likewise.
31372         * modules/unistr/u32-strcspn: Likewise.
31373         * modules/unistr/u32-strdup: Likewise.
31374         * modules/unistr/u32-strlen: Likewise.
31375         * modules/unistr/u32-strmblen: Likewise.
31376         * modules/unistr/u32-strmbtouc: Likewise.
31377         * modules/unistr/u32-strncat: Likewise.
31378         * modules/unistr/u32-strncmp: Likewise.
31379         * modules/unistr/u32-strncpy: Likewise.
31380         * modules/unistr/u32-strnlen: Likewise.
31381         * modules/unistr/u32-strpbrk: Likewise.
31382         * modules/unistr/u32-strrchr: Likewise.
31383         * modules/unistr/u32-strspn: Likewise.
31384         * modules/unistr/u32-strstr: Likewise.
31385         * modules/unistr/u32-strtok: Likewise.
31386         * modules/unistr/u32-to-u16: Likewise.
31387         * modules/unistr/u32-to-u8: Likewise.
31388         * modules/unistr/u32-uctomb: Likewise.
31389         * modules/uniwbrk/u8-wordbreaks: Likewise.
31390         * modules/uniwbrk/u16-wordbreaks: Likewise.
31391         * modules/uniwbrk/u32-wordbreaks: Likewise.
31392         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31393         * modules/uniwbrk/wordbreak-property: Likewise.
31394         * modules/uniwidth/u8-strwidth: Likewise.
31395         * modules/uniwidth/u8-width: Likewise.
31396         * modules/uniwidth/u16-strwidth: Likewise.
31397         * modules/uniwidth/u16-width: Likewise.
31398         * modules/uniwidth/u32-strwidth: Likewise.
31399         * modules/uniwidth/u32-width: Likewise.
31400         * modules/uniwidth/width: Likewise.
31401         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31402         with $(LIBUNISTRING).
31403         * modules/unicase/ignorable-tests: Likewise.
31404         * modules/unicase/locale-language-tests: Likewise.
31405         * modules/unicase/tolower-tests: Likewise.
31406         * modules/unicase/totitle-tests: Likewise.
31407         * modules/unicase/toupper-tests: Likewise.
31408         * modules/unicase/u8-casecmp-tests: Likewise.
31409         * modules/unicase/u8-casecoll-tests: Likewise.
31410         * modules/unicase/u8-casefold-tests: Likewise.
31411         * modules/unicase/u8-is-cased-tests: Likewise.
31412         * modules/unicase/u8-is-casefolded-tests: Likewise.
31413         * modules/unicase/u8-is-lowercase-tests: Likewise.
31414         * modules/unicase/u8-is-titlecase-tests: Likewise.
31415         * modules/unicase/u8-is-uppercase-tests: Likewise.
31416         * modules/unicase/u8-tolower-tests: Likewise.
31417         * modules/unicase/u8-totitle-tests: Likewise.
31418         * modules/unicase/u8-toupper-tests: Likewise.
31419         * modules/unicase/u16-casecmp-tests: Likewise.
31420         * modules/unicase/u16-casecoll-tests: Likewise.
31421         * modules/unicase/u16-casefold-tests: Likewise.
31422         * modules/unicase/u16-is-cased-tests: Likewise.
31423         * modules/unicase/u16-is-casefolded-tests: Likewise.
31424         * modules/unicase/u16-is-lowercase-tests: Likewise.
31425         * modules/unicase/u16-is-titlecase-tests: Likewise.
31426         * modules/unicase/u16-is-uppercase-tests: Likewise.
31427         * modules/unicase/u16-tolower-tests: Likewise.
31428         * modules/unicase/u16-totitle-tests: Likewise.
31429         * modules/unicase/u16-toupper-tests: Likewise.
31430         * modules/unicase/u32-casecmp-tests: Likewise.
31431         * modules/unicase/u32-casecoll-tests: Likewise.
31432         * modules/unicase/u32-casefold-tests: Likewise.
31433         * modules/unicase/u32-is-cased-tests: Likewise.
31434         * modules/unicase/u32-is-casefolded-tests: Likewise.
31435         * modules/unicase/u32-is-lowercase-tests: Likewise.
31436         * modules/unicase/u32-is-titlecase-tests: Likewise.
31437         * modules/unicase/u32-is-uppercase-tests: Likewise.
31438         * modules/unicase/u32-tolower-tests: Likewise.
31439         * modules/unicase/u32-totitle-tests: Likewise.
31440         * modules/unicase/u32-toupper-tests: Likewise.
31441         * modules/unicase/ulc-casecmp-tests: Likewise.
31442         * modules/unicase/ulc-casecoll-tests: Likewise.
31443         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31444         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31445         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31446         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31447         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31448         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31449         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31450         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31451         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31452         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31453         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31454         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31455         * modules/unictype/bidicategory-byname-tests: Likewise.
31456         * modules/unictype/bidicategory-name-tests: Likewise.
31457         * modules/unictype/bidicategory-of-tests: Likewise.
31458         * modules/unictype/bidicategory-test-tests: Likewise.
31459         * modules/unictype/block-list-tests: Likewise.
31460         * modules/unictype/block-of-tests: Likewise.
31461         * modules/unictype/block-test-tests: Likewise.
31462         * modules/unictype/category-C-tests: Likewise.
31463         * modules/unictype/category-Cc-tests: Likewise.
31464         * modules/unictype/category-Cf-tests: Likewise.
31465         * modules/unictype/category-Cn-tests: Likewise.
31466         * modules/unictype/category-Co-tests: Likewise.
31467         * modules/unictype/category-Cs-tests: Likewise.
31468         * modules/unictype/category-L-tests: Likewise.
31469         * modules/unictype/category-Ll-tests: Likewise.
31470         * modules/unictype/category-Lm-tests: Likewise.
31471         * modules/unictype/category-Lo-tests: Likewise.
31472         * modules/unictype/category-Lt-tests: Likewise.
31473         * modules/unictype/category-Lu-tests: Likewise.
31474         * modules/unictype/category-M-tests: Likewise.
31475         * modules/unictype/category-Mc-tests: Likewise.
31476         * modules/unictype/category-Me-tests: Likewise.
31477         * modules/unictype/category-Mn-tests: Likewise.
31478         * modules/unictype/category-N-tests: Likewise.
31479         * modules/unictype/category-Nd-tests: Likewise.
31480         * modules/unictype/category-Nl-tests: Likewise.
31481         * modules/unictype/category-No-tests: Likewise.
31482         * modules/unictype/category-P-tests: Likewise.
31483         * modules/unictype/category-Pc-tests: Likewise.
31484         * modules/unictype/category-Pd-tests: Likewise.
31485         * modules/unictype/category-Pe-tests: Likewise.
31486         * modules/unictype/category-Pf-tests: Likewise.
31487         * modules/unictype/category-Pi-tests: Likewise.
31488         * modules/unictype/category-Po-tests: Likewise.
31489         * modules/unictype/category-Ps-tests: Likewise.
31490         * modules/unictype/category-S-tests: Likewise.
31491         * modules/unictype/category-Sc-tests: Likewise.
31492         * modules/unictype/category-Sk-tests: Likewise.
31493         * modules/unictype/category-Sm-tests: Likewise.
31494         * modules/unictype/category-So-tests: Likewise.
31495         * modules/unictype/category-Z-tests: Likewise.
31496         * modules/unictype/category-Zl-tests: Likewise.
31497         * modules/unictype/category-Zp-tests: Likewise.
31498         * modules/unictype/category-Zs-tests: Likewise.
31499         * modules/unictype/category-and-not-tests: Likewise.
31500         * modules/unictype/category-and-tests: Likewise.
31501         * modules/unictype/category-byname-tests: Likewise.
31502         * modules/unictype/category-name-tests: Likewise.
31503         * modules/unictype/category-none-tests: Likewise.
31504         * modules/unictype/category-of-tests: Likewise.
31505         * modules/unictype/category-or-tests: Likewise.
31506         * modules/unictype/category-test-withtable-tests: Likewise.
31507         * modules/unictype/combining-class-tests: Likewise.
31508         * modules/unictype/ctype-alnum-tests: Likewise.
31509         * modules/unictype/ctype-alpha-tests: Likewise.
31510         * modules/unictype/ctype-blank-tests: Likewise.
31511         * modules/unictype/ctype-cntrl-tests: Likewise.
31512         * modules/unictype/ctype-digit-tests: Likewise.
31513         * modules/unictype/ctype-graph-tests: Likewise.
31514         * modules/unictype/ctype-lower-tests: Likewise.
31515         * modules/unictype/ctype-print-tests: Likewise.
31516         * modules/unictype/ctype-punct-tests: Likewise.
31517         * modules/unictype/ctype-space-tests: Likewise.
31518         * modules/unictype/ctype-upper-tests: Likewise.
31519         * modules/unictype/ctype-xdigit-tests: Likewise.
31520         * modules/unictype/decimal-digit-tests: Likewise.
31521         * modules/unictype/digit-tests: Likewise.
31522         * modules/unictype/mirror-tests: Likewise.
31523         * modules/unictype/numeric-tests: Likewise.
31524         * modules/unictype/property-alphabetic-tests: Likewise.
31525         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31526         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31527         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31528         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31529         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31530         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31531         * modules/unictype/property-bidi-control-tests: Likewise.
31532         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31533         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31534         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31535         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31536         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31537         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31538         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31539         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31540         * modules/unictype/property-bidi-pdf-tests: Likewise.
31541         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31542         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31543         * modules/unictype/property-byname-tests: Likewise.
31544         * modules/unictype/property-combining-tests: Likewise.
31545         * modules/unictype/property-composite-tests: Likewise.
31546         * modules/unictype/property-currency-symbol-tests: Likewise.
31547         * modules/unictype/property-dash-tests: Likewise.
31548         * modules/unictype/property-decimal-digit-tests: Likewise.
31549         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31550         * modules/unictype/property-deprecated-tests: Likewise.
31551         * modules/unictype/property-diacritic-tests: Likewise.
31552         * modules/unictype/property-extender-tests: Likewise.
31553         * modules/unictype/property-format-control-tests: Likewise.
31554         * modules/unictype/property-grapheme-base-tests: Likewise.
31555         * modules/unictype/property-grapheme-extend-tests: Likewise.
31556         * modules/unictype/property-grapheme-link-tests: Likewise.
31557         * modules/unictype/property-hex-digit-tests: Likewise.
31558         * modules/unictype/property-hyphen-tests: Likewise.
31559         * modules/unictype/property-id-continue-tests: Likewise.
31560         * modules/unictype/property-id-start-tests: Likewise.
31561         * modules/unictype/property-ideographic-tests: Likewise.
31562         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31563         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31564         * modules/unictype/property-ignorable-control-tests: Likewise.
31565         * modules/unictype/property-iso-control-tests: Likewise.
31566         * modules/unictype/property-join-control-tests: Likewise.
31567         * modules/unictype/property-left-of-pair-tests: Likewise.
31568         * modules/unictype/property-line-separator-tests: Likewise.
31569         * modules/unictype/property-logical-order-exception-tests: Likewise.
31570         * modules/unictype/property-lowercase-tests: Likewise.
31571         * modules/unictype/property-math-tests: Likewise.
31572         * modules/unictype/property-non-break-tests: Likewise.
31573         * modules/unictype/property-not-a-character-tests: Likewise.
31574         * modules/unictype/property-numeric-tests: Likewise.
31575         * modules/unictype/property-other-alphabetic-tests: Likewise.
31576         * modules/unictype/property-other-default-ignorable-code-point-tests:
31577         Likewise.
31578         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31579         * modules/unictype/property-other-id-continue-tests: Likewise.
31580         * modules/unictype/property-other-id-start-tests: Likewise.
31581         * modules/unictype/property-other-lowercase-tests: Likewise.
31582         * modules/unictype/property-other-math-tests: Likewise.
31583         * modules/unictype/property-other-uppercase-tests: Likewise.
31584         * modules/unictype/property-paired-punctuation-tests: Likewise.
31585         * modules/unictype/property-paragraph-separator-tests: Likewise.
31586         * modules/unictype/property-pattern-syntax-tests: Likewise.
31587         * modules/unictype/property-pattern-white-space-tests: Likewise.
31588         * modules/unictype/property-private-use-tests: Likewise.
31589         * modules/unictype/property-punctuation-tests: Likewise.
31590         * modules/unictype/property-quotation-mark-tests: Likewise.
31591         * modules/unictype/property-radical-tests: Likewise.
31592         * modules/unictype/property-sentence-terminal-tests: Likewise.
31593         * modules/unictype/property-soft-dotted-tests: Likewise.
31594         * modules/unictype/property-space-tests: Likewise.
31595         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31596         * modules/unictype/property-test-tests: Likewise.
31597         * modules/unictype/property-titlecase-tests: Likewise.
31598         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31599         * modules/unictype/property-unified-ideograph-tests: Likewise.
31600         * modules/unictype/property-uppercase-tests: Likewise.
31601         * modules/unictype/property-variation-selector-tests: Likewise.
31602         * modules/unictype/property-white-space-tests: Likewise.
31603         * modules/unictype/property-xid-continue-tests: Likewise.
31604         * modules/unictype/property-xid-start-tests: Likewise.
31605         * modules/unictype/property-zero-width-tests: Likewise.
31606         * modules/unictype/scripts-tests: Likewise.
31607         * modules/unictype/syntax-c-ident-tests: Likewise.
31608         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31609         * modules/unictype/syntax-java-ident-tests: Likewise.
31610         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31611         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31612         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31613         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31614         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31615         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31616         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31617         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31618         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31619         * modules/uniname/uniname-tests: Likewise.
31620         * modules/uninorm/canonical-decomposition-tests: Likewise.
31621         * modules/uninorm/compat-decomposition-tests: Likewise.
31622         * modules/uninorm/composition-tests: Likewise.
31623         * modules/uninorm/decomposing-form-tests: Likewise.
31624         * modules/uninorm/decomposition-tests: Likewise.
31625         * modules/uninorm/filter-tests: Likewise.
31626         * modules/uninorm/nfc-tests: Likewise.
31627         * modules/uninorm/nfd-tests: Likewise.
31628         * modules/uninorm/nfkc-tests: Likewise.
31629         * modules/uninorm/nfkd-tests: Likewise.
31630         * modules/uninorm/u8-normcmp-tests: Likewise.
31631         * modules/uninorm/u8-normcoll-tests: Likewise.
31632         * modules/uninorm/u16-normcmp-tests: Likewise.
31633         * modules/uninorm/u16-normcoll-tests: Likewise.
31634         * modules/uninorm/u32-normcmp-tests: Likewise.
31635         * modules/uninorm/u32-normcoll-tests: Likewise.
31636         * modules/unistdio/u8-asnprintf-tests: Likewise.
31637         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31638         * modules/unistdio/u8-vasprintf-tests: Likewise.
31639         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31640         * modules/unistdio/u8-vsprintf-tests: Likewise.
31641         * modules/unistdio/u16-asnprintf-tests: Likewise.
31642         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31643         * modules/unistdio/u16-vasprintf-tests: Likewise.
31644         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31645         * modules/unistdio/u16-vsprintf-tests: Likewise.
31646         * modules/unistdio/u32-asnprintf-tests: Likewise.
31647         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31648         * modules/unistdio/u32-vasprintf-tests: Likewise.
31649         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31650         * modules/unistdio/u32-vsprintf-tests: Likewise.
31651         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31652         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31653         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31654         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31655         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31656         * modules/unistr/u8-check-tests: Likewise.
31657         * modules/unistr/u8-chr-tests: Likewise.
31658         * modules/unistr/u8-cmp-tests: Likewise.
31659         * modules/unistr/u8-cmp2-tests: Likewise.
31660         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31661         * modules/unistr/u8-cpy-tests: Likewise.
31662         * modules/unistr/u8-mblen-tests: Likewise.
31663         * modules/unistr/u8-mbsnlen-tests: Likewise.
31664         * modules/unistr/u8-mbtouc-tests: Likewise.
31665         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31666         * modules/unistr/u8-mbtoucr-tests: Likewise.
31667         * modules/unistr/u8-move-tests: Likewise.
31668         * modules/unistr/u8-next-tests: Likewise.
31669         * modules/unistr/u8-prev-tests: Likewise.
31670         * modules/unistr/u8-set-tests: Likewise.
31671         * modules/unistr/u8-stpcpy-tests: Likewise.
31672         * modules/unistr/u8-stpncpy-tests: Likewise.
31673         * modules/unistr/u8-strcat-tests: Likewise.
31674         * modules/unistr/u8-strcmp-tests: Likewise.
31675         * modules/unistr/u8-strcoll-tests: Likewise.
31676         * modules/unistr/u8-strcpy-tests: Likewise.
31677         * modules/unistr/u8-strdup-tests: Likewise.
31678         * modules/unistr/u8-strlen-tests: Likewise.
31679         * modules/unistr/u8-strmblen-tests: Likewise.
31680         * modules/unistr/u8-strmbtouc-tests: Likewise.
31681         * modules/unistr/u8-strncat-tests: Likewise.
31682         * modules/unistr/u8-strncmp-tests: Likewise.
31683         * modules/unistr/u8-strncpy-tests: Likewise.
31684         * modules/unistr/u8-strnlen-tests: Likewise.
31685         * modules/unistr/u8-to-u16-tests: Likewise.
31686         * modules/unistr/u8-to-u32-tests: Likewise.
31687         * modules/unistr/u8-uctomb-tests: Likewise.
31688         * modules/unistr/u16-check-tests: Likewise.
31689         * modules/unistr/u16-chr-tests: Likewise.
31690         * modules/unistr/u16-cmp-tests: Likewise.
31691         * modules/unistr/u16-cmp2-tests: Likewise.
31692         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31693         * modules/unistr/u16-cpy-tests: Likewise.
31694         * modules/unistr/u16-mblen-tests: Likewise.
31695         * modules/unistr/u16-mbsnlen-tests: Likewise.
31696         * modules/unistr/u16-mbtouc-tests: Likewise.
31697         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31698         * modules/unistr/u16-mbtoucr-tests: Likewise.
31699         * modules/unistr/u16-move-tests: Likewise.
31700         * modules/unistr/u16-next-tests: Likewise.
31701         * modules/unistr/u16-prev-tests: Likewise.
31702         * modules/unistr/u16-set-tests: Likewise.
31703         * modules/unistr/u16-stpcpy-tests: Likewise.
31704         * modules/unistr/u16-stpncpy-tests: Likewise.
31705         * modules/unistr/u16-strcat-tests: Likewise.
31706         * modules/unistr/u16-strcmp-tests: Likewise.
31707         * modules/unistr/u16-strcoll-tests: Likewise.
31708         * modules/unistr/u16-strcpy-tests: Likewise.
31709         * modules/unistr/u16-strdup-tests: Likewise.
31710         * modules/unistr/u16-strlen-tests: Likewise.
31711         * modules/unistr/u16-strmblen-tests: Likewise.
31712         * modules/unistr/u16-strmbtouc-tests: Likewise.
31713         * modules/unistr/u16-strncat-tests: Likewise.
31714         * modules/unistr/u16-strncmp-tests: Likewise.
31715         * modules/unistr/u16-strncpy-tests: Likewise.
31716         * modules/unistr/u16-strnlen-tests: Likewise.
31717         * modules/unistr/u16-to-u32-tests: Likewise.
31718         * modules/unistr/u16-to-u8-tests: Likewise.
31719         * modules/unistr/u16-uctomb-tests: Likewise.
31720         * modules/unistr/u32-check-tests: Likewise.
31721         * modules/unistr/u32-chr-tests: Likewise.
31722         * modules/unistr/u32-cmp-tests: Likewise.
31723         * modules/unistr/u32-cmp2-tests: Likewise.
31724         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31725         * modules/unistr/u32-cpy-tests: Likewise.
31726         * modules/unistr/u32-mblen-tests: Likewise.
31727         * modules/unistr/u32-mbsnlen-tests: Likewise.
31728         * modules/unistr/u32-mbtouc-tests: Likewise.
31729         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31730         * modules/unistr/u32-mbtoucr-tests: Likewise.
31731         * modules/unistr/u32-move-tests: Likewise.
31732         * modules/unistr/u32-next-tests: Likewise.
31733         * modules/unistr/u32-prev-tests: Likewise.
31734         * modules/unistr/u32-set-tests: Likewise.
31735         * modules/unistr/u32-stpcpy-tests: Likewise.
31736         * modules/unistr/u32-stpncpy-tests: Likewise.
31737         * modules/unistr/u32-strcat-tests: Likewise.
31738         * modules/unistr/u32-strcmp-tests: Likewise.
31739         * modules/unistr/u32-strcoll-tests: Likewise.
31740         * modules/unistr/u32-strcpy-tests: Likewise.
31741         * modules/unistr/u32-strdup-tests: Likewise.
31742         * modules/unistr/u32-strlen-tests: Likewise.
31743         * modules/unistr/u32-strmblen-tests: Likewise.
31744         * modules/unistr/u32-strmbtouc-tests: Likewise.
31745         * modules/unistr/u32-strncat-tests: Likewise.
31746         * modules/unistr/u32-strncmp-tests: Likewise.
31747         * modules/unistr/u32-strncpy-tests: Likewise.
31748         * modules/unistr/u32-strnlen-tests: Likewise.
31749         * modules/unistr/u32-to-u16-tests: Likewise.
31750         * modules/unistr/u32-to-u8-tests: Likewise.
31751         * modules/unistr/u32-uctomb-tests: Likewise.
31752         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31753         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31754         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31755         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31756         * modules/uniwidth/u8-strwidth-tests: Likewise.
31757         * modules/uniwidth/u8-width-tests: Likewise.
31758         * modules/uniwidth/u16-strwidth-tests: Likewise.
31759         * modules/uniwidth/u16-width-tests: Likewise.
31760         * modules/uniwidth/u32-strwidth-tests: Likewise.
31761         * modules/uniwidth/u32-width-tests: Likewise.
31762         * modules/uniwidth/width-tests: Likewise.
31763
31764 2010-05-18  Richard Jones  <rjones@redhat.com>
31765
31766         doc: users.txt: list hivex
31767         * users.txt: Add hivex.
31768
31769 2010-05-18  Richard Jones  <rjones@redhat.com>
31770
31771         doc: users.txt: list febootstrap
31772         * users.txt: Add febootstrap.
31773
31774 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31775
31776         bootstrap: fix an error when gnulib is not used as a git submodule
31777         * build-aux/bootstrap (gnulib_path): If its length is zero then
31778         assign "gnulib" to it.
31779         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31780
31781 2010-05-16  Bruno Haible  <bruno@clisp.org>
31782
31783         Avoid autoconf warnings about AM_ICONV.
31784         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31785         2.64.
31786
31787 2010-05-16  Bruno Haible  <bruno@clisp.org>
31788
31789         absolute-header: Make the macro usable in more situations.
31790         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31791         from gl_ABSOLUTE_HEADER.
31792         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31793
31794 2010-05-16  James Youngman  <jay@gnu.org>
31795
31796         doc: update users.txt
31797         * users.txt: Add CSSC.
31798
31799 2010-05-16  Jim Meyering  <meyering@redhat.com>
31800
31801         init.sh: fix an error in the previous change; add more comments
31802         * tests/init.sh: Compare exit code in loop against 9, not 2.
31803         Patch by Bruno Haible.
31804         Make the two tests more similar by adding an empty "then" clause.
31805         Add comments.
31806
31807         init.sh: avoid unnecessary shell re-exec
31808         * tests/init.sh: Improve the re-exec-required check to first test the
31809         current shell.  If it passes the test, do not search for a shell that
31810         does pass, and do not re-exec.  This test is particularly contorted to
31811         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31812         of $(...) evokes a syntax error and causes immediate shell exit with
31813         status 2.  Bruno Haible reported that the re-exec made it impossible
31814         to single-step through any init.sh-using script.
31815
31816 2010-05-16  Bruno Haible  <bruno@clisp.org>
31817
31818         Fix collision between gnulib's and libintl's printf replacements.
31819         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31820         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31821         (printf): When using GNU C, map the __printf__ function to rpl_printf
31822         via __asm__. When not using GNU C, define rpl_printf instead of
31823         __printf__.
31824         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31825         commit.
31826         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31827         commit.
31828         * m4/asm-underscore.m4: New file.
31829         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31830         * modules/stdio (Files): Add m4/asm-underscore.m4.
31831         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31832         Reported by Ben Pfaff.
31833
31834 2010-05-16  Bruno Haible  <bruno@clisp.org>
31835
31836         verify: Avoid skipping the test on openSUSE 11.0.
31837         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31838
31839 2010-05-13  Bruno Haible  <bruno@clisp.org>
31840
31841         Avoid useless warnings from G++.
31842         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31843         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31844         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31845
31846 2010-05-11  Jim Meyering  <meyering@redhat.com>
31847
31848         maint.mk: tweak preceding change
31849         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31850         regexps tighter by anchoring at EOL, and make the new group "shy"
31851         for slightly decreased overhead.
31852
31853 2010-05-11  Eric Blake  <eblake@redhat.com>
31854
31855         maint.mk: gnulib doesn't guarantee NSIG
31856         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31857
31858 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31859
31860         test-pwrite.c: Remove unused variable declaration.
31861         * tests/test-pwrite.c (main): Remove read_buf declaration.
31862
31863         Remove useless test-pwrite.sh file.
31864         * tests/test-pwrite.sh: Delete file.
31865         * modules/pwrite-tests: Remove references.
31866         Reported by Bruno Haible.
31867
31868 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31869
31870         init.sh: fix a typo
31871         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31872
31873 2010-05-10  Jim Meyering  <meyering@redhat.com>
31874
31875         maint.mk: avoid using a temporary file in the always-defined-macros check
31876         * top/maint.mk (.re-defmac): Remove rule.
31877         (gl_trap_): Remove definition.
31878         (sc_prohibit_always-defined_macros): Rewrite not to create and
31879         depend on a temporary file.  Instead, depend on GNU grep's ability
31880         to read a list of regular expressions from stdin when given "-f -".
31881
31882 2010-05-09  Bruno Haible  <bruno@clisp.org>
31883
31884         Update to GNU gettext 0.18, part 1.
31885         * m4/gettext.m4: Update to GNU gettext 0.18.
31886         * m4/intl.m4: Likewise.
31887         * m4/po.m4: Likewise.
31888         * modules/gettext (Files): Add m4/fcntl-o.m4.
31889         (configure.ac): Require gettext infrastructure from version 0.18.
31890
31891 2010-05-09  Jim Meyering  <meyering@redhat.com>
31892
31893         init.sh: enable MALLOC_PERTURB_
31894         * tests/init.sh: Enable glibc's malloc-perturbing option.
31895
31896         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31897         With my recent change in init.sh from the two-line form:
31898             -#   : ${srcdir=.}
31899             -#   . "$srcdir/init.sh"; path_prepend_ .
31900             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31901         I noticed that using the one-line form would cause this test
31902         to fail with a false-positive, or to stop working altogether,
31903         depending on whether help-version changed or all the tests did.
31904         * top/maint.mk (_hv_regex): Remove this definition.
31905         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31906         (_hv_regex_strong): Use a stronger regex to check for conformance.
31907         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31908         Give a separate diagnostic for lack of conforming use.
31909
31910         maint.mk: prohibit definition of symbols defined by gnulib
31911         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31912         definition of symbols defined by gnulib.
31913
31914 2010-05-09  Bruno Haible  <bruno@clisp.org>
31915
31916         acl: Avoid test failure on Cygwin-hosted mingw.
31917         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31918
31919 2010-05-09  Bruno Haible  <bruno@clisp.org>
31920
31921         error: Use system's fcntl function.
31922         * lib/error.c (fcntl): Undefine.
31923
31924 2010-05-09  Jim Meyering  <meyering@redhat.com>
31925
31926         verify: adjust formatting to be more consistent
31927         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31928         argument-list '('s, and after one comma.
31929
31930 2010-05-09  Bruno Haible  <bruno@clisp.org>
31931
31932         error: More reliable output on mingw.
31933         * lib/error.c: Include <windows.h>.
31934         (is_open): New function.
31935         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31936         defined.
31937
31938 2010-05-09  Bruno Haible  <bruno@clisp.org>
31939
31940         vasnprintf: Fix syntax errors in libintl build on mingw.
31941         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31942         pad_ourselves and prec_ourselves after use.
31943
31944 2010-05-08  Bruno Haible  <bruno@clisp.org>
31945
31946         * lib/config.charset: Update comments for Cygwin 1.7.
31947         * lib/localcharset.c: Likewise.
31948
31949 2010-05-07  Jim Meyering  <meyering@redhat.com>
31950
31951         init.sh: improve comments
31952         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31953         . "${srcdir=.}/init.sh"; path_prepend_ .
31954         Add a note about path_prepend_ and the alternative of using
31955         TESTS_ENVIRONMENT.
31956
31957 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31958
31959         exclude: Unescape hashed patterns in wildcard mode.
31960         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31961         to the hash list.
31962         * tests/test-exclude8.sh: New test case.
31963         * modules/exclude-tests: Add new test.
31964
31965 2010-05-05  Eric Blake  <eblake@redhat.com>
31966
31967         verify: automate tests
31968         * modules/verify-tests: New module.
31969         * tests/test-verify.sh: New file.
31970         * tests/test-verify.c: Guard each negative test with a unique id.
31971         Also avoid warning about unused left hand of comma expressions.
31972
31973 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31974
31975         Further improvements to verify.h, suggested by Eric Blake.
31976         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31977         the GL_* versions, to avoid collision with OpenGL.
31978         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31979         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31980         than testing merely whether it's defined.
31981
31982         Modify verify.h to pacify gcc -Wredundant_decls.
31983         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31984         These use the prefix "GL_" since they're likely to be useful elsewhere.
31985         We may need to break them out into a different .h file.
31986         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31987         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31988         of verify_function__.
31989
31990 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31991
31992         Tests for module pwrite.
31993         * modules/pwrite-tests: New file.
31994         * tests/test-pwrite.sh: New file.
31995         * tests/test-pwrite.c: New file.
31996
31997         New module pwrite.
31998         * lib/unistd.in.h (pwrite): New declaration.
31999         * lib/pwrite.c: New file, from glibc with modifications.
32000         * m4/pwrite.m4: New file.
32001         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32002         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32003         REPLACE_PWRITE.
32004         * modules/pwrite: New file.
32005         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32006         REPLACE_PWRITE.
32007         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32008         * doc/posix-functions/pwrite.texi: Mention the new module.
32009
32010 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32011
32012         pread: Update documentation.
32013         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32014
32015 2010-05-04  Eric Blake  <eblake@redhat.com>
32016
32017         docs: update cygwin progress
32018         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32019         this bug.
32020         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32021         Added in cygwin 1.7.2.
32022         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32023         Likewise.
32024         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32025         Likewise.
32026         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32027         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32028         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32029         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32030         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32031         Mention nproc module.
32032         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32033         bug in cygwin 1.7.5 addition.
32034         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32035         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32036         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32037         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32038         1.7.5.
32039         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32040         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32041         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32042         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32043         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32044         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32045         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32046         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32047         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32048         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32049         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32050         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32051         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32052         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32053         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32054         Likewise.
32055         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32056         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32057         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32058         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32059         Likewise.
32060         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32061         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32062         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32063         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32064         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32065         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32066         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32067         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32068         Likewise.
32069         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32070         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32071         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32072         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32073         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32074         Likewise.
32075         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32076         Likewise.
32077         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32078         Likewise.
32079         * doc/glibc-functions/xdrrec_endofrecord.texi
32080         (xdrrec_endofrecord): Likewise.
32081         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32082         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32083         Likewise.
32084         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32085         Likewise.
32086
32087 2010-05-04  Jim Meyering  <meyering@redhat.com>
32088
32089         gendocs.sh: make its "-s FILE" option more useful
32090         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32091         $PACKAGE to reflect the probably-different basename of "FILE".
32092
32093 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32094
32095         bootstrap: don't ignore download_po_files failure
32096         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32097         failure.
32098
32099 2010-05-03  Jim Meyering  <meyering@redhat.com>
32100
32101         maint.mk: allow to pass options to gendocs.sh
32102         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32103         (gendocs_options_): New overridable variable.
32104
32105         gnu-web-doc-update: don't ignore configure or build failure
32106         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32107
32108         announce-gen: backslash-escape '@'s in --help output
32109         * build-aux/announce-gen: Fix syntax errors.
32110
32111         maint.mk, announce-gen: allow project-specific announcement mail headers
32112         * top/maint.mk (translation_project_): Define default.
32113         (announcement_Cc_, announcement_mail_headers_): Likewise.
32114         (announcement): Invoke announce-gen with new --mail-headers option.
32115         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32116
32117         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32118         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32119         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32120         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32121         line in the "err2" output file when running "make check" in verbose
32122         mode (i.e., with set -x enabled).
32123
32124 2010-05-03  Bruno Haible  <bruno@clisp.org>
32125
32126         wctob: Fix for weird platforms.
32127         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32128         argument value.
32129
32130 2010-05-03  Jim Meyering  <meyering@redhat.com>
32131
32132         maint.mk: prohibit unwarranted use of <strings.h>
32133         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32134         strings.h in a file that does not also use strcasecmp, strncasecmp,
32135         ffs or ffsll.
32136
32137         maint.mk: remove obsolete comments
32138         * top/maint.mk: Remove stale, commented-out rules.
32139
32140 2010-05-02  Bruno Haible  <bruno@clisp.org>
32141
32142         wcwidth: Declare also when it's aliased.
32143         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32144         macro.
32145
32146 2010-05-02  Bruno Haible  <bruno@clisp.org>
32147
32148         Fix regression from 2010-04-25.
32149         * gnulib-tool (func_modules_transitive_closure): Check the status of
32150         all modules, not only of the tests that are of the form foo-tests where
32151         foo is a module.
32152
32153 2010-05-02  Bruno Haible  <bruno@clisp.org>
32154
32155         wctob: Work around nasty Cygwin 1.7.2 bug.
32156         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32157         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32158
32159 2010-05-01  Bruno Haible  <bruno@clisp.org>
32160
32161         fpurge: Sharper test.
32162         * tests/test-fpurge.c (main): Add one more ftell check.
32163         * modules/fpurge-tests (Depends-on): Add ftell.
32164         Suggested by Eric Blake.
32165
32166 2010-05-01  Bruno Haible  <bruno@clisp.org>
32167
32168         ftello: Another test.
32169         * tests/test-ftello3.c: New file.
32170         * modules/ftello-tests (Files): Add it.
32171         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32172         MOSTLYCLEANFILES.
32173
32174         ftell: Another test.
32175         * tests/test-ftell3.c: New file.
32176         * modules/ftell-tests (Files): Add it.
32177         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32178         MOSTLYCLEANFILES.
32179
32180 2010-05-01  Bruno Haible  <bruno@clisp.org>
32181
32182         ftell, ftello: Work around Solaris bug.
32183         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32184         * lib/ftello.c: Include stdio-impl.h.
32185         (ftello): On Solaris, when _IOWRT is set, compute the result without
32186         looking at _IOREAD.
32187         * modules/ftello (Files): Add lib/stdio-impl.h.
32188         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32189         * doc/posix-functions/ftello.texi: Likewise.
32190         Reported by Eric Blake.
32191
32192 2010-05-01  Bruno Haible  <bruno@clisp.org>
32193
32194         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32195         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32196         the _IOWRT flag is also set.
32197
32198 2010-05-01  Bruno Haible  <bruno@clisp.org>
32199
32200         Fix doc about a HP-UX stdio bug.
32201         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32202         * doc/posix-functions/ftello.texi: Likewise.
32203
32204 2010-05-01  Bruno Haible  <bruno@clisp.org>
32205
32206         lseek test: Fix failure on Solaris.
32207         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32208         output.
32209
32210 2010-04-30  Jim Meyering  <meyering@redhat.com>
32211
32212         bootstrap: don't ignore failure to generate po*/Makevars
32213         * build-aux/bootstrap (with_gettext): Don't ignore failure
32214         to create po/Makevars or runtime-po/Makevars.
32215
32216 2010-04-29  Eric Blake  <eblake@redhat.com>
32217
32218         headers: relax license to LGPLv2+
32219         * modules/fcntl-h (License): Relax license.
32220         * modules/getopt-posix (License): Likewise.
32221         * modules/locale (License): Likewise.
32222         * modules/math (License): Likewise.
32223         * modules/pty (License): Likewise.
32224         * modules/sched (License): Likewise.
32225         * modules/search (License): Likewise.
32226         * modules/spawn (License): Likewise.
32227         * modules/stdarg (License): Likewise.
32228         * modules/sysexits (License): Likewise.
32229
32230 2010-04-29  Jim Meyering  <meyering@redhat.com>
32231
32232         inttypes: relax license to LGPLv2+
32233         * modules/inttypes (License): Relax license.
32234
32235 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32236
32237         * top/maint.mk (indent): Run twice to produce idempotent results.
32238
32239 2010-04-28  Bruno Haible  <bruno@clisp.org>
32240
32241         getdate: Generate getdate.c in the source directory.
32242         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32243         MOSTLYCLEANFILES.
32244         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32245
32246 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32247
32248         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32249         is not declared as a const *; avoid warnings in that case.
32250
32251 2010-04-28  Eric Blake  <eblake@redhat.com>
32252
32253         canonicalize-lgpl: avoid compiler warning
32254         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32255         declaration' / 'extraneous semicolon' warning with some compilers.
32256         Reported by Andreas Gruenbacher.
32257
32258 2010-04-28  Jim Meyering  <meyering@redhat.com>
32259
32260         init.sh: ensure a more reliable exit status when exiting via trap
32261         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32262         Inspired by patches from Dmitry V. Levin.
32263         Also trap on signal 3 (SIGQUIT).
32264
32265 2010-04-27  Bruno Haible  <bruno@clisp.org>
32266
32267         Update doc about utimes().
32268         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32269         'utimens' module.
32270         Reported by Andreas Gruenbacher <agruen@suse.de>.
32271
32272 2010-04-27  Eric Blake  <eblake@redhat.com>
32273
32274         full-read, full-write: relax license
32275         * modules/full-read (License): Drop to LGPLv2+.
32276         * modules/full-write (License): Likewise.
32277         * modules/safe-read (License): Likewise.
32278         * modules/safe-write (License): Likewise.
32279
32280         pthread: mention library for linking
32281         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32282
32283 2010-04-27  Jim Meyering  <meyering@redhat.com>
32284
32285         maint.mk: fix a bug introduced in last change
32286         * top/maint.mk (gl_assured_headers_): Now that all names are on
32287         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32288         is not anchored to end of word, it should be adequate.
32289
32290         maint.mk: avoid side-effect in latest syntax-check
32291         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32292         to run commands via $(shell...), and hence to incur cost only when
32293         the new rule is actually run.
32294
32295         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32296         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32297         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32298         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32299         (gl_assured_headers_, az_, AZ_): Define.
32300         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32301
32302 2010-04-26  Jim Meyering  <jim@meyering.net>
32303             Bruno Haible  <bruno@clisp.org>
32304
32305         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32306         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32307         Prompted by an exchange with Gilles Espinasse.
32308
32309 2010-04-26  Jim Meyering  <meyering@redhat.com>
32310
32311         git-version-gen: aesthetic tweak
32312         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32313         so that the command remains on a single line.
32314
32315 2010-04-26  Eric Blake  <eblake@redhat.com>
32316
32317         git-version-gen: allow use on EBCDIC hosts
32318         * build-aux/git-version-gen (dirty): Use literal rather than tying
32319         ourselves to ascii.
32320         Reported by Steve Goetze.
32321
32322 2010-04-25  Bruno Haible  <bruno@clisp.org>
32323
32324         netdb: Add support for GNULIB_POSIXCHECK.
32325         * lib/netdb.in.h: Include warn-on-use.h.
32326         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32327         functions are used when GNULIB_POSIXCHECK is defined and the
32328         getaddrinfo module is not in use.
32329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32330         freeaddrinfo, gai_strerror, getnameinfo are declared.
32331         * modules/netdb (Depends-on): Add warn-on-use.
32332         (Makefile.am): Include warn-on-use.h in netdb.h.
32333
32334 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32335
32336         build: avoid "make check" failure without .git/ directory
32337         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32338         there is no .git/ directory.
32339
32340 2010-04-25  Bruno Haible  <bruno@clisp.org>
32341
32342         ptsname: Fix misuse of ttyname_r.
32343         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32344         of errno.
32345
32346 2010-04-25  Bruno Haible  <bruno@clisp.org>
32347
32348         ttyname_r: Make it work on Solaris 10.
32349         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32350         if the system function has the POSIX declaration. Test whether the
32351         function fails if the buffer is less than 128 bytes large.
32352         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32353         system's ttyname_r function. Provide a reasonably large buffer.
32354         * modules/ttyname_r (Depends-on): Add extensions.
32355         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32356
32357 2010-04-25  Bruno Haible  <bruno@clisp.org>
32358
32359         Use the 'extensions' module for some more functions on Solaris.
32360         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32361         module.
32362         * doc/posix-functions/ctime_r.texi: Likewise.
32363         * doc/posix-functions/getgrgid_r.texi: Likewise.
32364         * doc/posix-functions/getgrnam_r.texi: Likewise.
32365         * doc/posix-functions/getpwnam_r.texi: Likewise.
32366         * doc/posix-functions/getpwuid_r.texi: Likewise.
32367         * doc/posix-functions/readdir_r.texi: Likewise.
32368         * doc/posix-functions/sigwait.texi: Likewise.
32369         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32370         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32371
32372 2010-04-25  Bruno Haible  <bruno@clisp.org>
32373
32374         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32375         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32376         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32377         * lib/ttyname_r.c: Include <limits.h>.
32378         (ttyname_r): Define using the system's ttyname_r function, if it exists
32379         and not on Solaris.
32380         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32381         set.
32382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32383         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32384         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32385         Reported by Simon Josefsson.
32386
32387 2010-04-25  Bruno Haible  <bruno@clisp.org>
32388
32389         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32390         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32391         * doc/posix-functions/ctime_r.texi: Likewise.
32392         * doc/posix-functions/getgrgid_r.texi: Likewise.
32393         * doc/posix-functions/getgrnam_r.texi: Likewise.
32394         * doc/posix-functions/getlogin_r.texi: Likewise.
32395         * doc/posix-functions/getpwnam_r.texi: Likewise.
32396         * doc/posix-functions/getpwuid_r.texi: Likewise.
32397         * doc/posix-functions/readdir_r.texi: Likewise.
32398         * doc/posix-functions/sigwait.texi: Likewise.
32399         * doc/posix-functions/ttyname_r.texi: Likewise.
32400         Reported by Simon Josefsson.
32401
32402 2010-04-25  Bruno Haible  <bruno@clisp.org>
32403
32404         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32405         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32406         also to --create-testdir.
32407         (func_acceptable): Don't consider the status of *-tests modules here.
32408         (func_modules_transitive_closure): Consider it here, before including a
32409         test module.
32410         (func_import, func_create_testdir): Set inc_all_direct_tests,
32411         inc_all_indirect_tests.
32412         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32413         --create-testdir and --create-megatestdir.
32414
32415 2010-04-25  Bruno Haible  <bruno@clisp.org>
32416
32417         gnulib-tool: Add --without-*-tests options.
32418         * gnulib-tool (func_usage): Document the --without-*-tests options.
32419         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32420         excl_unportable_tests): New variables.
32421         Fail if they are specified with --import or --update.
32422         (func_acceptable): Respect the excl_*_tests variables.
32423         (func_import): Set the excl_*_tests variables to empty.
32424
32425 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32426             Bruno Haible  <bruno@clisp.org>
32427
32428         Work around a MacOS X 10.4 bug with openpty.
32429         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32430         * tests/test-openpty.c (main): Close the master side explicitly.
32431
32432 2010-04-25  Bruno Haible  <bruno@clisp.org>
32433
32434         strnlen: Fix a C++ test error on MacOS X and Solaris.
32435         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32436         the function is not declared.
32437         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32438         Simon Josefsson.
32439
32440 2010-04-24  Bruno Haible  <bruno@clisp.org>
32441
32442         Avoid a gcc warning.
32443         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32444         of correct type for %08lx directive.
32445         Reported by Eric Blake.
32446
32447 2010-04-24  Bruno Haible  <bruno@clisp.org>
32448
32449         vasnprintf: Correct errno value in case of out-of-memory.
32450         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32451         or sprintf. Use the errno value from SNPRINTF or sprintf.
32452         Reported by Ian Beckwith <ianb@erislabs.net>.
32453
32454 2010-04-24  Bruno Haible  <bruno@clisp.org>
32455
32456         ansi-c++-opt: Find correct compiler when cross-compiling.
32457         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32458         AC_CHECK_PROGS.
32459         Reported by Simon Josefsson.
32460
32461 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32462
32463         vc-list-files: Add support for subversion
32464         * build-aux/vc-list-files: Use "svn list" to generate the list of
32465         files controlled by subversion.
32466
32467 2010-04-23  Jim Meyering  <meyering@redhat.com>
32468
32469         vc-list-files tests: convert to use init.sh
32470         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32471         path_prepend_.
32472         Use Exit, not exit.
32473         Use skip_ rather than open coding it.
32474         Remove trap set-up and compare definitions.
32475         * tests/test-vc-list-files-git.sh: Likewise.
32476         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32477
32478 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32479
32480         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32481         backup files.
32482
32483 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32484
32485         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32486
32487 2010-04-20  Eric Blake  <eblake@redhat.com>
32488
32489         tests: be robust to ignored SIGPIPE
32490         * tests/test-select-in.sh: Consume all output.
32491         * tests/test-lseek.sh: Check correct exit status, while avoiding
32492         EPIPE.
32493
32494 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32495             Bruno Haible  <bruno@clisp.org>
32496
32497         visibility: Don't use -fvisibility if it leads to a warning.
32498         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32499         yes, don't pretend that visibility works if it leads to a warning.
32500         Reported by Mike Gran <spk121@yahoo.com>.
32501
32502 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32503
32504         * build-aux/bootstrap: Use "git -h" for testing for supported options
32505         instead of "git --help".  The short-form option only shows a summary,
32506         and doesn't layout the full man page.  Grep for the full option name
32507         in the summary, too.
32508
32509 2010-04-19  Bruno Haible  <bruno@clisp.org>
32510
32511         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32512         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32513         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32514         mention of RELOCATABLE_STRIP.
32515         Reported by Sylvain Beucler <beuc@beuc.net>.
32516
32517 2010-04-19  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/diffseq.h: Fix typo in comment.
32520         Reported by Eric Blake.
32521
32522 2010-04-19  Bruno Haible  <bruno@clisp.org>
32523
32524         ioctl: Move autoconf macro to a .m4 file.
32525         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32526         * modules/ioctl (Files): Add it.
32527         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32528         Reported by Ian Beckwith <ianb@erislabs.net>.
32529
32530 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32531             Bruno Haible  <bruno@clisp.org>
32532
32533         diffseq: Accommodate use-case with abstract arrays.
32534         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32535         is not defined.
32536         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32537         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32538
32539 2010-04-18  Bruno Haible  <bruno@clisp.org>
32540
32541         * doc/posix-headers/stdbool.texi: More precise wording.
32542
32543 2010-04-17  Jim Meyering  <meyering@redhat.com>
32544
32545         maint.mk: use gnu-style indentation in an embedded perl script
32546         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32547         Rename variable: s/two/last_two_bytes/
32548
32549 2010-04-16  Eric Blake  <eblake@redhat.com>
32550
32551         test-stdbool: skip test that fails with Solaris CC
32552         * tests/test-stdbool.c (f): Skip test that causes compilation
32553         error under buggy C++ compiler.
32554         * lib/stdbool.in.h: Document the limitation.
32555         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32556
32557         setenv: allow compilation with C++
32558         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32559         register keyword.
32560
32561         stdint: allow test to pass with C++
32562         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32563
32564         getopt: allow compilation with C++
32565         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32566         struct.
32567         * lib/getopt.c (_getopt_internal_r): Use correct type.
32568         Reported by Dagobert Michelson, via Joel E. Denny.
32569
32570 2010-04-16  Bruno Haible  <bruno@clisp.org>
32571
32572         Override netdb.h always.
32573         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32574         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32575         Reported by Ludovic Courtès <ludo@gnu.org>.
32576
32577 2010-04-15  Bruno Haible  <bruno@clisp.org>
32578
32579         openpty: Fix mistake from 2010-03-21.
32580         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32581         Reported by Simon Josefsson.
32582
32583 2010-04-15  Eric Blake  <eblake@redhat.com>
32584
32585         test-forkpty: fix expected signature
32586         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32587         Reported by Simon Josefsson.
32588
32589 2010-04-15  Jim Meyering  <meyering@redhat.com>
32590
32591         maint.mk: texinfo_suffix_re_: correct the default regexp
32592         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32593
32594         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32595         make it configurable via texinfo_suffix_re_.
32596
32597 2010-04-14  Eric Blake  <eblake@redhat.com>
32598
32599         strtok_r: relax license to LGPLv2+
32600         * modules/strtok_r (License): Relax license.
32601         Reported by Matthias Bolte.
32602
32603 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32604
32605         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32606         version 1.4.4 by default instead of requiring the libgcrypt
32607         version used during build.  This makes it possible to use the
32608         application with older but still binary compatible libgcrypt
32609         versions.
32610
32611 2010-04-13  Eric Blake  <eblake@redhat.com>
32612
32613         getopt-gnu: match recent glibc fixes and posix ruling
32614         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32615         '+' handling, when requesting extensions.
32616         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32617         'W;' handling.
32618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32619         * doc/posix-functions/getopt.texi (getopt): Document this.
32620         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32621         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32622         Likewise.
32623
32624         getopt: merge bug fixes from glibc
32625         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32626         diagnostics.  Honor '+:' correctly.  Reject ';'.
32627
32628         getopt-posix: detect MacOS bug
32629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32630         optind when missing a required argument.
32631         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32632         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32633         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32634         Likewise.
32635
32636         getopt-posix: avoid spurious failure on Solaris
32637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32638         an indicator that setting optind=1 is sufficient for reset.
32639
32640         getopt-posix: avoid spurious failure on FreeBSD
32641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32642         in POSIX mode, since the m4 test uses it.
32643
32644         gnulib-tool: silence warning on BSD sh
32645         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32646
32647 2010-04-13  Jim Meyering  <meyering@redhat.com>
32648
32649         doc: users.txt: GNU patch now uses gnulib
32650         * users.txt: Add patch.
32651
32652 2010-04-12  Jim Meyering  <meyering@redhat.com>
32653
32654         maint.mk: generate more concise timing data for syntax-check rules
32655         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32656         " done" from each line that reports a syntax-check test duration.
32657
32658 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32659
32660         git-version-gen: use "git update-index..." rather than "git status"
32661         * build-aux/git-version-gen: Use git update-index --refresh, not
32662         "git status".  With some versions of git, "git status" would fail
32663         to update the index and result in an unwarranted "-dirty" suffix.
32664
32665 2010-04-11  Jim Meyering  <meyering@redhat.com>
32666
32667         openat: correct formatting (no semantic change)
32668         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32669         Suggested by Bruno Haible.
32670
32671 2010-04-11  Bruno Haible  <bruno@clisp.org>
32672
32673         Stricter declaration checking in testdirs.
32674         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32675         If for_tests is true, augment AM_CPPFLAGS to define
32676         GNULIB_STRICT_CHECKING.
32677         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32678         GNULIB_STRICT_CHECKING is defined, verify that the function is
32679         declared.
32680
32681 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32682             Bruno Haible  <bruno@clisp.org>
32683
32684         libunistring: Improve configure output.
32685         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32686         Don't say "consider installing GNU libunistring" when checking again
32687         with libiconv.
32688
32689 2010-04-11  Bruno Haible  <bruno@clisp.org>
32690
32691         libunistring: Correct value of $LTLIBUNISTRING.
32692         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32693         correct the value of $LTLIBUNISTRING.
32694
32695 2010-04-11  Bruno Haible  <bruno@clisp.org>
32696
32697         havelib: Add static libraries to LIBS in the right order.
32698         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32699         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32700
32701 2010-04-11  Bruno Haible  <bruno@clisp.org>
32702
32703         libunistring: Detect libunistring also when it depends on libiconv.
32704         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32705         the second AC_LIB_HAVE_LINKFLAGS invocation.
32706
32707 2010-04-11  James Youngman  <jay@gnu.org>
32708
32709         close-stream: declare local scalars to be "const"
32710         * lib/close-stream.c (close_stream): Make boolean variables const
32711         to document the fact that we set but do not change them.
32712
32713 2010-04-11  Bruno Haible  <bruno@clisp.org>
32714
32715         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32716
32717 2010-04-11  Jim Meyering  <meyering@redhat.com>
32718
32719         maint.mk: don't include dist-check.mk
32720         * top/maint.mk: Remove bogus include directive.
32721
32722         maint.mk: improve empty-line-at-EOF check
32723         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32724         solution, rather than tail+Perl-based one.  The latter would read
32725         a few kilobytes from the end of each file, and did not handle empty
32726         files properly.
32727
32728         maint.mk: print the elapsed time for each syntax-check rule
32729         * top/maint.mk (sc_m_rules_): Save start time in a file.
32730         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32731         (local-check): Interpose the .z rules
32732
32733 2010-04-11  Jim Meyering  <meyering@redhat.com>
32734
32735         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32736         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32737         empty file with one that ends in an empty line.
32738
32739 2010-04-10  Bruno Haible  <bruno@clisp.org>
32740
32741         mkdir: Make it work on mingw64.
32742         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32743         * lib/mkdir.c: Update comment.
32744         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32745
32746 2010-04-10  Bruno Haible  <bruno@clisp.org>
32747
32748         Don't override improved macro from newer autoconf.
32749         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32750         autoconf >= 2.62.
32751         Reported by Joel E. Denny <jdenny@clemson.edu>.
32752
32753 2010-04-10  Jim Meyering  <meyering@redhat.com>
32754
32755         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32756         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32757
32758         maint.mk: correct a diagnostic
32759         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32760         in diagnostic; now use $prohibit.
32761
32762 2010-04-10  Bruno Haible  <address@hidden>
32763
32764         fchownat: Fix a C++ test error on Solaris 8.
32765         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32766         the function does not exist.
32767
32768 2010-04-10  Bruno Haible  <bruno@clisp.org>
32769
32770         vasnprintf: Add more tests.
32771         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32772         (test_function): Test converting an invalid wide string.
32773
32774         vasnprintf: Correct handling of unconvertible wide string arguments.
32775         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32776         VASNPRINTF.
32777         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32778         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32779         smaller than the expected maximum need for the directive. Set errno to
32780         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32781         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32783         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32784         * modules/vasnprintf (Files): Add m4/printf.m4.
32785         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32786
32787 2010-04-10  Bruno Haible  <bruno@clisp.org>
32788
32789         vasnprintf: Fix crash in %ls directive.
32790         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32791         string is passed as argument to %ls, with no precision and no width.
32792         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32793
32794 2010-04-10  Bruno Haible  <bruno@clisp.org>
32795
32796         vasnprintf: Fix multiple test failures on mingw.
32797         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32798         _snprintf, or snwprintf, not _snwprintf.
32799
32800 2010-04-10  Bruno Haible  <bruno@clisp.org>
32801
32802         write: Fix a C++ test error on mingw.
32803         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32804
32805 2010-04-10  Bruno Haible  <bruno@clisp.org>
32806
32807         vasnprintf test: Reduce code duplication.
32808         * tests/test-vasnprintf.c (test_function): New function, extracted from
32809         test_vasnprintf.
32810         (test_vasnprintf, test_asnprintf): Invoke it.
32811
32812 2010-04-10  Bruno Haible  <bruno@clisp.org>
32813
32814         strnlen: Fix warning in C++ mode on MacOS X.
32815         * lib/string.in.h (strnlen): Use the modern idiom.
32816         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32817         defining strnlen as a macro already in <config.h>.
32818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32819         REPLACE_STRNLEN.
32820         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32821         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32822
32823 2010-04-08  James Youngman  <jay@gnu.org>
32824
32825         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32826         the example.
32827
32828 2010-04-09  Jim Meyering  <meyering@redhat.com>
32829
32830         maint.mk: print better diagnostic when there is no $(_hv_file)
32831         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32832         announce that when $(_hv_file) (aka help-version) does not exist.
32833
32834         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32835         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32836         not try to interpret its random input bytes.  Jarno Rajahalme reported
32837         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32838         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32839         (mktempd_): Likewise, just in case.
32840
32841         ftruncate: add two years to projected module removal date: 2012
32842         * m4/ftruncate.m4: Adjust comments.
32843
32844         ftruncate: mark module as obsolete; even MinGW provides it, now
32845         * modules/ftruncate (Status): Obsolete.
32846         (Notice): Say that.
32847         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32848         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32849
32850 2010-04-08  Bruno Haible  <bruno@clisp.org>
32851
32852         Fix side effects from tests-related modules.
32853         * modules/dprintf-posix (Comment): New section.
32854         * modules/fprintf-posix (Comment): Likewise.
32855         * modules/obstack-printf-posix (Comment): Likewise.
32856         * modules/printf-posix (Comment): Likewise.
32857         * modules/snprintf-posix (Comment): Likewise.
32858         * modules/sprintf-posix (Comment): Likewise.
32859         * modules/vasnprintf-posix (Comment): Likewise.
32860         * modules/vasprintf-posix (Comment): Likewise.
32861         * modules/vdprintf-posix (Comment): Likewise.
32862         * modules/vfprintf-posix (Comment): Likewise.
32863         * modules/vprintf-posix (Comment): Likewise.
32864         * modules/vsnprintf-posix (Comment): Likewise.
32865         * modules/vsprintf-posix (Comment): Likewise.
32866         * modules/xprintf-posix (Comment): Likewise.
32867         * modules/xvasprintf-posix (Comment): Likewise.
32868         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32869         * modules/floorf-tests (Depends-on): Likewise.
32870         * modules/round-tests (Depends-on): Likewise.
32871         * modules/roundf-tests (Depends-on): Likewise.
32872         * modules/trunc-tests (Depends-on): Likewise.
32873         * modules/truncf-tests (Depends-on): Likewise.
32874         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32875         'fprintf-posix' module is not present.
32876         * tests/test-floorf2.c (check): Likewise.
32877         * tests/test-trunc2.c (check): Likewise.
32878         * tests/test-truncf2.c (check): Likewise.
32879         * tests/test-round2.c (equal): Likewise.
32880         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32881
32882 2010-04-07  Karl Berry  <karl@gnu.org>
32883
32884         * config/srclist.txt,
32885         * config/srclistvars.sh,
32886         * config/srclist-update: doc fixes.
32887
32888 2010-04-07  Jim Meyering  <meyering@redhat.com>
32889
32890         maint.mk: add a PATH crosschecking syntax-check rule
32891         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32892         Useful if you use a test like the one in help-version (coreutils,
32893         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32894         printed by prog --version.
32895
32896 2010-04-06  Bruno Haible  <bruno@clisp.org>
32897
32898         Fix link error on mingw.
32899         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32900         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32901
32902 2010-04-06  Bruno Haible  <bruno@clisp.org>
32903
32904         Assume rmdir exists.
32905         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32906
32907 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32908
32909         doc: update users.txt
32910         * users.txt: Add gcal.
32911
32912 2010-04-06  Jim Meyering  <meyering@redhat.com>
32913
32914         init.sh: simply unset TMPDIR rather than risking env -i
32915         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32916         although it probably works fine on all Unix-based systems, some
32917         systems (Cygwin?) cannot tolerate a totally cleared environment.
32918         Suggestion from Eric Blake.
32919
32920 2010-04-06  Jim Meyering  <meyering@redhat.com>
32921
32922         init.sh: portability fix: use env's POSIX-specified -i option not -u
32923         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32924         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32925
32926 2010-04-05  Bruno Haible  <bruno@clisp.org>
32927
32928         btowc: Work around Cygwin 1.7.2 bug.
32929         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32930         does not map NUL to 0.
32931         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32932
32933 2010-04-05  Bruno Haible  <bruno@clisp.org>
32934
32935         Make the multithread modules work on Cygwin 1.7.2.
32936         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32937         imported symbols can be declared weak, so that it returns "no" on
32938         Cygwin 1.7.2.
32939
32940 2010-04-05  Bruno Haible  <bruno@clisp.org>
32941
32942         Use the module 'strncat'.
32943         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32944
32945         Tests for module 'strncat'.
32946         * modules/strncat-tests: New file.
32947         * tests/test-strncat.c: New file.
32948
32949         New module 'strncat'.
32950         * lib/string.in.h (strncat): New declaration.
32951         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32952         * m4/strncat.m4: New file, based on m4/memchr.m4.
32953         * modules/strncat: New file.
32954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32955         is declared.
32956         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32957         REPLACE_STRNCAT.
32958         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32959         REPLACE_STRNCAT.
32960         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32961         module.
32962         * tests/test-string-c++.cc: Check signature of strncat.
32963
32964 2010-04-05  Jim Meyering  <meyering@redhat.com>
32965
32966         xstrtoumax-tests: convert to use init.sh
32967         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32968         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32969         Use Exit, not exit.
32970         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32971
32972         xstrtoimax-tests: convert to use init.sh
32973         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32974         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32975         Use Exit, not exit.
32976         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32977
32978 2010-04-05  Bruno Haible  <bruno@clisp.org>
32979
32980         sys_socket: Avoid #define replacements in C++ mode.
32981         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32982         warning to the function if possible, rather than #defining the symbol
32983         to a dysfunctional alias.
32984
32985 2010-04-05  Bruno Haible  <bruno@clisp.org>
32986
32987         fseeko: Fix C++ test error on mingw.
32988         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32989         gl_FUNC_FSEEKO.
32990         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32991         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32993         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32994
32995 2010-04-05  Bruno Haible  <bruno@clisp.org>
32996
32997         duplocale: Improve test output.
32998         * tests/test-duplocale.c (main): Print reason for skipped test.
32999
33000 2010-04-05  Bruno Haible  <bruno@clisp.org>
33001
33002         Assume rmdir exists.
33003         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33004         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33005
33006 2010-04-05  Bruno Haible  <bruno@clisp.org>
33007
33008         Fix link error on Solaris 8 with cc.
33009         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33010
33011 2010-04-05  Bruno Haible  <bruno@clisp.org>
33012
33013         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33014         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33015
33016 2010-04-05  Bruno Haible  <bruno@clisp.org>
33017
33018         vasprintf: Update documentation.
33019         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33020
33021 2010-04-05  Bruno Haible  <bruno@clisp.org>
33022
33023         ptsname: Improve test.
33024         * tests/test-ptsname.c (main): Also try the various master names of BSD
33025         systems.
33026
33027 2010-04-05  Bruno Haible  <bruno@clisp.org>
33028
33029         memchr: Avoid a possible C++ test error.
33030         * lib/string.in.h (memchr): Provide declaration if function is missing.
33031         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33032         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33034         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33035
33036 2010-04-05  Bruno Haible  <bruno@clisp.org>
33037
33038         strtok_r: Improve idiom.
33039         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33040         AC_LIBOBJ is used.
33041
33042 2010-04-05  Bruno Haible  <bruno@clisp.org>
33043
33044         strdup: Improve idiom.
33045         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33046         AC_LIBOBJ is used.
33047         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33048         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33049         when AC_LIBOBJ is used.
33050
33051 2010-04-05  Bruno Haible  <bruno@clisp.org>
33052
33053         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33054         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33055         don't set REPLACE_MBSINIT to 1.
33056         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33057         don't set REPLACE_MBRTOWC to 1.
33058         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33059         exist, don't set REPLACE_MBSRTOWCS to 1.
33060         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33061         exist, don't set REPLACE_MBSNRTOWCS to 1.
33062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33063         don't set REPLACE_WCRTOMB to 1.
33064         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33065         exist, don't set REPLACE_WCSRTOMBS to 1.
33066         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33067         exist, don't set REPLACE_WCSNRTOMBS to 1.
33068
33069 2010-04-05  Bruno Haible  <bruno@clisp.org>
33070
33071         ldexpl: Improve idiom.
33072         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33073         make sure to set HAVE_DECL_LDEXPL to 0.
33074
33075 2010-04-05  Jim Meyering  <meyering@redhat.com>
33076
33077         xstrtol-tests: convert to use init.sh
33078         * modules/xstrtol-tests (Files): Add tests/init.sh.
33079         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33080         Use Exit, not exit.
33081         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33082
33083         atexit-tests: convert to use init.sh
33084         * modules/atexit-tests (Files): Add tests/init.sh.
33085         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33086         Use Exit, not exit.
33087         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33088
33089         init.sh: fix typo
33090         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33091
33092         init.sh: make it easier for a test script to write to the tty, ...
33093         when using automake's parallel-tests mode.
33094         * tests/init.sh (stderr_fileno_): Define overridable variable.
33095         (warn_): New function, to use it.
33096         (fail_, skip_, framework_failure_): Use warn_.
33097
33098 2010-04-04  Bruno Haible  <bruno@clisp.org>
33099
33100         btowc: Avoid warning.
33101         * lib/btowc.c: Include <stdlib.h>.
33102         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33103
33104 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33105             Bruno Haible  <bruno@clisp.org>
33106
33107         wchar: Port to NetBSD 1.5.
33108         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33109         * lib/wctype.in.h (WEOF): Likewise.
33110
33111 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33112             Bruno Haible  <bruno@clisp.org>
33113
33114         Port extended stdio to NetBSD 1.5.
33115         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33116         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33117         older.
33118
33119 2010-04-04  Bruno Haible  <bruno@clisp.org>
33120
33121         string: Remove unused substitution.
33122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33123         HAVE_DECL_STRERROR.
33124         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33125
33126 2010-04-04  Bruno Haible  <bruno@clisp.org>
33127
33128         strtod: Avoid a possible C++ test error.
33129         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33130         set REPLACE_STRTOD.
33131
33132 2010-04-04  Bruno Haible  <bruno@clisp.org>
33133
33134         strerror: Update documentation.
33135         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33136
33137 2010-04-04  Bruno Haible  <bruno@clisp.org>
33138
33139         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33140         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33141         _GL_CXXALIAS_SYS_CAST.
33142
33143 2010-04-04  Bruno Haible  <bruno@clisp.org>
33144
33145         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33146         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33147         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33148         REPLACE_FREXPL to 1.
33149         * doc/posix-functions/frexpl.texi: Update documentation.
33150
33151 2010-04-04  Bruno Haible  <bruno@clisp.org>
33152
33153         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33154         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33155
33156 2010-04-04  Bruno Haible  <bruno@clisp.org>
33157
33158         Implement nanosleep for native Windows.
33159         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33160
33161 2010-04-04  Bruno Haible  <bruno@clisp.org>
33162
33163         math: Fix some C++ test errors on Solaris 8.
33164         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33165
33166 2010-04-04  Bruno Haible  <bruno@clisp.org>
33167
33168         math: Fix some C++ test errors on Cygwin.
33169         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33170         truncl): Provide declaration if the system does not have it.
33171         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33172         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33173         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33174         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33175         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33176         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33177         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33178         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33179         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33180         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33181         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33182         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33183         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33184         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33185         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33186         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33188         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33189         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33190         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33191         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33192         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33193
33194 2010-04-04  Bruno Haible  <bruno@clisp.org>
33195
33196         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33197         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33198         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33199         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33200         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33201         * m4/isinf.m4 (gl_ISINF): Likewise.
33202         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33203
33204 2010-04-04  Bruno Haible  <bruno@clisp.org>
33205
33206         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33207         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33208
33209 2010-04-04  Bruno Haible  <bruno@clisp.org>
33210
33211         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33212         * modules/tmpfile (configure.ac): Update.
33213
33214         tmpfile: Fix C++ test error on mingw.
33215         * lib/stdio.in.h (tmpfile): New declaration.
33216         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33217         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33218         * modules/tmpfile (Depends-on): Add stdio.
33219         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33220         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33221         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33222         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33223         REPLACE_TMPFILE.
33224         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33225
33226 2010-04-04  Bruno Haible  <bruno@clisp.org>
33227
33228         ioctl: Fix C++ test error on mingw.
33229         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33230         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33231         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33232
33233 2010-04-03  Bruno Haible  <bruno@clisp.org>
33234
33235         wcwidth: Fix C++ test error on mingw.
33236         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33238         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33239
33240 2010-04-03  Bruno Haible  <bruno@clisp.org>
33241
33242         nanosleep: Fix C++ test error on mingw.
33243         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33244         * lib/time.in.h (nanosleep): Use modern idiom.
33245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33246         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33247         REPLACE_NANOSLEEP to 1.
33248         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33249         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33250
33251 2010-04-03  Bruno Haible  <bruno@clisp.org>
33252
33253         strptime: Fix C++ test error on mingw.
33254         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33255         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33256         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33257         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33258         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33259         not REPLACE_STRPTIME.
33260         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33261         REPLACE_STRPTIME.
33262
33263 2010-04-03  Bruno Haible  <bruno@clisp.org>
33264
33265         timegm: Fix C++ test error on mingw.
33266         * lib/time.in.h (timegm): Use modern idiom.
33267         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33268         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33270         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33271
33272 2010-04-03  Bruno Haible  <bruno@clisp.org>
33273
33274         timegm: Assume declaration if function exists.
33275         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33276         if it exists. Don't clobber ac_cv_func_timegm.
33277
33278 2010-04-03  Bruno Haible  <bruno@clisp.org>
33279
33280         time_r: Fix C++ test error on mingw.
33281         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33282         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33283         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33284         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33285         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33286
33287 2010-04-03  Bruno Haible  <bruno@clisp.org>
33288
33289         time_r: Minor updates.
33290         * modules/time_r (Description): Mention the provided functions.
33291         * lib/time_r.c: Don't include <string.h>.
33292         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33293         * doc/posix-functions/localtime_r.texi: Likewise.
33294
33295 2010-04-03  Bruno Haible  <bruno@clisp.org>
33296
33297         time: Fix regression introduced on 2010-03-08.
33298         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33299         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33300
33301 2010-04-03  Jim Meyering  <meyering@redhat.com>
33302
33303         maint.mk: don't silently disable project-specific syntax-check rules
33304         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33305         that they need to convert their project-specific syntax-check rules
33306         to use the new _sc_search_regexp.
33307
33308 2010-04-03  Bruno Haible  <bruno@clisp.org>
33309
33310         fchdir: Fix regression introduced on 2010-03-08.
33311         * lib/unistd.in.h (fchdir): Fix declaration.
33312         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33314         REPLACE_FCHDIR.
33315         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33316         REPLACE_FCHDIR.
33317
33318 2010-04-03  Bruno Haible  <bruno@clisp.org>
33319
33320         getpagesize: Fix C++ test error on mingw.
33321         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33322         system does not declare the function.
33323         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33324         declared.
33325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33326         HAVE_DECL_GETPAGESIZE.
33327         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33328
33329 2010-04-03  Bruno Haible  <bruno@clisp.org>
33330
33331         stdio: Make C++ tests work on mingw.
33332         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33333         does not declare the function.
33334
33335 2010-04-03  Bruno Haible  <bruno@clisp.org>
33336
33337         ftello: Fix C++ test error on mingw.
33338         * lib/stdio.in.h (ftello): Use modern idiom.
33339         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33340         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33341         is missing and that it needs to be replaced.
33342         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33344         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33345
33346 2010-04-03  Bruno Haible  <bruno@clisp.org>
33347
33348         fseeko: Fix C++ test error on mingw.
33349         * lib/stdio.in.h (fseeko): Use modern idiom.
33350         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33351         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33352         is missing and that it needs to be replaced.
33353         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33355         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33356
33357 2010-04-03  Bruno Haible  <bruno@clisp.org>
33358
33359         mkstemp: Fix C++ test error on mingw.
33360         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33362         function is missing and that it needs to be replaced.
33363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33364         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33365
33366 2010-04-03  Bruno Haible  <bruno@clisp.org>
33367
33368         stpncpy: Fix C++ test error on mingw.
33369         * lib/string.in.h (stpncpy): Use modern idiom.
33370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33371         function is missing and that it needs to be replaced.
33372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33373         REPLACE_STPNCPY.
33374         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33375
33376 2010-04-03  Bruno Haible  <bruno@clisp.org>
33377
33378         sys_stat: Fix C++ test error on mingw.
33379         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33380         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33381
33382 2010-04-03  Bruno Haible  <bruno@clisp.org>
33383
33384         pty: Update doc.
33385         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33386
33387 2010-04-03  Bruno Haible  <bruno@clisp.org>
33388
33389         unistd: Fix C++ test error on mingw.
33390         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33391
33392 2010-04-03  Bruno Haible  <bruno@clisp.org>
33393
33394         Update doc regarding mingw.
33395         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33396         * doc/glibc-functions/login_tty.texi: Likewise.
33397         * doc/glibc-functions/forkpty.texi: Likewise.
33398
33399 2010-04-03  Bruno Haible  <bruno@clisp.org>
33400
33401         stdlib: Avoid compilation failure of c-strtold on mingw.
33402         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33403
33404 2010-04-03  Bruno Haible  <bruno@clisp.org>
33405
33406         locale: Make C++ tests work on Cygwin and mingw.
33407         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33408         cannot provide the function.
33409         Reported by Simon Josefsson.
33410
33411 2010-04-03  Bruno Haible  <bruno@clisp.org>
33412
33413         localename: Port to MacOS X 10.6.
33414         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33415         memory layout of the locales in MacOS X 10.6 as well.
33416         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33417
33418 2010-04-02  Bruno Haible  <bruno@clisp.org>
33419
33420         gnulib-tool: Ensure that long-running tests are executed last.
33421         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33422         running tests after the one for the other tests.
33423
33424 2010-04-02  Bruno Haible  <bruno@clisp.org>
33425
33426         gnulib-tool: Ensure the tests in the main directory are executed first.
33427         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33428         start with the current directory.
33429
33430 2010-04-02  Bruno Haible  <bruno@clisp.org>
33431
33432         Tests for module 'havelib', moved here from GNU gettext.
33433         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33434         modifications.
33435         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33436         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33437         with modifications.
33438         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33439         modifications.
33440         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33441         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33442         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33443         with modifications.
33444         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33445         with modifications.
33446         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33447         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33448         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33449         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33450         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33451         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33452         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33453         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33454         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33455         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33456         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33457         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33458         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33459         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33460         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33461         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33462         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33463         with modifications.
33464         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33465         with modifications.
33466         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33467         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33468         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33469         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33470         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33471         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33472         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33473         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33474         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33475         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33476         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33477         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33478         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33479         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33480         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33481         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33482         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33483         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33484         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33485         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33486         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33487         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33488         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33489         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33490         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33491         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33492         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33493         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33494         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33495         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33496         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33497         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33498         * tests/havelib/rpathx/rpathx.c: New file, from
33499         gettext/autoconf-lib-link.
33500         * tests/havelib/rpathx/Makefile.am: New file, from
33501         gettext/autoconf-lib-link.
33502         * tests/havelib/rpathx/configure.ac: New file, from
33503         gettext/autoconf-lib-link with modifications.
33504         * tests/havelib/rpathy/rpathy.c: New file, from
33505         gettext/autoconf-lib-link.
33506         * tests/havelib/rpathy/Makefile.am: New file, from
33507         gettext/autoconf-lib-link.
33508         * tests/havelib/rpathy/configure.ac: New file, from
33509         gettext/autoconf-lib-link with modifications.
33510         * tests/havelib/rpathz/rpathz.c: New file, from
33511         gettext/autoconf-lib-link.
33512         * tests/havelib/rpathz/Makefile.am: New file, from
33513         gettext/autoconf-lib-link.
33514         * tests/havelib/rpathz/configure.ac: New file, from
33515         gettext/autoconf-lib-link with modifications.
33516         * tests/havelib/rpathlx/usex.c: New file, from
33517         gettext/autoconf-lib-link.
33518         * tests/havelib/rpathlx/Makefile.am: New file, from
33519         gettext/autoconf-lib-link.
33520         * tests/havelib/rpathlx/configure.ac: New file, from
33521         gettext/autoconf-lib-link with modifications.
33522         * tests/havelib/rpathly/usey.c: New file, from
33523         gettext/autoconf-lib-link.
33524         * tests/havelib/rpathly/Makefile.am: New file, from
33525         gettext/autoconf-lib-link.
33526         * tests/havelib/rpathly/configure.ac: New file, from
33527         gettext/autoconf-lib-link with modifications.
33528         * tests/havelib/rpathlz/usez.c: New file, from
33529         gettext/autoconf-lib-link.
33530         * tests/havelib/rpathlz/Makefile.am: New file, from
33531         gettext/autoconf-lib-link.
33532         * tests/havelib/rpathlz/configure.ac: New file, from
33533         gettext/autoconf-lib-link with modifications.
33534         * tests/havelib/rpathlyx/usey.c: New file, from
33535         gettext/autoconf-lib-link.
33536         * tests/havelib/rpathlyx/Makefile.am: New file, from
33537         gettext/autoconf-lib-link.
33538         * tests/havelib/rpathlyx/configure.ac: New file, from
33539         gettext/autoconf-lib-link with modifications.
33540         * tests/havelib/rpathlzyx/usez.c: New file, from
33541         gettext/autoconf-lib-link.
33542         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33543         gettext/autoconf-lib-link.
33544         * tests/havelib/rpathlzyx/configure.ac: New file, from
33545         gettext/autoconf-lib-link with modifications.
33546         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33547         with modifications.
33548
33549 2010-04-02  Bruno Haible  <bruno@clisp.org>
33550
33551         gnulib-tool: Create distributed built sources also for the tests.
33552         * gnulib-tool (func_create_testdir): Also generate distributed built
33553         sources in the tests directory.
33554
33555 2010-04-02  Bruno Haible  <bruno@clisp.org>
33556
33557         gnulib-tool: Obey user's environment variables.
33558         * gnulib-tool (func_create_testdir): When creating built sources,
33559         respect the environment variables for autoconf, automake, etc. given by
33560         the user.
33561
33562 2010-04-02  Bruno Haible  <bruno@clisp.org>
33563
33564         gnulib-tool: Provide the value of --m4-base to modules.
33565         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33566         of gl_m4_base.
33567
33568 2010-04-02  Eric Blake  <eblake@redhat.com>
33569
33570         maint.mk: fix some fallout
33571         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33572         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33573
33574 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33575
33576         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33577         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33578         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33579         (sc_cast_of_x_alloc_return_value): Likewise.
33580         (sc_cast_of_alloca_return_value): Likewise.
33581         (sc_space_tab): Likewise.
33582         (sc_prohibit_atoi_atof): Likewise.
33583         (sc_prohibit_magic_number_exit): Likewise.
33584         (sc_error_exit_success): Likewise.
33585         (sc_file_system): Likewise.
33586         (sc_prohibit_have_config_h): Likewise.
33587         (sc_require_config_h): Likewise.
33588         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33589         (sc_obsolete_symbols): Likewise.
33590         (sc_changelog): Likewise.
33591         (sc_program_name): Likewise.
33592         (sc_the_the): Likewise.
33593         (sc_trailing_blank): Likewise.
33594         (sc_two_space_separator_in_usage): Likewise.
33595         (sc_useless_cpp_parens): Likewise.
33596         (sc_GPL_version): Likewise.
33597         (sc_GFDL_version): Likewise.
33598         (sc_texinfo_acronym): Likewise.
33599         (sc_prohibit_cvs_keyword): Likewise.
33600         (sc_prohibit_stat_st_blocks): Likewise.
33601         (sc_prohibit_S_IS_definition): Likewise.
33602         (sc_redundant_const): Likewise.
33603         (sc_makefile_TAB_only_indentation): Likewise.
33604         (sc_m4_quote_check): Likewise.
33605         (sc_makefile_path_separator_check): Likewise.
33606         (sc_copyright_check): Likewise.
33607         (sc_Wundef_boolean): Likewise.
33608         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33609
33610         maint.mk: match 0 or more whitespace-before-function-call '('
33611         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33612         that have zero or two-and-more spaces between the function name
33613         and the open parenthesis.
33614         (sc_error_message_warn_fatal): Likewise.
33615         (sc_error_message_uppercase): Likewise.
33616         (sc_error_message_period): Likewise.
33617
33618 2010-03-31  Eric Blake  <eblake@redhat.com>
33619
33620         maint.mk: check for [ as well as test
33621         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33622         Based on a libvirt report by Matthias Bolte.
33623
33624         gnumakefile: don't squelch _version output
33625         * top/GNUmakefile (_version): Create one-shot dependency rather
33626         than using $(shell) when version must be regenerated.
33627         (_autoreconf): Run verbosely, by default.
33628
33629         sys_time: avoid compiler warnings
33630         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33631         unconditional, fixing regression from 2010-03-29.
33632         Reported by Simon Josefsson.
33633
33634 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33635
33636         maint.mk: s/_header_without_use/_sc_header_without_use/
33637         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33638         (sc_prohibit_assert_without_use): Use the new name.
33639         (sc_prohibit_close_stream_without_use): Likewise.
33640         (sc_prohibit_getopt_without_use): Likewise.
33641         (sc_prohibit_quotearg_without_use): Likewise.
33642         (sc_prohibit_quote_without_use): Likewise.
33643         (sc_prohibit_long_options_without_use): Likewise.
33644         (sc_prohibit_inttostr_without_use): Likewise.
33645         (sc_prohibit_ignore_value_without_use): Likewise.
33646         (sc_prohibit_error_without_use): Likewise.
33647         (sc_prohibit_xalloc_without_use): Likewise.
33648         (sc_prohibit_hash_without_use): Likewise.
33649         (sc_prohibit_hash_pjw_without_use): Likewise.
33650         (sc_prohibit_safe_read_without_use): Likewise.
33651         (sc_prohibit_argmatch_without_use): Likewise.
33652         (sc_prohibit_canonicalize_without_use): Likewise.
33653         (sc_prohibit_root_dev_ino_without_use): Likewise.
33654         (sc_prohibit_openat_without_use): Likewise.
33655         (sc_prohibit_c_ctype_without_use): Likewise.
33656         (sc_prohibit_signal_without_use): Likewise.
33657         (sc_prohibit_intprops_without_use): Likewise.
33658
33659 2010-03-30  Eric Blake  <eblake@redhat.com>
33660
33661         maint: improve module indicators
33662         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33663         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33664         columns, and avoid extra macro expansion.
33665
33666         fdopendir: work around FreeBSD bug
33667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33669         * modules/dirent (Makefile.am): Substitute it.
33670         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33671         declaration.
33672         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33673         fix.
33674         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33675
33676 2010-03-29  Bruno Haible  <bruno@clisp.org>
33677
33678         Emit #pragma system_header after the inclusion guard, not before.
33679         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33680         guard that spans the entire file, not before. This enables an
33681         optimization in GCC's preprocessor.
33682         * lib/ctype.in.h: Likewise.
33683         * lib/dirent.in.h: Likewise.
33684         * lib/errno.in.h: Likewise.
33685         * lib/float.in.h: Likewise.
33686         * lib/getopt.in.h: Likewise.
33687         * lib/iconv.in.h: Likewise.
33688         * lib/langinfo.in.h: Likewise.
33689         * lib/locale.in.h: Likewise.
33690         * lib/math.in.h: Likewise.
33691         * lib/netdb.in.h: Likewise.
33692         * lib/netinet_in.in.h: Likewise.
33693         * lib/pty.in.h: Likewise.
33694         * lib/sched.in.h: Likewise.
33695         * lib/se-selinux.in.h: Likewise.
33696         * lib/search.in.h: Likewise.
33697         * lib/spawn.in.h: Likewise.
33698         * lib/stdarg.in.h: Likewise.
33699         * lib/stdint.in.h: Likewise.
33700         * lib/string.in.h: Likewise.
33701         * lib/strings.in.h: Likewise.
33702         * lib/sys_file.in.h: Likewise.
33703         * lib/sys_ioctl.in.h: Likewise.
33704         * lib/sys_time.in.h: Likewise.
33705         * lib/sys_times.in.h: Likewise.
33706         * lib/sys_utsname.in.h: Likewise.
33707         * lib/sys_wait.in.h: Likewise.
33708         * lib/sysexits.in.h: Likewise.
33709         * lib/wctype.in.h: Likewise.
33710
33711 2010-03-28  James Youngman  <jay@gnu.org>
33712
33713         save-cwd: don't leak a file descriptor when the caller execs.
33714         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33715         saved file descriptor.
33716         * modules/save-cwd (Depends-on): Depend on cloexec.
33717
33718 2010-03-29  Bruno Haible  <bruno@clisp.org>
33719
33720         Remove vestiges of fts-lgpl module.
33721         * lib/fts_.h: Assume GNULIB_FTS is 1.
33722         * lib/fts.c: Likewise.
33723         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33724
33725 2010-03-28  Bruno Haible  <bruno@clisp.org>
33726
33727         Fix definition of tests witness macro.
33728         * gnulib-tool (func_import): Fix definition of witness macro.
33729
33730 2010-03-28  Bruno Haible  <bruno@clisp.org>
33731
33732         Fix ioctl's protoype on glibc systems.
33733         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33734         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33735         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33736         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33737         signature. If not, arrange to replace the ioctl function.
33738         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33739         REPLACE_IOCTL.
33740         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33741         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33742         Reported by Ludovic Courtès <ludo@gnu.org>.
33743
33744 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33745
33746         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33747         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33748         made it so grep -r --include=GLOB* ... did not work.
33749
33750 2010-03-26  Jim Meyering  <meyering@redhat.com>
33751             Eric Blake  <eblake@redhat.com>
33752
33753         maint.mk: prohibit use of test's -o and -a operators
33754         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33755
33756 2010-03-28  Bruno Haible  <bruno@clisp.org>
33757
33758         Remove unused GNULIB_XYZ macro definitions.
33759         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33760         invocation.
33761
33762 2010-03-28  Bruno Haible  <bruno@clisp.org>
33763
33764         Mark privileged tests modules.
33765         * modules/idpriv-drop-tests (Status): New section.
33766         * modules/idpriv-droptemp-tests (Status): New section.
33767
33768 2010-03-28  Bruno Haible  <bruno@clisp.org>
33769
33770         Split C++ tests into separate tests modules.
33771         * modules/dirent-c++-tests: New file, extracted from
33772         modules/dirent-tests.
33773         * modules/dirent-tests: Depend on it.
33774         * modules/fcntl-h-c++-tests: New file, extracted from
33775         modules/fcntl-h-tests.
33776         * modules/fcntl-h-tests: Depend on it.
33777         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33778         * modules/glob-tests: Depend on it.
33779         * modules/iconv-h-c++-tests: New file, extracted from
33780         modules/iconv-h-tests.
33781         * modules/iconv-h-tests: Depend on it.
33782         * modules/langinfo-c++-tests: New file, extracted from
33783         modules/langinfo-tests.
33784         * modules/langinfo-tests: Depend on it.
33785         * modules/locale-c++-tests: New file, extracted from
33786         modules/locale-tests.
33787         * modules/locale-tests: Depend on it.
33788         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33789         * modules/math-tests: Depend on it.
33790         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33791         * modules/pty-tests: Depend on it.
33792         * modules/search-c++-tests: New file, extracted from
33793         modules/search-tests.
33794         * modules/search-tests: Depend on it.
33795         * modules/signal-c++-tests: New file, extracted from
33796         modules/signal-tests.
33797         * modules/signal-tests: Depend on it.
33798         * modules/spawn-c++-tests: New file, extracted from
33799         modules/spawn-tests.
33800         * modules/spawn-tests: Depend on it.
33801         * modules/stdio-c++-tests: New file, extracted from
33802         modules/stdio-tests.
33803         * modules/stdio-tests: Depend on it.
33804         * modules/stdlib-c++-tests: New file, extracted from
33805         modules/stdlib-tests.
33806         * modules/stdlib-tests: Depend on it.
33807         * modules/string-c++-tests: New file, extracted from
33808         modules/string-tests.
33809         * modules/string-tests: Depend on it.
33810         * modules/sys_ioctl-c++-tests: New file, extracted from
33811         modules/sys_ioctl-tests.
33812         * modules/sys_ioctl-tests: Depend on it.
33813         * modules/sys_select-c++-tests: New file, extracted from
33814         modules/sys_select-tests.
33815         * modules/sys_select-tests: Depend on it.
33816         * modules/sys_socket-c++-tests: New file, extracted from
33817         modules/sys_socket-tests.
33818         * modules/sys_socket-tests: Depend on it.
33819         * modules/sys_stat-c++-tests: New file, extracted from
33820         modules/sys_stat-tests.
33821         * modules/sys_stat-tests: Depend on it.
33822         * modules/sys_time-c++-tests: New file, extracted from
33823         modules/sys_time-tests.
33824         * modules/sys_time-tests: Depend on it.
33825         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33826         * modules/time-tests: Depend on it.
33827         * modules/unistd-c++-tests: New file, extracted from
33828         modules/unistd-tests.
33829         * modules/unistd-tests: Depend on it.
33830         * modules/wchar-c++-tests: New file, extracted from
33831         modules/wchar-tests.
33832         * modules/wchar-tests: Depend on it.
33833         * modules/wctype-c++-tests: New file, extracted from
33834         modules/wctype-tests.
33835         * modules/wctype-tests: Depend on it.
33836         Reported by Simon Josefsson.
33837
33838 2010-03-28  Bruno Haible  <bruno@clisp.org>
33839
33840         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33841         * gnulib-tool (func_exists_module): New function, extracted from
33842         func_verify_module.
33843         (func_verify_module): Use it.
33844         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33845         'foo' only if 'foo' exists.
33846         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33847         module.
33848
33849 2010-03-28  Bruno Haible  <bruno@clisp.org>
33850
33851         gnulib-tool: Add support for special categories of tests.
33852         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33853         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33854         (func_usage): Document them.
33855         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33856         inc_unportable_tests, inc_all_tests): New variables.
33857         (func_acceptable): Consider these variables.
33858         (func_modules_transitive_closure): Make it work when the 'Status' field
33859         consists of multiple words.
33860         (func_import): Store and restore the values of inc_cxx_tests,
33861         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33862         inc_all_tests in gnulib-comp.m4.
33863         (func_create_testdir): Set inc_all_tests to true.
33864         * doc/gnulib.texi (Extra tests modules): New section.
33865         Suggested by Jim Meyering.
33866
33867 2010-03-28  Bruno Haible  <bruno@clisp.org>
33868
33869         ansi-c++-opt: Allow turning off the C++ build by default.
33870         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33871         gl_CXX_CHOICE_DEFAULT_NO is defined.
33872         Requested by Eric Blake.
33873
33874 2010-03-28  Bruno Haible  <bruno@clisp.org>
33875
33876         unistd: Avoid #define replacements in C++ mode.
33877         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33878         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33879         setsockopt, shutdown, select): In C++, attach a warning to the function
33880         if possible, rather than #defining the symbol to a dysfunctional alias.
33881         Reported by John W. Eaton <jwe@gnu.org>.
33882
33883 2010-03-28  Bruno Haible  <bruno@clisp.org>
33884
33885         Fix link errors on mingw.
33886         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33887         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33888         $(LIBSOCKET).
33889         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33890         $(LIBSOCKET).
33891
33892 2010-03-28  Bruno Haible  <bruno@clisp.org>
33893             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33894
33895         lib-ignore: Determine different options for different compilers.
33896         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33897         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33898         Add comments.
33899         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33900         * NEWS: Mention the change.
33901
33902 2010-03-27  Bruno Haible  <bruno@clisp.org>
33903
33904         Remove unused GNULIB_XYZ macro definitions.
33905         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33906         * modules/fseek (configure.ac): Likewise.
33907         * modules/ioctl (configure.ac): Likewise.
33908         * modules/open (configure.ac): Likewise.
33909         * modules/stdlib-safer (configure.ac): Likewise.
33910
33911 2010-03-27  Bruno Haible  <bruno@clisp.org>
33912
33913         Add a remark about certain modules.
33914         * modules/malloc (Comment): New section.
33915         * modules/realloc (Comment): Likewise.
33916         * modules/sigpipe (Comment): Likewise.
33917
33918 2010-03-27  Bruno Haible  <bruno@clisp.org>
33919
33920         Resolve conflict between the two kinds of module indicators.
33921         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33922         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33923         * modules/canonicalize (configure.ac): Invoke
33924         gl_MODULE_INDICATOR_FOR_TESTS.
33925         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33926         GNULIB_XYZ.
33927         * tests/test-dirent-c++.cc: Likewise.
33928         * tests/test-dirent-safer.c: Likewise.
33929         * tests/test-dup2.c: Likewise.
33930         * tests/test-fchdir.c: Likewise.
33931         * tests/test-fcntl-h-c++.cc: Likewise.
33932         * tests/test-getopt.c: Likewise.
33933         * tests/test-getopt.h: Likewise.
33934         * tests/test-langinfo-c++.cc: Likewise.
33935         * tests/test-locale-c++.cc: Likewise.
33936         * tests/test-math-c++.cc: Likewise.
33937         * tests/test-pty-c++.cc: Likewise.
33938         * tests/test-search-c++.cc: Likewise.
33939         * tests/test-signal-c++.cc: Likewise.
33940         * tests/test-spawn-c++.cc: Likewise.
33941         * tests/test-stdio-c++.cc: Likewise.
33942         * tests/test-stdlib-c++.cc: Likewise.
33943         * tests/test-string-c++.cc: Likewise.
33944         * tests/test-sys_ioctl-c++.cc: Likewise.
33945         * tests/test-sys_select-c++.cc: Likewise.
33946         * tests/test-sys_socket-c++.cc: Likewise.
33947         * tests/test-sys_stat-c++.cc: Likewise.
33948         * tests/test-sys_time-c++.cc: Likewise.
33949         * tests/test-time-c++.cc: Likewise.
33950         * tests/test-unistd-c++.cc: Likewise.
33951         * tests/test-wchar-c++.cc: Likewise.
33952         * tests/uninorm/test-u8-nfc.c: Likewise.
33953         * tests/uninorm/test-u8-nfd.c: Likewise.
33954         * tests/uninorm/test-u8-nfkc.c: Likewise.
33955         * tests/uninorm/test-u8-nfkd.c: Likewise.
33956         * tests/uninorm/test-u16-nfc.c: Likewise.
33957         * tests/uninorm/test-u16-nfd.c: Likewise.
33958         * tests/uninorm/test-u16-nfkc.c: Likewise.
33959         * tests/uninorm/test-u16-nfkd.c: Likewise.
33960         * tests/uninorm/test-u32-nfc.c: Likewise.
33961         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33962         * tests/uninorm/test-u32-nfd.c: Likewise.
33963         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33964         * tests/uninorm/test-u32-nfkc.c: Likewise.
33965         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33966         * tests/uninorm/test-u32-nfkd.c: Likewise.
33967         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33968         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33969
33970 2010-03-27  Bruno Haible  <bruno@clisp.org>
33971
33972         Distinguish two kinds of module indicators.
33973         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33974         gl_MODULE_INDICATOR.
33975         (gl_MODULE_INDICATOR): New macro.
33976         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33977         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33978         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33979         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33980         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33981         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33982         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33983         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33984         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33985         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33986         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33987         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33989         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33990         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33991         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33992         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33993         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33994         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33995         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33996         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33997         * modules/cloexec (configure.ac): Likewise.
33998         * modules/getopt-gnu (configure.ac): Likewise.
33999         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34000         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34001         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34002         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34003
34004 2010-03-27  Bruno Haible  <bruno@clisp.org>
34005
34006         New module description field 'Comment'.
34007         * gnulib-tool: New option --extract-comment.
34008         (func_usage): Document it.
34009         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34010         (func_get_comment): New function.
34011         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34012
34013 2010-03-27  Bruno Haible  <bruno@clisp.org>
34014
34015         Addendum to 2010-02-07 commit.
34016         * gnulib-tool (func_usage): Document --extract-applicability option.
34017
34018 2010-03-27  Bruno Haible  <bruno@clisp.org>
34019
34020         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34021         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34022         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34023         rather than link errors.
34024
34025 2010-03-27  Bruno Haible  <bruno@clisp.org>
34026
34027         Avoid side effects from tests-related modules on the compilation of lib.
34028         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34029         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34030         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34031         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34032         macro.
34033         (func_import): Define a witness macro. Assign it a value that depends
34034         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34035         tests-related modules.
34036         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34037         Reported by Jim Meyering.
34038
34039 2010-03-27  Bruno Haible  <bruno@clisp.org>
34040
34041         Factorize common .m4 code.
34042         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34043         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34044         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34045         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34046         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34047         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34048         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34049         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34050         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34051         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34052         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34053         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34054         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34055         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34056         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34057         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34058         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34059         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34061         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34062         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34064         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34066         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34067         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34068         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34069         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34070         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34071         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34072         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34073         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34074
34075 2010-03-27  Bruno Haible  <bruno@clisp.org>
34076
34077         Fix a compilation error on Cygwin with g++ >= 4.3.
34078         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34079         if it is undefined or if we alias it to chmod.
34080         (lstat): Don't warn about the use of this function if it is undefined
34081         or if we alias it to stat.
34082         Reported by Simon Josefsson.
34083
34084 2010-03-27  Bruno Haible  <bruno@clisp.org>
34085
34086         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34087         * modules/getlogin (configure.ac): Update.
34088
34089         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34090         * modules/getlogin_r (configure.ac): Update.
34091
34092         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34094         * modules/inet_ntop (configure.ac): Update.
34095
34096         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34097         * modules/inet_pton (configure.ac): Update.
34098
34099         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34100         * modules/mbslen (configure.ac): Update.
34101
34102         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34103         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34104         * modules/forkpty (configure.ac): Update.
34105         * modules/openpty (configure.ac): Update.
34106
34107 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34108
34109         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34110         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34111
34112 2010-03-25  Eric Blake  <eblake@redhat.com>
34113
34114         maint: use pragma consistently across replacement headers
34115         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34116         * lib/dirent.in.h (system_header): Likewise.
34117         * lib/errno.in.h (system_header): Likewise.
34118         * lib/float.in.h (system_header): Likewise.
34119         * lib/getopt.in.h (system_header): Likewise.
34120         * lib/iconv.in.h (system_header): Likewise.
34121         * lib/inttypes.in.h (system_header): Likewise.
34122         * lib/langinfo.in.h (system_header): Likewise.
34123         * lib/locale.in.h (system_header): Likewise.
34124         * lib/math.in.h (system_header): Likewise.
34125         * lib/netdb.in.h (system_header): Likewise.
34126         * lib/netinet_in.in.h (system_header): Likewise.
34127         * lib/pty.in.h (system_header): Likewise.
34128         * lib/sched.in.h (system_header): Likewise.
34129         * lib/se-selinux.in.h (system_header): Likewise.
34130         * lib/search.in.h (system_header): Likewise.
34131         * lib/spawn.in.h (system_header): Likewise.
34132         * lib/stdarg.in.h (system_header): Likewise.
34133         * lib/stdint.in.h (system_header): Likewise.
34134         * lib/string.in.h (system_header): Likewise.
34135         * lib/strings.in.h (system_header): Likewise.
34136         * lib/sys_file.in.h (system_header): Likewise.
34137         * lib/sys_ioctl.in.h (system_header): Likewise.
34138         * lib/sys_socket.in.h (system_header): Likewise.
34139         * lib/sys_times.in.h (system_header): Likewise.
34140         * lib/sys_utsname.in.h (system_header): Likewise.
34141         * lib/sys_wait.in.h (system_header): Likewise.
34142         * lib/sysexits.in.h (system_header): Likewise.
34143         * lib/unistd.in.h (system_header): Likewise.
34144         * lib/wctype.in.h (system_header): Likewise.
34145
34146         arpa/inet: fix mingw compilation warning
34147         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34148         Reported by Matthew Bolte.
34149
34150 2010-03-25  Bruno Haible  <bruno@clisp.org>
34151
34152         Avoid collision between gnulib wrapper and libintl wrapper.
34153         * lib/printf.c (printf): Don't define if a printf wrapper is already
34154         defined in intl/printf.c.
34155         Reported by Michel Boaventura <michel@michelboaventura.com>.
34156
34157 2010-03-25  Bruno Haible  <bruno@clisp.org>
34158
34159         Use ANSI C.
34160         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34161
34162 2010-03-25  Bruno Haible  <bruno@clisp.org>
34163
34164         Minor formatting changes.
34165         * lib/acosl.c: Insert space before function argument list.
34166         * lib/argz.c: Likewise.
34167         * lib/asinl.c: Likewise.
34168         * lib/expl.c: Likewise.
34169         * lib/gen-uni-tables.c: Likewise.
34170         * lib/gettext.h: Likewise.
34171         * lib/glthread/lock.h: Likewise.
34172         * lib/tanl.c: Likewise.
34173         * lib/uniname/uniname.c: Likewise.
34174         * tests/test-idpriv-drop.c: Likewise.
34175         * tests/test-idpriv-droptemp.c: Likewise.
34176         * tests/test-lock.c: Likewise.
34177         * tests/test-tls.c: Likewise.
34178         * lib/argp-help.c: Insert space before function-like macro argument
34179         list.
34180         * lib/memcmp.c: Likewise.
34181         * tests/test-base64.c: Likewise.
34182         * lib/localename.c: Insert space before sizeof's argument list.
34183         * lib/safe-alloc.h: Likewise.
34184         * lib/file-set.h: Insert space before macro argument list.
34185         * tests/test-argp.c: Likewise.
34186         * lib/argp-namefrob.h: Insert space before function parameter list.
34187         * lib/getaddrinfo.c: Likewise.
34188         * lib/netdb.in.h: Likewise.
34189         * lib/parse-duration.h: Likewise.
34190         * lib/parse-duration.c: Likewise.
34191         * lib/poll.c: Likewise.
34192         * lib/select.c: Likewise.
34193         * lib/trim.h: Likewise.
34194         * tests/test-usleep.c: Likewise.
34195         * lib/ldexpl.c: Insert space before function parameter list and before
34196         function argument list.
34197         * lib/logl.c: Likewise.
34198         * lib/sqrtl.c: Likewise.
34199         * lib/trim.c: Likewise.
34200         * lib/cosl.c: Use GNU style indentation. Insert space before function
34201         argument list.
34202         * lib/sinl.c: Likewise.
34203         * lib/tsearch.c: Insert space after 'for'.
34204         Reported by Jim Meyering.
34205
34206 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34207
34208         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34209         config header before grepping, as it's not present before
34210         autoreconf/configure are run.  Reported by Simon Josefsson.
34211
34212 2010-03-23  Bruno Haible  <bruno@clisp.org>
34213
34214         pt_chown: Make it work with automake < 1.11.
34215         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34216         Reported by Simon Josefsson.
34217
34218 2010-03-23  Bruno Haible  <bruno@clisp.org>
34219
34220         pt_chown: Don't depend on GPLed modules.
34221         * lib/pt_chown.c: Don't include idpriv.h.
34222         (main): Don't drop privileges.
34223         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34224         Reported by Simon Josefsson.
34225
34226 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34227
34228         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34229         suggestions from karl@freefriends.org (Karl Berry).
34230
34231 2010-03-22  Eric Blake  <eblake@redhat.com>
34232
34233         gethostname: further tweaks
34234         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34235         are overriding gethostname.
34236         Suggested by Bruno Haible.
34237
34238 2010-03-21  Bruno Haible  <bruno@clisp.org>
34239
34240         Fix comments.
34241         * lib/forkpty.c (rpl_forkpty): Fix comment.
34242         * lib/openpty.c (rpl_openpty): Likewise.
34243         Reported by Eric Blake.
34244
34245 2010-03-22  Eric Blake  <eblake@redhat.com>
34246
34247         gethostname: fix build on mingw
34248         * lib/unistd.in.h (includes): Work around fact that mingw
34249         <winsock2.h> re-includes <unistd.h>, by avoiding any
34250         redeclarations if we are being included by <winsock2.h>.
34251         Reported by Matthias Bolte.
34252
34253 2010-03-21  Bruno Haible  <bruno@clisp.org>
34254
34255         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34256         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34257         modifications.
34258         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34259         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34260         provide the replacement.
34261         * modules/forkpty (Depends-on): Add openpty, login_tty.
34262         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34263         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34264         * doc/glibc-functions/forkpty.texi: More supported platforms.
34265         * config/srclist.txt: Add forkpty.c (commented).
34266
34267 2010-03-21  Bruno Haible  <bruno@clisp.org>
34268
34269         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34270         (Makefile.am): Verify that PTY_LIB is defined.
34271
34272         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34273
34274 2010-03-21  Bruno Haible  <bruno@clisp.org>
34275
34276         Tests for module 'login_tty'.
34277         * modules/login_tty-tests: New file.
34278         * tests/test-login_tty.c: New file.
34279
34280         New module 'login_tty'.
34281         * lib/login_tty.c: New file.
34282         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34283         * modules/login_tty: New file.
34284         * doc/glibc-functions/login_tty.texi: Mention the new module.
34285
34286 2010-03-21  Bruno Haible  <bruno@clisp.org>
34287
34288         login_tty: Documentation.
34289         * doc/glibc-functions/login_tty.texi: New file.
34290         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34291
34292 2010-03-21  Bruno Haible  <bruno@clisp.org>
34293
34294         pty: Consistent macro naming.
34295         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34296         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34297         * modules/pty (configure.ac): Update.
34298
34299 2010-03-21  Bruno Haible  <bruno@clisp.org>
34300
34301         Tests for openpty: Make stricter.
34302         * tests/test-openpty.c (main): Add test of canonical processing and
34303         erase.
34304         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34305
34306         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34307         * lib/openpty.c (openpty): New replacement function.
34308         * lib/pty.in.h: Include <termios.h>.
34309         (openpty): Update declaration. Add comments.
34310         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34311         is not declared, arrange to provide the replacement. Check for _getpty
34312         and posix_openpt.
34313         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34314         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34315         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34316         * modules/pty-tests (test_pty_c___LDADD): New variable.
34317         * doc/glibc-functions/openpty.texi: More supported platforms.
34318
34319 2010-03-21  Bruno Haible  <bruno@clisp.org>
34320
34321         setenv: Tweaks.
34322         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34323         the test program.
34324         * doc/posix-functions/setenv.texi: Update platforms list.
34325
34326 2010-03-21  Bruno Haible  <bruno@clisp.org>
34327
34328         New module 'unlockpt'.
34329         * lib/unlockpt.c: New file, from glibc with modifications.
34330         * m4/unlockpt.m4: New file.
34331         * modules/unlockpt: New file.
34332         * lib/stdlib.in.h (unlockpt): New declaration.
34333         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34334         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34335         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34336         HAVE_UNLOCKPT.
34337         * doc/posix-functions/unlockpt.texi: Mention the new module.
34338         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34339         * config/srclist.txt: Add unlockpt.c (commented).
34340
34341 2010-03-21  Jim Meyering  <meyering@redhat.com>
34342
34343         maint.mk: prohibit inclusion of "intprops.h" without use
34344         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34345
34346 2010-03-21  Bruno Haible  <bruno@clisp.org>
34347
34348         New module 'grantpt'.
34349         * lib/grantpt.c: New file, from glibc with modifications.
34350         * m4/grantpt.m4: New file.
34351         * modules/grantpt: New file.
34352         * lib/stdlib.in.h (grantpt): New declaration.
34353         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34354         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34355         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34356         HAVE_GRANTPT.
34357         * doc/posix-functions/grantpt.texi: Mention the new module.
34358         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34359         * config/srclist.txt: Add grantpt.c (commented).
34360
34361 2010-03-21  Bruno Haible  <bruno@clisp.org>
34362
34363         New module 'pt_chown'.
34364         * lib/pt_chown.c: New file, from glibc with modifications.
34365         * lib/pty-private.h: New file, from glibc with modifications.
34366         * modules/pt_chown: New file.
34367         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34368
34369 2010-03-21  Bruno Haible  <bruno@clisp.org>
34370
34371         Tests for module 'ptsname'.
34372         * modules/ptsname-tests: New file.
34373         * tests/test-ptsname.c: New file.
34374
34375         New module 'ptsname'.
34376         * lib/ptsname.c: New file, from glibc with modifications.
34377         * m4/ptsname.m4: New file.
34378         * modules/ptsname: New file.
34379         * lib/stdlib.in.h (ptsname): New declaration.
34380         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34381         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34382         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34383         HAVE_PTSNAME.
34384         * doc/posix-functions/ptsname.texi: Mention the new module.
34385         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34386         * config/srclist.txt: Add ptsname.c (commented).
34387
34388 2010-03-21  Bruno Haible  <bruno@clisp.org>
34389
34390         Tests for module 'ttyname_r'.
34391         * modules/ttyname_r-tests: New file.
34392         * tests/test-ttyname_r.c: New file.
34393
34394         New module 'ttyname_r'.
34395         * lib/ttyname_r.c: New file.
34396         * m4/ttyname_r.m4: New file.
34397         * modules/ttyname_r: New file.
34398         * lib/unistd.in.h (ttyname_r): New declaration.
34399         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34400         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34401         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34402         HAVE_TTYNAME_R.
34403         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34404         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34405
34406 2010-03-20  Bruno Haible  <bruno@clisp.org>
34407
34408         signal: Undefine macro definitions in C++ mode.
34409         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34410         sigfillset): Undefine macro definitions from the system header in C++
34411         mode.
34412         Reported by John W. Eaton <jwe@gnu.org>.
34413
34414 2010-03-20  Bruno Haible  <bruno@clisp.org>
34415
34416         Ensure no #include statements inside extern "C" { ... }.
34417         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34418         contain #include statements.
34419         * lib/time.in.h: Likewise.
34420
34421 2010-03-20  Bruno Haible  <bruno@clisp.org>
34422
34423         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34424         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34425         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34426         Reported by John W. Eaton <jwe@gnu.org>.
34427
34428 2010-03-20  Bruno Haible  <bruno@clisp.org>
34429
34430         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34431         Reported by Jim Meyering.
34432
34433 2010-03-20  Bruno Haible  <bruno@clisp.org>
34434
34435         pipe: Set errno upon failure.
34436         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34437         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34438         errno value in error message.
34439
34440 2010-03-20  Bruno Haible  <bruno@clisp.org>
34441             Jim Meyering  <meyering@redhat.com>
34442
34443         lchown: Avoid "unused variable" warning.
34444         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34445
34446 2010-03-20  Bruno Haible  <bruno@clisp.org>
34447
34448         Work around unlink() bug on MacOS X 10.5.6.
34449         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34450         attempting to unlink a parent directory.
34451         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34452         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34453         activate for the replacement function.
34454         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34455
34456 2010-03-20  Bruno Haible  <bruno@clisp.org>
34457
34458         Fix link errors on Solaris 8.
34459         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34460         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34461
34462 2010-03-19  Jim Meyering  <meyering@redhat.com>
34463
34464         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34465         The _LIBC implementation of build_range_exp correctly honors the
34466         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34467         However, the non-_LIBC implementation would ignore that syntax-bit
34468         flag and return REG_ERANGE unconditionally.
34469         This change makes it honor that flag.
34470         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34471         Make two pointer parameters "const".
34472         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34473         (parse_bracket_exp): Update caller.
34474
34475         regex.m4: correct the reversed range endpoint ([b-a]) test
34476         * m4/regex.m4: When requiring that [b-a] evoke failure,
34477         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34478         test pass once again for x86-based systems.
34479
34480 2010-03-19  Bruno Haible  <bruno@clisp.org>
34481
34482         scandir: Fix link error on Solaris 8.
34483         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34484         macros.
34485
34486 2010-03-19  Bruno Haible  <bruno@clisp.org>
34487
34488         getusershell: Fix documentation.
34489         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34490         module.
34491         * doc/glibc-functions/setusershell.texi: Likewise.
34492
34493         getusershell: Provide declaration, missing on Solaris 9.
34494         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34495         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34496         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34497         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34499         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34500         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34501         HAVE_GETUSERSHELL.
34502         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34503
34504 2010-03-19  Bruno Haible  <bruno@clisp.org>
34505
34506         wctype: Provide iswblank function.
34507         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34508         exists and is fine.
34509         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34510         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34511         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34512         * doc/posix-functions/iswblank.texi: Update.
34513
34514 2010-03-19  Bruno Haible  <bruno@clisp.org>
34515
34516         Tests of module 'pty' in C++ mode.
34517         * modules/pty-tests: New file.
34518         * tests/test-pty-c++.cc: New file.
34519         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34520
34521 2010-03-19  Eric Blake  <eblake@redhat.com>
34522
34523         logb: fix documentation
34524         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34525         1.5 declaration bug.
34526
34527         forkpty, openpty: prefer glibc's const-safe prototype
34528         * lib/forkpty.c (rpl_forkpty): New file.
34529         * lib/openpty.c (rpl_openpty): Likewise.
34530         * modules/forkpty (Files): Distribute it.
34531         * modules/openpty (Files): Likewise.
34532         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34533         check...
34534         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34535         replacement for for non-const BSD signature.
34536         * modules/pty (Makefile.am): Substitute witnesses.
34537         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34538         * tests/test-forkpty.c: Update signature check.
34539         * tests/test-openpty.c: Likewise.
34540         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34541         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34542
34543         forkpty, openpty: split functions into new modules
34544         * modules/pty (Makefile.am): Substitute new witnesses.
34545         (Libraries): Move library detection...
34546         * modules/forkpty: ...into new module.
34547         * modules/openpty: Another new module.
34548         * modules/pty-tests: Rename and split...
34549         * modules/forkpty-tests: ...to this...
34550         * modules/openpty-tests: ...and this.
34551         * tests/test-pty.c: Rename and split...
34552         * tests/test-forkpty.c: ...to this...
34553         * tests/test-openpty.c: ...and this.
34554         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34555         (gl_PTY): Split library searching...
34556         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34557         (gl_FORKPTY, gl_OPENPTY): New macros.
34558         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34559         * NEWS: Mention the split.
34560         * MODULES.html.sh (Misc): Document the modules.
34561         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34562         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34563
34564         pty: improve replacement header
34565         * lib/pty.in.h: New file.
34566         * modules/pty (Files): Ship it.
34567         (Makefile.am): Always build replacement.
34568         * m4/pty.m4: Rename...
34569         * m4/pty_h.m4: ...to this.
34570         (gl_PTY): Modernize setting of witness macros; update check of
34571         forkpty to take proper advantage of cache.
34572         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34573
34574         getopt: avoid compiler warning
34575         * lib/getopt.c (attribute_hidden): Remove unused macro.
34576
34577 2010-03-18  Bruno Haible  <bruno@clisp.org>
34578
34579         Fix link errors on Solaris 8.
34580         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34581         * modules/search-tests (test_search_c___LDADD): Likewise.
34582         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34583         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34584         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34585         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34586         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34587         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34588         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34589
34590 2010-03-18  Bruno Haible  <bruno@clisp.org>
34591
34592         Fix bug introduced on 2010-03-14.
34593         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34594         (gl_SPAWN_H): Require it.
34595         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34596         Reported by Simon Josefsson.
34597
34598 2010-03-18  Bruno Haible  <bruno@clisp.org>
34599
34600         Fix typo introduced on 2009-12-31.
34601         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34602         posix_spawn_file_actions_adddup2.
34603
34604 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34605         and Eric Blake  <eblake@redhat.com>
34606
34607         test-vc-list-files-git: make more robust
34608         * tests/test-vc-list-files-git.sh: Unset problematic environment
34609         variables.  Chain commands together.
34610
34611 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34612
34613         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34614         `AC_CHECK_DECL' invocation.
34615
34616 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34617
34618         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34619         appears before executable statements. Suggested by Petr Sumbera
34620         <Petr.Sumbera@Sun.COM>.
34621
34622 2010-03-14  Bruno Haible  <bruno@clisp.org>
34623
34624         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34625         portability problems. Instead use a simpler test.
34626         (main): Check that invalid arguments are rejected only on Linux.
34627
34628 2010-03-14  Bruno Haible  <bruno@clisp.org>
34629
34630         Fix bug introduced on 2009-12-31.
34631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34632         gl_PREREQ_SYS_H_WINSOCK2 always.
34633         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34634         SYS_SOCKET_H variable.
34635         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34636         Update comments.
34637         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34638         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34639         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34641         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34642
34643 2010-03-14  Bruno Haible  <bruno@clisp.org>
34644
34645         Fix values returned by sinl, cosl.
34646         * lib/trigl.h: Add specification comments.
34647         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34648         that combines the values from the precomputed table with the values of
34649         the Chebyshev polynomials.
34650
34651 2010-03-14  Bruno Haible  <bruno@clisp.org>
34652
34653         Fix compilation error when modules 'posix_spawn[p]' are not used.
34654         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34656
34657 2010-03-14  Bruno Haible  <bruno@clisp.org>
34658
34659         Fix compilation error on mingw when module 'time_r' is not used.
34660         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34661         is 1.
34662         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34663         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34664         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34666
34667 2010-03-14  Bruno Haible  <bruno@clisp.org>
34668
34669         Fix compilation error with Sun C.
34670         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34671         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34672         instead of GCC specific ULONG_LONG_MAX.
34673         * lib/xstrtoll.c: Likewise.
34674         * lib/xstrtoull.c: Likewise.
34675
34676 2010-03-13  Bruno Haible  <bruno@clisp.org>
34677
34678         Allow the user to disable C++ code and tests.
34679         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34680         (gl_PROG_ANSI_CXX): Require it.
34681
34682 2010-03-13  Bruno Haible  <bruno@clisp.org>
34683
34684         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34685         cases.
34686
34687 2010-03-13  Bruno Haible  <bruno@clisp.org>
34688
34689         Test that gnulib does not break the standard C++ headers.
34690         * tests/test-locale-c++2.cc: New file.
34691         * modules/locale-tests (Files): Add it.
34692         (Makefile.am): Compile it for test-locale-c++.
34693         * tests/test-math-c++2.cc: New file.
34694         * modules/math-tests (Files): Add it.
34695         (Makefile.am): Compile it for test-math-c++.
34696         * tests/test-signal-c++2.cc: New file.
34697         * modules/signal-tests (Files): Add it.
34698         (Makefile.am): Compile it for test-signal-c++.
34699         * tests/test-stdio-c++2.cc: New file.
34700         * modules/stdio-tests (Files): Add it.
34701         (Makefile.am): Compile it for test-stdio-c++.
34702         * tests/test-stdlib-c++2.cc: New file.
34703         * modules/stdlib-tests (Files): Add it.
34704         (Makefile.am): Compile it for test-stdlib-c++.
34705         * tests/test-string-c++2.cc: New file.
34706         * modules/string-tests (Files): Add it.
34707         (Makefile.am): Compile it for test-string-c++.
34708         * tests/test-time-c++2.cc: New file.
34709         * modules/time-tests (Files): Add it.
34710         (Makefile.am): Compile it for test-time-c++.
34711         Reported by John W. Eaton <jwe@gnu.org>.
34712
34713 2010-03-13  Bruno Haible  <bruno@clisp.org>
34714
34715         * gnulib-tool (func_usage): Clarify which options are available for
34716         --create-testdir and --create-megatestdir.
34717
34718 2010-03-13  Bruno Haible  <bruno@clisp.org>
34719
34720         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34721         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34722         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34723         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34724         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34725         when appropriate.
34726         Reported by Jim Meyering.
34727
34728 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34729
34730         * gnulib-tool (func_import): Explain origin of code.
34731
34732 2010-03-12  Bruno Haible  <bruno@clisp.org>
34733
34734         Fix problem with automake's definition of CXXLINK.
34735         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34736         Reported by Simon Josefsson and Ludovic Courtès.
34737
34738 2010-03-12  Bruno Haible  <bruno@clisp.org>
34739
34740         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34741         stable releases.
34742
34743 2010-03-11  Bruno Haible  <bruno@clisp.org>
34744
34745         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34746         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34747         whether the system provides one variant or multiple variants of the
34748         function.
34749         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34750         C++ compilers.
34751         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34752         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34753         Reported by Jim Meyering.
34754
34755 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34756
34757         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34758
34759 2010-03-08  Bruno Haible  <bruno@clisp.org>
34760
34761         gnulib-tool: Add support for --libtool in --create-testdir.
34762         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34763         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34764
34765 2010-03-08  Eric Blake  <eblake@redhat.com>
34766
34767         gnulib-tool.texi: mention possibility of git submodule
34768         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34769         submodules.
34770         * doc/.gitignore: Ignore another generated file.
34771
34772 2010-03-08  Karl Berry  <karl@gnu.org>
34773
34774         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34775         of committing gnulib files while skipping others.
34776
34777 2010-03-07  Bruno Haible  <bruno@clisp.org>
34778
34779         Tests of module 'wctype' in C++ mode.
34780         * tests/test-wctype-c++.cc: New file.
34781         * modules/wctype-tests (Files): Add it and tests/signature.h.
34782         (Depends-on): Add ansi-c++-opt.
34783         (Makefile.am): Arrange to compile and run test-wctype-c++.
34784
34785         Tests of module 'wchar' in C++ mode.
34786         * tests/test-wchar-c++.cc: New file.
34787         * modules/wchar-tests (Files): Add it and tests/signature.h.
34788         (Depends-on): Add ansi-c++-opt.
34789         (Makefile.am): Arrange to compile and run test-wchar-c++.
34790         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34791         gl_MODULE_INDICATOR.
34792
34793         Tests of module 'unistd' in C++ mode.
34794         * tests/test-unistd-c++.cc: New file.
34795         * modules/unistd-tests (Files): Add it and tests/signature.h.
34796         (Depends-on): Add ansi-c++-opt.
34797         (Makefile.am): Arrange to compile and run test-unistd-c++.
34798         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34799         gl_MODULE_INDICATOR.
34800
34801         Tests of module 'time' in C++ mode.
34802         * tests/test-time-c++.cc: New file.
34803         * modules/time-tests (Files): Add it and tests/signature.h.
34804         (Depends-on): Add ansi-c++-opt.
34805         (Makefile.am): Arrange to compile and run test-time-c++.
34806         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34807
34808         Tests of module 'sys_time' in C++ mode.
34809         * tests/test-sys_time-c++.cc: New file.
34810         * modules/sys_time-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_time-c++.
34813         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34814         gl_MODULE_INDICATOR.
34815
34816         Tests of module 'sys_stat' in C++ mode.
34817         * tests/test-sys_stat-c++.cc: New file.
34818         * modules/sys_stat-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_stat-c++.
34821         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34822         gl_MODULE_INDICATOR.
34823
34824         Tests of module 'sys_socket' in C++ mode.
34825         * tests/test-sys_socket-c++.cc: New file.
34826         * modules/sys_socket-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_socket-c++.
34829         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34830         gl_MODULE_INDICATOR.
34831
34832         Tests of module 'sys_select' in C++ mode.
34833         * tests/test-sys_select-c++.cc: New file.
34834         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34835         (Depends-on): Add ansi-c++-opt.
34836         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34837         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34838         gl_MODULE_INDICATOR.
34839
34840         Tests of module 'sys_ioctl' in C++ mode.
34841         * tests/test-sys_ioctl-c++.cc: New file.
34842         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34843         (Depends-on): Add ansi-c++-opt.
34844         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34845         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34846         gl_MODULE_INDICATOR.
34847
34848         Tests of module 'string' in C++ mode.
34849         * tests/test-string-c++.cc: New file.
34850         * modules/string-tests (Files): Add it and tests/signature.h.
34851         (Depends-on): Add ansi-c++-opt.
34852         (Makefile.am): Arrange to compile and run test-string-c++.
34853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34854         gl_MODULE_INDICATOR.
34855
34856         Tests of module 'stdlib' in C++ mode.
34857         * tests/test-stdlib-c++.cc: New file.
34858         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34859         (Depends-on): Add ansi-c++-opt.
34860         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34861         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34862         gl_MODULE_INDICATOR.
34863
34864         Tests of module 'stdio' in C++ mode.
34865         * tests/test-stdio-c++.cc: New file.
34866         * modules/stdio-tests (Files): Add it and tests/signature.h.
34867         (Depends-on): Add ansi-c++-opt.
34868         (Makefile.am): Arrange to compile and run test-stdio-c++.
34869         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34870         gl_MODULE_INDICATOR.
34871
34872         Tests of module 'spawn' in C++ mode.
34873         * tests/test-spawn-c++.cc: New file.
34874         * modules/spawn-tests (Files): Add it and tests/signature.h.
34875         (Depends-on): Add ansi-c++-opt.
34876         (Makefile.am): Arrange to compile and run test-spawn-c++.
34877         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34878         gl_MODULE_INDICATOR.
34879
34880         Tests of module 'signal' in C++ mode.
34881         * tests/test-signal-c++.cc: New file.
34882         * modules/signal-tests (Files): Add it and tests/signature.h.
34883         (Depends-on): Add ansi-c++-opt.
34884         (Makefile.am): Arrange to compile and run test-signal-c++.
34885         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34886         gl_MODULE_INDICATOR.
34887
34888         Tests of module 'search' in C++ mode.
34889         * tests/test-search-c++.cc: New file.
34890         * modules/search-tests (Files): Add it and tests/signature.h.
34891         (Depends-on): Add ansi-c++-opt.
34892         (Makefile.am): Arrange to compile and run test-search-c++.
34893         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34894         gl_MODULE_INDICATOR.
34895
34896         Tests of module 'math' in C++ mode.
34897         * tests/test-math-c++.cc: New file.
34898         * modules/math-tests (Files): Add it and tests/signature.h.
34899         (Depends-on): Add ansi-c++-opt.
34900         (Makefile.am): Arrange to compile and run test-math-c++.
34901         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34902
34903         Tests of module 'locale' in C++ mode.
34904         * tests/test-locale-c++.cc: New file.
34905         * modules/locale-tests (Files): Add it and tests/signature.h.
34906         (Depends-on): Add ansi-c++-opt.
34907         (Makefile.am): Arrange to compile and run test-locale-c++.
34908         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34909         gl_MODULE_INDICATOR.
34910
34911         Tests of module 'langinfo' in C++ mode.
34912         * tests/test-langinfo-c++.cc: New file.
34913         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34914         (Depends-on): Add ansi-c++-opt.
34915         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34916         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34917         gl_MODULE_INDICATOR.
34918
34919         Tests of module 'iconv-h' in C++ mode.
34920         * tests/test-iconv-h-c++.cc: New file.
34921         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34922         (Depends-on): Add ansi-c++-opt.
34923         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34924
34925         Tests of module 'glob' in C++ mode.
34926         * tests/test-glob-c++.cc: New file.
34927         * modules/glob-tests (Files): Add it.
34928         (Depends-on): Add ansi-c++-opt.
34929         (Makefile.am): Arrange to compile and run test-glob-c++.
34930
34931         Tests of module 'fcntl-h' in C++ mode.
34932         * tests/test-fcntl-h-c++.cc: New file.
34933         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34934         (Depends-on): Add ansi-c++-opt.
34935         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34936         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34937         gl_MODULE_INDICATOR.
34938
34939         Tests of module 'dirent' in C++ mode.
34940         * tests/test-dirent-c++.cc: New file.
34941         * modules/dirent-tests (Files): Add it and tests/signature.h.
34942         (Depends-on): Add ansi-c++-opt.
34943         (Makefile.am): Arrange to compile and run test-dirent-c++.
34944         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34945         gl_MODULE_INDICATOR.
34946
34947         New module 'ansi-c++-opt'.
34948         * modules/ansi-c++-opt: New file.
34949         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34950
34951         Document C++ namespace mode.
34952         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34953
34954         wctype: Avoid #define replacements in C++ mode.
34955         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34956         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34957         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34958         In C++, define a namespaced alias symbol.
34959         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34960         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34961         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34962         rule.
34963
34964         wchar: Avoid #define replacements in C++ mode.
34965         * lib/wchar.in.h: Include c++defs.h.
34966         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34967         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34968         symbol.
34969         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34970         * modules/wchar (Depends-on): Add c++defs.
34971         (Makefile.am): Update wchar.h rule.
34972
34973         unistd: Avoid #define replacements in C++ mode.
34974         * lib/unistd.in.h: Include c++defs.h.
34975         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34976         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34977         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34978         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34979         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34980         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34981         symbol.
34982         (environ): Update.
34983         * modules/unistd (Depends-on): Add c++defs.
34984         (Makefile.am): Update unistd.h rule.
34985
34986         time: Avoid #define replacements in C++ mode.
34987         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34988         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34989         define a namespaced alias symbol.
34990         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34991         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34992         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34993         * modules/time (Depends-on): Add c++defs, warn-on-use.
34994         (Makefile.am): Update time.h rule.
34995         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34996         * modules/nanosleep (configure.ac): Likewise.
34997         * modules/strptime (configure.ac): Likewise.
34998         * modules/timegm (configure.ac): Likewise.
34999
35000         sys_time: Avoid #define replacements in C++ mode.
35001         * lib/sys_time.in.h: Include c++defs.h.
35002         (gettimeofday): In C++, define a namespaced alias symbol.
35003         * modules/sys_time (Depends-on): Add c++defs.
35004         (Makefile.am): Update sys/time.h rule.
35005
35006         sys_stat: Avoid #define replacements in C++ mode.
35007         * lib/sys_stat.in.h: Include c++defs.h.
35008         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35009         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35010         namespaced alias symbol.
35011         In C++, define a namespaced alias symbol.
35012         * modules/sys_stat (Depends-on): Add c++defs.
35013         (Makefile.am): Update sys/stat.h rule.
35014
35015         sys_socket: Avoid #define replacements in C++ mode.
35016         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35017         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35018         definitions also when the system has a <sys/socket.h>.
35019         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35020         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35021         In C++, define a namespaced alias symbol.
35022         * modules/sys_socket (Depends-on): Add c++defs.
35023         (Makefile.am): Update sys/socket.h rule.
35024
35025         sys_select: Avoid #define replacements in C++ mode.
35026         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35027         definitions also when the system has a <sys/select.h>.
35028         (select): In C++, define a namespaced alias symbol.
35029         * modules/sys_select (Depends-on): Add c++defs.
35030         (Makefile.am): Update sys/select.h rule.
35031
35032         sys_ioctl: Avoid #define replacements in C++ mode.
35033         * lib/sys_ioctl.in.h: Include c++defs.h.
35034         (ioctl): In C++, define a namespaced alias symbol.
35035         * modules/sys_ioctl (Depends-on): Add c++defs.
35036         (Makefile.am): Update sys/ioctl.h rule.
35037
35038         string: Avoid #define replacements in C++ mode.
35039         * lib/string.in.h: Include c++defs.h.
35040         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35041         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35042         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35043         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35044         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35045         * modules/string (Depends-on): Add c++defs.
35046         (Makefile.am): Update string.h rule.
35047
35048         stdlib: Avoid #define replacements in C++ mode.
35049         * lib/stdlib.in.h: Include c++defs.h.
35050         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35051         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35052         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35053         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35054         symbol.
35055         * modules/stdlib (Depends-on): Add c++defs.
35056         (Makefile.am): Update stdlib.h rule.
35057
35058         stdio: Avoid #define replacements in C++ mode.
35059         * lib/stdio.in.h: Include c++defs.h.
35060         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35061         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35062         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35063         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35064         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35065         namespaced alias symbol.
35066         * modules/stdio (Depends-on): Add c++defs.
35067         (Makefile.am): Update stdio.h rule.
35068
35069         spawn: Avoid #define replacements in C++ mode.
35070         * lib/spawn.in.h: Include c++defs.h.
35071         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35072         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35073         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35074         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35075         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35076         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35077         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35078         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35079         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35080         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35081         In C++, define a namespaced alias symbol.
35082         * modules/spawn (Depends-on): Add c++defs.
35083         (Makefile.am): Update spawn.h rule.
35084
35085         signal: Avoid #define replacements in C++ mode.
35086         * lib/signal.in.h: Include c++defs.h.
35087         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35088         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35089         namespaced alias symbol.
35090         * modules/signal (Depends-on): Add c++defs.
35091         (Makefile.am): Update signal.h rule.
35092
35093         search: Avoid #define replacements in C++ mode.
35094         * lib/search.in.h: Include c++defs.h.
35095         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35096         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35097         symbol.
35098         * modules/search (Depends-on): Add c++defs.
35099         (Makefile.am): Update search.h rule.
35100
35101         math: Avoid #define replacements in C++ mode.
35102         * lib/math.in.h: Include c++defs.h.
35103         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35104         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35105         trunc, truncl): In C++, define a namespaced alias symbol.
35106         * modules/math (Depends-on): Add c++defs.
35107         (Makefile.am): Update math.h rule.
35108
35109         locale: Avoid #define replacements in C++ mode.
35110         * lib/locale.in.h: Include c++defs.h.
35111         (duplocale): In C++, define a namespaced alias symbol.
35112         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35113         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35114         * modules/locale (Depends-on): Add c++defs.
35115         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35116
35117         langinfo: Avoid #define replacements in C++ mode.
35118         * lib/langinfo.in.h: Include c++defs.h.
35119         (nl_langinfo): In C++, define a namespaced alias symbol.
35120         * modules/langinfo (Depends-on): Add c++defs.
35121         (Makefile.am): Update langinfo.h rule.
35122
35123         iconv-h: Avoid #define replacements in C++ mode.
35124         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35125         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35126         symbol.
35127         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35128         whenever iconv is present.
35129         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35130         (Makefile.am): Update iconv.h rule.
35131
35132         glob: Avoid #define replacements in C++ mode.
35133         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35134         (_gl_glob_errfunc_fn): New type.
35135         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35136         symbol.
35137         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35138         (Makefile.am): Update glob.h rule.
35139
35140         fcntl-h: Avoid #define replacements in C++ mode.
35141         * lib/fcntl.in.h: Include c++defs.h.
35142         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35143         * modules/fcntl-h (Depends-on): Add c++defs.
35144         (Makefile.am): Update fcntl.h rule.
35145
35146         dirent: Avoid #define replacements in C++ mode.
35147         * lib/dirent.in.h: Include c++defs.h.
35148         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35149         namespaced alias symbol.
35150         (dirfd): Update declaration.
35151         * modules/dirent (Depends-on): Add c++defs.
35152         (Makefile.am): Update dirent.h rule.
35153
35154         ctype: Make it usable in C++ code.
35155         * lib/ctype.in.h: Include c++defs.h.
35156         (isblank): Declare as extern "C".
35157         * modules/ctype (Depends-on): Add c++defs.
35158         (Makefile.am): Update ctype.h rule.
35159
35160         New module 'c++defs'.
35161         * modules/c++defs: New file.
35162         * build-aux/c++defs.h: New file.
35163         Reported by John W. Eaton <jwe@gnu.org>.
35164
35165 2010-03-07  Bruno Haible  <bruno@clisp.org>
35166
35167         logb: Provide missing declaration for Cygwin.
35168         * lib/math.in.h (logb): New declaration.
35169         * m4/logb.m4: New file.
35170         * modules/logb (Files): Add m4/logb.m4.
35171         (Depends-on): Add math.
35172         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35173         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35175         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35176         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35177
35178 2010-03-07  Bruno Haible  <bruno@clisp.org>
35179
35180         Fix test-cond link error.
35181         * tests/test-cond.c: Include <stdio.h>.
35182
35183 2010-03-07  Bruno Haible  <bruno@clisp.org>
35184
35185         Fix test-dirent-safer link error.
35186         * modules/dirent-safer-tests (Makefile.am): Define
35187         test_dirent_safer_LDADD.
35188
35189 2010-03-07  Bruno Haible  <bruno@clisp.org>
35190
35191         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35192         among default module list.
35193
35194 2010-03-07  Bruno Haible  <bruno@clisp.org>
35195
35196         Fix link error on platforms with GNU libiconv.
35197         * modules/unistr/u8-strcoll-tests (Makefile): Define
35198         test_u8_strcoll_LDADD.
35199         * modules/unistr/u16-strcoll-tests (Makefile): Define
35200         test_u16_strcoll_LDADD.
35201         * modules/unistr/u32-strcoll-tests (Makefile): Define
35202         test_u32_strcoll_LDADD.
35203
35204 2010-03-07  Bruno Haible  <bruno@clisp.org>
35205
35206         Use POSIX declarations for socket functions.
35207         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35208         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35209         rpl_sendto): Change declaration to match POSIX.
35210         * lib/connect.c (rpl_connect): Likewise.
35211         * lib/accept.c (rpl_accept): Likewise.
35212         * lib/bind.c (rpl_bind): Likewise.
35213         * lib/getpeername.c (rpl_getpeername): Likewise.
35214         * lib/getsockname.c (rpl_getsockname): Likewise.
35215         * lib/recv.c (rpl_recv): Likewise.
35216         * lib/send.c (rpl_send): Likewise.
35217         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35218         * lib/sendto.c (rpl_sendto): Likewise.
35219
35220 2010-03-06  Bruno Haible  <bruno@clisp.org>
35221
35222         Clarify access, euidaccess, faccessat.
35223         * doc/posix-functions/faccessat.texi: Mention security problem under
35224         "Other problems", not "Portability problems".
35225         * doc/posix-functions/access.texi: Likewise. Mention a related security
35226         problem.
35227         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35228         * lib/euidaccess.c: Add comments about platforms.
35229         * lib/unistd.in.h (access, euidaccess): Add warnings.
35230
35231 2010-03-07  Bruno Haible  <bruno@clisp.org>
35232
35233         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35234         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35235         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35236         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35237         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35238         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35239         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35240         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35241         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35242         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35243         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35244         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35245         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35246         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35247         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35248         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35249         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35250         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35251         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35252         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35253         Likewise.
35254         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35255         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35256         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35257         Likewise.
35258         * tests/test-spawn.c (main): Make it work when
35259         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35260
35261 2010-03-07  Bruno Haible  <bruno@clisp.org>
35262
35263         Fix incorrect Makefile.am generation in German locale.
35264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35265         Execute sed command with character range in C locale.
35266
35267 2010-03-06  Bruno Haible  <bruno@clisp.org>
35268
35269         Tests for module 'iconv-h'.
35270         * modules/iconv-h-tests: New file.
35271         * tests/test-iconv-h.c: New file.
35272
35273         New module 'iconv-h'.
35274         * modules/iconv-h: New file.
35275         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35276         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35277         (configure.ac): Remove gl_ICONV_H.
35278         (Makefile.am): Remove rule for iconv.h.
35279
35280 2010-03-06  Bruno Haible  <bruno@clisp.org>
35281
35282         More consistent naming of *.m4 files.
35283         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35284         * modules/wctype (Files): Update.
35285
35286         More consistent naming of *.m4 files.
35287         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35288         * modules/wchar (Files): Update.
35289
35290 2010-03-06  Jim Meyering  <meyering@redhat.com>
35291
35292         euidaccess: relax license to LGPLv2+
35293         * modules/euidaccess (License): Relax to LGPLv2+.
35294
35295 2010-03-06  Bruno Haible  <bruno@clisp.org>
35296
35297         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35298         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35299         (Makefile.am): Augment lib_SOURCES instead.
35300
35301 2010-03-04  Jim Meyering  <meyering@redhat.com>
35302
35303         utime: remove obsolete module
35304         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35305         unnecessary for years, and has been marked as obsolete for 10 months.
35306         * modules/utime: Remove file.
35307         * lib/utime.c: Remove file.
35308         * m4/utime.m4: Remove file.
35309         * m4/utimes-null.m4: Remove file.
35310         * doc/posix-functions/utime.texi (utime): Remove reference to
35311         the module.  Move the sole "fixed by gnulib" item into the
35312         "problems not fixed by Gnulib" list.
35313         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35314
35315 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35316
35317         * modules/exit (License): Relax license to LGPLv2+.
35318         (Status): Mark as obsolete.
35319         * NEWS: Mention deprecated 'exit' module.
35320         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35321         of now obsolete 'exit'.
35322
35323 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35324
35325         fts-lgpl: remove unused module
35326         * modules/fts-lgpl: Remove.
35327         * MODULES.html.sh (func_all_modules): Adjust.
35328         * check-module (find_included_lib_files): Adjust.
35329         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35330
35331 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35332
35333         copy-acl: enhance Solaris ACL error handling
35334         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35335         * lib/set-mode-acl.c (qset_acl): Likewise.
35336
35337 2010-03-02  Bruno Haible  <bruno@clisp.org>
35338
35339         spawn: Don't override the system defined values on FreeBSD 8.
35340         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35341         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35342         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35343         if HAVE_POSIX_SPAWN is 1.
35344         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35345
35346 2010-03-01  Bruno Haible  <bruno@clisp.org>
35347
35348         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35349         regarding Automake.
35350
35351 2010-02-25  Bruno Haible  <bruno@clisp.org>
35352
35353         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35354         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35355         setting, not afterwards.
35356         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35357
35358 2010-02-24  Eric Blake  <eblake@redhat.com>
35359
35360         bootstrap, git-version-gen: use timestamp
35361         * build-aux/git-version-gen (scriptversion): Force UTC.
35362         * build-aux/bootstrap (scriptversion): New variable.
35363
35364         bootstrap: allow older git
35365         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35366         older than 1.6.4.  Requested by the libvirt project.
35367
35368 2010-02-23  Eric Blake  <eblake@redhat.com>
35369
35370         warn-on-use: work with old autoconf
35371         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35372         AS_VAR semantics of autoconf 2.60.
35373         Reported by Bruno Haible.
35374
35375         bootstrap: improve some comments
35376         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35377         clarification comments.
35378
35379         gettimeofday: provide correct function
35380         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35381         when replacement is declared, otherwise provide gettimeofday.
35382         Reported by Michael Goffioul.
35383
35384 2010-02-23  Jim Meyering  <meyering@redhat.com>
35385
35386         lib-ignore: relax license to "unlimited", not LGPLv2+
35387         * modules/lib-ignore (License): Relax to "unlimited".
35388
35389 2010-02-23  Jim Meyering  <meyering@redhat.com>
35390
35391         lib-ignore: relax license to LGPLv2+
35392         * modules/lib-ignore (License): Relax to LGPLv2+.
35393
35394 2010-02-22  Eric Blake  <eblake@redhat.com>
35395
35396         lseek: avoid bash 3.2 broken pipe bug
35397         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35398         warning from bash 3.2.
35399         Reported by Ben Pfaff, with analysis from Bruno Haible.
35400
35401         bootstrap: support non-FSF copyright holder
35402         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35403         bootstrap.conf override of COPYRIGHT_HOLDER.
35404         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35405
35406         bootstrap: interoperate with gettext 0.14.1
35407         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35408
35409         bootstrap: allow for alternate submodule location
35410         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35411         hardcoding submodule location.
35412         (gnulib_mk): Allow direct use of Makefile.am.
35413
35414         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35415         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35416         rather than reconfiguring where the submodule points.
35417
35418         gettimeofday: restore support for platforms that lack function
35419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35420         replacement if function is missing.
35421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35422         * modules/sys_time (Makefile.am): Substitute it.
35423         * lib/sys_time.in.h (gettimeofday): Check it.
35424         Reported by Michael Goffioul.
35425
35426 2010-02-21  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/stdio.in.h (obstack_printf): Fix typo.
35429
35430 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35431
35432         vc-list-files: use bzr ls's -R option
35433         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35434         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35435
35436 2010-02-21  Jim Meyering  <meyering@redhat.com>
35437
35438         init.sh: fix EXEEXT shims to work also for names like test-prog
35439         * tests/init.sh: Re-exec a better shell, when needed.
35440         If the current shell lacks support for posix $(...), an init.sh-using
35441         test will now try to find a shell that supports that.  If EXEEXT is
35442         nonempty, we also require support for hyphen-in-alias-name and shell
35443         substitutions like ${var#glob}.  Failure to find such a shell results
35444         in a skipped test.
35445
35446 2010-02-21  Bruno Haible  <bruno@clisp.org>
35447
35448         Really work around around "broken pipe" error message from bash 3.2.
35449         * gnulib-tool (func_reset_sigpipe): Remove function.
35450         (echo): In bash 3.2, define to a function that uses printf.
35451         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35452
35453 2010-02-20  Bruno Haible  <bruno@clisp.org>
35454
35455         Restore support for automake 1.9.6 with autoconf 2.61.
35456         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35457         Reported by James Youngman <jay@gnu.org>.
35458
35459 2010-02-20  Bruno Haible  <bruno@clisp.org>
35460
35461         Improve *printf warning condition.
35462         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35463         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35464         and the function is overridden due to SIGPIPE emulation.
35465
35466 2010-02-20  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/stdio.in.h: Tweak comments.
35469
35470 2010-02-19  Bruno Haible  <bruno@clisp.org>
35471
35472         Make it easier to find modules. New gnulib-tool option '--find'.
35473         * gnulib-tool: New option --find.
35474         (func_usage): Document it.
35475         (func_sanitize_modulelist): New function, extracted from
35476         func_all_modules.
35477         (func_all_modules): Invoke it.
35478         * doc/gnulib-tool.texi (Which modules?): New node.
35479
35480 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35481
35482         * lib/sys_select.in.h: Provide select replacement even if
35483         sys/select.h exists on a system, for Interix.
35484
35485 2010-02-18  Jim Meyering  <meyering@redhat.com>
35486
35487         init.sh: don't use $(...) just yet
35488         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35489         to accommodate e.g., Solaris' /bin/sh.
35490
35491 2010-02-17  Bruno Haible  <bruno@clisp.org>
35492
35493         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35494         Reported by Ludovic Courtès <ludo@gnu.org>.
35495
35496 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35497
35498         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35499         linking with -lintl.
35500
35501 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35502
35503         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35504         if not provided by the system's netdb.h.  Reported by
35505         ludo@gnu.org (Ludovic Courtès).
35506
35507 2010-02-15  Jim Meyering  <meyering@redhat.com>
35508
35509         init.sh: improve portability and efficiency
35510         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35511         "dummy" in a for loop.
35512         Use '!', not '^' to select the complement of a character set used
35513         in a "case" statement.
35514         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35515         Suggestions from Eric Blake.
35516
35517         init.sh: automatically accommodate programs with the .exe suffix
35518         Automatically arrange for an invocation of "prog" to execute the
35519         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35520         may use the simpler "prog", yet still work when built on a system
35521         that requires specifying the added suffix.
35522         Do this by constructing a function named "prog" that invokes
35523         "prog.exe" for each .exe file in selected directories.
35524         * tests/init.sh (find_exe_basenames_): New function.
35525         (create_exe_shim_functions_): New function.
35526         (path_prepend_): Use it.
35527
35528         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35529         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35530         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35531
35532 2010-02-14  Jim Meyering  <meyering@redhat.com>
35533
35534         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35535         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35536         (sc_prohibit_hash_pjw_without_use): New rule.
35537
35538         maint.mk: allow the default upload destination dir to be overridden
35539         * top/maint.mk (upload_dest_dir_): Define with a default that
35540         preserves the status quo.
35541         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35542         Reported by Peter Simons.
35543
35544         maint.mk: prohibit inclusion of "hash.h" without_use
35545         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35546
35547 2010-02-10  Jim Meyering  <meyering@redhat.com>
35548
35549         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35550         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35551
35552 2010-02-09  Eric Blake  <ebb9@byu.net>
35553         and Bruno Haible  <bruno@clisp.org>
35554
35555         obstack-printf-posix: ensure declaration
35556         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35557         extracted from gl_FUNC_OBSTACK_PRINTF.
35558         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35559         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35560         Likewise.
35561         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35562         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35563         0.
35564
35565 2010-02-08  Bruno Haible  <bruno@clisp.org>
35566
35567         gnulib-tool: Fix typo in 2010-02-07 commit.
35568         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35569         Reported by Eric Blake.
35570
35571 2010-02-07  Bruno Haible  <bruno@clisp.org>
35572
35573         gnulib-tool: Fix up caching patches.
35574         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35575         option --no-cache. Use associative arrays when supported by the shell.
35576         (sed_comments): New variable.
35577         (modcache): Renamed from do_cache.
35578         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35579         abbreviate unnecessarily.
35580         (have_associative): New variable.
35581         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35582         way also for ksh and zsh.
35583         (func_init_sed_convert_to_cache_statements): New function, extracted
35584         from func_cache_lookup_module. Add support for associative arrays.
35585         Don't set the c_MODULE_cached variable here. Ignore all lines before
35586         the first field header. Remove only the final newline, not all trailing
35587         newlines. Support empty fields correctly. Limit the use of 'eval' to
35588         assignments.
35589         (func_get_description, func_get_status, func_get_notice,
35590         func_get_applicability, func_get_filelist, func_get_dependencies,
35591         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35592         func_get_automake_snippet, func_get_include_directive,
35593         func_get_link_directive, func_get_license, func_get_maintainer):
35594         Update documentation. List the unoptimized code first. Add support for
35595         associative arrays. Limit the use of 'eval' to assignments.
35596         (func_get_applicability): Undo stylistic pessimisations.
35597         (func_get_automake_snippet, func_get_include_directive): Reduce code
35598         duplication.
35599         (func_modules_transitive_closure, func_modules_add_dummy,
35600         func_modules_notice, func_modules_to_filelist, func_add_file,
35601         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35602         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35603         func_create_testdir, func_create_megatestdir): Update documentation.
35604
35605 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35606
35607         * gnulib-tool (func_cache_lookup_module): Store the module name
35608         belonging to the cache variable; error out if two different
35609         module names map to the same cache variable name.
35610
35611 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35612
35613         gnulib-tool: Make caching optional.
35614         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35615         Update matching short versions of --no-changelog.
35616         (func_usage): Update.
35617         (sed_extract_cache_prog): Renamed from ...
35618         (sed_extract_prog): ... this; revert to old extraction script.
35619         (func_get_description, func_get_status)
35620         (func_get_notice, func_get_applicability, func_get_filelist)
35621         (func_get_dependencies, func_get_autoconf_early_snippet)
35622         (func_get_autoconf_snippet, func_get_automake_snippet)
35623         (func_get_include_directive, func_get_link_directive)
35624         (func_get_license, func_get_maintainer): If $do_cache is false,
35625         use old, non-caching extraction scripts.
35626         Suggestion by Bruno Haible.
35627
35628 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35629
35630         gnulib-tool: cache module metainformation.
35631         * gnulib-tool (sed_extract_prog): Match newline before each
35632         header, and rewrite header to a shell variable suffix.
35633         (func_cache_var, func_cache_lookup_module): New functions,
35634         to turn a module name into a cache variable prefix, and to
35635         look up and cache module metainformation.
35636         (func_get_description, func_get_status)
35637         (func_get_notice, func_get_applicability, func_get_filelist)
35638         (func_get_dependencies, func_get_autoconf_early_snippet)
35639         (func_get_autoconf_snippet, func_get_automake_snippet)
35640         (func_get_include_directive, func_get_link_directive)
35641         (func_get_license, func_get_maintainer): Use
35642         func_cache_lookup_module.
35643
35644 2010-02-07  Bruno Haible  <bruno@clisp.org>
35645
35646         fnctl: Fix missing dependency.
35647         * modules/fcntl (Depends-on): Add getdtablesize.
35648         Reported by John W. Eaton <jwe@gnu.org>.
35649
35650 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35651
35652         Argp: fix recognition of short alias options.
35653
35654         * lib/argp-parse.c (convert_options): Fix improper use of
35655         `|' between character values.
35656         * tests/test-argp.c (group1_option): New alias option
35657         --read (-r).
35658         (group1_parser): Special handling for 'r'.
35659         (test15): New test case.
35660         (test_fun): Add test15.
35661         * tests/test-argp-2.sh: Update expected --help and --usage
35662         outputs.
35663
35664 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35665
35666         * tests/test-argp.c: Fix indentation.
35667
35668 2010-02-04  Eric Blake  <ebb9@byu.net>
35669
35670         gettimeofday: expose type of second argument
35671         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35672         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35673         * tests/test-gettimeofday.c: Use it to silence warning.
35674         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35675         the issue.
35676
35677 2010-02-03  Jim Meyering  <meyering@redhat.com>
35678
35679         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35680         * lib/regcomp.c (TYPE_SIGNED): Define.
35681         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35682
35683         regcomp.c: avoid a new -Wshadow warning
35684         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35685
35686 2010-02-01  Jim Meyering  <meyering@redhat.com>
35687
35688         removing useless parentheses in cpp #define directives
35689         For motivation, see commit c0221df4, "define STREQ(a,b)
35690         consistently, removing useless parentheses"
35691         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35692         * lib/mountlist.c (MNT_IGNORE): Likewise.
35693         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35694
35695 2010-02-01  Eric Blake  <ebb9@byu.net>
35696
35697         sys_time: use link-warning
35698         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35699         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35700         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35701         * modules/sys_time (Depends-on): Add warn-on-use.
35702         (Makefile.am): Always build replacement.
35703         (configure.ac): Update substitutions.
35704         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35705         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35706         bother with SYS_TIME_H.
35707         * modules/gettimeofday (configure.ac): Declare indicator.
35708         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35709         in use.
35710
35711         closein-tests: silence compiler warning
35712         * tests/test-closein.c (main): Ignore fread result.
35713         * modules/closein-tests (Depends-on): Add ignore-value.
35714
35715         tests: silence warning about system return
35716         * tests/test-areadlink-with-size.c (main): Ignore system result.
35717         * tests/test-areadlink.c (main): Likewise.
35718         * tests/test-areadlinkat-with-size.c (main): Likewise.
35719         * tests/test-areadlinkat.c (main): Likewise.
35720         * tests/test-canonicalize-lgpl.c (main): Likewise.
35721         * tests/test-canonicalize.c (main): Likewise.
35722         * tests/test-chown.c (main): Likewise.
35723         * tests/test-fchownat.c (main): Likewise.
35724         * tests/test-fdutimensat.c (main): Likewise.
35725         * tests/test-fstatat.c (main): Likewise.
35726         * tests/test-futimens.c (main): Likewise.
35727         * tests/test-lchown.c (main): Likewise.
35728         * tests/test-link.c (main): Likewise.
35729         * tests/test-linkat.c (main): Likewise.
35730         * tests/test-lstat.c (main): Likewise.
35731         * tests/test-mkdir.c (main): Likewise.
35732         * tests/test-mkdirat.c (main): Likewise.
35733         * tests/test-mkfifo.c (main): Likewise.
35734         * tests/test-mkfifoat.c (main): Likewise.
35735         * tests/test-mknod.c (main): Likewise.
35736         * tests/test-readlink.c (main): Likewise.
35737         * tests/test-remove.c (main): Likewise.
35738         * tests/test-rename.c (main): Likewise.
35739         * tests/test-renameat.c (main): Likewise.
35740         * tests/test-rmdir.c (main): Likewise.
35741         * tests/test-symlink.c (main): Likewise.
35742         * tests/test-symlinkat.c (main): Likewise.
35743         * tests/test-unlink.c (main): Likewise.
35744         * tests/test-unlinkat.c (main): Likewise.
35745         * tests/test-utimens.c (main): Likewise.
35746         * tests/test-utimensat.c (main): Likewise.
35747         * modules/areadlink-tests (Depends-on): Add ignore-value.
35748         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35749         * modules/areadlinkat-tests (Depends-on): Likewise.
35750         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35751         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35752         * modules/canonicalize-tests (Depends-on): Likewise.
35753         * modules/chown-tests (Depends-on): Likewise.
35754         * modules/fdutimensat-tests (Depends-on): Likewise.
35755         * modules/futimens-tests (Depends-on): Likewise.
35756         * modules/lchown-tests (Depends-on): Likewise.
35757         * modules/link-tests (Depends-on): Likewise.
35758         * modules/linkat-tests (Depends-on): Likewise.
35759         * modules/lstat-tests (Depends-on): Likewise.
35760         * modules/mkdir-tests (Depends-on): Likewise.
35761         * modules/mkfifo-tests (Depends-on): Likewise.
35762         * modules/mkfifoat-tests (Depends-on): Likewise.
35763         * modules/mknod-tests (Depends-on): Likewise.
35764         * modules/openat-tests (Depends-on): Likewise.
35765         * modules/readlink-tests (Depends-on): Likewise.
35766         * modules/remove-tests (Depends-on): Likewise.
35767         * modules/rename-tests (Depends-on): Likewise.
35768         * modules/renameat-tests (Depends-on): Likewise.
35769         * modules/rmdir-tests (Depends-on): Likewise.
35770         * modules/symlink-tests (Depends-on): Likewise.
35771         * modules/symlinkat-tests (Depends-on): Likewise.
35772         * modules/unlink-tests (Depends-on): Likewise.
35773         * modules/utimens-tests (Depends-on): Likewise.
35774         * modules/utimensat-tests (Depends-on): Likewise.
35775
35776 2010-01-31  Bruno Haible  <bruno@clisp.org>
35777
35778         Perform the same test for many <math.h> functions.
35779         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35780         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35781         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35782         of gl_MATHFUNC.
35783         * modules/acos (configure.ac): Likewise.
35784         * modules/asin (configure.ac): Likewise.
35785         * modules/atan (configure.ac): Likewise.
35786         * modules/atan2 (configure.ac): Likewise.
35787         * modules/cbrt (configure.ac): Likewise.
35788         * modules/copysign (configure.ac): Likewise.
35789         * modules/cos (configure.ac): Likewise.
35790         * modules/cosh (configure.ac): Likewise.
35791         * modules/erf (configure.ac): Likewise.
35792         * modules/erfc (configure.ac): Likewise.
35793         * modules/exp (configure.ac): Likewise.
35794         * modules/fmod (configure.ac): Likewise.
35795         * modules/hypot (configure.ac): Likewise.
35796         * modules/j0 (configure.ac): Likewise.
35797         * modules/j1 (configure.ac): Likewise.
35798         * modules/jn (configure.ac): Likewise.
35799         * modules/lgamma (configure.ac): Likewise.
35800         * modules/log (configure.ac): Likewise.
35801         * modules/log10 (configure.ac): Likewise.
35802         * modules/log1p (configure.ac): Likewise.
35803         * modules/pow (configure.ac): Likewise.
35804         * modules/remainder (configure.ac): Likewise.
35805         * modules/sin (configure.ac): Likewise.
35806         * modules/sinh (configure.ac): Likewise.
35807         * modules/tan (configure.ac): Likewise.
35808         * modules/tanh (configure.ac): Likewise.
35809         * modules/y0 (configure.ac): Likewise.
35810         * modules/y1 (configure.ac): Likewise.
35811         * modules/yn (configure.ac): Likewise.
35812         Suggested by Paolo Bonzini.
35813
35814 2010-01-31  Bruno Haible  <bruno@clisp.org>
35815
35816         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35817
35818 2010-01-31  Bruno Haible  <bruno@clisp.org>
35819
35820         Work around getdelim() bug on FreeBSD 8.0.
35821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35822         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35823         not work.
35824         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35825         is 1.
35826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35827         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35828         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35829         a non-zero size.
35830         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35831
35832 2010-01-31  Bruno Haible  <bruno@clisp.org>
35833
35834         Work around getline() bug on FreeBSD 8.0.
35835         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35836         and a non-zero size.
35837         * tests/test-getline.c (main): Likewise.
35838         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35839         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35840
35841 2010-01-28  Eric Blake  <ebb9@byu.net>
35842
35843         regex: fix build failure
35844         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35845         platforms.
35846
35847 2010-01-28  Jim Meyering  <meyering@redhat.com>
35848
35849         regex: do not ignore memory allocation failure
35850         * lib/regex_internal.c (create_cd_newstate): Detect
35851         re_node_set_init_copy failure.   Extracted from glibc commit
35852         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35853
35854         regex: sync more white-space changes from libc
35855         * lib/regex_internal.c: White-space only changes.
35856         * lib/regexec.c: Likewise.
35857
35858         regex: add many uses of __attribute_warn_unused_result__
35859         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35860         * lib/regexec.c: Likewise.
35861         Extracted from a messy glibc commit.
35862
35863         regcomp.c: spelling and merge-artifact from glibc
35864         * lib/regcomp.c: Merge remainder of glibc's
35865         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35866
35867         regcomp.c: sync white-space changes from glibc
35868         * lib/regcomp.c: Merge to accommodate white space
35869         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35870
35871         regcomp.c: do not ignore internal return values
35872         * lib/regcomp.c: Do not ignore internal return values.
35873         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35874         but without its white-space changes and spelling fixes.
35875
35876         regex_internal.h: define __attribute_warn_unused_result__
35877         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35878
35879         maint: add a syntax-check rule to check for vulnerable Makefile.in
35880         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35881
35882 2010-01-27  Jim Meyering  <meyering@redhat.com>
35883
35884         ncftpput-ftp: clean up spaces
35885         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35886         Remove trailing blanks.
35887
35888 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35889
35890         * build-aux/git-version-gen: Fix copyright statement.
35891         * build-aux/gnupload: Likewise.
35892         * tests/test-arcfour.c: Likewise.
35893         * tests/test-arctwo.c: Likewise.
35894         * tests/test-count-one-bits.c: Likewise.
35895         * tests/test-crc.c: Likewise.
35896         * tests/test-des.c: Likewise.
35897         * tests/test-gc-arcfour.c: Likewise.
35898         * tests/test-gc-arctwo.c: Likewise.
35899         * tests/test-gc-des.c: Likewise.
35900         * tests/test-gc-hmac-md5.c: Likewise.
35901         * tests/test-gc-hmac-sha1.c: Likewise.
35902         * tests/test-gc-md2.c: Likewise.
35903         * tests/test-gc-md4.c: Likewise.
35904         * tests/test-gc-md5.c: Likewise.
35905         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35906         * tests/test-gc-rijndael.c: Likewise.
35907         * tests/test-gc-sha1.c: Likewise.
35908         * tests/test-gc.c: Likewise.
35909         * tests/test-gethostname.c: Likewise.
35910         * tests/test-gettimeofday.c: Likewise.
35911         * tests/test-hash.c: Likewise.
35912         * tests/test-hmac-md5.c: Likewise.
35913         * tests/test-hmac-sha1.c: Likewise.
35914         * tests/test-md2.c: Likewise.
35915         * tests/test-md4.c: Likewise.
35916         * tests/test-md5.c: Likewise.
35917         * tests/test-memchr.c: Likewise.
35918         * tests/test-memchr2.c: Likewise.
35919         * tests/test-memcmp.c: Likewise.
35920         * tests/test-memmem.c: Likewise.
35921         * tests/test-memrchr.c: Likewise.
35922         * tests/test-rawmemchr.c: Likewise.
35923         * tests/test-read-file.c: Likewise.
35924         * tests/test-rijndael.c: Likewise.
35925         * tests/test-sockets.c: Likewise.
35926         * tests/test-strchrnul.c: Likewise.
35927         * tests/test-strstr.c: Likewise.
35928         * tests/test-strtod.c: Likewise.
35929         * build-aux/ncftpput-ftp: Likewise.
35930
35931 2010-01-26  Eric Blake  <ebb9@byu.net>
35932
35933         ignore-value: update recommended header name
35934         * modules/ignore-value (Include): Only use <> for headers that
35935         exist in glibc.
35936
35937 2010-01-26  Jim Meyering  <meyering@redhat.com>
35938
35939         test-userspec.c: avoid compiler warnings
35940         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35941         and "initialization discards qualifiers..." warnings.
35942         Put the first "uid" in its own scope, and make char* members "const".
35943
35944 2010-01-25  Bruno Haible  <bruno@clisp.org>
35945
35946         gnulib-tool: Make warning diagnostics consistent.
35947         * gnulib-tool (func_warning): New function.
35948         Use it everywhere where gnulib-tool produces output to stderr and it is
35949         not a fatal error.
35950
35951 2010-01-25  Bruno Haible  <bruno@clisp.org>
35952
35953         Fix test dependencies.
35954         * modules/xstrtol-tests (Depends-on): Add inttypes.
35955         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35956
35957 2010-01-25 Pádraig Brady <P@draigBrady.com>
35958
35959         syntax-check: detect incorrect boolean macro values in config.h
35960         * modules/maintainer-makefile (configure.ac): Parameterize the location
35961         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35962         The logic is from Eric Blake and the location indicated by Jim Meyering.
35963         Note the more natural CONFIG_HEADER name is prohibited by automake
35964         for backwards compatibility reasons.
35965         * top/maint.mk (sc_Wundef_boolean): New rule.
35966
35967 2010-01-25  Jim Meyering  <meyering@redhat.com>
35968
35969         bootstrap: detect MacOS 10.6's shasum, too
35970         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35971         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35972
35973 2010-01-23  Jim Meyering  <meyering@redhat.com>
35974
35975         xstrtoll: new module
35976         * modules/xstrtoll: New file.
35977         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35978         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35979         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35980         ./configure fails if you use this module and lack "long long".
35981         * modules/xstrtoll-tests: New module.
35982         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35983         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35984         new init.sh-based test framework.
35985
35986 2010-01-24  Bruno Haible  <bruno@clisp.org>
35987
35988         Tests for module 'yn'.
35989         * modules/yn-tests: New file.
35990         * tests/test-yn.c: New file.
35991
35992         Tests for module 'y1'.
35993         * modules/y1-tests: New file.
35994         * tests/test-y1.c: New file.
35995
35996         Tests for module 'y0'.
35997         * modules/y0-tests: New file.
35998         * tests/test-y0.c: New file.
35999
36000         Tests for module 'tanh'.
36001         * modules/tanh-tests: New file.
36002         * tests/test-tanh.c: New file.
36003
36004         Tests for module 'tan'.
36005         * modules/tan-tests: New file.
36006         * tests/test-tan.c: New file.
36007
36008         Tests for module 'sqrt'.
36009         * modules/sqrt-tests: New file.
36010         * tests/test-sqrt.c: New file.
36011
36012         Tests for module 'sinh'.
36013         * modules/sinh-tests: New file.
36014         * tests/test-sinh.c: New file.
36015
36016         Tests for module 'sin'.
36017         * modules/sin-tests: New file.
36018         * tests/test-sin.c: New file.
36019
36020         Tests for module 'rint'.
36021         * modules/rint-tests: New file.
36022         * tests/test-rint.c: New file.
36023
36024         Tests for module 'remainder'.
36025         * modules/remainder-tests: New file.
36026         * tests/test-remainder.c: New file.
36027
36028         Tests for module 'pow'.
36029         * modules/pow-tests: New file.
36030         * tests/test-pow.c: New file.
36031
36032         Tests for module 'nextafter'.
36033         * modules/nextafter-tests: New file.
36034         * tests/test-nextafter.c: New file.
36035
36036         Tests for module 'modf'.
36037         * modules/modf-tests: New file.
36038         * tests/test-modf.c: New file.
36039
36040         Tests for module 'logb'.
36041         * modules/logb-tests: New file.
36042         * tests/test-logb.c: New file.
36043
36044         Tests for module 'log1p'.
36045         * modules/log1p-tests: New file.
36046         * tests/test-log1p.c: New file.
36047
36048         Tests for module 'log10'.
36049         * modules/log10-tests: New file.
36050         * tests/test-log10.c: New file.
36051
36052         Tests for module 'log'.
36053         * modules/log-tests: New file.
36054         * tests/test-log.c: New file.
36055
36056         Tests for module 'lgamma'.
36057         * modules/lgamma-tests: New file.
36058         * tests/test-lgamma.c: New file.
36059
36060         Tests for module 'ldexp'.
36061         * modules/ldexp-tests: New file.
36062         * tests/test-ldexp.c: New file.
36063
36064         Tests for module 'jn'.
36065         * modules/jn-tests: New file.
36066         * tests/test-jn.c: New file.
36067
36068         Tests for module 'j1'.
36069         * modules/j1-tests: New file.
36070         * tests/test-j1.c: New file.
36071
36072         Tests for module 'j0'.
36073         * modules/j0-tests: New file.
36074         * tests/test-j0.c: New file.
36075
36076         Tests for module 'hypot'.
36077         * modules/hypot-tests: New file.
36078         * tests/test-hypot.c: New file.
36079
36080         Tests for module 'fmod'.
36081         * modules/fmod-tests: New file.
36082         * tests/test-fmod.c: New file.
36083
36084         Tests for module 'fabs'.
36085         * modules/fabs-tests: New file.
36086         * tests/test-fabs.c: New file.
36087
36088         Tests for module 'exp'.
36089         * modules/exp-tests: New file.
36090         * tests/test-exp.c: New file.
36091
36092         Tests for module 'erfc'.
36093         * modules/erfc-tests: New file.
36094         * tests/test-erfc.c: New file.
36095
36096         Tests for module 'erf'.
36097         * modules/erf-tests: New file.
36098         * tests/test-erf.c: New file.
36099
36100         Tests for module 'cosh'.
36101         * modules/cosh-tests: New file.
36102         * tests/test-cosh.c: New file.
36103
36104         Tests for module 'cos'.
36105         * modules/cos-tests: New file.
36106         * tests/test-cos.c: New file.
36107
36108         Tests for module 'copysign'.
36109         * modules/copysign-tests: New file.
36110         * tests/test-copysign.c: New file.
36111
36112         Tests for module 'cbrt'.
36113         * modules/cbrt-tests: New file.
36114         * tests/test-cbrt.c: New file.
36115
36116         Tests for module 'atan2'.
36117         * modules/atan2-tests: New file.
36118         * tests/test-atan2.c: New file.
36119
36120         Tests for module 'atan'.
36121         * modules/atan-tests: New file.
36122         * tests/test-atan.c: New file.
36123
36124         Tests for module 'asin'.
36125         * modules/asin-tests: New file.
36126         * tests/test-asin.c: New file.
36127
36128         Tests for module 'acos'.
36129         * modules/acos-tests: New file.
36130         * tests/test-acos.c: New file.
36131
36132 2010-01-24  Bruno Haible  <bruno@clisp.org>
36133
36134         Fix tests for common <math.h> functions.
36135         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36136         code snippet that references the function pointer, rather than merely
36137         calling the function. Substitute the FUNC_LIBM variable.
36138         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36139         * modules/acos (configure.ac): Likewise.
36140         * modules/asin (configure.ac): Likewise.
36141         * modules/atan (configure.ac): Likewise.
36142         * modules/atan2 (configure.ac): Likewise.
36143         * modules/cbrt (configure.ac): Likewise.
36144         * modules/copysign (configure.ac): Likewise.
36145         * modules/cos (configure.ac): Likewise.
36146         * modules/cosh (configure.ac): Likewise.
36147         * modules/erf (configure.ac): Likewise.
36148         * modules/erfc (configure.ac): Likewise.
36149         * modules/exp (configure.ac): Likewise.
36150         * modules/fabs (configure.ac): Likewise.
36151         * modules/fmod (configure.ac): Likewise.
36152         * modules/hypot (configure.ac): Likewise.
36153         * modules/j0 (configure.ac): Likewise.
36154         * modules/j1 (configure.ac): Likewise.
36155         * modules/jn (configure.ac): Likewise.
36156         * modules/ldexp (configure.ac): Likewise.
36157         * modules/lgamma (configure.ac): Likewise.
36158         * modules/log (configure.ac): Likewise.
36159         * modules/log10 (configure.ac): Likewise.
36160         * modules/log1p (configure.ac): Likewise.
36161         * modules/logb (configure.ac): Likewise.
36162         * modules/modf (configure.ac): Likewise.
36163         * modules/nextafter (configure.ac): Likewise.
36164         * modules/pow (configure.ac): Likewise.
36165         * modules/remainder (configure.ac): Likewise.
36166         * modules/rint (configure.ac): Likewise.
36167         * modules/sin (configure.ac): Likewise.
36168         * modules/sinh (configure.ac): Likewise.
36169         * modules/tan (configure.ac): Likewise.
36170         * modules/tanh (configure.ac): Likewise.
36171         * modules/y0 (configure.ac): Likewise.
36172         * modules/y1 (configure.ac): Likewise.
36173         * modules/yn (configure.ac): Likewise.
36174
36175 2010-01-24  Bruno Haible  <bruno@clisp.org>
36176
36177         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36178         * tests/test-acosl.c (x): New variable.
36179         (main): Store argument in x and fetch it from x.
36180         * tests/test-asinl.c (x): New variable.
36181         (main): Store argument in x and fetch it from x.
36182         * tests/test-atanl.c (x): New variable.
36183         (main): Store argument in x and fetch it from x.
36184         * tests/test-cosl.c (x): New variable.
36185         (main): Store argument in x and fetch it from x.
36186         * tests/test-expl.c (x): New variable.
36187         (main): Store argument in x and fetch it from x.
36188         * tests/test-logl.c (x): New variable.
36189         (main): Store argument in x and fetch it from x.
36190         * tests/test-sinl.c (x): New variable.
36191         (main): Store argument in x and fetch it from x.
36192         * tests/test-sqrtl.c (x): New variable.
36193         (main): Store argument in x and fetch it from x.
36194         * tests/test-tanl.c (x): New variable.
36195         (main): Store argument in x and fetch it from x.
36196
36197 2010-01-24  Bruno Haible  <bruno@clisp.org>
36198
36199         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36200         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36201         assignments to the initial TESTS_ENVIRONMENT.
36202         * doc/gnulib.texi (Unit test modules): Document it.
36203         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36204         TESTS_ENVIRONMENT.
36205         * modules/btowc-tests (Makefile.am): Likewise.
36206         * modules/c-stack-tests (Makefile.am): Likewise.
36207         * modules/c-strcase-tests (Makefile.am): Likewise.
36208         * modules/copy-file-tests (Makefile.am): Likewise.
36209         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36210         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36211         * modules/mbrtowc-tests (Makefile.am): Likewise.
36212         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36213         * modules/mbscasestr-tests (Makefile.am): Likewise.
36214         * modules/mbschr-tests (Makefile.am): Likewise.
36215         * modules/mbscspn-tests (Makefile.am): Likewise.
36216         * modules/mbsinit-tests (Makefile.am): Likewise.
36217         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36218         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36219         * modules/mbspbrk-tests (Makefile.am): Likewise.
36220         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36221         * modules/mbsrchr-tests (Makefile.am): Likewise.
36222         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36223         * modules/mbsspn-tests (Makefile.am): Likewise.
36224         * modules/mbsstr-tests (Makefile.am): Likewise.
36225         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36226         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36227         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36228         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36229         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36230         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36231         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36232         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36233         * modules/wcrtomb-tests (Makefile.am): Likewise.
36234         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36235         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36236         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36237         assignments from TESTS_ENVIRONMENT.
36238         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36239         augmentation.
36240         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36241         * modules/atexit-tests (Makefile.am): Likewise.
36242         * modules/binary-io-tests (Makefile.am): Likewise.
36243         * modules/closein-tests (Makefile.am): Likewise.
36244         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36245         * modules/exclude-tests (Makefile.am): Likewise.
36246         * modules/fflush-tests (Makefile.am): Likewise.
36247         * modules/fpending-tests (Makefile.am): Likewise.
36248         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36249         * modules/freadahead-tests (Makefile.am): Likewise.
36250         * modules/freadptr-tests (Makefile.am): Likewise.
36251         * modules/freadseek-tests (Makefile.am): Likewise.
36252         * modules/fseek-tests (Makefile.am): Likewise.
36253         * modules/fseeko-tests (Makefile.am): Likewise.
36254         * modules/ftell-tests (Makefile.am): Likewise.
36255         * modules/ftello-tests (Makefile.am): Likewise.
36256         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36257         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36258         * modules/lseek-tests (Makefile.am): Likewise.
36259         * modules/parse-duration-tests (Makefile.am): Likewise.
36260         * modules/perror-tests (Makefile.am): Likewise.
36261         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36262         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36263         * modules/pipe-tests (Makefile.am): Likewise.
36264         * modules/pread-tests (Makefile.am): Likewise.
36265         * modules/printf-posix-tests (Makefile.am): Likewise.
36266         * modules/select-tests (Makefile.am): Likewise.
36267         * modules/sigpipe-tests (Makefile.am): Likewise.
36268         * modules/tsearch-tests (Makefile.am): Likewise.
36269         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36270         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36271         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36272         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36273         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36274         * modules/version-etc-tests (Makefile.am): Likewise.
36275         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36276         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36277         * modules/xalloc-die-tests (Makefile.am): Likewise.
36278         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36279         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36280         * modules/xstrtol-tests (Makefile.am): Likewise.
36281         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36282         * modules/yesno-tests (Makefile.am): Likewise.
36283         Suggested by Jim Meyering.
36284
36285 2010-01-24  Bruno Haible  <bruno@clisp.org>
36286
36287         More documentation.
36288         * doc/gnulib.texi (Writing modules): New chapter.
36289         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36290         the new chapter.
36291
36292 2010-01-24  Jim Meyering  <meyering@redhat.com>
36293
36294         maint.mk: do not prepend "./" after filtering
36295         * top/maint.mk (_prepend_srcdir_prefix): New variable
36296         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36297         "./" when $(srcdir) is ".".
36298
36299         define STREQ(a,b) consistently, removing useless parentheses
36300         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36301         since the only risk is that "a" or "b" contains an unparenthesized
36302         comma, but if either did that, STREQ would have 3 or more arguments.
36303         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36304         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36305         * lib/hash-triple.c (STREQ): Likewise.
36306         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36307         * lib/getugroups.c (STREQ): Likewise.
36308
36309 2010-01-23  Jim Meyering  <meyering@redhat.com>
36310
36311         maint.mk: fix syntax-check in a non-srcdir build directory
36312         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36313         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36314
36315 2010-01-22  Jim Meyering  <meyering@redhat.com>
36316
36317         userspec: add unit tests
36318         * tests/test-userspec.c: New file.
36319         * modules/userspec-tests: Likewise.
36320
36321 2010-01-21  Jim Meyering  <meyering@redhat.com>
36322
36323         maint.mk: handle source file names containing "." robustly
36324         * top/maint.mk (_dot_escaped_srcdir): Define.
36325         (VC_LIST): Use it in LHS of sed substitution.
36326
36327 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36328
36329         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36330         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36331         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36332         from a non-srcdir build.
36333
36334 2010-01-20  Eric Blake  <ebb9@byu.net>
36335
36336         warn-on-use: use instead of link-warning
36337         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36338         * modules/unistd (Depends-on, Makefile.am): Likewise.
36339         * modules/arpa_inet (Depends-on): Replace link-warning with
36340         warn-on-use.
36341         (Makefile.am): Update rules accordingly.
36342         * modules/ctype (Depends-on, Makefile.am): Likewise.
36343         * modules/dirent (Depends-on, Makefile.am): Likewise.
36344         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36345         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36346         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36347         * modules/locale (Depends-on, Makefile.am): Likewise.
36348         * modules/math (Depends-on, Makefile.am): Likewise.
36349         * modules/search (Depends-on, Makefile.am): Likewise.
36350         * modules/signal (Depends-on, Makefile.am): Likewise.
36351         * modules/spawn (Depends-on, Makefile.am): Likewise.
36352         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36353         * modules/string (Depends-on, Makefile.am): Likewise.
36354         * modules/strings (Depends-on, Makefile.am): Likewise.
36355         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36356         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36357         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36358         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36359         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36360         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36361         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36362         * modules/wchar (Depends-on, Makefile.am): Likewise.
36363         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36364         should be poisoned.
36365         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36366         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36367         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36368         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36369         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36370         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36371         * m4/math_h.m4 (gl_MATH_H): Likewise.
36372         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36373         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36374         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36375         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36376         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36377         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36378         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36379         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36383         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36384         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36385         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36386         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36387         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36388         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36389         GL_LINK_WARNING.
36390         * lib/ctype.in.h: Likewise.
36391         * lib/dirent.in.h: Likewise.
36392         * lib/fcntl.in.h: Likewise.
36393         * lib/inttypes.in.h: Likewise.
36394         * lib/langinfo.in.h: Likewise.
36395         * lib/locale.in.h: Likewise.
36396         * lib/math.in.h: Likewise.
36397         * lib/search.in.h: Likewise.
36398         * lib/signal.in.h: Likewise.
36399         * lib/spawn.in.h: Likewise.
36400         * lib/stdio.in.h: Likewise.
36401         * lib/stdlib.in.h: Likewise.
36402         * lib/string.in.h: Likewise.
36403         * lib/strings.in.h: Likewise.
36404         * lib/sys_file.in.h: Likewise.
36405         * lib/sys_ioctl.in.h: Likewise.
36406         * lib/sys_select.in.h: Likewise.
36407         * lib/sys_socket.in.h: Likewise.
36408         * lib/sys_stat.in.h: Likewise.
36409         * lib/sys_times.in.h: Likewise.
36410         * lib/sys_utsname.in.h: Likewise.
36411         * lib/unistd.in.h: Likewise.
36412         * lib/wchar.in.h: Likewise.
36413
36414 2010-01-20  Bruno Haible  <bruno@clisp.org>
36415
36416         Avoid duplicate -lm.
36417         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36418         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36419         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36420         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36421         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36422         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36423         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36424         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36425         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36426         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36427         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36428         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36429         Reported by Paolo Bonzini.
36430
36431 2010-01-19  Bruno Haible  <bruno@clisp.org>
36432
36433         langinfo, nl_langinfo: Relicense under LGPLv2+.
36434         * modules/langinfo (License): Change to LGPLv2+.
36435         * modules/nl_langinfo (License): Likewise.
36436         Patch by David Lutterkort <lutter@redhat.com>.
36437
36438 2010-01-19  Bruno Haible  <bruno@clisp.org>
36439
36440         Avoid compilation error with cc on OSF/1 5.1.
36441         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36442         statement, not before.
36443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36444
36445 2010-01-18  Bruno Haible  <bruno@clisp.org>
36446
36447         Avoid a link error due to the __printf__ symbol.
36448         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36449         and 2.6.x.
36450         (__format__, __printf__): Remove definitions.
36451         * lib/argp-fmtstream.h: Likewise.
36452         * lib/argp.h: Likewise.
36453         * lib/error.h: Likewise.
36454         * lib/vasnprintf.h: Likewise.
36455         * lib/xprintf.h: Likewise.
36456         * lib/xvasprintf.h: Likewise.
36457         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36458
36459 2010-01-18  Bruno Haible  <bruno@clisp.org>
36460
36461         Tests for module 'tanl'.
36462         * modules/tanl-tests: New file.
36463         * tests/test-tanl.c: New file.
36464
36465         Tests for module 'sqrtl'.
36466         * modules/sqrtl-tests: New file.
36467         * tests/test-sqrtl.c: New file.
36468
36469         Tests for module 'sinl'.
36470         * modules/sinl-tests: New file.
36471         * tests/test-sinl.c: New file.
36472
36473         Tests for module 'logl'.
36474         * modules/logl-tests: New file.
36475         * tests/test-logl.c: New file.
36476
36477         Tests for module 'expl'.
36478         * modules/expl-tests: New file.
36479         * tests/test-expl.c: New file.
36480
36481         Tests for module 'cosl'.
36482         * modules/cosl-tests: New file.
36483         * tests/test-cosl.c: New file.
36484
36485         Tests for module 'atanl'.
36486         * modules/atanl-tests: New file.
36487         * tests/test-atanl.c: New file.
36488
36489         Tests for module 'asinl'.
36490         * modules/asinl-tests: New file.
36491         * tests/test-asinl.c: New file.
36492
36493         Tests for module 'acosl'.
36494         * modules/acosl-tests: New file.
36495         * tests/test-acosl.c: New file.
36496
36497         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36498         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36499         tanl): Use the standard gnulib idiom.
36500         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36501         * lib/sinl.c: Likewise.
36502         * lib/tanl.c: Don't include trigl.c.
36503         (kernel_tanl): Make static.
36504         * lib/sincosl.c: Include trigl.h first.
36505         * lib/trigl.c: Likewise.
36506         * m4/acosl.m4: New file.
36507         * m4/asinl.m4: New file.
36508         * m4/atanl.m4: New file.
36509         * m4/cosl.m4: New file.
36510         * m4/expl.m4: New file.
36511         * m4/logl.m4: New file.
36512         * m4/sinl.m4: New file.
36513         * m4/sqrtl.m4: New file.
36514         * m4/tanl.m4: New file.
36515         * m4/mathl.m4: Remove file.
36516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36517         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36518         Don't initialize GNULIB_MATHL.
36519         * modules/acosl: New file.
36520         * modules/asinl: New file.
36521         * modules/atanl: New file.
36522         * modules/cosl: New file.
36523         * modules/expl: New file.
36524         * modules/logl: New file.
36525         * modules/sinl: New file.
36526         * modules/sqrtl: New file.
36527         * modules/tanl: New file.
36528         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36529         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36530         substitute GNULIB_MATHL.
36531         * modules/mathl: Rewritten.
36532         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36533         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36534         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36535         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36536         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36537         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36538         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36539         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36540         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36541
36542 2010-01-18  Bruno Haible  <bruno@clisp.org>
36543
36544         sqrt: Make gl_FUNC_SQRT requirable.
36545         * m4/sqrt.m4: New file.
36546         * modules/sqrt (Files): Add it.
36547         (configure.ac): Invoke gl_FUNC_SQRT.
36548
36549 2010-01-18  Bruno Haible  <bruno@clisp.org>
36550
36551         New modules for common <math.h> functions.
36552         * m4/mathfunc.m4: New file.
36553         * modules/acos: New file.
36554         * modules/asin: New file.
36555         * modules/atan: New file.
36556         * modules/atan2: New file.
36557         * modules/cbrt: New file.
36558         * modules/copysign: New file.
36559         * modules/cos: New file.
36560         * modules/cosh: New file.
36561         * modules/erf: New file.
36562         * modules/erfc: New file.
36563         * modules/exp: New file.
36564         * modules/fabs: New file.
36565         * modules/fmod: New file.
36566         * modules/hypot: New file.
36567         * modules/j0: New file.
36568         * modules/j1: New file.
36569         * modules/jn: New file.
36570         * modules/ldexp: New file.
36571         * modules/lgamma: New file.
36572         * modules/log: New file.
36573         * modules/log10: New file.
36574         * modules/log1p: New file.
36575         * modules/logb: New file.
36576         * modules/modf: New file.
36577         * modules/nextafter: New file.
36578         * modules/pow: New file.
36579         * modules/remainder: New file.
36580         * modules/rint: New file.
36581         * modules/sin: New file.
36582         * modules/sinh: New file.
36583         * modules/sqrt: New file.
36584         * modules/tan: New file.
36585         * modules/tanh: New file.
36586         * modules/y0: New file.
36587         * modules/y1: New file.
36588         * modules/yn: New file.
36589         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36590         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36591         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36592         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36593         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36594         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36595         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36596         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36597         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36598         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36599         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36600         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36601         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36602         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36603         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36604         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36605         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36606         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36607         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36608         * doc/posix-functions/log.texi: Mention the 'log' module.
36609         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36610         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36611         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36612         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36613         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36614         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36615         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36616         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36617         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36618         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36619         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36620         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36621         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36622         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36623         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36624         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36625
36626 2010-01-18  Jim Meyering  <meyering@redhat.com>
36627
36628         ignore-value: relax license to LGPLv2+
36629         * modules/ignore-value (License): Relax to LGPLv2+.
36630
36631         getdate: don't leak when TZ contains two or more '"'s
36632         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36633         double quote in TZ after the first one.
36634
36635         readtokens: do not leak internal token_lengths buffer
36636         * lib/readtokens.c (readtokens): Free the local, lengths,
36637         when the supplied "token_lengths" parameter is NULL.
36638
36639 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36640
36641         Fix a couple of missing LIBTHREAD link failures on AIX.
36642         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36643         $(LIBTHREAD).
36644         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36645
36646         Link test-poll against INET_PTON_LIB.
36647         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36648         for inet_pton on Solaris 10.
36649
36650 2010-01-17  Bruno Haible  <bruno@clisp.org>
36651
36652         unistdio/*-sprintf: Fix typo in module description.
36653         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36654         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36655         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36656         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36657         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36658         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36659         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36661
36662 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36663
36664         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36665         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36666         variables in shell case patterns, for AIX and HP-UX ksh.
36667
36668         Split large sed scripts, for HP-UX sed.
36669         * modules/stdio: Split sed scripts around 50 sed commands,
36670         to avoid HP-UX limit of 99 commands, in the near future.
36671         * modules/string: Likewise.
36672         * modules/unistd: Likewise.
36673
36674         gnulib-tool: avoid writing in the current directory.
36675         * gnulib-tool (func_emit_lib_Makefile_am)
36676         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36677         not in the current directory, so concurrent gnulib-tool
36678         instances do not interfere.
36679
36680 2010-01-16  Jim Meyering  <meyering@redhat.com>
36681
36682         doc: update users.txt
36683         * users.txt: Add grep.
36684         (diffutils, gzip): Update URLs.
36685
36686 2010-01-12  Bruno Haible  <bruno@clisp.org>
36687
36688         posix_spawn: Avoid test failure on Cygwin.
36689         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36690         characters.
36691         Reported by Simon Josefsson.
36692
36693 2010-01-12  Bruno Haible  <bruno@clisp.org>
36694
36695         * tests/test-cond.c (main): When skipping the test, show the reason.
36696
36697 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36698
36699         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36700
36701 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36702
36703         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36704         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36705
36706 2010-01-12  Eric Blake  <ebb9@byu.net>
36707
36708         build: guarantee AS_VAR_IF
36709         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36710         (gl_AS_VAR_IF): Move...
36711         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36712         Reported by Simon Josefsson.
36713
36714 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36715
36716         * lib/stdio.in.h: Fix typo.
36717
36718 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36719
36720         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36721         libgpg-error.
36722
36723 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36724
36725         * tests/test-xalloc-die.sh: Use $EXEEXT.
36726
36727 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36728             Bruno Haible  <bruno@clisp.org>
36729
36730         getlogin, getlogin_r: Avoid test failure.
36731         * tests/test-getlogin.c: Include <stdio.h>.
36732         (main): Skip the test when the function fails because stdin is not a
36733         tty.
36734         * tests/test-getlogin_r.c: Include <stdio.h>.
36735         (main): Skip the test when the function fails because stdin is not a
36736         tty.
36737
36738 2010-01-11  Eric Blake  <ebb9@byu.net>
36739
36740         tests: avoid more large file warnings
36741         * tests/test-fflush.c: Avoid warning about ftell use.
36742         * tests/test-fseek.c: Avoid warning about fseek use.
36743
36744 2010-01-10  Bruno Haible  <bruno@clisp.org>
36745
36746         nproc: Work better on Linux when /proc and /sys are not mounted.
36747         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36748         as lower bound when, on glibc/Linux systems,
36749         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36750         Suggested by Pádraig Brady <P@draigbrady.com>.
36751         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36752
36753         nproc: Refactor.
36754         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36755         extracted from num_processors.
36756         (num_processors): Call it.
36757
36758 2010-01-11  Jim Meyering  <meyering@redhat.com>
36759
36760         utimecmp: avoid new warning from upcoming gcc-4.5.0
36761         * lib/utimecmp.c (BILLION): Define using #define rather than an
36762         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36763
36764 2010-01-11  Eric Blake  <ebb9@byu.net>
36765
36766         math: add portability warnings for classification macros
36767         * modules/math (Depends-on): Add warn-on-use.
36768         (Makefile.am): Provide new substitutions.
36769         * m4/math_h.m4 (gl_MATH_H): Require inline.
36770         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36771         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36772         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36773         implement warnings.
36774
36775         unistd: warn on use of environ without module
36776         * modules/unistd (Depends-on): Add warn-on-use.
36777         (Makefile.am): Provide new substitutions.
36778         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36779         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36780
36781         stdio: warn on suspicious uses
36782         * modules/stdio (Depends-on): Add warn-on-use.
36783         (Makefile.am): Provide new substitutions.
36784         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36785         fseeko.
36786         * lib/stdio.in.h (gets): Always warn on use.
36787         (fseek, ftell): Adjust when warnings are issued, and honor
36788         _GL_NO_LARGE_FILES as a way to silence the warning.
36789         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36790         any warning about large file offsets.
36791         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36792         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36793         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36794         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36795         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36796         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36797         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36798         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36799
36800         warn-on-use: new module
36801         * modules/warn-on-use: New file.
36802         * build-aux/warn-on-use.h: Likewise.
36803         * m4/warn-on-use.m4: Likewise.
36804         * MODULES.html.sh (Support for building): Mention it.
36805
36806 2010-01-10  Bruno Haible  <bruno@clisp.org>
36807
36808         Tests for module 'unistr/u32-strdup'.
36809         * modules/unistr/u32-strdup-tests: New file.
36810         * tests/unistr/test-u32-strdup.c: New file.
36811
36812         Tests for module 'unistr/u16-strdup'.
36813         * modules/unistr/u16-strdup-tests: New file.
36814         * tests/unistr/test-u16-strdup.c: New file.
36815
36816         Tests for module 'unistr/u8-strdup'.
36817         * modules/unistr/u8-strdup-tests: New file.
36818         * tests/unistr/test-u8-strdup.c: New file.
36819         * tests/unistr/test-strdup.h: New file.
36820
36821         Tests for module 'unistr/u32-strncmp'.
36822         * modules/unistr/u32-strncmp-tests: New file.
36823         * tests/unistr/test-u32-strncmp.c: New file.
36824
36825         Tests for module 'unistr/u16-strncmp'.
36826         * modules/unistr/u16-strncmp-tests: New file.
36827         * tests/unistr/test-u16-strncmp.c: New file.
36828
36829         Tests for module 'unistr/u8-strncmp'.
36830         * modules/unistr/u8-strncmp-tests: New file.
36831         * tests/unistr/test-u8-strncmp.c: New file.
36832         * tests/unistr/test-strncmp.h: New file.
36833
36834         Tests for module 'unistr/u32-strcoll'.
36835         * modules/unistr/u32-strcoll-tests: New file.
36836         * tests/unistr/test-u32-strcoll.c: New file.
36837
36838         Tests for module 'unistr/u16-strcoll'.
36839         * modules/unistr/u16-strcoll-tests: New file.
36840         * tests/unistr/test-u16-strcoll.c: New file.
36841
36842         Tests for module 'unistr/u8-strcoll'.
36843         * modules/unistr/u8-strcoll-tests: New file.
36844         * tests/unistr/test-u8-strcoll.c: New file.
36845
36846         Tests for module 'unistr/u32-strcmp'.
36847         * modules/unistr/u32-strcmp-tests: New file.
36848         * tests/unistr/test-u32-strcmp.c: New file.
36849         * tests/unistr/test-u32-strcmp.h: New file.
36850
36851         Tests for module 'unistr/u16-strcmp'.
36852         * modules/unistr/u16-strcmp-tests: New file.
36853         * tests/unistr/test-u16-strcmp.c: New file.
36854         * tests/unistr/test-u16-strcmp.h: New file.
36855
36856         Tests for module 'unistr/u8-strcmp'.
36857         * modules/unistr/u8-strcmp-tests: New file.
36858         * tests/unistr/test-u8-strcmp.c: New file.
36859         * tests/unistr/test-u8-strcmp.h: New file.
36860         * tests/unistr/test-strcmp.h: New file.
36861
36862         Tests for module 'unistr/u32-strncat'.
36863         * modules/unistr/u32-strncat-tests: New file.
36864         * tests/unistr/test-u32-strncat.c: New file.
36865
36866         Tests for module 'unistr/u16-strncat'.
36867         * modules/unistr/u16-strncat-tests: New file.
36868         * tests/unistr/test-u16-strncat.c: New file.
36869
36870         Tests for module 'unistr/u8-strncat'.
36871         * modules/unistr/u8-strncat-tests: New file.
36872         * tests/unistr/test-u8-strncat.c: New file.
36873         * tests/unistr/test-strncat.h: New file.
36874
36875         Tests for module 'unistr/u32-strcat'.
36876         * modules/unistr/u32-strcat-tests: New file.
36877         * tests/unistr/test-u32-strcat.c: New file.
36878
36879         Tests for module 'unistr/u16-strcat'.
36880         * modules/unistr/u16-strcat-tests: New file.
36881         * tests/unistr/test-u16-strcat.c: New file.
36882
36883         Tests for module 'unistr/u8-strcat'.
36884         * modules/unistr/u8-strcat-tests: New file.
36885         * tests/unistr/test-u8-strcat.c: New file.
36886         * tests/unistr/test-strcat.h: New file.
36887
36888         Tests for module 'unistr/u32-stpncpy'.
36889         * modules/unistr/u32-stpncpy-tests: New file.
36890         * tests/unistr/test-u32-stpncpy.c: New file.
36891
36892         Tests for module 'unistr/u16-stpncpy'.
36893         * modules/unistr/u16-stpncpy-tests: New file.
36894         * tests/unistr/test-u16-stpncpy.c: New file.
36895
36896         Tests for module 'unistr/u8-stpncpy'.
36897         * modules/unistr/u8-stpncpy-tests: New file.
36898         * tests/unistr/test-u8-stpncpy.c: New file.
36899         * tests/unistr/test-stpncpy.h: New file.
36900
36901         Tests for module 'unistr/u32-strncpy'.
36902         * modules/unistr/u32-strncpy-tests: New file.
36903         * tests/unistr/test-u32-strncpy.c: New file.
36904
36905         Tests for module 'unistr/u16-strncpy'.
36906         * modules/unistr/u16-strncpy-tests: New file.
36907         * tests/unistr/test-u16-strncpy.c: New file.
36908
36909         Tests for module 'unistr/u8-strncpy'.
36910         * modules/unistr/u8-strncpy-tests: New file.
36911         * tests/unistr/test-u8-strncpy.c: New file.
36912         * tests/unistr/test-strncpy.h: New file.
36913
36914         Tests for module 'unistr/u32-stpcpy'.
36915         * modules/unistr/u32-stpcpy-tests: New file.
36916         * tests/unistr/test-u32-stpcpy.c: New file.
36917
36918         Tests for module 'unistr/u16-stpcpy'.
36919         * modules/unistr/u16-stpcpy-tests: New file.
36920         * tests/unistr/test-u16-stpcpy.c: New file.
36921
36922         Tests for module 'unistr/u8-stpcpy'.
36923         * modules/unistr/u8-stpcpy-tests: New file.
36924         * tests/unistr/test-u8-stpcpy.c: New file.
36925         * tests/unistr/test-stpcpy.h: New file.
36926
36927         Tests for module 'unistr/u32-strcpy'.
36928         * modules/unistr/u32-strcpy-tests: New file.
36929         * tests/unistr/test-u32-strcpy.c: New file.
36930
36931         Tests for module 'unistr/u16-strcpy'.
36932         * modules/unistr/u16-strcpy-tests: New file.
36933         * tests/unistr/test-u16-strcpy.c: New file.
36934
36935         Tests for module 'unistr/u8-strcpy'.
36936         * modules/unistr/u8-strcpy-tests: New file.
36937         * tests/unistr/test-u8-strcpy.c: New file.
36938         * tests/unistr/test-strcpy.h: New file.
36939
36940         Tests for module 'unistr/u32-strnlen'.
36941         * modules/unistr/u32-strnlen-tests: New file.
36942         * tests/unistr/test-u32-strnlen.c: New file.
36943
36944         Tests for module 'unistr/u16-strnlen'.
36945         * modules/unistr/u16-strnlen-tests: New file.
36946         * tests/unistr/test-u16-strnlen.c: New file.
36947
36948         Tests for module 'unistr/u8-strnlen'.
36949         * modules/unistr/u8-strnlen-tests: New file.
36950         * tests/unistr/test-u8-strnlen.c: New file.
36951         * tests/unistr/test-strnlen.h: New file.
36952
36953         Tests for module 'unistr/u32-strlen'.
36954         * modules/unistr/u32-strlen-tests: New file.
36955         * tests/unistr/test-u32-strlen.c: New file.
36956
36957         Tests for module 'unistr/u16-strlen'.
36958         * modules/unistr/u16-strlen-tests: New file.
36959         * tests/unistr/test-u16-strlen.c: New file.
36960
36961         Tests for module 'unistr/u8-strlen'.
36962         * modules/unistr/u8-strlen-tests: New file.
36963         * tests/unistr/test-u8-strlen.c: New file.
36964
36965         Tests for module 'unistr/u32-prev'.
36966         * modules/unistr/u32-prev-tests: New file.
36967         * tests/unistr/test-u32-prev.c: New file.
36968
36969         Tests for module 'unistr/u16-prev'.
36970         * modules/unistr/u16-prev-tests: New file.
36971         * tests/unistr/test-u16-prev.c: New file.
36972
36973         Tests for module 'unistr/u8-prev'.
36974         * modules/unistr/u8-prev-tests: New file.
36975         * tests/unistr/test-u8-prev.c: New file.
36976
36977         Tests for module 'unistr/u32-next'.
36978         * modules/unistr/u32-next-tests: New file.
36979         * tests/unistr/test-u32-next.c: New file.
36980
36981         Tests for module 'unistr/u16-next'.
36982         * modules/unistr/u16-next-tests: New file.
36983         * tests/unistr/test-u16-next.c: New file.
36984
36985         Tests for module 'unistr/u8-next'.
36986         * modules/unistr/u8-next-tests: New file.
36987         * tests/unistr/test-u8-next.c: New file.
36988
36989         Tests for module 'unistr/u32-strmbtouc'.
36990         * modules/unistr/u32-strmbtouc-tests: New file.
36991         * tests/unistr/test-u32-strmbtouc.c: New file.
36992
36993         Tests for module 'unistr/u16-strmbtouc'.
36994         * modules/unistr/u16-strmbtouc-tests: New file.
36995         * tests/unistr/test-u16-strmbtouc.c: New file.
36996
36997         Tests for module 'unistr/u8-strmbtouc'.
36998         * modules/unistr/u8-strmbtouc-tests: New file.
36999         * tests/unistr/test-u8-strmbtouc.c: New file.
37000
37001         Tests for module 'unistr/u32-strmblen'.
37002         * modules/unistr/u32-strmblen-tests: New file.
37003         * tests/unistr/test-u32-strmblen.c: New file.
37004
37005         Tests for module 'unistr/u16-strmblen'.
37006         * modules/unistr/u16-strmblen-tests: New file.
37007         * tests/unistr/test-u16-strmblen.c: New file.
37008
37009         Tests for module 'unistr/u8-strmblen'.
37010         * modules/unistr/u8-strmblen-tests: New file.
37011         * tests/unistr/test-u8-strmblen.c: New file.
37012
37013         Tests for module 'unistr/u32-cpy-alloc'.
37014         * modules/unistr/u32-cpy-alloc-tests: New file.
37015         * tests/unistr/test-u32-cpy-alloc.c: New file.
37016
37017         Tests for module 'unistr/u16-cpy-alloc'.
37018         * modules/unistr/u16-cpy-alloc-tests: New file.
37019         * tests/unistr/test-u16-cpy-alloc.c: New file.
37020
37021         Tests for module 'unistr/u8-cpy-alloc'.
37022         * modules/unistr/u8-cpy-alloc-tests: New file.
37023         * tests/unistr/test-u8-cpy-alloc.c: New file.
37024         * tests/unistr/test-cpy-alloc.h: New file.
37025
37026         Tests for module 'unistr/u32-mbsnlen'.
37027         * modules/unistr/u32-mbsnlen-tests: New file.
37028         * tests/unistr/test-u32-mbsnlen.c: New file.
37029
37030         Tests for module 'unistr/u16-mbsnlen'.
37031         * modules/unistr/u16-mbsnlen-tests: New file.
37032         * tests/unistr/test-u16-mbsnlen.c: New file.
37033
37034         Tests for module 'unistr/u8-mbsnlen'.
37035         * modules/unistr/u8-mbsnlen-tests: New file.
37036         * tests/unistr/test-u8-mbsnlen.c: New file.
37037
37038         Tests for module 'unistr/u32-chr'.
37039         * modules/unistr/u32-chr-tests: New file.
37040         * tests/unistr/test-u32-chr.c: New file.
37041
37042         Tests for module 'unistr/u16-chr'.
37043         * modules/unistr/u16-chr-tests: New file.
37044         * tests/unistr/test-u16-chr.c: New file.
37045
37046         Tests for module 'unistr/u8-chr'.
37047         * modules/unistr/u8-chr-tests: New file.
37048         * tests/unistr/test-u8-chr.c: New file.
37049         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37050
37051         Tests for module 'unistr/u32-cmp2'.
37052         * modules/unistr/u32-cmp2-tests: New file.
37053         * tests/unistr/test-u32-cmp2.c: New file.
37054
37055         Tests for module 'unistr/u16-cmp2'.
37056         * modules/unistr/u16-cmp2-tests: New file.
37057         * tests/unistr/test-u16-cmp2.c: New file.
37058
37059         Tests for module 'unistr/u8-cmp2'.
37060         * modules/unistr/u8-cmp2-tests: New file.
37061         * tests/unistr/test-u8-cmp2.c: New file.
37062         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37063
37064         Tests for module 'unistr/u32-cmp'.
37065         * modules/unistr/u32-cmp-tests: New file.
37066         * tests/unistr/test-u32-cmp.c: New file.
37067
37068         Tests for module 'unistr/u16-cmp'.
37069         * modules/unistr/u16-cmp-tests: New file.
37070         * tests/unistr/test-u16-cmp.c: New file.
37071
37072         Tests for module 'unistr/u8-cmp'.
37073         * modules/unistr/u8-cmp-tests: New file.
37074         * tests/unistr/test-u8-cmp.c: New file.
37075         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37076
37077         Tests for module 'unistr/u32-set'.
37078         * modules/unistr/u32-set-tests: New file.
37079         * tests/unistr/test-u32-set.c: New file.
37080
37081         Tests for module 'unistr/u16-set'.
37082         * modules/unistr/u16-set-tests: New file.
37083         * tests/unistr/test-u16-set.c: New file.
37084
37085         Tests for module 'unistr/u8-set'.
37086         * modules/unistr/u8-set-tests: New file.
37087         * tests/unistr/test-u8-set.c: New file.
37088         * tests/unistr/test-set.h: New file.
37089
37090         Tests for module 'unistr/u32-move'.
37091         * modules/unistr/u32-move-tests: New file.
37092         * tests/unistr/test-u32-move.c: New file.
37093
37094         Tests for module 'unistr/u16-move'.
37095         * modules/unistr/u16-move-tests: New file.
37096         * tests/unistr/test-u16-move.c: New file.
37097
37098         Tests for module 'unistr/u8-move'.
37099         * modules/unistr/u8-move-tests: New file.
37100         * tests/unistr/test-u8-move.c: New file.
37101         * tests/unistr/test-move.h: New file.
37102
37103         Tests for module 'unistr/u32-cpy'.
37104         * modules/unistr/u32-cpy-tests: New file.
37105         * tests/unistr/test-u32-cpy.c: New file.
37106
37107         Tests for module 'unistr/u16-cpy'.
37108         * modules/unistr/u16-cpy-tests: New file.
37109         * tests/unistr/test-u16-cpy.c: New file.
37110
37111         Tests for module 'unistr/u8-cpy'.
37112         * modules/unistr/u8-cpy-tests: New file.
37113         * tests/unistr/test-u8-cpy.c: New file.
37114         * tests/unistr/test-cpy.h: New file.
37115
37116 2010-01-09  Bruno Haible  <bruno@clisp.org>
37117
37118         Tests for module 'unistr/u32-uctomb'.
37119         * modules/unistr/u32-uctomb-tests: New file.
37120         * tests/unistr/test-u32-uctomb.c: New file.
37121
37122         Tests for module 'unistr/u16-uctomb'.
37123         * modules/unistr/u16-uctomb-tests: New file.
37124         * tests/unistr/test-u16-uctomb.c: New file.
37125
37126         Tests for module 'unistr/u8-uctomb'.
37127         * modules/unistr/u8-uctomb-tests: New file.
37128         * tests/unistr/test-u8-uctomb.c: New file.
37129
37130         Tests for module 'unistr/u32-mbtoucr'.
37131         * modules/unistr/u32-mbtoucr-tests: New file.
37132         * tests/unistr/test-u32-mbtoucr.c: New file.
37133
37134         Tests for module 'unistr/u16-mbtoucr'.
37135         * modules/unistr/u16-mbtoucr-tests: New file.
37136         * tests/unistr/test-u16-mbtoucr.c: New file.
37137
37138         Tests for module 'unistr/u8-mbtoucr'.
37139         * modules/unistr/u8-mbtoucr-tests: New file.
37140         * tests/unistr/test-u8-mbtoucr.c: New file.
37141
37142         Tests for module 'unistr/u32-mbtouc'.
37143         * modules/unistr/u32-mbtouc-tests: New file.
37144         * tests/unistr/test-u32-mbtouc.c: New file.
37145
37146         Tests for module 'unistr/u16-mbtouc'.
37147         * modules/unistr/u16-mbtouc-tests: New file.
37148         * tests/unistr/test-u16-mbtouc.c: New file.
37149
37150         Tests for module 'unistr/u8-mbtouc'.
37151         * modules/unistr/u8-mbtouc-tests: New file.
37152         * tests/unistr/test-u8-mbtouc.c: New file.
37153
37154         Tests for module 'unistr/u32-mbtouc-unsafe'.
37155         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37156         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37157         * tests/unistr/test-u32-mbtouc.h: New file.
37158
37159         Tests for module 'unistr/u16-mbtouc-unsafe'.
37160         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37161         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37162         * tests/unistr/test-u16-mbtouc.h: New file.
37163
37164         Tests for module 'unistr/u8-mbtouc-unsafe'.
37165         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37166         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37167         * tests/unistr/test-u8-mbtouc.h: New file.
37168
37169         Tests for module 'unistr/u32-mblen'.
37170         * modules/unistr/u32-mblen-tests: New file.
37171         * tests/unistr/test-u32-mblen.c: New file.
37172
37173         Tests for module 'unistr/u16-mblen'.
37174         * modules/unistr/u16-mblen-tests: New file.
37175         * tests/unistr/test-u16-mblen.c: New file.
37176
37177         Tests for module 'unistr/u8-mblen'.
37178         * modules/unistr/u8-mblen-tests: New file.
37179         * tests/unistr/test-u8-mblen.c: New file.
37180
37181         Tests for module 'unistr/u32-to-u16'.
37182         * modules/unistr/u32-to-u16-tests: New file.
37183         * tests/unistr/test-u32-to-u16.c: New file.
37184
37185         Tests for module 'unistr/u32-to-u8'.
37186         * modules/unistr/u32-to-u8-tests: New file.
37187         * tests/unistr/test-u32-to-u8.c: New file.
37188
37189         Tests for module 'unistr/u16-to-u32'.
37190         * modules/unistr/u16-to-u32-tests: New file.
37191         * tests/unistr/test-u16-to-u32.c: New file.
37192
37193         Tests for module 'unistr/u16-to-u8'.
37194         * modules/unistr/u16-to-u8-tests: New file.
37195         * tests/unistr/test-u16-to-u8.c: New file.
37196
37197         Tests for module 'unistr/u8-to-u32'.
37198         * modules/unistr/u8-to-u32-tests: New file.
37199         * tests/unistr/test-u8-to-u32.c: New file.
37200
37201         Tests for module 'unistr/u8-to-u16'.
37202         * modules/unistr/u8-to-u16-tests: New file.
37203         * tests/unistr/test-u8-to-u16.c: New file.
37204
37205         Tests for module 'unistr/u32-check'.
37206         * modules/unistr/u32-check-tests: New file.
37207         * tests/unistr/test-u32-check.c: New file.
37208
37209         Tests for module 'unistr/u16-check'.
37210         * modules/unistr/u16-check-tests: New file.
37211         * tests/unistr/test-u16-check.c: New file.
37212
37213         Tests for module 'unistr/u8-check'.
37214         * modules/unistr/u8-check-tests: New file.
37215         * tests/unistr/test-u8-check.c: New file.
37216
37217         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37218         (category_equals): New function.
37219         (main): Add more tests.
37220         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37221
37222         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37223
37224 2010-01-10  Bruno Haible  <bruno@clisp.org>
37225
37226         unistr/u*-strcoll: Try harder to distinguish different strings.
37227         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37228         compare s1 and s2 to see if they are different.
37229
37230 2010-01-10  Bruno Haible  <bruno@clisp.org>
37231
37232         unistr/u*-stpncpy: Fix the return value.
37233         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37234         description of the return value consistent with stpncpy in glibc.
37235         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37236         written non-NUL unit.
37237
37238 2010-01-10  Bruno Haible  <bruno@clisp.org>
37239
37240         unistr/u*-next: Add missing dependencies.
37241         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37242         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37243         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37244
37245 2010-01-10  Bruno Haible  <bruno@clisp.org>
37246
37247         unistr/u8-mbsnlen: Fix return value for incomplete character.
37248         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37249         u8_mblen.
37250         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37251         Remove unistr/u8-mblen.
37252         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37253         u16_mblen.
37254         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37255         Remove unistr/u16-mblen.
37256
37257 2010-01-10  Bruno Haible  <bruno@clisp.org>
37258
37259         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37260         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37261         Reported by Brian Gough <bjg@gnu.org> and
37262         Chris Clayton <chris2553@googlemail.com> via
37263         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37264
37265 2010-01-09  Bruno Haible  <bruno@clisp.org>
37266
37267         unistr/u16-to-u32: Reject invalid input.
37268         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37269         u16_mbtouc.
37270         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37271         Remove unistr/u16-mbtouc.
37272
37273         unistr/u16-to-u8: Reject invalid input.
37274         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37275         u16_mbtouc.
37276         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37277         Remove unistr/u16-mbtouc.
37278
37279         unistr/u8-to-u32: Reject invalid input.
37280         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37281         u8_mbtouc.
37282         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37283         Remove unistr/u8-mbtouc.
37284
37285         unistr/u8-to-u16: Reject invalid input.
37286         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37287         u8_mbtouc.
37288         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37289         Remove unistr/u8-mbtouc.
37290
37291 2010-01-09  Bruno Haible  <bruno@clisp.org>
37292
37293         Tests for module 'getlogin'.
37294         * modules/getlogin-tests: New file.
37295         * tests/test-getlogin.c: New file.
37296
37297         New module 'getlogin'.
37298         * lib/unistd.in.h (getlogin): New declaration.
37299         * lib/getlogin.c: New file.
37300         * m4/getlogin.m4: New file.
37301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37302         HAVE_GETLOGIN.
37303         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37304         HAVE_GETLOGIN.
37305         * modules/getlogin: New file.
37306         * doc/posix-functions/getlogin.texi: Mention the new module.
37307         Reported by John W. Eaton <jwe@gnu.org>.
37308
37309 2010-01-09  Bruno Haible  <bruno@clisp.org>
37310
37311         getlogin_r: Support for native Windows.
37312         * lib/getlogin_r.c: Include <windows.h>
37313         (getlogin_r): Implement for native Windows.
37314         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37315         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37316         via John W. Eaton <jwe@gnu.org>.
37317
37318 2010-01-09  Bruno Haible  <bruno@clisp.org>
37319
37320         getlogin_r: Small fixes.
37321         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37322         succeeds.
37323         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37324         before testing whether getlogin_r is declared. No need to set
37325         HAVE_DECL_GETLOGIN_R to 1.
37326         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37327
37328 2010-01-09  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/unistd.in.h (getlogin_r): Add comment.
37331
37332 2010-01-09  Bruno Haible  <bruno@clisp.org>
37333
37334         Tests for module 'getlogin_r'.
37335         * modules/getlogin_r-tests: New file.
37336         * tests/test-getlogin_r.c: New file.
37337
37338 2010-01-09  Jim Meyering  <meyering@redhat.com>
37339
37340         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37341         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37342         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37343
37344 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37345
37346         * lib/dup2.c (rpl_dup2): Improve comment.
37347
37348 2010-01-08  Eric Blake  <ebb9@byu.net>
37349
37350         maint.mk: allow packages to add makefile @@ exceptions
37351         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37352         (sc_makefile_check): Rename...
37353         (sc_makefile_at_at_check): ...to this, and use hook.
37354
37355         dup2: work around mingw bug
37356         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37357         Reported by Simon Josefsson.
37358
37359 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37360
37361         glob: Fix C++ compilation.
37362         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37363         C++.
37364
37365 2010-01-07  Bruno Haible  <bruno@clisp.org>
37366
37367         Fix indentation of wctype.in.h, broken since 2007-01-06.
37368         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37369
37370 2010-01-07  Bruno Haible  <bruno@clisp.org>
37371
37372         mbslen: Avoid collision with system function.
37373         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37374         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37375         * m4/mbslen.m4: New file.
37376         * modules/mbslen (Files): Add it.
37377         (configure.ac): Invoke gl_MBSLEN.
37378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37379         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37380         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37381         via Ian Beckwith <ianb@erislabs.net>.
37382
37383 2010-01-07  Bruno Haible  <bruno@clisp.org>
37384
37385         dirent: Document the last fix.
37386         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37387
37388 2010-01-07  Bruno Haible  <bruno@clisp.org>
37389
37390         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37391         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37392         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37393         va_list are defined.
37394         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37395         Reported by Eric Blake.
37396
37397 2010-01-07  Bruno Haible  <bruno@clisp.org>
37398
37399         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37400         * modules/xlist (Depends-on): Add 'list',
37401         * modules/xoset (Depends-on): Add 'oset'.
37402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37403
37404 2010-01-07  Bruno Haible  <bruno@clisp.org>
37405
37406         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37407         * doc/posix-functions/strncasecmp.texi: Likewise.
37408
37409 2010-01-07  Bruno Haible  <bruno@clisp.org>
37410
37411         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37412
37413 2010-01-07  John W. Eaton  <jwe@octave.org>
37414
37415         wctype: allow C++ use
37416         * lib/wctype.in.h: Add extern "C" block for C++.
37417
37418 2010-01-06  Eric Blake  <ebb9@byu.net>
37419
37420         maint.mk: detect incorrect GFDL usage
37421         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37422
37423 2010-01-06  Jim Meyering  <meyering@redhat.com>
37424         and Eric Blake  <ebb9@byu.net>
37425
37426         maint.mk: ignore multi-line copyright in NEWS
37427         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37428
37429 2010-01-06  Eric Blake  <ebb9@byu.net>
37430
37431         select: add missing dependency
37432         * modules/select-tests (Depends-on): Move sockets dependency...
37433         * modules/select (Depends-on): ...here.
37434         Reported by Ian Beckwith.
37435
37436         doc: regenerate INSTALL
37437         * doc/INSTALL: Reflect recent autoconf update.
37438         * doc/INSTALL.ISO: Likewise.
37439         * doc/INSTALL.UTF-8: Likewise.
37440
37441         pread: fix compilation on glibc
37442         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37443         Reported by Ralf Wildenhues.
37444
37445         dirent: fix test failure
37446         * lib/dirent.in.h (includes): Guarantee ino_t.
37447         Reported by Ralf Wildenhues.
37448
37449 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37450
37451         linkat, renameat: avoid bad free
37452         * lib/at-func2.c (at_func2): Fix typo.
37453         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37454
37455 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37456
37457         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37458         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37459         to avoid failure of symlink test later.
37460
37461 2010-01-06  Eric Blake  <ebb9@byu.net>
37462
37463         stdio, unistd: guarantee ssize_t
37464         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37465         2008 are exposed when needed.
37466         * lib/stdio.in.h (includes): Likewise.
37467         Reported by Ralf Wildenhues.
37468
37469 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37470
37471         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37472         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37473         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37474
37475 2010-01-06  Jim Meyering  <meyering@redhat.com>
37476
37477         readtokens: this module *does* require xalloc.h
37478         It uses only functions that were omitted by the old syntax-check rule.
37479         * lib/readtokens.c: Include "xalloc.h" once again.
37480         * modules/readtokens (Depends-on): Add xalloc.
37481         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37482
37483 2010-01-05  Eric Blake  <ebb9@byu.net>
37484
37485         maint: support 'make announcement' from a VPATH build
37486         * top/maint.mk (announcement): Look for correct NEWS file.
37487
37488 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37489
37490         utimens (fdutimens): ignore a negative FD, per contract
37491         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37492         when we have a valid file descriptor.  Otherwise, using a brand
37493         new glibc (with just-patched futimens that now fails with EBADF)
37494         would cause this function to fail with ENOSYS.
37495         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37496         See also http://bugzilla.redhat.com/552320.
37497
37498 2010-01-05  Eric Blake  <ebb9@byu.net>
37499
37500         strcase: document what it provides
37501         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37502         gnulib module.
37503         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37504         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37505
37506 2010-01-05  Jim Meyering  <meyering@redhat.com>
37507
37508         maint: remove useless inclusions of "xalloc.h"
37509         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37510         * lib/readtokens.c: Likewise.
37511         * lib/same.c: Likewise.
37512         * modules/getloadavg (Depends-on): Remove xalloc.
37513         * modules/readtokens: Likewise.
37514         * modules/same: Likewise.
37515
37516         maint.mk: include 4 more function names in alloca.h-checking regexp
37517         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37518         regexp.  Before, we would give a false-positive (saying alloca.h
37519         is included unnecessarily) when the only uses involved omitted symbols.
37520
37521         xalloc.h: use consistent formatting
37522         * lib/xalloc.h: Move declarations to start in the first column.
37523
37524 2010-01-05  Eric Blake  <ebb9@byu.net>
37525
37526         mkdir: avoid xalloc
37527         * lib/mkdir.c (includes): Drop unused header.
37528         Reported by John W. Eaton.
37529
37530 2010-01-04  Jim Meyering  <meyering@redhat.com>
37531
37532         nl_langinfo: avoid configure-time syntax error
37533         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37534         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37535         the empty string.  Don't let that provoke a shell syntax error.
37536
37537         regcomp, regexec, fnmatch: avoid array bounds read error
37538         * lib/regcomp.c (build_equiv_class): From glibc:
37539         Use only the low 24 bits of a findidx return value as an index
37540         into the weights array.  Patch by Ulrich Drepper:
37541         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37542         * lib/regexec.c (check_node_accept_bytes): Likewise.
37543         * lib/fnmatch_loop.c (FCT): Likewise.
37544
37545         regcomp: skip collseq lookup when there are no rules
37546         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37547         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37548
37549         regcomp: recognize ill-formed { } expressions
37550         * lib/regcomp.c (parse_dup_op): From glibc:
37551         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37552
37553         regcomp: fix typo in comment
37554         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37555         s/satisfy/satisfies/.
37556
37557         regcomp: sync from glibc: remove dead store
37558         * lib/regcomp.c (duplicate_node_closure): Remove useless
37559         search_duplicated_node call and dead store.
37560
37561         regcomp: sync from glibc; always use nl_langinfo
37562         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37563         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37564         * modules/regex (Depends-on): Add nl_langinfo.
37565
37566 2010-01-04  Eric Blake  <ebb9@byu.net>
37567
37568         fdopendir: fix configure test
37569         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37570
37571 2010-01-01  Bruno Haible  <bruno@clisp.org>
37572
37573         wchar: Remove unused configure check.
37574         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37575
37576 2010-01-01  Eric Blake  <ebb9@byu.net>
37577
37578         headers: make check of system header explicit
37579         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37580         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37581         ourselves.
37582         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37583         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37585         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37586         internals.
37587         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37588         missing.
37589         Suggested by Bruno Haible.
37590
37591 2010-01-01  Jim Meyering  <meyering@redhat.com>
37592
37593         ChangeLog: tweak to eliminate unnecessary copyright line
37594         * ChangeLog: Remove a copyright line that was mistakenly updated
37595         by today's update-copyright run.  Reported by Eric Blake.
37596
37597         test-update-copyright: don't let envvar setting cause test failure
37598         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37599
37600 2010-01-01  Bruno Haible  <bruno@clisp.org>
37601
37602         localename: Avoid gcc warning.
37603         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37604         function if it is not used.
37605
37606 2010-01-01  Jim Meyering  <meyering@redhat.com>
37607
37608         update nearly all FSF copyright year lists to include 2010
37609         Use the same procedure as for 2009, outlined in
37610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37611
37612         version-etc: set COPYRIGHT_YEAR to 2010
37613         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37614
37615 2009-12-31  Eric Blake  <ebb9@byu.net>
37616
37617         doc: correct availability of cygwin 1.5.x getopt
37618         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37619         variables.
37620         * doc/posix-functions/opterr.texi (opterr): Likewise.
37621         * doc/posix-functions/optind.texi (optind): Likewise.
37622         * doc/posix-functions/optopt.texi (optopt): Likewise.
37623         * doc/posix-functions/tzname.texi (tzname): Likewise.
37624
37625         openat: update maintainer
37626         * modules/openat (Maintainer): Add myself.
37627
37628         utimens: avoid shadowing warning
37629         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37630         buffers into one, to avoid shadowing, as well as avoiding a
37631         redundant stat.
37632         Reported by Jim Meyering.
37633
37634         test-dup2: avoid compiler warning
37635         * tests/test-dup2.c (is_inheritable): Only define if used.
37636
37637 2010-01-01  Bruno Haible  <bruno@clisp.org>
37638
37639         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37640         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37641         defined, use wctomb instead of wcrtomb.
37642
37643 2010-01-01  Bruno Haible  <bruno@clisp.org>
37644
37645         iconv: Reject native Solaris iconv.
37646         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37647         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37648
37649 2009-12-31  Bruno Haible  <bruno@clisp.org>
37650
37651         * tests/test-signal.c (main): Remove test of 'SIG'.
37652
37653 2009-12-31  Bruno Haible  <bruno@clisp.org>
37654
37655         spawn: Fix incomplete fix.
37656         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37657         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37658         warnings for GNULIB_POSIXCHECK again.
37659         Reported by Eric Blake.
37660
37661 2009-12-31  Bruno Haible  <bruno@clisp.org>
37662
37663         Avoid namespace pollution on glibc systems.
37664         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37665         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37666         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37667         glibc systems.
37668
37669 2009-12-31  Bruno Haible  <bruno@clisp.org>
37670
37671         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37672         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37673         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37674         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37675         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37676         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37677         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37678
37679 2009-12-31  Bruno Haible  <bruno@clisp.org>
37680
37681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37682         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37683         afterwards.
37684
37685 2009-12-31  Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37688         SYS_UTSNAME_H.
37689
37690 2009-12-31  Bruno Haible  <bruno@clisp.org>
37691
37692         spawn: Fix misapplied patch.
37693         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37694         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37695         warnings for GNULIB_POSIXCHECK.
37696
37697 2009-12-31  Bruno Haible  <bruno@clisp.org>
37698
37699         times: Update after sys_times changed.
37700         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37701         * modules/times (Files): Add it.
37702         (configure.ac): Invoke gl_FUNC_TIMES.
37703
37704 2009-12-31  Bruno Haible  <bruno@clisp.org>
37705
37706         Use AC_C_INLINE where necessary.
37707         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37709         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37710         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37711         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37712         * m4/mbiter.m4 (gl_MBITER): Likewise.
37713         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37714         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37715         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37716         * modules/u64 (configure.ac): Likewise.
37717
37718 2009-12-31  Bruno Haible  <bruno@clisp.org>
37719
37720         Use AC_C_INLINE instead of module 'inline' where possible.
37721         * modules/inline (Description): Clarify purpose.
37722         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37723         * modules/count-one-bits (Depends-on): Remove inline.
37724         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37725         * modules/openat (Depends-on): Remove inline.
37726         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37727         instead of depending on module 'inline'.
37728         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37729         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37730         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37731         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37732         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37733         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37734         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37735         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37736         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37737         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37738         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37739         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37740         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37741         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37742         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37743         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37744         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37745         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37746         Likewise.
37747         * modules/unictype/property-ascii-hex-digit (Depends-on,
37748         configure.ac): Likewise.
37749         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37750         configure.ac): Likewise.
37751         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37752         configure.ac): Likewise.
37753         * modules/unictype/property-bidi-block-separator (Depends-on,
37754         configure.ac): Likewise.
37755         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37756         configure.ac): Likewise.
37757         * modules/unictype/property-bidi-common-separator (Depends-on,
37758         configure.ac): Likewise.
37759         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37760         Likewise.
37761         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37762         configure.ac): Likewise.
37763         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37764         configure.ac): Likewise.
37765         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37766         configure.ac): Likewise.
37767         * modules/unictype/property-bidi-european-digit (Depends-on,
37768         configure.ac): Likewise.
37769         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37770         configure.ac): Likewise.
37771         * modules/unictype/property-bidi-left-to-right (Depends-on,
37772         configure.ac): Likewise.
37773         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37774         configure.ac): Likewise.
37775         * modules/unictype/property-bidi-other-neutral (Depends-on,
37776         configure.ac): Likewise.
37777         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37778         Likewise.
37779         * modules/unictype/property-bidi-segment-separator (Depends-on,
37780         configure.ac): Likewise.
37781         * modules/unictype/property-bidi-whitespace (Depends-on,
37782         configure.ac): Likewise.
37783         * modules/unictype/property-combining (Depends-on, configure.ac):
37784         Likewise.
37785         * modules/unictype/property-composite (Depends-on, configure.ac):
37786         Likewise.
37787         * modules/unictype/property-currency-symbol (Depends-on,
37788         configure.ac): Likewise.
37789         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37790         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37791         Likewise.
37792         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37793         configure.ac): Likewise.
37794         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37795         Likewise.
37796         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37797         Likewise.
37798         * modules/unictype/property-extender (Depends-on, configure.ac):
37799         Likewise.
37800         * modules/unictype/property-format-control (Depends-on, configure.ac):
37801         Likewise.
37802         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37803         Likewise.
37804         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37805         Likewise.
37806         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37807         Likewise.
37808         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37809         Likewise.
37810         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37811         Likewise.
37812         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37813         Likewise.
37814         * modules/unictype/property-id-start (Depends-on, configure.ac):
37815         Likewise.
37816         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37817         Likewise.
37818         * modules/unictype/property-ids-binary-operator (Depends-on,
37819         configure.ac): Likewise.
37820         * modules/unictype/property-ids-trinary-operator (Depends-on,
37821         configure.ac): Likewise.
37822         * modules/unictype/property-ignorable-control (Depends-on,
37823         configure.ac): Likewise.
37824         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37825         Likewise.
37826         * modules/unictype/property-join-control (Depends-on, configure.ac):
37827         Likewise.
37828         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37829         Likewise.
37830         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37831         Likewise.
37832         * modules/unictype/property-logical-order-exception (Depends-on,
37833         configure.ac): Likewise.
37834         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37835         Likewise.
37836         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37837         * modules/unictype/property-non-break (Depends-on, configure.ac):
37838         Likewise.
37839         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37840         Likewise.
37841         * modules/unictype/property-numeric (Depends-on, configure.ac):
37842         Likewise.
37843         * modules/unictype/property-other-alphabetic (Depends-on,
37844         configure.ac): Likewise.
37845         * modules/unictype/property-other-default-ignorable-code-point
37846         (Depends-on, configure.ac): Likewise.
37847         * modules/unictype/property-other-grapheme-extend (Depends-on,
37848         configure.ac): Likewise.
37849         * modules/unictype/property-other-id-continue (Depends-on,
37850         configure.ac): Likewise.
37851         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37852         Likewise.
37853         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37854         Likewise.
37855         * modules/unictype/property-other-math (Depends-on, configure.ac):
37856         Likewise.
37857         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37858         Likewise.
37859         * modules/unictype/property-paired-punctuation (Depends-on,
37860         configure.ac): Likewise.
37861         * modules/unictype/property-paragraph-separator (Depends-on,
37862         configure.ac): Likewise.
37863         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37864         Likewise.
37865         * modules/unictype/property-pattern-white-space (Depends-on,
37866         configure.ac): Likewise.
37867         * modules/unictype/property-private-use (Depends-on, configure.ac):
37868         Likewise.
37869         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37870         Likewise.
37871         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37872         Likewise.
37873         * modules/unictype/property-radical (Depends-on, configure.ac):
37874         Likewise.
37875         * modules/unictype/property-sentence-terminal (Depends-on,
37876         configure.ac): Likewise.
37877         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37878         Likewise.
37879         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37880         * modules/unictype/property-terminal-punctuation (Depends-on,
37881         configure.ac): Likewise.
37882         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37883         Likewise.
37884         * modules/unictype/property-unassigned-code-value (Depends-on,
37885         configure.ac): Likewise.
37886         * modules/unictype/property-unified-ideograph (Depends-on,
37887         configure.ac): Likewise.
37888         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37889         Likewise.
37890         * modules/unictype/property-variation-selector (Depends-on,
37891         configure.ac): Likewise.
37892         * modules/unictype/property-white-space (Depends-on, configure.ac):
37893         Likewise.
37894         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37895         Likewise.
37896         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37897         Likewise.
37898         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37899         Likewise.
37900         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37901         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37902         Likewise.
37903
37904 2009-12-31  Bruno Haible  <bruno@clisp.org>
37905
37906         Remove unnecessary AC_C_INLINE invocation.
37907         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37908         since 2009-08-21.
37909
37910 2009-12-31  Jim Meyering  <meyering@redhat.com>
37911
37912         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37913         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37914         With this change, we can all remove the gpg_key_ID = ... definition
37915         from our respective cfg.mk files.
37916
37917         maint.mk: create announcement template in ~/, not in /tmp
37918         * top/maint.mk (emit_upload_commands): Adjust.
37919         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37920         Remove temporary file, .ci-msg.
37921
37922 2009-12-31  Eric Blake  <ebb9@byu.net>
37923
37924         link-warning: always build headers with link warnings
37925         * modules/arpa_inet (Makefile.am): Always build replacement
37926         header.
37927         * modules/ctype (Makefile.am): Likewise.
37928         * modules/dirent (Makefile.am): Likewise.
37929         * modules/inttypes (Makefile.am): Likewise.
37930         * modules/langinfo (Makefile.am): Likewise.
37931         * modules/locale (Makefile.am): Likewise.
37932         * modules/spawn (Makefile.am): Likewise.
37933         * modules/sys_file (Makefile.am): Likewise.
37934         * modules/sys_ioctl (Makefile.am): Likewise.
37935         * modules/sys_select (Makefile.am): Likewise.
37936         * modules/sys_socket (Makefile.am): Likewise.
37937         * modules/sys_times (Makefile.am): Likewise.
37938         * modules/sys_utsname (Makefile.am): Likewise.
37939         * modules/sys_wait (Makefile.am): Likewise.
37940         * modules/wchar (Makefile.am): Likewise.
37941         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37942         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37943         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37944         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37945         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37946         Likewise.
37947         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37948         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37949         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37950         Likewise.
37951         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37952         Likewise.
37953         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37954         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37955         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37957         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37959         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37960         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37961         (gl_WCHAR_H_DEFAULTS): Likewise.
37962
37963 2009-12-31  Eric Blake  <ebb9@byu.net>
37964
37965         signal, spawn: use link warnings
37966         * lib/signal.in.h (sigset_t): Make unconditional.
37967         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37968         (sigpending, sigprocmask, sigaction): Add link warnings.
37969         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37970         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37971         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37972         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37973         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37974         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37975         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37976         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37977         (posix_spawn_file_actions_destroy)
37978         (posix_spawn_file_actions_addopen)
37979         (posix_spawn_file_actions_addclose)
37980         (posix_spawn_file_actions_adddup2): Likewise.
37981         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37982         * tests/test-signal.c (main): Enhance test.
37983
37984         spawn: improve wrapper support
37985         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37986         (gl_SPAWN_H_DEFAULTS): New defaults.
37987         * modules/spawn (Makefile.am): Substitute them.
37988         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37989         Only declare if missing or broken.
37990
37991         sys_times, sys_utsname: use include_next
37992         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37993         header.
37994         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37995         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37996         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37997         * modules/sys_times (Depends-on): Add include_next.
37998         (Makefile.am): Substitute additional values.
37999         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38000         * lib/sys_times.in.h (includes): Include native header, if
38001         available.
38002         * lib/sys_utsname.in.h (includes): Likewise.
38003         * tests/test-sys_times.c (main): Enhance test.
38004
38005         fdutimensat: revert prior patch
38006         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38007         utimens.h.
38008         Reported by Bruno Haible.
38009
38010 2009-12-30  Eric Blake  <ebb9@byu.net>
38011
38012         sys_wait: drop link-warning dependency
38013         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38014         link-warning efforts.
38015         * lib/sys_wait.in.h: Likewise.
38016
38017         fdutimensat: remove bogus dependency
38018         * modules/fdutimensat (Depends-on): Drop inline.
38019
38020         unistd: fix typo
38021         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38022
38023 2009-12-30  Bruno Haible  <bruno@clisp.org>
38024
38025         Fix compilation error with Solaris cc.
38026         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38027         * lib/unicase/u16-is-invariant.c: Likewise.
38028         * lib/unicase/u32-is-invariant.c: Likewise.
38029         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38030
38031 2009-12-30  Bruno Haible  <bruno@clisp.org>
38032
38033         Fix test crash.
38034         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38035         locales.
38036         Reported by Simon Josefsson <simon@josefsson.org>.
38037
38038 2009-12-30  Bruno Haible  <bruno@clisp.org>
38039
38040         Fix compilation error on most platforms.
38041         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38042         Reported by Simon Josefsson <simon@josefsson.org>
38043         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38044
38045 2009-12-30  Eric Blake  <ebb9@byu.net>
38046
38047         futimens, utimensat: work around ntfs-3g bug
38048         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38049         a ctime bug is present, and expand workaround to cover ntfs-3g.
38050         * lib/utimens.c (fdutimens, lutimens): Likewise.
38051         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38052         (validate_timespec): Adjust return value.
38053         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38054         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38055         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38056
38057 2009-12-29  Eric Blake  <ebb9@byu.net>
38058
38059         link-warning: make usage consistent
38060         * modules/ctype (Depends-on): Add link-warning.
38061         (Makefile.am): Update rules accordingly.
38062         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38063         * modules/locale (Depends-on, Makefile.am): Likewise.
38064         * modules/sys_file (Makefile.am): Likewise.
38065         * modules/getopt-posix (Makefile.am): Delete unused link warning
38066         efforts.
38067         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38068         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38069         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38070         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38071
38072         stdio: remove unused variables
38073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38075         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38076
38077         tests: test more substitute headers
38078         * modules/ctype-tests: New file.
38079         * modules/dirent-tests: Likewise.
38080         * modules/spawn-tests: Likewise.
38081         * modules/sys_file-tests: Likewise.
38082         * modules/sys_ioctl-tests: Likewise.
38083         * modules/sys_wait-tests: Likewise.
38084         * tests/test-ctype.c: Likewise.
38085         * tests/test-dirent.c: Likewise.
38086         * tests/test-spawn.c: Likewise.
38087         * tests/test-sys_file.c: Likewise.
38088         * tests/test-sys_ioctl.c: Likewise.
38089         * tests/test-sys_wait.c: Likewise.
38090         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38091         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38092         whether or not flock is in use.
38093
38094         tests: remove License section from module
38095         * modules/arpa_inet-tests: Remove unneeded section.
38096         * modules/byteswap-tests: Likewise.
38097         * modules/ceilf-tests: Likewise.
38098         * modules/ceill-tests: Likewise.
38099         * modules/crypto/des-tests: Likewise.
38100         * modules/crypto/gc-arcfour-tests: Likewise.
38101         * modules/crypto/gc-arctwo-tests: Likewise.
38102         * modules/crypto/gc-des-tests: Likewise.
38103         * modules/crypto/gc-hmac-md5-tests: Likewise.
38104         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38105         * modules/crypto/gc-md2-tests: Likewise.
38106         * modules/crypto/gc-md4-tests: Likewise.
38107         * modules/crypto/gc-md5-tests: Likewise.
38108         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38109         * modules/crypto/gc-rijndael-tests: Likewise.
38110         * modules/crypto/gc-sha1-tests: Likewise.
38111         * modules/crypto/gc-tests: Likewise.
38112         * modules/crypto/md2-tests: Likewise.
38113         * modules/crypto/md4-tests: Likewise.
38114         * modules/fcntl-h-tests: Likewise.
38115         * modules/floorf-tests: Likewise.
38116         * modules/floorl-tests: Likewise.
38117         * modules/frexp-nolibm-tests: Likewise.
38118         * modules/frexp-tests: Likewise.
38119         * modules/frexpl-nolibm-tests: Likewise.
38120         * modules/frexpl-tests: Likewise.
38121         * modules/getaddrinfo-tests: Likewise.
38122         * modules/inttypes-tests: Likewise.
38123         * modules/isfinite-tests: Likewise.
38124         * modules/isinf-tests: Likewise.
38125         * modules/ldexpl-tests: Likewise.
38126         * modules/locale-tests: Likewise.
38127         * modules/math-tests: Likewise.
38128         * modules/netdb-tests: Likewise.
38129         * modules/netinet_in-tests: Likewise.
38130         * modules/printf-frexp-tests: Likewise.
38131         * modules/printf-frexpl-tests: Likewise.
38132         * modules/priv-set-tests: Likewise.
38133         * modules/random_r-tests: Likewise.
38134         * modules/round-tests: Likewise.
38135         * modules/roundf-tests: Likewise.
38136         * modules/roundl-tests: Likewise.
38137         * modules/search-tests: Likewise.
38138         * modules/select-tests: Likewise.
38139         * modules/signal-tests: Likewise.
38140         * modules/stdbool-tests: Likewise.
38141         * modules/stddef-tests: Likewise.
38142         * modules/stdint-tests: Likewise.
38143         * modules/stdio-tests: Likewise.
38144         * modules/stdlib-tests: Likewise.
38145         * modules/string-tests: Likewise.
38146         * modules/strings-tests: Likewise.
38147         * modules/sys_select-tests: Likewise.
38148         * modules/sys_socket-tests: Likewise.
38149         * modules/sys_stat-tests: Likewise.
38150         * modules/sys_time-tests: Likewise.
38151         * modules/sys_utsname-tests: Likewise.
38152         * modules/sysexits-tests: Likewise.
38153         * modules/time-tests: Likewise.
38154         * modules/trunc-tests: Likewise.
38155         * modules/truncf-tests: Likewise.
38156         * modules/truncl-tests: Likewise.
38157         * modules/tsearch-tests: Likewise.
38158         * modules/unistd-tests: Likewise.
38159         * modules/wchar-tests: Likewise.
38160         * modules/wctype-tests: Likewise.
38161
38162         tests: fix license on several tests
38163         * tests/test-des.c: Update to GPLv3+.
38164         * tests/test-flock.c: Likewise.
38165         * tests/test-fsync.c: Likewise.
38166         * tests/test-futimens.h: Likewise.
38167         * tests/test-gc-arcfour.c: Likewise.
38168         * tests/test-gc-arctwo.c: Likewise.
38169         * tests/test-gc-des.c: Likewise.
38170         * tests/test-gc-hmac-md5.c: Likewise.
38171         * tests/test-gc-hmac-sha1.c: Likewise.
38172         * tests/test-gc-md2.c: Likewise.
38173         * tests/test-gc-md4.c: Likewise.
38174         * tests/test-gc-md5.c: Likewise.
38175         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38176         * tests/test-gc-rijndael.c: Likewise.
38177         * tests/test-gc-sha1.c: Likewise.
38178         * tests/test-gc.c: Likewise.
38179         * tests/test-getcwd.c: Likewise.
38180         * tests/test-link.c: Likewise.
38181         * tests/test-link.h: Likewise.
38182         * tests/test-lutimens.h: Likewise.
38183         * tests/test-md2.c: Likewise.
38184         * tests/test-md4.c: Likewise.
38185         * tests/test-mkdir.h: Likewise.
38186         * tests/test-rename.c: Likewise.
38187         * tests/test-rename.h: Likewise.
38188         * tests/test-safe-alloc.c: Likewise.
38189         * tests/test-utimens-common.h: Likewise.
38190         * tests/test-utimens.h: Likewise.
38191
38192         maint: sync license texts
38193         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38194         * doc/gpl-3.0.texi: Revert copyright year update.
38195         * doc/lgpl-3.0.texi: Likewise.
38196
38197 2009-12-29  Jim Meyering  <meyering@redhat.com>
38198
38199         update nearly all FSF copyright year lists to include 2009
38200         The files named by the following are exempted:
38201             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38202               test -f "$dst" && { echo "$dst"; continue; }
38203               test -d "$dst" || continue
38204               echo "$dst"/$(basename "$src")
38205             done > exempt
38206             git ls-files tests/unictype >> exempt
38207         In the remaining files, convert to all-interval notation if
38208         - there is already at least one year interval like 2000-2003
38209         - the file is maintained by me
38210         - the file is in lib/uni*/, where that style already prevails
38211         Otherwise, use update-copyright's default.
38212
38213 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38214         and Eric Blake  <ebb9@byu.net>
38215
38216         tests: don't require debug system() to pass
38217         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38218         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38219         * tests/test-unlink.h (test_unlink_func): Likewise.
38220         * tests/test-fstatat.c (main): ...into callers.
38221         * tests/test-lstat.c (main): Likewise.
38222         * tests/test-rmdir.c (main): Likewise.
38223         * tests/test-unlink.c (main): Likewise.
38224         * tests/test-unlinkat.c (main): Likewise.
38225         * tests/test-areadlink-with-size.c (main): Don't require a
38226         debug-only system call to pass, aiding cross-testing to mingw.
38227         * tests/test-areadlink.c (main): Likewise.
38228         * tests/test-areadlinkat-with-size.c (main): Likewise.
38229         * tests/test-areadlinkat.c (main): Likewise.
38230         * tests/test-canonicalize-lgpl.c (main): Likewise.
38231         * tests/test-canonicalize.c (main): Likewise.
38232         * tests/test-chown.c (main): Likewise.
38233         * tests/test-fchownat.c (main): Likewise.
38234         * tests/test-lchown.c (main): Likewise.
38235         * tests/test-fdutimensat.c (main): Likewise.
38236         * tests/test-futimens.c (main): Likewise.
38237         * tests/test-link.c (main): Likewise.
38238         * tests/test-linkat.c (main): Likewise.
38239         * tests/test-mkdir.c (main): Likewise.
38240         * tests/test-mkdirat.c (main): Likewise.
38241         * tests/test-mkfifo.c (main): Likewise.
38242         * tests/test-mkfifoat.c (main): Likewise.
38243         * tests/test-mknod.c (main): Likewise.
38244         * tests/test-readlink.c (main): Likewise.
38245         * tests/test-remove.c (main): Likewise.
38246         * tests/test-rename.c (main): Likewise.
38247         * tests/test-renameat.c (main): Likewise.
38248         * tests/test-symlink.c (main): Likewise.
38249         * tests/test-symlinkat.c (main): Likewise.
38250         * tests/test-utimens.c (main): Likewise.
38251         * tests/test-utimensat.c (main): Likewise.
38252
38253 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38254
38255         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38256         on $(UNUSED_PARAMETER_H) to avoid build failure.
38257
38258 2009-12-28  Jim Meyering  <meyering@redhat.com>
38259
38260         update-copyright: you may specify a max. line length other than 72
38261         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38262
38263         maint: use consistent FSF copyright line syntax
38264         * lib/posixtm.c: Add missing comma in FSF copyright line.
38265         * lib/posixtm.h: Likewise.
38266         * lib/getugroups.c: Add missing ", Inc.".
38267
38268         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38269         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38270         FSF copyright line.  Remove trailing blanks.
38271
38272 2009-12-28  Eric Blake  <ebb9@byu.net>
38273
38274         test-dup2: reduce dependencies
38275         * modules/cloexec (Configure.ac): Set witness.
38276         * modules/dup2-tests (Depends-on): Drop cloexec.
38277         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38278         not present.
38279         Suggested by Bruno Haible.
38280
38281 2009-12-26  Bruno Haible  <bruno@clisp.org>
38282
38283         Remove an unneeded dependency.
38284         * modules/fseterr (Depends-on): Remove dup2.
38285
38286 2009-12-26  Eric Blake  <ebb9@byu.net>
38287
38288         tests: use macros.h in more places
38289         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38290         (ASSERT_STREAM): Provide default of stderr.
38291         * tests/test-dirent-safer.c: Include macros.h, using alternate
38292         stream for assertions.
38293         * tests/test-dup-safer.c: Likewise.
38294         * tests/test-freopen-safer.c: Likewise.
38295         * tests/test-getopt.c: Likewise.
38296         * tests/test-openat-safer.c: Likewise.
38297         * tests/test-pipe.c: Likewise.
38298         * tests/test-popen-safer.c: Likewise.
38299         * modules/dirent-safer-tests (Files): Include macros.h.
38300         * modules/unistd-safer-tests (Files): Likewise.
38301         * modules/freopen-safer-tests (Files): Likewise.
38302         * modules/getopt-posix-tests (Files): Likewise.
38303         * modules/openat-safer-tests (Files): Likewise.
38304         * modules/pipe-tests (Files): Likewise.
38305
38306 2009-12-26  Bruno Haible  <bruno@clisp.org>
38307
38308         javacomp: Portability fix.
38309         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38310         that it also works on Solaris.
38311
38312 2009-12-26  Bruno Haible  <bruno@clisp.org>
38313
38314         localename: Fix storage allocation of gl_locale_name_thread's result.
38315         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38316         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38317         all platforms that have 'uselocale'.
38318         (gl_locale_name_thread_unsafe): New function, extracted from
38319         gl_locale_name_thread.
38320         (gl_locale_name_thread): Call struniq on all platforms that have
38321         'uselocale'.
38322         * tests/test-localename.c (test_locale_name_thread): Check that the
38323         resulting strings are permanently allocated.
38324         * modules/localename-tests (Depends-on): Add strdup.
38325
38326 2009-12-26  Bruno Haible  <bruno@clisp.org>
38327
38328         * tests/test-localename.c (categories): Fill in the strings.
38329
38330 2009-12-26  Jim Meyering  <meyering@redhat.com>
38331
38332         isdir: complete the removal of m4/isdir.m4
38333         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38334
38335         isdir: clean up, since at least grep still uses it
38336         * lib/isdir.c: Include "isdir.h".
38337         (S_ISDIR): Remove now-unneeded definition.
38338         * modules/isdir (Files): Add lib/isdir.h.
38339         * lib/isdir.h: New file, with declaration.
38340         * m4/isdir.m4: Remove file -- unneeded.
38341
38342 2009-12-25  Bruno Haible  <bruno@clisp.org>
38343
38344         selinux-h: Make generated .h files standalone.
38345         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38346         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38347         * lib/se-selinux.in.h: Likewise.
38348         * modules/selinux-h (Depends-on): Add unused-parameter.
38349         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38350         selinux/selinux.h and selinux/context.h.
38351         Suggested by Eric Blake.
38352
38353 2009-12-25  Bruno Haible  <bruno@clisp.org>
38354
38355         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38356         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38357         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38358         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38359         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38360
38361 2009-12-24  Bruno Haible  <bruno@clisp.org>
38362
38363         openat: Fix warning.
38364         * lib/openat-proc.c: Include <unistd.h>.
38365
38366 2009-12-24  Bruno Haible  <bruno@clisp.org>
38367
38368         New module 'unused-parameter'.
38369         * build-aux/unused-parameter.h: New file, extracted from earlier
38370         gnulib-common.m4.
38371         * modules/unused-parameter: New file.
38372         * lib/unistr.h: Include unused-parameter.h.
38373         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38374         _GL_UNUSED.
38375         * modules/unistr/base (Depends-on): Add unused-parameter.
38376
38377 2009-12-24  Bruno Haible  <bruno@clisp.org>
38378
38379         Add missing dependencies to 'extensions' module.
38380         * m4/extensions.m4: Add comment.
38381         * modules/accept4 (Depends-on): Add extensions.
38382         * modules/dup3 (Depends-on): Likewise.
38383         * modules/fcntl (Depends-on): Likewise.
38384         * modules/futimens (Depends-on): Likewise.
38385         * modules/mknod (Depends-on): Likewise.
38386         * modules/pipe2 (Depends-on): Likewise.
38387         * modules/stat-time (Depends-on): Likewise.
38388         * modules/strcasestr-simple (Depends-on): Likewise.
38389         * modules/strsignal (Depends-on): Likewise.
38390         * modules/utimensat (Depends-on): Likewise.
38391         * modules/localcharset (Depends-on): Likewise. Needed because of
38392         gl_FCNTL_O_FLAGS.
38393         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38394         AC_TYPE_MBSTATE_T.
38395         * modules/wcsnrtombs (Depends-on): Likewise.
38396         * modules/wcsrtombs (Depends-on): Likewise.
38397
38398 2009-12-24  Bruno Haible  <bruno@clisp.org>
38399
38400         binary-io: Avoid gcc warning due to SET_BINARY.
38401         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38402         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38403
38404 2009-12-24  Bruno Haible  <bruno@clisp.org>
38405
38406         Avoid future namespace pollution on glibc systems.
38407         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38408         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38409         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38410         glibc systems.
38411
38412 2009-12-24  Bruno Haible  <bruno@clisp.org>
38413
38414         Refactor common macros used in tests.
38415         * tests/macros.h: New file.
38416         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38417         and/or <stdlib.h>, if appropriate.
38418         (ASSERT, SIZEOF): Remove macros.
38419         * tests/test-areadlink-with-size.c: Likewise.
38420         * tests/test-areadlinkat.c: Likewise.
38421         * tests/test-areadlinkat-with-size.c: Likewise.
38422         * tests/test-argmatch.c: Likewise.
38423         * tests/test-argv-iter.c: Likewise.
38424         * tests/test-array-mergesort.c: Likewise.
38425         * tests/test-array_list.c: Likewise.
38426         * tests/test-array_oset.c: Likewise.
38427         * tests/test-avltree_list.c: Likewise.
38428         * tests/test-avltree_oset.c: Likewise.
38429         * tests/test-avltreehash_list.c: Likewise.
38430         * tests/test-base64.c: Likewise.
38431         * tests/test-binary-io.c: Likewise.
38432         * tests/test-bitrotate.c: Likewise.
38433         * tests/test-btowc.c: Likewise.
38434         * tests/test-byteswap.c: Likewise.
38435         * tests/test-c-ctype.c: Likewise.
38436         * tests/test-c-stack.c: Likewise.
38437         * tests/test-c-strcasecmp.c: Likewise.
38438         * tests/test-c-strcasestr.c: Likewise.
38439         * tests/test-c-strncasecmp.c: Likewise.
38440         * tests/test-c-strstr.c: Likewise.
38441         * tests/test-canonicalize-lgpl.c: Likewise.
38442         * tests/test-canonicalize.c: Likewise.
38443         * tests/test-carray_list.c: Likewise.
38444         * tests/test-ceilf1.c: Likewise.
38445         * tests/test-ceilf2.c: Likewise.
38446         * tests/test-ceill.c: Likewise.
38447         * tests/test-chown.c: Likewise.
38448         * tests/test-cloexec.c: Likewise.
38449         * tests/test-copy-acl.c: Likewise.
38450         * tests/test-copy-file.c: Likewise.
38451         * tests/test-count-one-bits.c: Likewise.
38452         * tests/test-dprintf-posix.c: Likewise.
38453         * tests/test-dup2.c: Likewise.
38454         * tests/test-dup3.c: Likewise.
38455         * tests/test-duplocale.c: Likewise.
38456         * tests/test-fbufmode.c: Likewise.
38457         * tests/test-fchdir.c: Likewise.
38458         * tests/test-fchownat.c: Likewise.
38459         * tests/test-fcntl-safer.c: Likewise.
38460         * tests/test-fcntl.c: Likewise.
38461         * tests/test-fdopendir.c: Likewise.
38462         * tests/test-fdutimensat.c: Likewise.
38463         * tests/test-fflush2.c: Likewise.
38464         * tests/test-file-has-acl.c: Likewise.
38465         * tests/test-filevercmp.c: Likewise.
38466         * tests/test-flock.c: Likewise.
38467         * tests/test-floorf1.c: Likewise.
38468         * tests/test-floorf2.c: Likewise.
38469         * tests/test-floorl.c: Likewise.
38470         * tests/test-fnmatch.c: Likewise.
38471         * tests/test-fopen.h: Likewise.
38472         * tests/test-fpending.c: Likewise.
38473         * tests/test-fprintf-posix.c: Likewise.
38474         * tests/test-fpurge.c: Likewise.
38475         * tests/test-freadable.c: Likewise.
38476         * tests/test-freadahead.c: Likewise.
38477         * tests/test-freading.c: Likewise.
38478         * tests/test-freadptr.c: Likewise.
38479         * tests/test-freadptr2.c: Likewise.
38480         * tests/test-freadseek.c: Likewise.
38481         * tests/test-freopen.c: Likewise.
38482         * tests/test-frexp.c: Likewise.
38483         * tests/test-frexpl.c: Likewise.
38484         * tests/test-fseek.c: Likewise.
38485         * tests/test-fseeko.c: Likewise.
38486         * tests/test-fstatat.c: Likewise.
38487         * tests/test-fstrcmp.c: Likewise.
38488         * tests/test-fsync.c: Likewise.
38489         * tests/test-ftell.c: Likewise.
38490         * tests/test-ftello.c: Likewise.
38491         * tests/test-func.c: Likewise.
38492         * tests/test-futimens.c: Likewise.
38493         * tests/test-fwritable.c: Likewise.
38494         * tests/test-fwriting.c: Likewise.
38495         * tests/test-getcwd.c: Likewise.
38496         * tests/test-getdate.c: Likewise.
38497         * tests/test-getdelim.c: Likewise.
38498         * tests/test-getdtablesize.c: Likewise.
38499         * tests/test-getgroups.c: Likewise.
38500         * tests/test-getline.c: Likewise.
38501         * tests/test-getndelim2.c: Likewise.
38502         * tests/test-glob.c: Likewise.
38503         * tests/test-hash.c: Likewise.
38504         * tests/test-i-ring.c: Likewise.
38505         * tests/test-iconv-utf.c: Likewise.
38506         * tests/test-iconv.c: Likewise.
38507         * tests/test-idpriv-drop.c: Likewise.
38508         * tests/test-idpriv-droptemp.c: Likewise.
38509         * tests/test-inet_ntop.c: Likewise.
38510         * tests/test-inet_pton.c: Likewise.
38511         * tests/test-isblank.c: Likewise.
38512         * tests/test-isfinite.c: Likewise.
38513         * tests/test-isinf.c: Likewise.
38514         * tests/test-isnan.c: Likewise.
38515         * tests/test-isnand.h: Likewise.
38516         * tests/test-isnanf.h: Likewise.
38517         * tests/test-isnanl.h: Likewise.
38518         * tests/test-lchown.c: Likewise.
38519         * tests/test-ldexpl.c: Likewise.
38520         * tests/test-link.c: Likewise.
38521         * tests/test-linkat.c: Likewise.
38522         * tests/test-linked_list.c: Likewise.
38523         * tests/test-linkedhash_list.c: Likewise.
38524         * tests/test-localename.c: Likewise.
38525         * tests/test-lseek.c: Likewise.
38526         * tests/test-lstat.c: Likewise.
38527         * tests/test-mbmemcasecmp.c: Likewise.
38528         * tests/test-mbmemcasecoll.c: Likewise.
38529         * tests/test-mbrtowc.c: Likewise.
38530         * tests/test-mbscasecmp.c: Likewise.
38531         * tests/test-mbscasestr1.c: Likewise.
38532         * tests/test-mbscasestr2.c: Likewise.
38533         * tests/test-mbscasestr3.c: Likewise.
38534         * tests/test-mbscasestr4.c: Likewise.
38535         * tests/test-mbschr.c: Likewise.
38536         * tests/test-mbscspn.c: Likewise.
38537         * tests/test-mbsinit.c: Likewise.
38538         * tests/test-mbsncasecmp.c: Likewise.
38539         * tests/test-mbsnrtowcs.c: Likewise.
38540         * tests/test-mbspbrk.c: Likewise.
38541         * tests/test-mbspcasecmp.c: Likewise.
38542         * tests/test-mbsrchr.c: Likewise.
38543         * tests/test-mbsrtowcs.c: Likewise.
38544         * tests/test-mbsspn.c: Likewise.
38545         * tests/test-mbsstr1.c: Likewise.
38546         * tests/test-mbsstr2.c: Likewise.
38547         * tests/test-mbsstr3.c: Likewise.
38548         * tests/test-memchr.c: Likewise.
38549         * tests/test-memchr2.c: Likewise.
38550         * tests/test-memcmp.c: Likewise.
38551         * tests/test-memmem.c: Likewise.
38552         * tests/test-memrchr.c: Likewise.
38553         * tests/test-mkdir.c: Likewise.
38554         * tests/test-mkdirat.c: Likewise.
38555         * tests/test-mkfifo.c: Likewise.
38556         * tests/test-mkfifoat.c: Likewise.
38557         * tests/test-mknod.c: Likewise.
38558         * tests/test-nanosleep.c: Likewise.
38559         * tests/test-nl_langinfo.c: Likewise.
38560         * tests/test-obstack-printf.c: Likewise.
38561         * tests/test-open.c: Likewise.
38562         * tests/test-openat.c: Likewise.
38563         * tests/test-pipe-filter-gi1.c: Likewise.
38564         * tests/test-pipe-filter-gi2-main.c: Likewise.
38565         * tests/test-pipe-filter-ii1.c: Likewise.
38566         * tests/test-pipe-filter-ii2-main.c: Likewise.
38567         * tests/test-pipe2.c: Likewise.
38568         * tests/test-popen.h: Likewise.
38569         * tests/test-posixtm.c: Likewise.
38570         * tests/test-pread.c: Likewise.
38571         * tests/test-printf-frexp.c: Likewise.
38572         * tests/test-printf-frexpl.c: Likewise.
38573         * tests/test-printf-posix.c: Likewise.
38574         * tests/test-priv-set.c: Likewise.
38575         * tests/test-quotearg.c: Likewise.
38576         * tests/test-random_r.c: Likewise.
38577         * tests/test-rawmemchr.c: Likewise.
38578         * tests/test-rbtree_list.c: Likewise.
38579         * tests/test-rbtree_oset.c: Likewise.
38580         * tests/test-rbtreehash_list.c: Likewise.
38581         * tests/test-readlink.c: Likewise.
38582         * tests/test-remove.c: Likewise.
38583         * tests/test-rename.c: Likewise.
38584         * tests/test-renameat.c: Likewise.
38585         * tests/test-rmdir.c: Likewise.
38586         * tests/test-round1.c: Likewise.
38587         * tests/test-roundf1.c: Likewise.
38588         * tests/test-roundl.c: Likewise.
38589         * tests/test-safe-alloc.c: Likewise.
38590         * tests/test-sameacls.c: Likewise.
38591         * tests/test-set-mode-acl.c: Likewise.
38592         * tests/test-setenv.c: Likewise.
38593         * tests/test-sigaction.c: Likewise.
38594         * tests/test-signbit.c: Likewise.
38595         * tests/test-sleep.c: Likewise.
38596         * tests/test-snprintf-posix.c: Likewise.
38597         * tests/test-snprintf.c: Likewise.
38598         * tests/test-sprintf-posix.c: Likewise.
38599         * tests/test-stat-time.c: Likewise.
38600         * tests/test-stat.c: Likewise.
38601         * tests/test-strcasestr.c: Likewise.
38602         * tests/test-strchrnul.c: Likewise.
38603         * tests/test-strerror.c: Likewise.
38604         * tests/test-striconv.c: Likewise.
38605         * tests/test-striconveh.c: Likewise.
38606         * tests/test-striconveha.c: Likewise.
38607         * tests/test-strsignal.c: Likewise.
38608         * tests/test-strstr.c: Likewise.
38609         * tests/test-strtod.c: Likewise.
38610         * tests/test-strverscmp.c: Likewise.
38611         * tests/test-symlink.c: Likewise.
38612         * tests/test-symlinkat.c: Likewise.
38613         * tests/test-trunc1.c: Likewise.
38614         * tests/test-trunc2.c: Likewise.
38615         * tests/test-truncf1.c: Likewise.
38616         * tests/test-truncf2.c: Likewise.
38617         * tests/test-truncl.c: Likewise.
38618         * tests/test-uname.c: Likewise.
38619         * tests/test-unlink.c: Likewise.
38620         * tests/test-unlinkat.c: Likewise.
38621         * tests/test-unsetenv.c: Likewise.
38622         * tests/test-usleep.c: Likewise.
38623         * tests/test-utimens.c: Likewise.
38624         * tests/test-utimensat.c: Likewise.
38625         * tests/test-vasnprintf-posix.c: Likewise.
38626         * tests/test-vasnprintf-posix2.c: Likewise.
38627         * tests/test-vasnprintf.c: Likewise.
38628         * tests/test-vasprintf-posix.c: Likewise.
38629         * tests/test-vasprintf.c: Likewise.
38630         * tests/test-vdprintf-posix.c: Likewise.
38631         * tests/test-vfprintf-posix.c: Likewise.
38632         * tests/test-vprintf-posix.c: Likewise.
38633         * tests/test-vsnprintf-posix.c: Likewise.
38634         * tests/test-vsnprintf.c: Likewise.
38635         * tests/test-vsprintf-posix.c: Likewise.
38636         * tests/test-wcrtomb.c: Likewise.
38637         * tests/test-wcsnrtombs.c: Likewise.
38638         * tests/test-wcsrtombs.c: Likewise.
38639         * tests/test-wctype.c: Likewise.
38640         * tests/test-wcwidth.c: Likewise.
38641         * tests/test-xfprintf-posix.c: Likewise.
38642         * tests/test-xmemdup0.c: Likewise.
38643         * tests/test-xprintf-posix.c: Likewise.
38644         * tests/test-xvasprintf.c: Likewise.
38645         * tests/unicase/test-locale-language.c: Likewise.
38646         * tests/unicase/test-mapping-part1.h: Likewise.
38647         * tests/unicase/test-predicate-part1.h: Likewise.
38648         * tests/unicase/test-u8-casecmp.c: Likewise.
38649         * tests/unicase/test-u8-casecoll.c: Likewise.
38650         * tests/unicase/test-u8-casefold.c: Likewise.
38651         * tests/unicase/test-u8-is-cased.c: Likewise.
38652         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38653         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38654         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38655         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38656         * tests/unicase/test-u8-tolower.c: Likewise.
38657         * tests/unicase/test-u8-totitle.c: Likewise.
38658         * tests/unicase/test-u8-toupper.c: Likewise.
38659         * tests/unicase/test-u16-casecmp.c: Likewise.
38660         * tests/unicase/test-u16-casecoll.c: Likewise.
38661         * tests/unicase/test-u16-casefold.c: Likewise.
38662         * tests/unicase/test-u16-is-cased.c: Likewise.
38663         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38664         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38665         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38666         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38667         * tests/unicase/test-u16-tolower.c: Likewise.
38668         * tests/unicase/test-u16-totitle.c: Likewise.
38669         * tests/unicase/test-u16-toupper.c: Likewise.
38670         * tests/unicase/test-u32-casecmp.c: Likewise.
38671         * tests/unicase/test-u32-casecoll.c: Likewise.
38672         * tests/unicase/test-u32-casefold.c: Likewise.
38673         * tests/unicase/test-u32-is-cased.c: Likewise.
38674         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38675         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38676         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38677         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38678         * tests/unicase/test-u32-tolower.c: Likewise.
38679         * tests/unicase/test-u32-totitle.c: Likewise.
38680         * tests/unicase/test-u32-toupper.c: Likewise.
38681         * tests/unicase/test-ulc-casecmp.c: Likewise.
38682         * tests/unicase/test-ulc-casecoll.c: Likewise.
38683         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38684         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38685         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38686         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38687         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38688         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38689         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38690         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38691         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38692         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38693         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38694         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38695         * tests/unictype/test-bidi_byname.c: Likewise.
38696         * tests/unictype/test-bidi_name.c: Likewise.
38697         * tests/unictype/test-bidi_of.c: Likewise.
38698         * tests/unictype/test-bidi_test.c: Likewise.
38699         * tests/unictype/test-block_list.c: Likewise.
38700         * tests/unictype/test-block_of.c: Likewise.
38701         * tests/unictype/test-block_test.c: Likewise.
38702         * tests/unictype/test-categ_and.c: Likewise.
38703         * tests/unictype/test-categ_and_not.c: Likewise.
38704         * tests/unictype/test-categ_byname.c: Likewise.
38705         * tests/unictype/test-categ_name.c: Likewise.
38706         * tests/unictype/test-categ_none.c: Likewise.
38707         * tests/unictype/test-categ_of.c: Likewise.
38708         * tests/unictype/test-categ_or.c: Likewise.
38709         * tests/unictype/test-categ_test_withtable.c: Likewise.
38710         * tests/unictype/test-combining.c: Likewise.
38711         * tests/unictype/test-decdigit.c: Likewise.
38712         * tests/unictype/test-digit.c: Likewise.
38713         * tests/unictype/test-mirror.c: Likewise.
38714         * tests/unictype/test-numeric.c: Likewise.
38715         * tests/unictype/test-pr_byname.c: Likewise.
38716         * tests/unictype/test-pr_test.c: Likewise.
38717         * tests/unictype/test-predicate-part1.h: Likewise.
38718         * tests/unictype/test-scripts.c: Likewise.
38719         * tests/unictype/test-sy_c_ident.c: Likewise.
38720         * tests/unictype/test-sy_java_ident.c: Likewise.
38721         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38722         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38723         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38724         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38725         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38726         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38727         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38728         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38729         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38730         * tests/uninorm/test-compat-decomposition.c: Likewise.
38731         * tests/uninorm/test-composition.c: Likewise.
38732         * tests/uninorm/test-decomposing-form.c: Likewise.
38733         * tests/uninorm/test-decomposition.c: Likewise.
38734         * tests/uninorm/test-u8-nfc.c: Likewise.
38735         * tests/uninorm/test-u8-nfd.c: Likewise.
38736         * tests/uninorm/test-u8-nfkc.c: Likewise.
38737         * tests/uninorm/test-u8-nfkd.c: Likewise.
38738         * tests/uninorm/test-u8-normcmp.c: Likewise.
38739         * tests/uninorm/test-u8-normcoll.c: Likewise.
38740         * tests/uninorm/test-u16-nfc.c: Likewise.
38741         * tests/uninorm/test-u16-nfd.c: Likewise.
38742         * tests/uninorm/test-u16-nfkc.c: Likewise.
38743         * tests/uninorm/test-u16-nfkd.c: Likewise.
38744         * tests/uninorm/test-u16-normcmp.c: Likewise.
38745         * tests/uninorm/test-u16-normcoll.c: Likewise.
38746         * tests/uninorm/test-u32-nfc.c: Likewise.
38747         * tests/uninorm/test-u32-nfd.c: Likewise.
38748         * tests/uninorm/test-u32-nfkc.c: Likewise.
38749         * tests/uninorm/test-u32-nfkd.c: Likewise.
38750         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38751         * tests/uninorm/test-u32-normcmp.c: Likewise.
38752         * tests/uninorm/test-u32-normcoll.c: Likewise.
38753         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38754         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38755         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38756         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38757         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38758         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38759         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38760         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38761         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38762         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38763         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38764         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38765         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38766         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38767         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38768         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38769         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38770         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38771         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38772         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38773         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38774         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38775         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38776         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38777         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38778         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38779         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38780         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38781         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38782         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38783         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38784         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38785         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38786         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38787         * tests/uniwidth/test-u8-width.c: Likewise.
38788         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38789         * tests/uniwidth/test-u16-width.c: Likewise.
38790         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38791         * tests/uniwidth/test-u32-width.c: Likewise.
38792         * tests/uniwidth/test-uc_width.c: Likewise.
38793         * tests/uniwidth/test-uc_width2.c: Likewise.
38794         * modules/acl-tests (Files): Add tests/macros.h.
38795         * modules/areadlink-tests (Files): Likewise.
38796         * modules/areadlink-with-size-tests (Files): Likewise.
38797         * modules/areadlinkat-tests (Files): Likewise.
38798         * modules/areadlinkat-with-size-tests (Files): Likewise.
38799         * modules/argmatch-tests (Files): Likewise.
38800         * modules/argv-iter-tests (Files): Likewise.
38801         * modules/array-list-tests (Files): Likewise.
38802         * modules/array-mergesort-tests (Files): Likewise.
38803         * modules/array-oset-tests (Files): Likewise.
38804         * modules/avltree-list-tests (Files): Likewise.
38805         * modules/avltree-oset-tests (Files): Likewise.
38806         * modules/avltreehash-list-tests (Files): Likewise.
38807         * modules/base64-tests (Files): Likewise.
38808         * modules/binary-io-tests (Files): Likewise.
38809         * modules/bitrotate-tests (Files): Likewise.
38810         * modules/btowc-tests (Files): Likewise.
38811         * modules/byteswap-tests (Files): Likewise.
38812         * modules/c-ctype-tests (Files): Likewise.
38813         * modules/c-stack-tests (Files): Likewise.
38814         * modules/c-strcase-tests (Files): Likewise.
38815         * modules/c-strcasestr-tests (Files): Likewise.
38816         * modules/c-strstr-tests (Files): Likewise.
38817         * modules/canonicalize-lgpl-tests (Files): Likewise.
38818         * modules/canonicalize-tests (Files): Likewise.
38819         * modules/carray-list-tests (Files): Likewise.
38820         * modules/ceilf-tests (Files): Likewise.
38821         * modules/ceill-tests (Files): Likewise.
38822         * modules/chown-tests (Files): Likewise.
38823         * modules/cloexec-tests (Files): Likewise.
38824         * modules/copy-file-tests (Files): Likewise.
38825         * modules/count-one-bits-tests (Files): Likewise.
38826         * modules/dprintf-posix-tests (Files): Likewise.
38827         * modules/dup2-tests (Files): Likewise.
38828         * modules/dup3-tests (Files): Likewise.
38829         * modules/duplocale-tests (Files): Likewise.
38830         * modules/fbufmode-tests (Files): Likewise.
38831         * modules/fchdir-tests (Files): Likewise.
38832         * modules/fcntl-safer-tests (Files): Likewise.
38833         * modules/fcntl-tests (Files): Likewise.
38834         * modules/fdopendir-tests (Files): Likewise.
38835         * modules/fdutimensat-tests (Files): Likewise.
38836         * modules/fflush-tests (Files): Likewise.
38837         * modules/filevercmp-tests (Files): Likewise.
38838         * modules/flock-tests (Files): Likewise.
38839         * modules/floorf-tests (Files): Likewise.
38840         * modules/floorl-tests (Files): Likewise.
38841         * modules/fnmatch-tests (Files): Likewise.
38842         * modules/fopen-safer-tests (Files): Likewise.
38843         * modules/fopen-tests (Files): Likewise.
38844         * modules/fpending-tests (Files): Likewise.
38845         * modules/fprintf-posix-tests (Files): Likewise.
38846         * modules/fpurge-tests (Files): Likewise.
38847         * modules/freadable-tests (Files): Likewise.
38848         * modules/freadahead-tests (Files): Likewise.
38849         * modules/freading-tests (Files): Likewise.
38850         * modules/freadptr-tests (Files): Likewise.
38851         * modules/freadseek-tests (Files): Likewise.
38852         * modules/freopen-tests (Files): Likewise.
38853         * modules/frexp-nolibm-tests (Files): Likewise.
38854         * modules/frexp-tests (Files): Likewise.
38855         * modules/frexpl-nolibm-tests (Files): Likewise.
38856         * modules/frexpl-tests (Files): Likewise.
38857         * modules/fseek-tests (Files): Likewise.
38858         * modules/fseeko-tests (Files): Likewise.
38859         * modules/fstrcmp-tests (Files): Likewise.
38860         * modules/fsync-tests (Files): Likewise.
38861         * modules/ftell-tests (Files): Likewise.
38862         * modules/ftello-tests (Files): Likewise.
38863         * modules/func-tests (Files): Likewise.
38864         * modules/futimens-tests (Files): Likewise.
38865         * modules/fwritable-tests (Files): Likewise.
38866         * modules/fwriting-tests (Files): Likewise.
38867         * modules/getcwd-tests (Files): Likewise.
38868         * modules/getdate-tests (Files): Likewise.
38869         * modules/getdelim-tests (Files): Likewise.
38870         * modules/getdtablesize-tests (Files): Likewise.
38871         * modules/getgroups-tests (Files): Likewise.
38872         * modules/getline-tests (Files): Likewise.
38873         * modules/getndelim2-tests (Files): Likewise.
38874         * modules/glob-tests (Files): Likewise.
38875         * modules/hash-tests (Files): Likewise.
38876         * modules/i-ring-tests (Files): Likewise.
38877         * modules/iconv-tests (Files): Likewise.
38878         * modules/iconv_open-utf-tests (Files): Likewise.
38879         * modules/idpriv-drop-tests (Files): Likewise.
38880         * modules/idpriv-droptemp-tests (Files): Likewise.
38881         * modules/inet_ntop-tests (Files): Likewise.
38882         * modules/inet_pton-tests (Files): Likewise.
38883         * modules/isblank-tests (Files): Likewise.
38884         * modules/isfinite-tests (Files): Likewise.
38885         * modules/isinf-tests (Files): Likewise.
38886         * modules/isnan-tests (Files): Likewise.
38887         * modules/isnand-nolibm-tests (Files): Likewise.
38888         * modules/isnand-tests (Files): Likewise.
38889         * modules/isnanf-nolibm-tests (Files): Likewise.
38890         * modules/isnanf-tests (Files): Likewise.
38891         * modules/isnanl-nolibm-tests (Files): Likewise.
38892         * modules/isnanl-tests (Files): Likewise.
38893         * modules/lchown-tests (Files): Likewise.
38894         * modules/ldexpl-tests (Files): Likewise.
38895         * modules/link-tests (Files): Likewise.
38896         * modules/linkat-tests (Files): Likewise.
38897         * modules/linked-list-tests (Files): Likewise.
38898         * modules/linkedhash-list-tests (Files): Likewise.
38899         * modules/localename-tests (Files): Likewise.
38900         * modules/lseek-tests (Files): Likewise.
38901         * modules/lstat-tests (Files): Likewise.
38902         * modules/mbmemcasecmp-tests (Files): Likewise.
38903         * modules/mbmemcasecoll-tests (Files): Likewise.
38904         * modules/mbrtowc-tests (Files): Likewise.
38905         * modules/mbscasecmp-tests (Files): Likewise.
38906         * modules/mbscasestr-tests (Files): Likewise.
38907         * modules/mbschr-tests (Files): Likewise.
38908         * modules/mbscspn-tests (Files): Likewise.
38909         * modules/mbsinit-tests (Files): Likewise.
38910         * modules/mbsncasecmp-tests (Files): Likewise.
38911         * modules/mbsnrtowcs-tests (Files): Likewise.
38912         * modules/mbspbrk-tests (Files): Likewise.
38913         * modules/mbspcasecmp-tests (Files): Likewise.
38914         * modules/mbsrchr-tests (Files): Likewise.
38915         * modules/mbsrtowcs-tests (Files): Likewise.
38916         * modules/mbsspn-tests (Files): Likewise.
38917         * modules/mbsstr-tests (Files): Likewise.
38918         * modules/memchr-tests (Files): Likewise.
38919         * modules/memchr2-tests (Files): Likewise.
38920         * modules/memcmp-tests (Files): Likewise.
38921         * modules/memmem-tests (Files): Likewise.
38922         * modules/memrchr-tests (Files): Likewise.
38923         * modules/mkdir-tests (Files): Likewise.
38924         * modules/mkfifo-tests (Files): Likewise.
38925         * modules/mkfifoat-tests (Files): Likewise.
38926         * modules/mknod-tests (Files): Likewise.
38927         * modules/nanosleep-tests (Files): Likewise.
38928         * modules/nl_langinfo-tests (Files): Likewise.
38929         * modules/obstack-printf-tests (Files): Likewise.
38930         * modules/open-tests (Files): Likewise.
38931         * modules/openat-tests (Files): Likewise.
38932         * modules/pipe-filter-gi-tests (Files): Likewise.
38933         * modules/pipe-filter-ii-tests (Files): Likewise.
38934         * modules/pipe2-tests (Files): Likewise.
38935         * modules/popen-safer-tests (Files): Likewise.
38936         * modules/popen-tests (Files): Likewise.
38937         * modules/posixtm-tests (Files): Likewise.
38938         * modules/pread-tests (Files): Likewise.
38939         * modules/printf-frexp-tests (Files): Likewise.
38940         * modules/printf-frexpl-tests (Files): Likewise.
38941         * modules/printf-posix-tests (Files): Likewise.
38942         * modules/priv-set-tests (Files): Likewise.
38943         * modules/quotearg-tests (Files): Likewise.
38944         * modules/random_r-tests (Files): Likewise.
38945         * modules/rawmemchr-tests (Files): Likewise.
38946         * modules/rbtree-list-tests (Files): Likewise.
38947         * modules/rbtree-oset-tests (Files): Likewise.
38948         * modules/rbtreehash-list-tests (Files): Likewise.
38949         * modules/readlink-tests (Files): Likewise.
38950         * modules/remove-tests (Files): Likewise.
38951         * modules/rename-tests (Files): Likewise.
38952         * modules/renameat-tests (Files): Likewise.
38953         * modules/rmdir-tests (Files): Likewise.
38954         * modules/round-tests (Files): Likewise.
38955         * modules/roundf-tests (Files): Likewise.
38956         * modules/roundl-tests (Files): Likewise.
38957         * modules/safe-alloc-tests (Files): Likewise.
38958         * modules/setenv-tests (Files): Likewise.
38959         * modules/sigaction-tests (Files): Likewise.
38960         * modules/signbit-tests (Files): Likewise.
38961         * modules/sleep-tests (Files): Likewise.
38962         * modules/snprintf-posix-tests (Files): Likewise.
38963         * modules/snprintf-tests (Files): Likewise.
38964         * modules/sprintf-posix-tests (Files): Likewise.
38965         * modules/stat-tests (Files): Likewise.
38966         * modules/stat-time-tests (Files): Likewise.
38967         * modules/strcasestr-tests (Files): Likewise.
38968         * modules/strchrnul-tests (Files): Likewise.
38969         * modules/strerror-tests (Files): Likewise.
38970         * modules/striconv-tests (Files): Likewise.
38971         * modules/striconveh-tests (Files): Likewise.
38972         * modules/striconveha-tests (Files): Likewise.
38973         * modules/strsignal-tests (Files): Likewise.
38974         * modules/strstr-tests (Files): Likewise.
38975         * modules/strtod-tests (Files): Likewise.
38976         * modules/strverscmp-tests (Files): Likewise.
38977         * modules/symlink-tests (Files): Likewise.
38978         * modules/symlinkat-tests (Files): Likewise.
38979         * modules/trunc-tests (Files): Likewise.
38980         * modules/truncf-tests (Files): Likewise.
38981         * modules/truncl-tests (Files): Likewise.
38982         * modules/uname-tests (Files): Likewise.
38983         * modules/unicase/cased-tests (Files): Likewise.
38984         * modules/unicase/ignorable-tests (Files): Likewise.
38985         * modules/unicase/locale-language-tests (Files): Likewise.
38986         * modules/unicase/tolower-tests (Files): Likewise.
38987         * modules/unicase/totitle-tests (Files): Likewise.
38988         * modules/unicase/toupper-tests (Files): Likewise.
38989         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38990         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38991         * modules/unicase/u8-casefold-tests (Files): Likewise.
38992         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38993         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38994         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38995         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38996         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38997         * modules/unicase/u8-tolower-tests (Files): Likewise.
38998         * modules/unicase/u8-totitle-tests (Files): Likewise.
38999         * modules/unicase/u8-toupper-tests (Files): Likewise.
39000         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39001         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39002         * modules/unicase/u16-casefold-tests (Files): Likewise.
39003         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39004         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39005         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39006         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39007         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39008         * modules/unicase/u16-tolower-tests (Files): Likewise.
39009         * modules/unicase/u16-totitle-tests (Files): Likewise.
39010         * modules/unicase/u16-toupper-tests (Files): Likewise.
39011         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39012         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39013         * modules/unicase/u32-casefold-tests (Files): Likewise.
39014         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39015         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39016         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39017         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39018         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39019         * modules/unicase/u32-tolower-tests (Files): Likewise.
39020         * modules/unicase/u32-totitle-tests (Files): Likewise.
39021         * modules/unicase/u32-toupper-tests (Files): Likewise.
39022         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39023         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39024         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39025         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39026         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39027         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39028         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39029         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39030         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39031         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39032         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39033         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39034         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39035         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39036         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39037         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39038         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39039         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39040         * modules/unictype/block-list-tests (Files): Likewise.
39041         * modules/unictype/block-of-tests (Files): Likewise.
39042         * modules/unictype/block-test-tests (Files): Likewise.
39043         * modules/unictype/category-C-tests (Files): Likewise.
39044         * modules/unictype/category-Cc-tests (Files): Likewise.
39045         * modules/unictype/category-Cf-tests (Files): Likewise.
39046         * modules/unictype/category-Cn-tests (Files): Likewise.
39047         * modules/unictype/category-Co-tests (Files): Likewise.
39048         * modules/unictype/category-Cs-tests (Files): Likewise.
39049         * modules/unictype/category-L-tests (Files): Likewise.
39050         * modules/unictype/category-Ll-tests (Files): Likewise.
39051         * modules/unictype/category-Lm-tests (Files): Likewise.
39052         * modules/unictype/category-Lo-tests (Files): Likewise.
39053         * modules/unictype/category-Lt-tests (Files): Likewise.
39054         * modules/unictype/category-Lu-tests (Files): Likewise.
39055         * modules/unictype/category-M-tests (Files): Likewise.
39056         * modules/unictype/category-Mc-tests (Files): Likewise.
39057         * modules/unictype/category-Me-tests (Files): Likewise.
39058         * modules/unictype/category-Mn-tests (Files): Likewise.
39059         * modules/unictype/category-N-tests (Files): Likewise.
39060         * modules/unictype/category-Nd-tests (Files): Likewise.
39061         * modules/unictype/category-Nl-tests (Files): Likewise.
39062         * modules/unictype/category-No-tests (Files): Likewise.
39063         * modules/unictype/category-P-tests (Files): Likewise.
39064         * modules/unictype/category-Pc-tests (Files): Likewise.
39065         * modules/unictype/category-Pd-tests (Files): Likewise.
39066         * modules/unictype/category-Pe-tests (Files): Likewise.
39067         * modules/unictype/category-Pf-tests (Files): Likewise.
39068         * modules/unictype/category-Pi-tests (Files): Likewise.
39069         * modules/unictype/category-Po-tests (Files): Likewise.
39070         * modules/unictype/category-Ps-tests (Files): Likewise.
39071         * modules/unictype/category-S-tests (Files): Likewise.
39072         * modules/unictype/category-Sc-tests (Files): Likewise.
39073         * modules/unictype/category-Sk-tests (Files): Likewise.
39074         * modules/unictype/category-Sm-tests (Files): Likewise.
39075         * modules/unictype/category-So-tests (Files): Likewise.
39076         * modules/unictype/category-Z-tests (Files): Likewise.
39077         * modules/unictype/category-Zl-tests (Files): Likewise.
39078         * modules/unictype/category-Zp-tests (Files): Likewise.
39079         * modules/unictype/category-Zs-tests (Files): Likewise.
39080         * modules/unictype/category-and-not-tests (Files): Likewise.
39081         * modules/unictype/category-and-tests (Files): Likewise.
39082         * modules/unictype/category-byname-tests (Files): Likewise.
39083         * modules/unictype/category-name-tests (Files): Likewise.
39084         * modules/unictype/category-none-tests (Files): Likewise.
39085         * modules/unictype/category-of-tests (Files): Likewise.
39086         * modules/unictype/category-or-tests (Files): Likewise.
39087         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39088         * modules/unictype/combining-class-tests (Files): Likewise.
39089         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39090         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39091         * modules/unictype/ctype-blank-tests (Files): Likewise.
39092         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39093         * modules/unictype/ctype-digit-tests (Files): Likewise.
39094         * modules/unictype/ctype-graph-tests (Files): Likewise.
39095         * modules/unictype/ctype-lower-tests (Files): Likewise.
39096         * modules/unictype/ctype-print-tests (Files): Likewise.
39097         * modules/unictype/ctype-punct-tests (Files): Likewise.
39098         * modules/unictype/ctype-space-tests (Files): Likewise.
39099         * modules/unictype/ctype-upper-tests (Files): Likewise.
39100         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39101         * modules/unictype/decimal-digit-tests (Files): Likewise.
39102         * modules/unictype/digit-tests (Files): Likewise.
39103         * modules/unictype/mirror-tests (Files): Likewise.
39104         * modules/unictype/numeric-tests (Files): Likewise.
39105         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39106         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39107         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39108         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39109         Likewise.
39110         * modules/unictype/property-bidi-block-separator-tests (Files):
39111         Likewise.
39112         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39113         Likewise.
39114         * modules/unictype/property-bidi-common-separator-tests (Files):
39115         Likewise.
39116         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39117         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39118         Likewise.
39119         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39120         Likewise.
39121         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39122         Likewise.
39123         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39124         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39125         Likewise.
39126         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39127         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39128         Likewise.
39129         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39130         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39131         * modules/unictype/property-bidi-segment-separator-tests (Files):
39132         Likewise.
39133         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39134         * modules/unictype/property-byname-tests (Files): Likewise.
39135         * modules/unictype/property-combining-tests (Files): Likewise.
39136         * modules/unictype/property-composite-tests (Files): Likewise.
39137         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39138         * modules/unictype/property-dash-tests (Files): Likewise.
39139         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39140         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39141         Likewise.
39142         * modules/unictype/property-deprecated-tests (Files): Likewise.
39143         * modules/unictype/property-diacritic-tests (Files): Likewise.
39144         * modules/unictype/property-extender-tests (Files): Likewise.
39145         * modules/unictype/property-format-control-tests (Files): Likewise.
39146         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39147         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39148         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39149         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39150         * modules/unictype/property-hyphen-tests (Files): Likewise.
39151         * modules/unictype/property-id-continue-tests (Files): Likewise.
39152         * modules/unictype/property-id-start-tests (Files): Likewise.
39153         * modules/unictype/property-ideographic-tests (Files): Likewise.
39154         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39155         * modules/unictype/property-ids-trinary-operator-tests (Files):
39156         Likewise.
39157         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39158         * modules/unictype/property-iso-control-tests (Files): Likewise.
39159         * modules/unictype/property-join-control-tests (Files): Likewise.
39160         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39161         * modules/unictype/property-line-separator-tests (Files): Likewise.
39162         * modules/unictype/property-logical-order-exception-tests (Files):
39163         Likewise.
39164         * modules/unictype/property-lowercase-tests (Files): Likewise.
39165         * modules/unictype/property-math-tests (Files): Likewise.
39166         * modules/unictype/property-non-break-tests (Files): Likewise.
39167         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39168         * modules/unictype/property-numeric-tests (Files): Likewise.
39169         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39170         * modules/unictype/property-other-default-ignorable-code-point-tests
39171         (Files): Likewise.
39172         * modules/unictype/property-other-grapheme-extend-tests (Files):
39173         Likewise.
39174         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39175         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39176         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39177         * modules/unictype/property-other-math-tests (Files): Likewise.
39178         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39179         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39180         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39181         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39182         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39183         * modules/unictype/property-private-use-tests (Files): Likewise.
39184         * modules/unictype/property-punctuation-tests (Files): Likewise.
39185         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39186         * modules/unictype/property-radical-tests (Files): Likewise.
39187         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39188         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39189         * modules/unictype/property-space-tests (Files): Likewise.
39190         * modules/unictype/property-terminal-punctuation-tests (Files):
39191         Likewise.
39192         * modules/unictype/property-test-tests (Files): Likewise.
39193         * modules/unictype/property-titlecase-tests (Files): Likewise.
39194         * modules/unictype/property-unassigned-code-value-tests (Files):
39195         Likewise.
39196         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39197         * modules/unictype/property-uppercase-tests (Files): Likewise.
39198         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39199         * modules/unictype/property-white-space-tests (Files): Likewise.
39200         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39201         * modules/unictype/property-xid-start-tests (Files): Likewise.
39202         * modules/unictype/property-zero-width-tests (Files): Likewise.
39203         * modules/unictype/scripts-tests (Files): Likewise.
39204         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39205         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39206         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39207         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39208         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39209         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39210         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39211         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39212         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39213         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39214         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39215         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39216         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39217         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39218         * modules/uninorm/composition-tests (Files): Likewise.
39219         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39220         * modules/uninorm/decomposition-tests (Files): Likewise.
39221         * modules/uninorm/filter-tests (Files): Likewise.
39222         * modules/uninorm/nfc-tests (Files): Likewise.
39223         * modules/uninorm/nfd-tests (Files): Likewise.
39224         * modules/uninorm/nfkc-tests (Files): Likewise.
39225         * modules/uninorm/nfkd-tests (Files): Likewise.
39226         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39227         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39228         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39229         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39230         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39231         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39232         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39233         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39234         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39235         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39236         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39237         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39238         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39239         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39240         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39241         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39242         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39243         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39244         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39245         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39246         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39247         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39248         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39249         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39250         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39251         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39252         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39253         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39254         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39255         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39256         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39257         * modules/uniwidth/u8-width-tests (Files): Likewise.
39258         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39259         * modules/uniwidth/u16-width-tests (Files): Likewise.
39260         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39261         * modules/uniwidth/u32-width-tests (Files): Likewise.
39262         * modules/uniwidth/width-tests (Files): Likewise.
39263         * modules/unlink-tests (Files): Likewise.
39264         * modules/unsetenv-tests (Files): Likewise.
39265         * modules/usleep-tests (Files): Likewise.
39266         * modules/utimens-tests (Files): Likewise.
39267         * modules/utimensat-tests (Files): Likewise.
39268         * modules/vasnprintf-posix-tests (Files): Likewise.
39269         * modules/vasnprintf-tests (Files): Likewise.
39270         * modules/vasprintf-posix-tests (Files): Likewise.
39271         * modules/vasprintf-tests (Files): Likewise.
39272         * modules/vdprintf-posix-tests (Files): Likewise.
39273         * modules/vfprintf-posix-tests (Files): Likewise.
39274         * modules/vprintf-posix-tests (Files): Likewise.
39275         * modules/vsnprintf-posix-tests (Files): Likewise.
39276         * modules/vsnprintf-tests (Files): Likewise.
39277         * modules/vsprintf-posix-tests (Files): Likewise.
39278         * modules/wcrtomb-tests (Files): Likewise.
39279         * modules/wcsnrtombs-tests (Files): Likewise.
39280         * modules/wcsrtombs-tests (Files): Likewise.
39281         * modules/wctype-tests (Files): Likewise.
39282         * modules/wcwidth-tests (Files): Likewise.
39283         * modules/xmemdup0-tests (Files): Likewise.
39284         * modules/xprintf-posix-tests (Files): Likewise.
39285         * modules/xvasprintf-tests (Files): Likewise.
39286
39287 2009-12-24  Eric Blake  <ebb9@byu.net>
39288
39289         test-nanosleep: fix typo
39290         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39291         patch.
39292         Reported by Bruno Haible.
39293
39294 2009-12-24  Bruno Haible  <bruno@clisp.org>
39295
39296         Reduce namespace pollution on glibc systems.
39297         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39298         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39299         systems.
39300         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39301         <getopt.h> on glibc systems.
39302         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39303         systems.
39304         * lib/fcntl.c: Include <unistd.h> here instead.
39305
39306 2009-12-24  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39309
39310 2009-12-24  Eric Blake  <ebb9@byu.net>
39311
39312         tests: add signature checks
39313         * tests/signature.h (SIGNATURE_CHECK): New file.
39314         * modules/atexit-tests (Files): Use it.
39315         * modules/btowc-tests (Files): Likewise.
39316         * modules/canonicalize-lgpl-tests (Files): Likewise.
39317         * modules/ceilf-tests (Files): Likewise.
39318         * modules/ceill-tests (Files): Likewise.
39319         * modules/chown-tests (Files): Likewise.
39320         * modules/dprintf-posix-tests (Files): Likewise.
39321         * modules/dup2-tests (Files): Likewise.
39322         * modules/dup3-tests (Files): Likewise.
39323         * modules/duplocale-tests (Files): Likewise.
39324         * modules/fchdir-tests (Files): Likewise.
39325         * modules/fcntl-tests (Files): Likewise.
39326         * modules/fdopendir-tests (Files): Likewise.
39327         * modules/fflush-tests (Files): Likewise.
39328         * modules/flock-tests (Files): Likewise.
39329         * modules/floorf-tests (Files): Likewise.
39330         * modules/floorl-tests (Files): Likewise.
39331         * modules/fnmatch-tests (Files): Likewise.
39332         * modules/fopen-tests (Files): Likewise.
39333         * modules/fprintf-posix-tests (Files): Likewise.
39334         * modules/freopen-tests (Files): Likewise.
39335         * modules/frexp-nolibm-tests (Files): Likewise.
39336         * modules/frexp-tests (Files): Likewise.
39337         * modules/frexpl-nolibm-tests (Files): Likewise.
39338         * modules/frexpl-tests (Files): Likewise.
39339         * modules/fseek-tests (Files): Likewise.
39340         * modules/fseeko-tests (Files): Likewise.
39341         * modules/fsync-tests (Files): Likewise.
39342         * modules/ftell-tests (Files): Likewise.
39343         * modules/ftello-tests (Files): Likewise.
39344         * modules/futimens-tests (Files): Likewise.
39345         * modules/getaddrinfo-tests (Files): Likewise.
39346         * modules/getcwd-tests (Files): Likewise.
39347         * modules/getdelim-tests (Files): Likewise.
39348         * modules/getdtablesize-tests (Files): Likewise.
39349         * modules/getgroups-tests (Files): Likewise.
39350         * modules/gethostname-tests (Files): Likewise.
39351         * modules/getline-tests (Files): Likewise.
39352         * modules/getopt-posix-tests (Files): Likewise.
39353         * modules/gettimeofday-tests (Files): Likewise.
39354         * modules/glob-tests (Files): Likewise.
39355         * modules/iconv-tests (Files): Likewise.
39356         * modules/inet_ntop-tests (Files): Likewise.
39357         * modules/inet_pton-tests (Files): Likewise.
39358         * modules/isblank-tests (Files): Likewise.
39359         * modules/lchown-tests (Files): Likewise.
39360         * modules/ldexpl-tests (Files): Likewise.
39361         * modules/link-tests (Files): Likewise.
39362         * modules/linkat-tests (Files): Likewise.
39363         * modules/lseek-tests (Files): Likewise.
39364         * modules/lstat-tests (Files): Likewise.
39365         * modules/mbrtowc-tests (Files): Likewise.
39366         * modules/mbsinit-tests (Files): Likewise.
39367         * modules/mbsnrtowcs-tests (Files): Likewise.
39368         * modules/mbsrtowcs-tests (Files): Likewise.
39369         * modules/memchr-tests (Files): Likewise.
39370         * modules/memcmp-tests (Files): Likewise.
39371         * modules/memmem-tests (Files): Likewise.
39372         * modules/memrchr-tests (Files): Likewise.
39373         * modules/mkdir-tests (Files): Likewise.
39374         * modules/mkfifo-tests (Files): Likewise.
39375         * modules/mkfifoat-tests (Files): Likewise.
39376         * modules/mknod-tests (Files): Likewise.
39377         * modules/nanosleep-tests (Files): Likewise.
39378         * modules/nl_langinfo-tests (Files): Likewise.
39379         * modules/obstack-printf-tests (Files): Likewise.
39380         * modules/open-tests (Files): Likewise.
39381         * modules/openat-tests (Files): Likewise.
39382         * modules/perror-tests (Files): Likewise.
39383         * modules/pipe2-tests (Files): Likewise.
39384         * modules/poll-tests (Files): Likewise.
39385         * modules/popen-tests (Files): Likewise.
39386         * modules/posix_spawn-tests (Files): Likewise.
39387         * modules/posix_spawnp-tests (Files): Likewise.
39388         * modules/pread-tests (Files): Likewise.
39389         * modules/printf-posix-tests (Files): Likewise.
39390         * modules/pty-tests (Files): Likewise.
39391         * modules/random_r-tests (Files): Likewise.
39392         * modules/rawmemchr-tests (Files): Likewise.
39393         * modules/readlink-tests (Files): Likewise.
39394         * modules/remove-tests (Files): Likewise.
39395         * modules/rename-tests (Files): Likewise.
39396         * modules/renameat-tests (Files): Likewise.
39397         * modules/rmdir-tests (Files): Likewise.
39398         * modules/round-tests (Files): Likewise.
39399         * modules/roundf-tests (Files): Likewise.
39400         * modules/roundl-tests (Files): Likewise.
39401         * modules/select-tests (Files): Likewise.
39402         * modules/setenv-tests (Files): Likewise.
39403         * modules/sigaction-tests (Files): Likewise.
39404         * modules/sleep-tests (Files): Likewise.
39405         * modules/snprintf-posix-tests (Files): Likewise.
39406         * modules/snprintf-tests (Files): Likewise.
39407         * modules/sprintf-posix-tests (Files): Likewise.
39408         * modules/stat-tests (Files): Likewise.
39409         * modules/strcasestr-tests (Files): Likewise.
39410         * modules/strchrnul-tests (Files): Likewise.
39411         * modules/strerror-tests (Files): Likewise.
39412         * modules/strsignal-tests (Files): Likewise.
39413         * modules/strstr-tests (Files): Likewise.
39414         * modules/strtod-tests (Files): Likewise.
39415         * modules/strverscmp-tests (Files): Likewise.
39416         * modules/symlink-tests (Files): Likewise.
39417         * modules/symlinkat-tests (Files): Likewise.
39418         * modules/times-tests (Files): Likewise.
39419         * modules/trunc-tests (Files): Likewise.
39420         * modules/truncf-tests (Files): Likewise.
39421         * modules/truncl-tests (Files): Likewise.
39422         * modules/tsearch-tests (Files): Likewise.
39423         * modules/uname-tests (Files): Likewise.
39424         * modules/unlink-tests (Files): Likewise.
39425         * modules/unsetenv-tests (Files): Likewise.
39426         * modules/usleep-tests (Files): Likewise.
39427         * modules/utimensat-tests (Files): Likewise.
39428         * modules/vasprintf-tests (Files): Likewise.
39429         * modules/vdprintf-posix-tests (Files): Likewise.
39430         * modules/vfprintf-posix-tests (Files): Likewise.
39431         * modules/vprintf-posix-tests (Files): Likewise.
39432         * modules/vsnprintf-posix-tests (Files): Likewise.
39433         * modules/vsnprintf-tests (Files): Likewise.
39434         * modules/vsprintf-posix-tests (Files): Likewise.
39435         * modules/wcrtomb-tests (Files): Likewise.
39436         * modules/wcsnrtombs-tests (Files): Likewise.
39437         * modules/wcsrtombs-tests (Files): Likewise.
39438         * modules/wcwidth-tests (Files): Likewise.
39439         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39440         * tests/test-isinf.c (isinf): Likewise.
39441         * tests/test-isnan.c (isnan): Likewise.
39442         * tests/test-signbit.c (signbit): Likewise.
39443         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39444         declaration, either as macro or with correct signature.
39445         (select): Ensure function under test is declared with correct
39446         signature in correct header.
39447         * tests/test-atexit.c (atexit): Likewise.
39448         * tests/test-btowc.c (btowc): Likewise.
39449         * tests/test-canonicalize-lgpl.c (realpath)
39450         (canonicalize_file_name): Likewise.
39451         * tests/test-ceilf1.c (ceilf): Likewise.
39452         * tests/test-ceill.c (ceill): Likewise.
39453         * tests/test-chown.c (chown): Likewise.
39454         * tests/test-dprintf-posix.c (dprintf): Likewise.
39455         * tests/test-dup2.c (dup2): Likewise.
39456         * tests/test-dup3.c (dup3): Likewise.
39457         * tests/test-duplocale.c (duplocale): Likewise.
39458         * tests/test-fchdir.c (fchdir): Likewise.
39459         * tests/test-fchownat.c (fchownat): Likewise.
39460         * tests/test-fcntl.c (fcntl): Likewise.
39461         * tests/test-fdopendir.c (fdopendir): Likewise.
39462         * tests/test-fflush.c (fflush): Likewise.
39463         * tests/test-flock.c (flock): Likewise.
39464         * tests/test-floorf1.c (floorf): Likewise.
39465         * tests/test-floorl.c (floorl): Likewise.
39466         * tests/test-fnmatch.c (fnmatch): Likewise.
39467         * tests/test-fopen.c (fopen): Likewise.
39468         * tests/test-fprintf-posix.c (fprintf): Likewise.
39469         * tests/test-freopen.c (freopen): Likewise.
39470         * tests/test-frexp.c (frexp): Likewise.
39471         * tests/test-frexpl.c (frexpl): Likewise.
39472         * tests/test-fseek.c (fseek): Likewise.
39473         * tests/test-fseeko.c (fseeko): Likewise.
39474         * tests/test-fstatat.c (fstatat): Likewise.
39475         * tests/test-fsync.c (fsync): Likewise.
39476         * tests/test-ftell.c (ftell): Likewise.
39477         * tests/test-ftello.c (ftello): Likewise.
39478         * tests/test-futimens.c (futimens): Likewise.
39479         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39480         (gai_strerror): Likewise.
39481         * tests/test-getcwd.c (getcwd): Likewise.
39482         * tests/test-getdelim.c (getdelim): Likewise.
39483         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39484         * tests/test-getgroups.c (getgroups): Likewise.
39485         * tests/test-gethostname.c (gethostname): Likewise.
39486         * tests/test-getline.c (getline): Likewise.
39487         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39488         Likewise.
39489         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39490         * tests/test-glob.c (glob, globfree): Likewise.
39491         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39492         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39493         * tests/test-inet_pton.c (inet_pton): Likewise.
39494         * tests/test-isblank.c (isblank): Likewise.
39495         * tests/test-lchown.c (lchown): Likewise.
39496         * tests/test-ldexpl.c (ldexpl): Likewise.
39497         * tests/test-link.c (link): Likewise.
39498         * tests/test-linkat.c (linkat): Likewise.
39499         * tests/test-lseek.c (lseek): Likewise.
39500         * tests/test-lstat.c (lstat): Likewise.
39501         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39502         * tests/test-mbsinit.c (mbsinit): Likewise.
39503         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39504         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39505         * tests/test-memchr.c (memchr): Likewise.
39506         * tests/test-memcmp.c (memcmp): Likewise.
39507         * tests/test-memmem.c (memmem): Likewise.
39508         * tests/test-memrchr.c (memrchr): Likewise.
39509         * tests/test-mkdir.c (mkdir): Likewise.
39510         * tests/test-mkdirat.c (mkdirat): Likewise.
39511         * tests/test-mkfifo.c (mkfifo): Likewise.
39512         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39513         * tests/test-mknod.c (mknod): Likewise.
39514         * tests/test-nanosleep.c (nanosleep): Likewise.
39515         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39516         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39517         Likewise.
39518         * tests/test-open.c (open): Likewise.
39519         * tests/test-openat.c (openat): Likewise.
39520         * tests/test-perror.c (perror): Likewise.
39521         * tests/test-pipe2.c (pipe2): Likewise.
39522         * tests/test-poll.c (poll): Likewise.
39523         * tests/test-popen.c (popen, pclose): Likewise.
39524         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39525         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39526         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39527         (posix_spawn_file_actions_destroy)
39528         (posix_spawn_file_actions_addclose)
39529         (posix_spawn_file_actions_addopen)
39530         (posix_spawn_file_actions_adddup2): Likewise.
39531         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39532         * tests/test-pread.c (pread): Likewise.
39533         * tests/test-printf-posix.c (printf): Likewise.
39534         * tests/test-pty.c (openpty, forkpty): Likewise.
39535         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39536         (random_r): Likewise.
39537         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39538         * tests/test-readlink.c (readlink): Likewise.
39539         * tests/test-remove.c (remove): Likewise.
39540         * tests/test-rename.c (rename): Likewise.
39541         * tests/test-renameat.c (renameat): Likewise.
39542         * tests/test-rmdir.c (rmdir): Likewise.
39543         * tests/test-round1.c (round): Likewise.
39544         * tests/test-roundf1.c (roundf): Likewise.
39545         * tests/test-roundl.c (roundl): Likewise.
39546         * tests/test-setenv.c (setenv): Likewise.
39547         * tests/test-sigaction.c (sigaction): Likewise.
39548         * tests/test-sleep.c (sleep): Likewise.
39549         * tests/test-snprintf.c (snprintf): Likewise.
39550         * tests/test-sprintf-posix.c (sprintf): Likewise.
39551         * tests/test-stat.c (stat): Likewise.
39552         * tests/test-stpncpy.c (stpncpy): Likewise.
39553         * tests/test-strcasestr.c (strcasestr): Likewise.
39554         * tests/test-strchrnul.c (strchrnul): Likewise.
39555         * tests/test-strerror.c (strerror): Likewise.
39556         * tests/test-strsignal.c (strsignal): Likewise.
39557         * tests/test-strstr.c (strstr): Likewise.
39558         * tests/test-strtod.c (strtod): Likewise.
39559         * tests/test-strverscmp.c (strverscmp): Likewise.
39560         * tests/test-symlink.c (symlink): Likewise.
39561         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39562         * tests/test-times.c (times): Likewise.
39563         * tests/test-trunc1.c (trunc): Likewise.
39564         * tests/test-truncf1.c (truncf): Likewise.
39565         * tests/test-truncl.c (truncl): Likewise.
39566         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39567         Likewise.
39568         * tests/test-uname.c (uname): Likewise.
39569         * tests/test-unlink.c (unlink): Likewise.
39570         * tests/test-unlinkat.c (unlinkat): Likewise.
39571         * tests/test-unsetenv.c (unsetenv): Likewise.
39572         * tests/test-usleep.c (usleep): Likewise.
39573         * tests/test-utimensat.c (utimensat): Likewise.
39574         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39575         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39576         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39577         * tests/test-vprintf-posix.c (vprintf): Likewise.
39578         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39579         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39580         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39581         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39582         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39583         * tests/test-wcwidth.c (wcwidth): Likewise.
39584
39585         build: pull in conditional headers during GNULIB_POSIXCHECK
39586         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39587         definitions from any conditionally-included headers.
39588         * lib/stdlib.in.h (includes): Likewise.
39589         * lib/unistd.in.h (includes): Likewise.
39590
39591 2009-12-24  Bruno Haible  <bruno@clisp.org>
39592
39593         * tests/test-argv-iter.c: Include header file being tested immediately
39594         after config.h.
39595         * tests/test-base64.c: Likewise.
39596         * tests/test-flock.c: Likewise.
39597         * tests/test-fsync.c: Likewise.
39598         * tests/test-getdate.c: Likewise.
39599         * tests/test-getndelim2.c: Likewise.
39600         * tests/test-isfinite.c: Likewise.
39601         * tests/test-isinf.c: Likewise.
39602         * tests/test-strerror.c: Likewise.
39603         * tests/test-strsignal.c: Likewise.
39604
39605 2009-12-23  Eric Blake  <ebb9@byu.net>
39606
39607         unistd: work around cygwin bug
39608         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39609         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39610         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39611
39612 2009-12-23  Bruno Haible  <bruno@clisp.org>
39613
39614         localename: More tests.
39615         * tests/test-localename.c (SIZEOF): New macro.
39616         (categories): New variable.
39617         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39618         test_locale_name_default): Add test w.r.t. thread locale.
39619         (test_locale_name_thread): New function.
39620         (main): Invoke it.
39621
39622         localename: Make aware of thread locale.
39623         * lib/localename.h (gl_locale_name_thread): New declaration.
39624         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39625         behaviour with respect to thread locale.
39626         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39627         <langinfo.h>, glthread/lock.h.
39628         (SIZE_BITS): New macro.
39629         (string_hash): New function.
39630         (struct hash_node): New type.
39631         (HASH_TABLE_SIZE): New macro.
39632         (struniq_hash_table, struniq_lock): New variables.
39633         (struniq): New function.
39634         (gl_locale_name_thread): New function.
39635         (gl_locale_name): Invoke it.
39636         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39637         * modules/localename (Depends-on): Add lock.
39638         Reported by Mike Gran <spk121@yahoo.com>.
39639
39640 2009-12-23  Eric Blake  <ebb9@byu.net>
39641
39642         va-args: new module
39643         * modules/va-args: New file.
39644         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39645         * MODULES.html.sh (Core language properties): Mention it.
39646
39647         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39648         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39649         named alias for __attribute__((__unused__)).
39650         * lib/chown.c: Update client.
39651         * lib/fchmodat.c: Likewise.
39652         * lib/fts.c: Likewise.
39653         * lib/getdate.y: Likewise.
39654         * lib/getgroups.c: Likewise.
39655         * lib/getopt.c: Likewise.
39656         * lib/getugroups.c: Likewise.
39657         * lib/mkdir.c: Likewise.
39658         * lib/mkfifo.c: Likewise.
39659         * lib/mkfifoat.c: Likewise.
39660         * lib/mknod.c: Likewise.
39661         * lib/mknodat.c: Likewise.
39662         * lib/readlink.c: Likewise.
39663         * lib/se-context.in.h: Likewise.
39664         * lib/se-selinux.in.h: Likewise.
39665         * lib/sockets.c: Likewise.
39666         * lib/symlink.c: Likewise.
39667         * lib/symlinkat.c: Likewise.
39668         * lib/unicodeio.c: Likewise.
39669         * lib/unistr.h: Likewise.
39670         * tests/test-areadlink.c: Likewise.
39671         * tests/test-areadlinkat.c: Likewise.
39672         * tests/test-filenamecat.c: Likewise.
39673         * tests/test-fseeko.c: Likewise.
39674         * tests/test-ftello.c: Likewise.
39675         * tests/test-getdate.c: Likewise.
39676         * tests/test-getgroups.c: Likewise.
39677         * tests/test-gethostname.c: Likewise.
39678         * tests/test-quotearg.c: Likewise.
39679         * tests/test-version-etc.c: Likewise.
39680         * tests/test-xalloc-die.c: Likewise.
39681         * tests/test-xfprintf-posix.c: Likewise.
39682         * tests/test-xprintf-posix.c: Likewise.
39683         * tests/test-xvasprintf.c: Likewise.
39684
39685         tests: avoid compiler warnings
39686         * tests/test-fcntl.c (main): Delete unused parameters.
39687         * tests/test-freopen-safer.c (main): Likewise.
39688         * tests/test-xalloc-die.c (main): Mark unused parameters.
39689         * tests/test-fseeko.c (main): Likewise.
39690         * tests/test-ftello.c (main): Likewise.
39691         * tests/test-nanosleep.c (main): Avoid declaration warning.
39692         * tests/test-sleep.c (main): Likewise.
39693         * tests/test-unsetenv.c (main): Silence warning about string
39694         literal.
39695         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39696
39697 2009-12-23  Bruno Haible  <bruno@clisp.org>
39698
39699         * tests/test-localename.c (test_locale_name): New function, extracted
39700         from main. Also test mixed situations.
39701         (test_locale_name_posix, test_locale_name_environ,
39702         test_locale_name_default): New functions.
39703         (main): Invoke them all.
39704         * modules/localename-tests (configure.ac): Test for newlocale.
39705
39706 2009-12-23  Bruno Haible  <bruno@clisp.org>
39707
39708         unistd: Ensure getcwd gets declared before being overridden.
39709         * lib/unistd.in.h: Conditionally include <io.h>.
39710
39711 2009-12-22  Bruno Haible  <bruno@clisp.org>
39712
39713         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39714         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39715         (gl_WCHAR_H): Invoke it.
39716         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39717         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39718         Reported by Karl Berry <karl@freefriends.org>.
39719
39720 2009-12-22  Eric Blake  <ebb9@byu.net>
39721
39722         math, unistd: avoid redundant includes
39723         * lib/math.in.h (isnan): No need to re-include <math.h>.
39724         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39725
39726         getsubopt: work around cygwin bug
39727         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39728         avoid conflicting with system getsubopt.
39729         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39730         bug.
39731
39732         getopt: synchronize from glibc
39733         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39734         parameter order.  Adjust all callers.
39735         (_getopt_internal_r, main): Adjust quoting in error messages.
39736         Drop considerations for outdated POSIX 1003.2 error message.
39737         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39738         callers.
39739         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39740
39741         test-getopt: test stderr behavior
39742         * modules/getopt-posix-tests (Depends-on): Add dup2.
39743         * tests/test-getopt.c (ASSERT): Avoid stderr.
39744         (main): Move stderr to a temporary file.
39745         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39746         Instead, add parameter to inform caller if output occurred.
39747         (test_getopt): Adjust all existing tests to expect silence, and
39748         add new tests of leading ":".
39749         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39750         glibc shortcomings with leading "-:" or "+:" in optstring.
39751         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39752         Likewise.
39753         * doc/posix-functions/getopt.texi (getopt): Likewise.
39754
39755         test-getopt: enhance test
39756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39757         supports optind=0.
39758         * tests/test-getopt.c (OPTIND_MIN): Move...
39759         * tests/test-getopt.h (OPTIND_MIN): ...here.
39760         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39761         Require that optind=0 works, since modern BSD supports it in
39762         addition to optreset, and since coreutils expects it.
39763         (test_getopt_long_only): New test.
39764         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39765         glibc shortcomings with 'W;', and enforcement of optind=0.
39766         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39767         Likewise.
39768
39769 2009-12-21  Bruno Haible  <bruno@clisp.org>
39770
39771         localename: Improvements for MacOS X and Cygwin.
39772         * lib/localename.h (gl_locale_name_environ): New declaration.
39773         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39774         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39775         (gl_locale_name_posix): Invoke it.
39776         (gl_locale_name_default): Add comments. Use Windows native API also on
39777         Cygwin.
39778
39779 2009-12-21  Bruno Haible  <bruno@clisp.org>
39780
39781         Update list of Win32 locale ids.
39782         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39783         (LANG_SAMI): Renamed from LANG_SAAMI.
39784         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39785         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39786         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39787         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39788         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39789         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39790         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39791         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39792         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39793         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39794         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39795         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39796         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39797         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39798         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39799         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39800         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39801         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39802         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39803         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39804         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39805         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39806         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39807         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39808         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39809         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39810         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39811         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39812         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39813         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39814         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39815         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39816         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39817         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39818         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39819         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39820         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39821         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39822         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39823         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39824         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39825         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39826         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39827         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39828         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39829         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39830         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39831         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39832         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39833         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39834         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39835         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39836         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39837         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39838         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39839         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39840         Add more languages and countries for Sami, Sorbian. Add more countries
39841         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39842         for Pashto. Change country for Syriac, Tswana.
39843
39844 2009-12-21  Eric Blake  <ebb9@byu.net>
39845
39846         test-utimens: avoid spurious failure
39847         * tests/test-chown.h (nap): Factor...
39848         * tests/nap.h: ...into new file.
39849         * tests/test-lchown.h (nap): Avoid duplication.
39850         * tests/test-utimens-common.h (nap): Use shared implementation,
39851         necessary on file systems with 1-second resolution.
39852         * modules/chown-tests (Files): Include new file.
39853         * modules/fdutimensat-tests (Files): Likewise.
39854         * modules/futimens-tests (Files): Likewise.
39855         * modules/lchown-tests (Files): Likewise.
39856         * modules/openat-tests (Files): Likewise.
39857         * modules/utimens-tests (Files): Likewise.
39858         * modules/utimensat-tests (Files): Likewise.
39859
39860 2009-12-19  Eric Blake  <ebb9@byu.net>
39861
39862         futimens, utimensat: work around Linux bug
39863         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39864         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39865         * lib/utimensat.c (rpl_utimensat): Work around it.
39866         * lib/futimens.c (rpl_futimens): Adjust comment.
39867
39868         utimens: work around Linux ctime bug
39869         * lib/utimens.c (detect_ctime_bug): New helper function.
39870         (update_timespec): Differentiate between workaround needed for
39871         this bug vs. what is needed for systems that lack utimensat.
39872         (fdutimens, lutimens): Work around bug.
39873
39874         utimens: check for ctime update
39875         * tests/test-utimens-common.h (check_ctime): Define.
39876         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39877         * tests/test-futimens.h (test_futimens): Likewise.
39878         * tests/test-lutimens.h (test_lutimens): Likewise.
39879         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39880         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39881
39882 2009-12-19  Bruno Haible  <bruno@clisp.org>
39883
39884         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39885         * tests/test-dprintf-posix2.sh: New file.
39886         * tests/test-dprintf-posix2.c: New file.
39887         * modules/dprintf-posix-tests (Files): Add them.
39888         (configure.ac): Check for getrlimit and setrlimit.
39889         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39890
39891 2009-12-19  Bruno Haible  <bruno@clisp.org>
39892
39893         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39894         * tests/test-fprintf-posix3.sh: New file.
39895         * tests/test-fprintf-posix3.c: New file.
39896         * modules/fprintf-posix-tests (Files): Add them.
39897         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39898
39899 2009-12-19  Eric Blake  <ebb9@byu.net>
39900
39901         dirfd: fix prototype
39902         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39903         * lib/dirfd.c (dirfd): Likewise.
39904
39905         canonicalize: reduce memory usage
39906         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39907         allocation to size.
39908         Reported by Solar Designer <solar@openwall.com>.
39909
39910 2009-12-19  Bruno Haible  <bruno@clisp.org>
39911
39912         New module attribute 'Applicability'.
39913         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39914         * gnulib-tool: New option --extract-applicability.
39915         (func_usage): Document it.
39916         (sed_extract_prog): Recognize it.
39917         (func_get_applicability): New function.
39918         (func_import): Generalize handling of 'link-warning' module.
39919         * modules/link-warning (Applicability): New section.
39920         * modules/arg-nonnull (Applicability): New section.
39921         Repoted by Simon Josefsson <simon@josefsson.org>.
39922
39923 2009-12-19  Bruno Haible  <bruno@clisp.org>
39924
39925         fflush: tweak
39926         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39927         * lib/fseeko.c (rpl_fseeko): Likewise.
39928
39929 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39930
39931         * lib/gl_list.h: Fix typo in comment.
39932
39933 2009-12-16  Eric Blake  <ebb9@byu.net>
39934
39935         fcntl: use to simplify other modules
39936         * modules/cloexec (Depends-on): Add fcntl.
39937         * modules/fchdir (Depends-on): Likewise.
39938         * modules/fd-safer-flag (Depends-on): Likewise.
39939         * modules/unistd-safer (Depends-on): Likewise.
39940         * modules/dup3 (configure.ac): Set module indicator.
39941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39942         missing.
39943         * lib/fchdir.c (_gl_register_dup): Fix comment.
39944         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39945         * lib/dup-safer.c (dup_safer): Likewise.
39946         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39947         * lib/dup3.c (dup3): Likewise.
39948         * tests/test-fchdir.c (main): Enhance test.
39949         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39950
39951         fcntl: port portions of fcntl to mingw
39952         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39953         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39954         replacement for mingw.
39955         * modules/fcntl (Description): Update.
39956         (Depends-on): Add dup2.
39957         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39958         * modules/fcntl-h (Makefile.am): Substitute it.
39959         * lib/fcntl.in.h (fcntl): Update declaration.
39960         (F_DUPFD, F_GETFD): New macros, when needed.
39961         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39962         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39963         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39964         we now guarantee.
39965
39966         fcntl: work around cygwin bug in F_DUPFD
39967         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39968         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39969         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39970         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39971         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39972
39973         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39974         * modules/fcntl (Files): List new files.
39975         (configure.ac): Run a test.
39976         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39977         * lib/fcntl.c (rpl_fcntl): Likewise.
39978         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39979         (gl_FCNTL_H): Always replace fcntl.h.
39980         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39981         * lib/fcntl.in.h (fcntl): Declare replacement.
39982         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39983         needed, plus a witness.
39984         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39985         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39986         * tests/test-fcntl.c: New file.
39987         * modules/fcntl-tests: Likewise.
39988
39989         binary-io: avoid potential compilation warning
39990         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39991         directives.
39992
39993         fflush: avoid compilation error on NetBSD
39994         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39995         between off_t and fpos_t, since the latter is sometimes a struct.
39996         * lib/fseeko.c (rpl_fseeko): Likewise.
39997         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39998
39999 2009-12-15  Eric Blake  <ebb9@byu.net>
40000
40001         fcntl-h, stdio, sys_ioctl: fix declarations
40002         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40003         function must not take arguments.
40004         * lib/sys_ioctl.in.h (ioctl): Likewise.
40005         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40006         (open): Add a link warning.
40007
40008 2009-12-15  Jim Meyering  <meyering@redhat.com>
40009
40010         areadlink, areadlink-with-size: relax license to LGPLv2+
40011         * modules/areadlink (License): Relax to LGPLv2+.
40012         * modules/areadlink-with-size (License): Likewise.
40013
40014 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40015             Bruno Haible  <bruno@clisp.org>
40016
40017         *printf: Fix memory leak.
40018         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40019         * lib/vfprintf.c (vfprintf): Likewise.
40020         * lib/dprintf.c (dprintf): Likewise.
40021         * lib/vdprintf.c (vdprintf): Likewise.
40022
40023 2009-12-14  Eric Blake  <ebb9@byu.net>
40024
40025         accept4: adjust module dependencies
40026         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40027
40028         utimens: one more try at avoiding compiler warning
40029         * lib/utimens.c (lutimens): Lower scope of result.
40030
40031 2009-12-13  Bruno Haible  <bruno@clisp.org>
40032
40033         Move the malloc checking from module 'list' to new module 'xlist'.
40034         * modules/xlist: New file.
40035         * lib/gl_xlist.h: New file.
40036         * lib/gl_xlist.c: New file.
40037         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40038         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40039         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40040         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40041         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40042         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40043         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40044         gl_sortedlist_nx_add): New declarations.
40045         (struct gl_list_implementation): Rename and change methods accordingly.
40046         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40047         (gl_list_nx_create): Renamed from gl_list_create.
40048         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40049         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40050         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40051         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40052         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40053         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40054         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40055         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40056         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40057         gl_list_create_empty.
40058         (gl_list_nx_create): Renamed from gl_list_create.
40059         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40060         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40061         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40062         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40063         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40064         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40065         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40066         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40067         * lib/gl_array_list.c: Don't include xalloc.h.
40068         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40069         NULL upon out-of-memory.
40070         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40071         out-of-memory.
40072         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40073         Change return type to 'int'.
40074         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40075         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40076         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40077         upon out-of-memory.
40078         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40079         upon out-of-memory.
40080         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40081         upon out-of-memory.
40082         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40083         upon out-of-memory.
40084         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40085         out-of-memory.
40086         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40087         Update.
40088         (gl_array_list_implementation): Update.
40089         * lib/gl_carray_list.c: Don't include xalloc.h.
40090         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40091         Return NULL upon out-of-memory.
40092         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40093         out-of-memory.
40094         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40095         Change return type to 'int'.
40096         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40097         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40098         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40099         upon out-of-memory.
40100         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40101         upon out-of-memory.
40102         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40103         out-of-memory.
40104         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40105         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40106         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40107         Update.
40108         (gl_carray_list_implementation): Update.
40109         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40110         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40111         gl_linked_create_empty. Return NULL upon out-of-memory.
40112         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40113         out-of-memory.
40114         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40115         Change return type to 'int'. Return -1 upon out-of-memory.
40116         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40117         out-of-memory.
40118         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40119         upon out-of-memory.
40120         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40121         upon out-of-memory.
40122         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40123         NULL upon out-of-memory.
40124         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40125         upon out-of-memory.
40126         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40127         out-of-memory.
40128         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40129         Update.
40130         * lib/gl_linked_list.c: Don't include xalloc.h.
40131         (gl_linked_list_implementation): Update.
40132         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40133         (add_to_bucket): Change return type to 'int'.
40134         (gl_linkedhash_list_implementation): Update.
40135         * lib/gl_anytree_list1.h (free_subtree): New function.
40136         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40137         gl_tree_create_empty. Return NULL upon out-of-memory.
40138         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40139         Change return type to 'int'. Return -1 upon out-of-memory.
40140         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40141         out-of-memory.
40142         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40143         (gl_tree_remove_node): New function, moved here from
40144         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40145         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40146         Update.
40147         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40148         malloc, not xmalloc. Return NULL upon out-of-memory.
40149         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40150         out-of-memory.
40151         (gl_tree_remove_node_from_tree): New function, extracted from
40152         gl_tree_remove_node.
40153         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40154         upon out-of-memory.
40155         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40156         out-of-memory.
40157         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40158         upon out-of-memory.
40159         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40160         upon out-of-memory.
40161         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40162         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40163         not xmalloc. Return NULL upon out-of-memory.
40164         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40165         out-of-memory.
40166         (gl_tree_remove_node_from_tree): New function, extracted from
40167         gl_tree_remove_node.
40168         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40169         upon out-of-memory.
40170         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40171         out-of-memory.
40172         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40173         upon out-of-memory.
40174         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40175         upon out-of-memory.
40176         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40177         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40178         gl_anytree_list1.h before gl_anyavltree_list2.h.
40179         (gl_avltree_list_implementation): Update.
40180         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40181         gl_anytree_list1.h before gl_anyavltree_list2.h.
40182         (gl_rbtree_list_implementation): Update.
40183         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40184         Change return type to 'int'. Return -1 upon out-of-memory. Use
40185         __builtin_expect.
40186         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40187         (gl_avltreehash_list_implementation): Update.
40188         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40189         (gl_rbtreehash_list_implementation): Update.
40190         * modules/array-list (Depends-on): Remove xalloc.
40191         * modules/carray-list (Depends-on): Likewise.
40192         * modules/linked-list (Depends-on): Likewise.
40193         * modules/linkedhash-list (Depends-on): Likewise.
40194         * modules/avltree-list (Depends-on): Likewise.
40195         * modules/rbtree-list (Depends-on): Likewise.
40196         * modules/avltreehash-list (Depends-on): Likewise.
40197         * modules/rbtreehash-list (Depends-on): Likewise.
40198
40199         * modules/xsublist: New file.
40200         * lib/gl_xsublist.h: New file.
40201         * lib/gl_xsublist.c: New file.
40202         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40203         (gl_sublist_nx_create): New declaration.
40204         * lib/gl_sublist.c: Don't include xalloc.h.
40205         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40206         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40207         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40208         Change return type to 'int'. Return -1 upon out-of-memory.
40209         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40210         upon out-of-memory.
40211         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40212         NULL upon out-of-memory.
40213         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40214         upon out-of-memory.
40215         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40216         NULL upon out-of-memory.
40217         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40218         NULL upon out-of-memory.
40219         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40220         upon out-of-memory.
40221         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40222         (gl_sublist_list_implementation): Update.
40223         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40224         upon out-of-memory.
40225         * modules/sublist (Depends-on): Remove xalloc.
40226
40227         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40228         * tests/test-carray_list.c: Likewise.
40229         * tests/test-linked_list.c: Likewise.
40230         * tests/test-linkedhash_list.c: Likewise.
40231         * tests/test-avltree_list.c: Likewise.
40232         * tests/test-rbtree_list.c: Likewise.
40233         * tests/test-avltreehash_list.c: Likewise.
40234         * tests/test-rbtreehash_list.c: Likewise.
40235         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40236         * modules/carray-list-tests (Makefile.am): Likewise.
40237         * modules/linked-list-tests (Makefile.am): Likewise.
40238         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40239         * modules/avltree-list-tests (Makefile.am): Likewise.
40240         * modules/rbtree-list-tests (Makefile.am): Likewise.
40241         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40242         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40243
40244         * NEWS: Mention the changes.
40245
40246         * lib/clean-temp.c: Include gl_xlist.h.
40247         * modules/clean-temp (Depends-on): Add xlist.
40248
40249         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40250         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40251
40252         * tests/test-array_oset.c: Include gl_xlist.h.
40253         * modules/array-oset-tests (Depends-on): Add xlist.
40254
40255         Reported by José E. Marchesi <jemarch@gnu.org>.
40256
40257 2009-12-13  Bruno Haible  <bruno@clisp.org>
40258
40259         Move the malloc checking from module 'oset' to new module 'xoset'.
40260         * modules/xoset: New file.
40261         * lib/gl_xoset.h: New file.
40262         * lib/gl_xoset.c: New file.
40263         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40264         declarations.
40265         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40266         (struct gl_oset_implementation): Rename and change methods accordingly.
40267         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40268         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40269         'int'. Mark as __warn_unused_result__.
40270         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40271         gl_oset_create_empty.
40272         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40273         'int'.
40274         * lib/gl_array_oset.c: Don't include xalloc.h.
40275         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40276         malloc, not xmalloc.
40277         (grow): Change return type to 'int'. Don't call xalloc_die.
40278         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40279         to 'int'.
40280         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40281         'int'.
40282         (gl_array_oset_implementation): Update.
40283         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40284         gl_tree_create_empty.
40285         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40286         'int'.
40287         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40288         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40289         xmalloc.
40290         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40291         not xmalloc.
40292         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40293         xmalloc.
40294         (gl_avltree_oset_implementation): Update.
40295         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40296         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40297         xmalloc.
40298         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40299         not xmalloc.
40300         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40301         xmalloc.
40302         (gl_rbtree_oset_implementation): Update.
40303         * modules/array-oset (Depends-on): Remove xalloc.
40304         * modules/avltree-oset (Depends-on): Likewise.
40305         * modules/rbtree-oset (Depends-on): Likewise.
40306         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40307         * tests/test-avltree_oset.c: Likewise.
40308         * tests/test-rbtree_oset.c: Likewise.
40309         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40310         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40311         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40312         * NEWS: Mention the change.
40313
40314 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40315
40316         maint.mk: allow a project to override release-prep commands
40317         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40318         commands into a new rule.
40319         (release-prep): New rule.
40320         (release-prep-hook): New overridable variable.
40321
40322 2009-12-13  Bruno Haible  <bruno@clisp.org>
40323
40324         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40325
40326 2009-12-13  Jim Meyering  <meyering@redhat.com>
40327
40328         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40329         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40330
40331 2009-12-12  Bruno Haible  <bruno@clisp.org>
40332
40333         duplocale: Tweak.
40334         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40335
40336 2009-12-12  Karl Berry  <karl@gnu.org>
40337
40338         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40339
40340 2009-12-12  Bruno Haible  <bruno@clisp.org>
40341
40342         * m4/po.m4: Undo incorrect untabification.
40343
40344 2009-12-12  Bruno Haible  <bruno@clisp.org>
40345
40346         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40347         * modules/c-strtod (Depends-on): Add locale.
40348         * modules/c-strtold (Depends-on): Likewise.
40349
40350 2009-12-12  Bruno Haible  <bruno@clisp.org>
40351
40352         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40353
40354 2009-12-11  Eric Blake  <ebb9@byu.net>
40355
40356         setenv: relax requirement in light of POSIX ruling
40357         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40358         not NULL.
40359         * tests/test-setenv.c (main): Relax test.
40360         * tests/test-unsetenv.c (main): Likewise.
40361         * doc/posix-functions/setenv.texi (setenv): Document this.
40362         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40363
40364 2009-12-11  Bruno Haible  <bruno@clisp.org>
40365
40366         New module 'fd-safer-flag'.
40367         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40368         * lib/dup-safer.c (dup_safer_flag): Remove function.
40369         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40370         * lib/fd-safer.c (fd_safer_flag): Remove function.
40371         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40372         * modules/cloexec (configure.ac): Drop indicator macro.
40373         * modules/fd-safer-flag: New file.
40374         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40375         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40376         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40377
40378 2009-12-11  Bruno Haible  <bruno@clisp.org>
40379
40380         Tests for module 'nl_langinfo'.
40381         * modules/nl_langinfo-tests: New file.
40382         * tests/test-nl_langinfo.sh: New file.
40383         * tests/test-nl_langinfo.c: New file.
40384
40385         New module 'nl_langinfo'.
40386         * lib/nl_langinfo.c: New file.
40387         * m4/nl_langinfo.m4: New file.
40388         * modules/nl_langinfo: New file.
40389         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40390
40391 2009-12-11  Bruno Haible  <bruno@clisp.org>
40392
40393         Tests for module 'langinfo'.
40394         * modules/langinfo-tests: New file.
40395         * tests/test-langinfo.c: New file.
40396
40397         New module 'langinfo'.
40398         * lib/langinfo.in.h: New file.
40399         * m4/langinfo_h.m4: New file.
40400         * modules/langinfo: New file.
40401         * doc/posix-headers/langinfo.texi: Mention the new module.
40402
40403 2009-12-11  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/config.charset: Untabify.
40406
40407 2009-12-11  Bruno Haible  <bruno@clisp.org>
40408
40409         * modules/unistd-safer (configure.ac): Drop indicator macro.
40410
40411 2009-12-11  Bruno Haible  <bruno@clisp.org>
40412
40413         Move pipe2-safer code to its own file.
40414         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40415         * lib/pipe-safer.c (pipe2_safer): Remove function.
40416         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40417         (Makefile.am): Add it to lib_SOURCES.
40418
40419 2009-12-10  Bruno Haible  <bruno@clisp.org>
40420
40421         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40422
40423 2009-12-10  Bruno Haible  <bruno@clisp.org>
40424
40425         Declare which arguments expect non-NULL values, for GCC and clang.
40426         * build-aux/arg-nonnull.h: New file.
40427         * modules/arg-nonnull: New file.
40428         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40429         (inet_ntop, inet_pton): Use it.
40430         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40431         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40432         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40433         (open, openat): Use it.
40434         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40435         (fnmatch): Use it.
40436         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40437         (getopt, getopt_long, getopt_long_only): Use it.
40438         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40439         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40440         Use it.
40441         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40442         (iconv_open): Use it.
40443         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40444         (strtoimax, strtoumax): Use it.
40445         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40446         (duplocale): Use it.
40447         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40448         (frexp, frexpl): Use it.
40449         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40450         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40451         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40452         (tsearch, tfind, tdelete, twalk): Use it.
40453         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40454         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40455         sigpending): Use it.
40456         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40457         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40458         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40459         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40460         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40461         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40462         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40463         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40464         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40465         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40466         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40467         Use it.
40468         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40469         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40470         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40471         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40472         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40473         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40474         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40475         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40476         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40477         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40478         strtoull, unsetenv): Use it.
40479         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40480         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40481         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40482         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40483         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40484         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40485         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40486         (strcasecmp, strncasecmp): Use it.
40487         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40488         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40489         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40490         rpl_setsockopt): Use it.
40491         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40492         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40493         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40494         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40495         (gettimeofday): Use it.
40496         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40497         (times): Use it.
40498         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40499         (uname): Use it.
40500         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40501         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40502         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40503         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40504         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40505         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40506         unlinkat, write): Use it.
40507         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40508         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40509         * lib/argv-iter.h: Include arg-nonnull.h.
40510         (_ATTRIBUTE_NONNULL_): Remove macro.
40511         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40512         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40513         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40514         optimization.
40515         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40516         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40517         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40518         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40519         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40520         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40521         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40522         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40523         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40524         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40525         * modules/dirent (Depends-on): Add arg-nonnull.
40526         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40527         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40528         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40529         * modules/fnmatch (Depends-on): Add arg-nonnull.
40530         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40531         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40532         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40533         * modules/glob (Depends-on): Add arg-nonnull.
40534         (Makefile.am): Insert arg-nonnull.h into glob.h.
40535         * modules/iconv_open (Depends-on): Add arg-nonnull.
40536         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40537         * modules/inttypes (Depends-on): Add arg-nonnull.
40538         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40539         * modules/locale (Depends-on): Add arg-nonnull.
40540         (Makefile.am): Insert arg-nonnull.h into locale.h.
40541         * modules/math (Depends-on): Add arg-nonnull.
40542         (Makefile.am): Insert arg-nonnull.h into math.h.
40543         * modules/netdb (Depends-on): Add arg-nonnull.
40544         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40545         * modules/search (Depends-on): Add arg-nonnull.
40546         (Makefile.am): Insert arg-nonnull.h into search.h.
40547         * modules/signal (Depends-on): Add arg-nonnull.
40548         (Makefile.am): Insert arg-nonnull.h into signal.h.
40549         * modules/spawn (Depends-on): Add arg-nonnull.
40550         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40551         * modules/stdio (Depends-on): Add arg-nonnull.
40552         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40553         * modules/stdlib (Depends-on): Add arg-nonnull.
40554         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40555         * modules/string (Depends-on): Add arg-nonnull.
40556         (Makefile.am): Insert arg-nonnull.h into string.h.
40557         * modules/strings (Depends-on): Add arg-nonnull.
40558         (Makefile.am): Insert arg-nonnull.h into strings.h.
40559         * modules/sys_socket (Depends-on): Add arg-nonnull.
40560         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40561         * modules/sys_stat (Depends-on): Add arg-nonnull.
40562         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40563         * modules/sys_time (Depends-on): Add arg-nonnull.
40564         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40565         * modules/sys_times (Depends-on): Add arg-nonnull.
40566         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40567         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40568         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40569         * modules/time (Depends-on): Add arg-nonnull.
40570         (Makefile.am): Insert arg-nonnull.h into time.h.
40571         * modules/unistd (Depends-on): Add arg-nonnull.
40572         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40573         * modules/wchar (Depends-on): Add arg-nonnull.
40574         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40575         * modules/argv-iter (Depends-on): Add arg-nonnull.
40576         * tests/test-canonicalize.c (null_ptr): New function.
40577         (main): Use it.
40578         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40579         (main): Use it.
40580         * tests/test-memmem.c (null_ptr): New function.
40581         (main): Use it.
40582         Reported by Jim Meyering.
40583
40584 2009-12-10  Bruno Haible  <bruno@clisp.org>
40585
40586         Use spaces for indentation, not tabs.
40587         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40588         * m4/*.m4: Untabify.
40589         * build-aux/*.h: Untabify.
40590         * tests/**/*.[hc]: Untabify.
40591         * README: New section "Indent with spaces, not TABs", based on
40592         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40593         * NEWS: Mention the change.
40594
40595 2009-12-10  Bruno Haible  <bruno@clisp.org>
40596
40597         pty test: Fix link error.
40598         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40599         test_pty_LDADD.
40600
40601 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40602
40603         * modules/pty: New file.
40604         * modules/pty-tests: New file.
40605         * m4/pty.m4: New file.
40606         * tests/test-pty.c: New file.
40607         * doc/glibc-headers/pty.texi: Modified.
40608         * doc/glibc-functions/forkpty.texi: Modified.
40609         * doc/glibc-functions/openpty.texi: Modified.
40610
40611 2009-12-10  Bruno Haible  <bruno@clisp.org>
40612
40613         Avoid syntax error in C++ mode.
40614         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40615
40616 2009-12-10  Bruno Haible  <bruno@clisp.org>
40617
40618         Use sed with option -e.
40619         * gnulib-tool (func_version, func_emit_copyright_notice,
40620         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40621         option -e to sed.
40622         * modules/link-warning (Makefile.am): Likewise.
40623
40624 2009-12-10  Jim Meyering  <meyering@redhat.com>
40625
40626         mgetgroups: do not write bytes beyond end of malloc'd buffer
40627         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40628         username, we call getgroups with a one-element-shorter buffer,
40629         but still told it the length was original, max_n_groups.
40630
40631 2009-12-09  Eric Blake  <ebb9@byu.net>
40632
40633         cloexec: relax license
40634         * modules/cloexec (Maintainer): Add myself.
40635         (License): Use LGPL, not GPL.
40636
40637         link-warning: optimize generation
40638         * modules/link-warning (Makefile.am): Reduce process usage.
40639
40640 2009-12-09  Bruno Haible  <bruno@clisp.org>
40641
40642         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40643         workaround was added on 2009-11-17.
40644
40645 2009-12-09  Jim Meyering  <meyering@redhat.com>
40646             Bruno Haible  <bruno@clisp.org>
40647
40648         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40649         * modules/link-warning (Makefile.am): Make the comment-removing sed
40650         command more robust in the face of bootstrap-prepended comment lines.
40651
40652 2009-12-09  Bruno Haible  <bruno@clisp.org>
40653
40654         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40655         most one group.
40656
40657 2009-12-09  Simon Josefsson <simon@josefsson.org>
40658             Bruno Haible  <bruno@clisp.org>
40659
40660         * build-aux/link-warning.h: Add copyright notice.
40661         * modules/link-warning (Makefile.am): Generate link-warning.h from
40662         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40663         * NEWS: Mention change in link-warning module.
40664         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40665         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40666         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40667         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40668         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40669         * modules/math (Makefile.am): Add dependency to math.h.
40670         * modules/search (Makefile.am): Add dependency to search.h.
40671         * modules/signal (Makefile.am): Add dependency to signal.h.
40672         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40673         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40674         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40675         * modules/string (Makefile.am): Add dependency to string.h.
40676         * modules/strings (Makefile.am): Add dependency to strings.h.
40677         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40678         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40679         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40680         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40681         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40682         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40683         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40684         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40685         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40686
40687 2009-12-09  Bruno Haible  <bruno@clisp.org>
40688
40689         fchdir: Optimize away rpl_fstat when possible.
40690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40691         REPLACE_OPEN_DIRECTORY.
40692         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40693
40694 2009-12-09  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/fchdir.c: Update comment.
40697
40698 2009-12-09  Bruno Haible  <bruno@clisp.org>
40699
40700         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40701
40702 2009-12-08  Eric Blake  <ebb9@byu.net>
40703
40704         fchdir: avoid memory leak on re-registration.
40705         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40706
40707 2009-12-08  Jim Meyering  <meyering@redhat.com>
40708
40709         init.sh: avoid Solaris 10 /bin/sh portability problem
40710         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40711         sourced script:
40712           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40713           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40714           bar
40715         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40716         and two tests used that idiom.
40717         * tests/init.sh: Update suggested usage comments.
40718         (path_prepend_): New function, to be used in place
40719         of the --src-path=DIR option.
40720         (setup_): Move PATH-prepending code into path_prepend_.
40721         * tests/test-pread.sh: Adapt to new usage.
40722         * tests/test-xalloc-die.sh: Likewise.
40723
40724 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40725
40726         * doc/gnulib.texi (Glibc pty.h): Add.
40727         * doc/glibc-functions/forkpty.texi: Add.
40728         * doc/glibc-functions/openpty.texi: Add.
40729         Suggested by Bruno Haible.
40730
40731 2009-12-08  Eric Blake  <ebb9@byu.net>
40732
40733         fchdir: fix logic bugs
40734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40735         * tests/test-fchdir.c (main): Enhance test.
40736         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40737         is in use.
40738
40739         dup2: fix logic bugs
40740         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40741         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40742         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40743         exists.
40744         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40745
40746 2009-12-07  Eric Blake  <ebb9@byu.net>
40747
40748         unlink: fix m4 detection
40749         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40750
40751         unistd-safer: add unit test
40752         * modules/unistd-safer-tests: New file.
40753         * tests/test-dup-safer.c: Likewise.
40754         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40755         * tests/test-dup2.c (setmode): Likewise.
40756         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40757
40758         cloexec: preserve text vs. binary across dup_cloexec
40759         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40760         mode.
40761         * modules/dup2-tests (Depends-on): Add binary-io.
40762         * modules/cloexec-tests (Depends-on): Likewise.
40763         * tests/test-dup2.c (setmode, is_mode): New helpers.
40764         (main): Add tests that translation mode is preserved.
40765         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40766         Reported by Bruno Haible.
40767
40768         mgetgroups: reduce duplicate listings
40769         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40770         resulting array.
40771         * tests/test-chown.h (test_chown): Simplify client.
40772         * tests/test-lchown.h (test_lchown): Likewise.
40773
40774 2009-12-06  Bruno Haible  <bruno@clisp.org>
40775
40776         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40777         value.
40778
40779 2009-12-06  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/progname.c: Include stdio.h, stdlib.h.
40782         (set_program_name): Reject a NULL argument.
40783
40784 2009-12-05  Eric Blake  <ebb9@byu.net>
40785
40786         pipe2-safer: new module
40787         * modules/pipe2-safer: New file.
40788         * lib/unistd-safer.h (pipe2_safer): New prototype.
40789         * lib/unistd--.h (pipe2): New wrapper.
40790         * lib/pipe-safer.c (pipe2_safer): New function.
40791         * modules/pipe (Depends-on): Add pipe2-safer.
40792         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40793
40794         stdlib-safer: preserve cloexec flag for mkostemp[s]
40795         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40796         fd_safer_flag.
40797
40798         unistd-safer: allow preservation of cloexec status via flag
40799         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40800         prototypes.
40801         * lib/dup-safer.c (dup_safer_flag): New function.
40802         * lib/fd-safer.c (fd_safer_flag): Likewise.
40803         * modules/cloexec (configure.ac): Set witness.
40804
40805         test-dup2: enhance test
40806         * modules/dup2-tests (Depends-on): Add cloexec.
40807         * tests/test-dup2.c (main): Enhance test.
40808
40809         cloexec: add dup_cloexec
40810         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40811         header and comments.
40812         * lib/cloexec.c (set_cloexec_flag): Add comments.
40813         (dup_cloexec): New function, with mingw implementation borrowed
40814         from...
40815         * lib/w32spawn.h (dup_noinherit): ...here.
40816         * modules/execute (Depends-on): Add cloexec.
40817         * modules/pipe (Depends-on): Likewise.
40818         * modules/cloexec (Depends-on): Add dup2.
40819         * modules/cloexec-tests (Files): New file.
40820         * tests/test-cloexec.c: Likewise.
40821
40822         test-xalloc-die: fix test for mingw
40823         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40824         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40825         directory and .exe suffix off argv[0] output.
40826
40827         test-fseeko: fix test for mingw
40828         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40829         than undefining fseek, so test will pass on mingw.
40830
40831 2009-12-05  Bruno Haible  <bruno@clisp.org>
40832
40833         * lib/progname.h (set_program_name): Clarify specification.
40834         * lib/progname.c (set_program_name): Likewise.
40835         Reported by Jim Meyering.
40836
40837 2009-12-05  Jim Meyering  <meyering@redhat.com>
40838
40839         maint.mk: backslash-escape parens in default regexp
40840         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40841         backslash-escape the literal parentheses.
40842
40843         maint.mk: news-date-check: use grep -E
40844         * top/maint.mk (today): Define a Make variable, not a...
40845         (news-date-check): ...shell variable.
40846         (news-date-regexp): Use the Make variable.
40847         Use grep's -E option.  Change the failing diagnostic to mention
40848         the variable, $(news-date-regexp).
40849
40850 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40851
40852         maintainer-makefile: allow customization of NEWS entry format
40853         * top/maint.mk (news-date-regexp): New overridable variable.
40854         (news-date-check): Use it.
40855
40856 2009-12-04  Eric Blake  <ebb9@byu.net>
40857
40858         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40859         * lib/mgetgroups.h (xgetgroups): New prototype.
40860         * lib/mgetgroups.c (xgetgroups): New wrapper.
40861         (mgetgroups): Handle ENOSYS.
40862         * modules/mgetgroups (Depends-on): Add realloc.
40863         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40864
40865         mgetgroups: avoid argument promotion issues with -1
40866         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40867         for invalid gid_t.
40868         * tests/test-chown.h (getegid, test_chown): Likewise.
40869         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40870
40871 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40872
40873         exclude: Fix header file problems.
40874         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40875
40876 2009-12-01  Jim Meyering  <meyering@redhat.com>
40877
40878         fts: fts_open: do not let an empty string cause immediate failure
40879         This is required in support of GNU rm, for which the command
40880         "rm A '' B" must process and remove both A and B, in spite of
40881         the empty string argument.
40882         * lib/fts.c (fts_open): Do not let the presence of an empty string
40883         cause fts_open to fail immediately.  Most fts-using tools must be
40884         able to process all arguments, in order, and can be expected to
40885         diagnose such arguments themselves.
40886
40887 2009-11-30  Eric Blake  <ebb9@byu.net>
40888
40889         utimens: fix compilation error
40890         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40891         Declare variable at right scope.
40892
40893 2009-11-29  Jim Meyering  <meyering@redhat.com>
40894
40895         bootstrap: handle perl-5.11's changed --version output
40896         * build-aux/bootstrap (get_version): Handle perl separately,
40897         since perl-5.11's --version output is different.
40898
40899 2009-11-28  Jim Meyering  <meyering@redhat.com>
40900
40901         userspec: depend on the inttostr module, too
40902         * modules/userspec (Depends-on): Add inttostr.
40903
40904         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40905         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40906         number of MAXUID when it evaluates to (uid_t) -1.
40907         Likewise for group ID.  Reported by Matt McCutchen in
40908         <http://savannah.gnu.org/bugs/?28113>
40909
40910         userspec: reformat to use spaces, not TABs
40911         * lib/userspec.c: Expand TABs to spaces.
40912         Add Emacs' "indent-tabs-mode: nil" hint.
40913
40914 2009-11-27  Eric Blake  <ebb9@byu.net>
40915
40916         getopt-gnu: flush out another BSD bug
40917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40918         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40919         flush out BSD bug.
40920         * tests/test-getopt.h (test_getopt): End lists with NULL.
40921         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40922         (test_getopt_long_posix): Enhance test.
40923         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40924         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40925         getopt-gnu.
40926         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40927         Likewise.
40928
40929 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40930
40931         * modules/idpriv-droptemp-tests (Notice): Fix text.
40932
40933 2009-11-27  Jim Meyering  <meyering@redhat.com>
40934
40935         test-xalloc-die: avoid spurious failure due to libtool argv difference
40936         In a libtool-enabled project, this test would fail due to a difference
40937         in the emitted program name, e.g.,
40938         -test-xalloc-die: memory exhausted
40939         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40940         Use program to avoid that.
40941         * modules/xalloc-die-tests (Depends-on): Add progname.
40942         * tests/test-xalloc-die.c: Include progname.h".
40943         (program_name): Remove decl.
40944         (main): Call set_program_name.
40945         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40946
40947 2009-11-26  Richard Jones  <rjones@redhat.com>
40948
40949         w32sock: leave win32 error in place.
40950         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40951
40952 2009-11-26  Eric Blake  <ebb9@byu.net>
40953
40954         init.sh: suggest to use skip_ and fail_ functions in comments
40955         * tests/init.sh: Add a sentence.
40956
40957 2009-11-25  Bruno Haible  <bruno@clisp.org>
40958
40959         init.sh: add documentation in comments
40960         * tests/init.sh: Add some developer and user documentation.
40961
40962 2009-11-26  Jim Meyering  <meyering@redhat.com>
40963
40964         init.sh: accommodate even those who specify bogus srcdir manually
40965         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40966         configure-time tests to be sanitized, so that there is no need to
40967         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40968         (with no double quotes) suffices.  However, since tests may be
40969         invoked manually, and since you may explicitly set srcdir to the
40970         name of a directory containing spaces, do quote its uses here.
40971         * tests/test-pread.sh: Likewise.
40972         Suggested by Bruno Haible.
40973
40974         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40975         * tests/test-pread.sh: Write no data into the pipe, because
40976         test-pread actually reads none.  This avoids a diagnostic,
40977         "bash: echo: write error: Broken pipe", that arises in the unusual
40978         event something is ignoring SIGPIPE, and might be interpreted
40979         as some sort of failure.  Reported by Bruno Haible.
40980
40981 2009-11-25  Jim Meyering  <meyering@redhat.com>
40982
40983         test-pread: cover failure with ESPIPE and EINVAL
40984         * tests/test-pread.c (main): Test for failure, too.
40985         * tests/test-pread.sh: Invoke with stdin on a pipe.
40986         Suggested by Eric Blake.
40987
40988         pread: improvement and fix
40989         * modules/pread (Depends-on): Depend on lseek, for portability to
40990         e.g., mingw.  Suggested by Eric Blake.
40991         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40992
40993         unistd.in.h: correct declaration of pread
40994         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40995         Reported by Richard W.M. Jones.
40996
40997         test-pread.sh: distribute the test script
40998         * modules/pread-tests (Files): Include test-pread.sh.
40999
41000         test-pread.sh: clean up
41001         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41002         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41003         That is unnecessary, since it's always ".".
41004         Suggestion from Eric Blake.
41005
41006         test-pread.sh: make executable
41007         * tests/test-pread.sh: Set executable bit.
41008         Reported by Eric Blake.
41009
41010         correct typo in test-pread.sh
41011         * tests/test-pread.sh: Add #! line.
41012
41013         test pread
41014         * tests/test-pread.c: New file.
41015         * tests/test-pread.sh: Likewise.
41016         * modules/pread-tests: Likewise.
41017
41018         pread: new module
41019         * modules/pread: New file.
41020         * lib/unistd.in.h (pread): Define/declare.
41021         * lib/pread.c (pread): New file.
41022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41023         * modules/unistd (Makefile.am): Substitute witnesses.
41024         * doc/posix-functions/pread.texi (pread): Update.
41025         * MODULES.html.sh: Add pread.
41026
41027 2009-11-25  Jim Meyering  <meyering@redhat.com>
41028
41029         tests/init.sh: new file to be used via most *.sh tests
41030         * tests/init.sh: New file.
41031
41032 2009-11-25  Eric Blake  <ebb9@byu.net>
41033
41034         utimens: work around older Linux failure with symlinks
41035         * lib/utimens.c (lutimensat_works_really): New variable.
41036         (fdutimens, lutimens): Use it to manage kernels that support
41037         nanosecond times on files, but not on symlinks.
41038         Reported by OndÅ™ej Vašík.
41039
41040         utimes: fix configure grammar
41041         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41042
41043 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41044
41045         regex: Fix fastmap for multibyte character ranges.
41046         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41047         characters when a multibyte character range is included.
41048
41049 2009-11-22  Andy Wingo  <wingo@pobox.com>
41050
41051         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41052         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41053
41054 2009-11-24  Bruno Haible  <bruno@clisp.org>
41055
41056         doc: Most *_l functions exist in MacOS X 10.5.
41057         * doc/posix-functions/duplocale.texi: Update platforms list.
41058         * doc/posix-functions/freelocale.texi: Likewise.
41059         * doc/posix-functions/newlocale.texi: Likewise.
41060         * doc/posix-functions/uselocale.texi: Likewise.
41061         * doc/posix-functions/isalnum_l.texi: Likewise.
41062         * doc/posix-functions/isalpha_l.texi: Likewise.
41063         * doc/posix-functions/isblank_l.texi: Likewise.
41064         * doc/posix-functions/iscntrl_l.texi: Likewise.
41065         * doc/posix-functions/isdigit_l.texi: Likewise.
41066         * doc/posix-functions/isgraph_l.texi: Likewise.
41067         * doc/posix-functions/islower_l.texi: Likewise.
41068         * doc/posix-functions/isprint_l.texi: Likewise.
41069         * doc/posix-functions/ispunct_l.texi: Likewise.
41070         * doc/posix-functions/isspace_l.texi: Likewise.
41071         * doc/posix-functions/isupper_l.texi: Likewise.
41072         * doc/posix-functions/iswalnum_l.texi: Likewise.
41073         * doc/posix-functions/iswalpha_l.texi: Likewise.
41074         * doc/posix-functions/iswblank_l.texi: Likewise.
41075         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41076         * doc/posix-functions/iswctype_l.texi: Likewise.
41077         * doc/posix-functions/iswdigit_l.texi: Likewise.
41078         * doc/posix-functions/iswgraph_l.texi: Likewise.
41079         * doc/posix-functions/iswlower_l.texi: Likewise.
41080         * doc/posix-functions/iswprint_l.texi: Likewise.
41081         * doc/posix-functions/iswpunct_l.texi: Likewise.
41082         * doc/posix-functions/iswspace_l.texi: Likewise.
41083         * doc/posix-functions/iswupper_l.texi: Likewise.
41084         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41085         * doc/posix-functions/isxdigit_l.texi: Likewise.
41086         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41087         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41088         * doc/posix-functions/strcoll_l.texi: Likewise.
41089         * doc/posix-functions/strfmon_l.texi: Likewise.
41090         * doc/posix-functions/strftime_l.texi: Likewise.
41091         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41092         * doc/posix-functions/strxfrm_l.texi: Likewise.
41093         * doc/posix-functions/tolower_l.texi: Likewise.
41094         * doc/posix-functions/toupper_l.texi: Likewise.
41095         * doc/posix-functions/towctrans_l.texi: Likewise.
41096         * doc/posix-functions/towlower_l.texi: Likewise.
41097         * doc/posix-functions/towupper_l.texi: Likewise.
41098         * doc/posix-functions/wcscoll_l.texi: Likewise.
41099         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41100         * doc/posix-functions/wctrans_l.texi: Likewise.
41101         * doc/posix-functions/wctype_l.texi: Likewise.
41102         * doc/glibc-functions/strptime_l.texi: Likewise.
41103         * doc/glibc-functions/strtod_l.texi: Likewise.
41104         * doc/glibc-functions/strtof_l.texi: Likewise.
41105         * doc/glibc-functions/strtol_l.texi: Likewise.
41106         * doc/glibc-functions/strtold_l.texi: Likewise.
41107         * doc/glibc-functions/strtoll_l.texi: Likewise.
41108         * doc/glibc-functions/strtoul_l.texi: Likewise.
41109         * doc/glibc-functions/strtoull_l.texi: Likewise.
41110         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41111         * doc/glibc-functions/wcstod_l.texi: Likewise.
41112         * doc/glibc-functions/wcstof_l.texi: Likewise.
41113         * doc/glibc-functions/wcstol_l.texi: Likewise.
41114         * doc/glibc-functions/wcstold_l.texi: Likewise.
41115         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41116         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41117         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41118
41119 2009-11-24  Bruno Haible  <bruno@clisp.org>
41120
41121         duplocale: Fix logic bug.
41122         * lib/duplocale.c: Don't include <langinfo.h>.
41123         (_NL_LOCALE_NAME): Remove macro.
41124         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41125         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41126
41127 2009-11-23  Jim Meyering  <meyering@redhat.com>
41128
41129         test-update-copyright: don't hard-code /usr/bin/perl
41130         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41131         perl to print the current year.  Gilles Espinasse reported that
41132         the replaced use of perl was hard-coded as /usr/bin/perl.
41133
41134 2009-11-23  Bruno Haible  <bruno@clisp.org>
41135
41136         duplocale: Add support for glibc 2.3.x.
41137         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41138
41139 2009-11-22  Bruno Haible  <bruno@clisp.org>
41140
41141         vasnprintf: Tiny optimization.
41142         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41143         MacOS X.
41144
41145 2009-11-22  Bruno Haible  <bruno@clisp.org>
41146
41147         Tests for module 'duplocale'.
41148         * modules/duplocale-tests: New file.
41149         * tests/test-duplocale.c: New file.
41150
41151         New module 'duplocale'.
41152         * m4/duplocale.m4: New file.
41153         * lib/locale.in.h (duplocale): New declaration.
41154         * lib/duplocale.c: New file.
41155         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41156         gl_LOCALE_H_DEFAULTS): New macros.
41157         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41158         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41159         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41160         REPLACE_DUPLOCALE.
41161         * modules/duplocale: New file.
41162         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41163
41164 2009-11-22  Bruno Haible  <bruno@clisp.org>
41165
41166         * modules/locale-tests (configure.ac): Test for newlocale function.
41167         * tests/test-locale.c: When the system has extended locale functions,
41168         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41169
41170         locale: Make locale_t available when possible.
41171         * lib/locale.in.h: Include <xlocale.h> when it exists.
41172         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41173         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41174         * modules/locale (Depends-on): Add extensions.
41175         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41176         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41177
41178 2009-11-22  Bruno Haible  <bruno@clisp.org>
41179
41180         Add comments.
41181         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41182         invocation.
41183         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41185         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41186
41187 2009-11-22  Bruno Haible  <bruno@clisp.org>
41188
41189         error: account for the possibility of freopen (stdout).
41190         * lib/error.c: Include <unistd.h>.
41191         (flush_stdout): New function, extracted from error and error_at_line.
41192         Determine stdout's fd dynamically.
41193         (error, error_at_line): Invoke flush_stdout.
41194         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41195         * modules/error (Depends-on): Add unistd.
41196
41197 2009-11-22  Bruno Haible  <bruno@clisp.org>
41198
41199         diffseq: Add comment.
41200         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41201
41202 2009-11-22  Jim Meyering  <meyering@redhat.com>
41203
41204         c-stack: avoid defining an unused static function
41205         * lib/c-stack.c (find_stack_direction): Do not define this function
41206         when it will not be used.
41207
41208         diffseq: avoid spurious gcc warnings
41209         * lib/diffseq.h (IF_LINT2): Define.
41210         (compareseq): Use it to initialize two members of "part".
41211         This avoids two used-uninitialized warnings.
41212
41213 2009-11-21  Jim Meyering  <meyering@redhat.com>
41214
41215         c-stack: avoid "ignoring return value of `write'" warning
41216         * lib/c-stack.c: Include "ignore-value.h".
41217         (die): Explicitly ignore each write return value.
41218         * modules/c-stack (Depends-on): Add ignore-value.
41219
41220 2009-11-21  Bruno Haible  <bruno@clisp.org>
41221
41222         diffseq: reduce scope of variable 'best'.
41223         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41224         variable, earlier used for two different purposes.
41225
41226 2009-11-21  Jim Meyering  <meyering@redhat.com>
41227
41228         diffseq: remove useless assignment to "best"
41229         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41230         assignment.  At that point "best" is already guaranteed to be zero.
41231
41232 2009-11-20  Eric Blake  <ebb9@byu.net>
41233
41234         build: mention ftp redirector in release announcements
41235         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41236         values that used to come from cfg.mk; mention FTP redirect URL.
41237         * build-aux/announce-gen: Mention the mirror list.
41238         Suggested by Karl Berry.
41239
41240         nanosleep: improve port to mingw
41241         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41243         LIB_NANOSLEEP, but only when needed.
41244         * modules/select (Link): Document LIBSOCKET.
41245         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41246         enough.
41247
41248         nanosleep: work around cygwin bug
41249         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41250         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41251         bug.
41252         (getnow): Delete, not needed.
41253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41254         LIB_CLOCK_GETTIME.
41255         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41256         clock-time, gettime.
41257         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41258         bug.
41259         * modules/nanosleep-tests: New test.
41260         * tests/test-nanosleep.c: New file.
41261
41262         sleep: work around cygwin bug
41263         * lib/sleep.c (rpl_sleep): Work around the bug.
41264         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41265         (gl_PREREQ_SLEEP): Delete unused macro.
41266         * modules/sleep (Depends-on): Add verify.
41267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41268         * modules/unistd (Makefile.am): Substitute witness.
41269         * lib/unistd.in.h (sleep): Update prototype.
41270         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41271         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41272         * modules/sleep-tests (Depends-on): Check for alarm.
41273
41274 2009-11-20  Jim Meyering  <meyering@redhat.com>
41275
41276         maint.mk: improve sc_prohibit_magic_number_exit
41277         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41278         so it does not match uses like System.exit(1).
41279         Add comments showing how to correct all offenders.
41280
41281 2009-11-19  Eric Blake  <ebb9@byu.net>
41282
41283         xalloc-die-tests: add missing library
41284         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41285
41286         test-xvasprintf: silence compiler warnings
41287         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41288         empty string from gcc.
41289
41290 2009-11-19  Jim Meyering  <meyering@redhat.com>
41291
41292         xfreopen: new module, from coreutils
41293         * modules/xfreopen: New module.
41294         * lib/xfreopen.c: New file.
41295         * lib/xfreopen.h: New file.
41296         * MODULES.html.sh (File stream based Input/Output"): Add it.
41297
41298 2009-11-19  Eric Blake  <ebb9@byu.net>
41299
41300         manywarnings: depend on warnings
41301         * modules/manywarnings (Depends-on): Add warnings.
41302
41303         build: avoid compiler warnings
41304         * lib/select.c (rpl_select): Delete unused variable.
41305         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41306
41307 2009-11-18  Eric Blake  <ebb9@byu.net>
41308
41309         tests: avoid false negative with --with-packager
41310         * tests/test-version-etc.sh: Discard packager information.
41311         * tests/test-argp-version-etc-1.sh: Likewise.
41312         Reported by Mike Frysinger.
41313
41314         utimens: fix regression on Solaris
41315         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41316         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41317         can only change fd timestamps via futimesat.  Instead, use an
41318         additional witness macro to avoid BSD bug.
41319         Reported by Jim Meyering.
41320
41321 2009-11-17  Eric Blake  <ebb9@byu.net>
41322
41323         usleep: use it to simplify tests
41324         * modules/stat-time-tests (Depends-on): Add usleep.
41325         (configure.ac): Drop usleep check.
41326         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41327         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41328         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41329         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41330         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41331         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41332         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41333         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41334         Likewise.
41335         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41336         * tests/test-lchown.h (nap): Likewise.
41337         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41338         * tests/test-stat-time.c (nap): Likewise.
41339         * tests/test-utimens-common.h (nap): Update comments.
41340
41341         usleep: new module
41342         * modules/usleep: New file.
41343         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41344         * lib/usleep.c (usleep): Likewise.
41345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41346         * modules/unistd (Makefile.am): Substitute witnesses.
41347         * lib/unistd.in.h (usleep): Add declaration.
41348         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41349         * MODULES.html.sh (Date and time): Likewise.
41350         * modules/usleep-tests (Depends-on): New test.
41351         * tests/test-usleep.c: New file.
41352
41353         chown: work around OpenBSD bug
41354         * lib/chown.c (rpl_chown): Work around the bug.
41355         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41356         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41357         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41358         * modules/chown (Depends-on): Add stdbool.
41359         * modules/lchown (Depends-on): Likewise.
41360         * doc/posix-functions/chown.texi (chown): Document the bug.
41361         * doc/posix-functions/lchown.texi (lchown): Likewise.
41362         * tests/test-lchown.h (test_chown): Relax test.
41363
41364         mkstemp: avoid conflict with C++ keyword template
41365         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41366         * lib/mkostemp.c (mkostemp): Likewise.
41367         * lib/mkostemps.c (mkostemps): Likewise.
41368         * lib/mkstemp.c (mkstemp): Likewise.
41369         * lib/mkstemps.c (mkstemps): Likewise.
41370
41371         xalloc-die-tests: optimize
41372         * tests/test-xalloc-die.sh: Reduce number of processes.
41373
41374 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41375
41376         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41377         patch from ludo@gnu.org (Ludovic Courtès).
41378
41379 2009-11-17  Jim Meyering  <meyering@redhat.com>
41380
41381         version-etc: use proper license string
41382         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41383         * modules/version-etc-fsf: Likewise.
41384
41385 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41386
41387         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41388         printed to stdout.  Deal with EOL differences.
41389
41390 2009-11-17  Eric Blake  <ebb9@byu.net>
41391
41392         unsetenv: work around Solaris bug
41393         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41394         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41395         Reported by Jim Meyering.
41396
41397         vasnprintf: avoid compiler warnings
41398         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41399         variables.
41400         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41401
41402 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41403
41404         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41405         settings since xalloc-die is no longer the self test,
41406         xalloc-die.sh is.
41407
41408 2009-11-17  Jim Meyering  <meyering@redhat.com>
41409
41410         test-xalloc-die.sh: make the code agree with the commit log
41411         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41412         at the end, just in case you happen to have a test-xalloc-die
41413         program in some other PATH directory.
41414
41415         test-xalloc-die.sh: fix a portability bug
41416         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41417         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41418         Otherwise, argv[0] (as often seen in diagnostics) would be too
41419         system-dependent, sometimes with, and sometimes without the leading "./".
41420
41421         version-etc-fsf: relax license to LGPLv3+
41422         * modules/version-etc-fsf (License): Relax license.
41423
41424 2009-11-16  Eric Blake  <ebb9@byu.net>
41425
41426         xalloc-die-tests: avoid printing null pointer
41427         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41428         shell script.
41429         * tests/test-xalloc-die.c (program_name): Declare.
41430         * tests/test-xalloc-die.sh (tmpfiles): New file.
41431
41432         setenv, unsetenv: work around various bugs
41433         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41434         (setenv) [HAVE_SETENV]: Work around bugs.
41435         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41436         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41437         for bugs.
41438         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41439         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41441         * modules/stdlib (Makefile.am): Update substitutions.
41442         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41443         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41444         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41445         * modules/setenv-tests: New test.
41446         * modules/unsetenv-tests: Likewise.
41447         * tests/test-setenv.c: New file.
41448         * tests/test-unsetenv.c: Likewise.
41449
41450 2009-11-16  Jim Meyering  <meyering@redhat.com>
41451
41452         version-etc: relax license to LGPLv3+
41453         * modules/version-etc (License): Relax license.
41454
41455         better AC_REQUIRE expanded-before-required-warning avoidance
41456         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41457         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41458         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41459         which is no longer needed.
41460
41461 2009-11-16  Eric Blake  <ebb9@byu.net>
41462
41463         test-freading: clean up temporary file
41464         * tests/test-freading.c (main): Remove file on success, and use
41465         ASSERT more liberally.
41466         Reported by Jim Meyering.
41467
41468 2009-11-16  Jim Meyering  <meyering@redhat.com>
41469
41470         avoid new AC_REQUIRE expanded-before-required warnings
41471         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41472         merely using it.
41473         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41474         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41475
41476 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41477
41478         * tests/test-xalloc-die.c: New file.
41479         * modules/xalloc-die-tests: New file.
41480         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41481         XFAIL_TESTS so it can be appended by modules.
41482
41483 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41484
41485         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41486         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41487
41488 2009-11-14  Eric Blake  <ebb9@byu.net>
41489
41490         fnmatch: avoid compiler warning
41491         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41492         to silence compiler warning about mismatch signedness in ?:.
41493         Reported by Robert Millan.
41494
41495         intprops: add double-inclusion guard
41496         * lib/intprops.h: Allow idempotent includes.
41497         Suggested by Bruce Korb.
41498
41499         openat: detect Solaris fchownat bug
41500         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41501         penalizing glibc chownat when only lchownat is broken.
41502         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41503         trailing slash bugs.
41504         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41505         * modules/openat-tests (Files): Include more files.
41506         (Depends-on): Add mgetgroups, sleep, stat-time.
41507         (configure.ac): Add additional checks.
41508         (Makefile.am): Build new test.
41509         * tests/test-fchownat.c: New file.
41510
41511         lchown: detect Solaris and FreeBSD bug
41512         * lib/lchown.c (rpl_lchown): Work around bug.
41513         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41515         * modules/unistd (Makefile.am): Populate it.
41516         * lib/unistd.in.h (lchown): Update declaration.
41517         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41518         * modules/lchown-tests: New file.
41519         * tests/test-lchown.h (test_lchown): Likewise.
41520         * tests/test-lchown.c (main): Likewise.
41521
41522         chown: detect Solaris and FreeBSD bug
41523         * lib/chown.c (rpl_chown): Work around bug.
41524         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41525         (gl_PREREQ_CHOWN): Delete.
41526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41527         * modules/unistd (Makefile.am): Populate it.
41528         * lib/unistd.in.h (chown): Update declaration.
41529         * lib/lchown.c (chown): Update client.
41530         * modules/lchown (Depends-on): Add lstat.
41531         * doc/posix-functions/chown.texi (chown): Document the bug.
41532         * doc/posix-functions/getgroups.texi (getgroups): Document
41533         getgroups pitfall.
41534         * modules/chown-tests: New file.
41535         * tests/test-chown.h (test_chown): Likewise.
41536         * tests/test-chown.c (main): Likewise.
41537
41538 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41539
41540         gnulib-tool: correctly detect absence of m4 directories
41541         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41542
41543 2009-11-14  Jim Meyering  <meyering@redhat.com>
41544
41545         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41546         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41547
41548 2009-11-14  John W. Eaton  <jwe@gnu.org>
41549
41550         strftime.h: wrap function declaration in extern "C" block
41551         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41552
41553 2009-11-13  Eric Blake  <ebb9@byu.net>
41554
41555         getgroups: avoid compiler warning
41556         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41557
41558         getgroups: work around FreeBSD bug
41559         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41560         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41561         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41562         * tests/test-getgroups.c (main): Fix buffer overrun.
41563
41564         getgroups: avoid compilation failure
41565         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41566         * modules/getgroups (Depends-on): Add stdint.
41567
41568 2009-11-13  Jim Meyering  <meyering@redhat.com>
41569
41570         test-getgroups: avoid compilation failure
41571         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41572
41573 2009-11-13  Eric Blake  <ebb9@byu.net>
41574
41575         mgetgroups: new module, taken from coreutils
41576         * modules/mgetgroups: New file.
41577         * lib/mgetgroups.h: Likewise.
41578         * lib/mgetgroups.c (mgetgroups): Likewise.
41579         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41580         * MODULES.html.sh (Users and groups): Mention it.
41581
41582         getgroups: don't expose GETGROUPS_T to user
41583         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41584         an element at a time if GETGROUPS_T is wrong size.
41585         * lib/getugroups.h (getugroups): Change signature.
41586         * lib/unistd.in.h (getgroups): Likewise.
41587         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41588         signature needs fixing.
41589         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41590         AC_TYPE_GETGROUPS.
41591         * modules/group-member (Depends-on): Add getgroups.
41592         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41593         (group_member): Rely on getgroups replacement.
41594         * lib/getugroups.c (getugroups): Use gid_t.
41595         * tests/test-getgroups.c (main): Likewise.
41596         * NEWS: Mention the signature change.
41597         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41598         problem with signature.
41599         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41600         GETGROUPS_T is still useful for setgroups.
41601
41602         getgroups, getugroups: provide stubs for mingw
41603         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41604         * lib/getugroups.c (getugroups): Likewise.
41605         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41606         function.  Modernize replacement scheme.
41607         (gl_PREREQ_GETGROUPS): Delete.
41608         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41609         * modules/getgroups (configure.ac): Declare witness.
41610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41611         * modules/unistd (Depends-on): Substitute witness.
41612         * lib/unistd.in.h (getgroups): Declare replacement.
41613
41614         getgroups: avoid calling exit
41615         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41616         drop xalloc.
41617         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41618         dependencies.
41619         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41620         exiting, in the rare case of malloc failure.
41621
41622         getgroups: fix logic error
41623         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41624         has more than 20 groups.
41625         * modules/getgroups-tests: New test.
41626         * tests/test-getgroups.c: New file.
41627
41628 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41629
41630         * tests/test-base64.c: Improve.
41631
41632 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41633
41634         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41635         Blake <ebb9@byu.net>.
41636
41637 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41638
41639         * tests/test-xvasprintf.c: Add %s%s related checks.
41640
41641 2009-11-12  Eric Blake  <ebb9@byu.net>
41642
41643         version-etc: match standards.texi style
41644         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41645         and use <> only for URLs.
41646
41647 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41648
41649         fts: do not fail on a submount during traversal
41650         * lib/fts.c (fts_build): Read the stat info again after opening
41651         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41652         Original report at http://bugzilla.redhat.com/501848.
41653
41654 2009-11-12  Jim Meyering  <meyering@redhat.com>
41655
41656         bootstrap: sync from coreutils
41657         * build-aux/bootstrap (bootstrap_epilogue): New function.
41658         Use git_modules_config in one more place.  This make bootstrap's
41659         --gnulib-srcdir option more useful for testing.
41660
41661         bootstrap: generalize autoheader check
41662         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41663         AC_CONFIG_HEADERS.
41664
41665 2009-11-11  Eric Blake  <ebb9@byu.net>
41666
41667         mkfifoat: use new modules for Solaris and BSD bugs
41668         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41669         * lib/mkfifoat.c (mknodat): Split...
41670         * lib/mknodat.c (mknodat): ...into new file.
41671         * modules/mkfifoat (Files): Ship new file.
41672         (Depends-on): Add mkfifo, mknod.
41673         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41674         (Depends-on): Add symlink.
41675         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41676         redundant with test_mkfifo.h.
41677         (do_mkfifoat, do_mknodat): New helpers.
41678
41679         mknod: new module
41680         * modules/mknod: New file.
41681         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41682         * lib/mknod.c (mknod): Likewise.
41683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41684         defaults.
41685         * modules/sys_stat (Makefile.am): Substitute them.
41686         * lib/sys_stat.in.h (mknod): Declare replacement.
41687         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41688         Document it.
41689         * doc/posix-functions/mknod.texi (mknod): Likewise.
41690         * modules/mknod-tests: New test.
41691         * tests/test-mknod.c: Likewise.
41692
41693         mkfifo: new module
41694         * modules/mkfifo: New file.
41695         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41696         * lib/mkfifo.c (mkfifo): Likewise.
41697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41698         defaults.
41699         * modules/sys_stat (Makefile.am): Substitute them.
41700         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41701         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41702         Document it.
41703         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41704         * modules/mkfifo-tests: New test.
41705         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41706         from test-mkfifoat.c.
41707         * tests/test-mkfifo.c: New file.
41708
41709         readlink: detect FreeBSD bug
41710         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41711         slash on symlink.
41712         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41713         * tests/test-readlink.h (test_readlink): Enhance test.
41714
41715         symlink: detect FreeBSD bug
41716         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41717         slash on symlink.
41718         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41719         * tests/test-symlink.h (test_symlink): Enhance test.
41720
41721 2009-11-10  Eric Blake  <ebb9@byu.net>
41722
41723         link: detect FreeBSD bug
41724         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41725         symlink.
41726         * doc/posix-functions/link.texi (link): Document the bug.
41727         * tests/test-link.h (test_link): Enhance test.
41728         * tests/test-linkat.c (main): Update caller.
41729
41730         unlink, remove: detect FreeBSD bug
41731         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41732         slash on symlink.
41733         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41734         * doc/posix-functions/remove.texi (remove): Likewise.
41735         * tests/test-unlink.h (test_unlink): Enhance test.
41736         * tests/test-remove.c (main): Likewise.
41737
41738 2009-11-09  Eric Blake  <ebb9@byu.net>
41739
41740         rename: detect FreeBSD bug
41741         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41742         slash on symlink.
41743         * modules/renameat-tests (Depends-on): Add filenamecat.
41744         * tests/test-rename.h (test_rename): Allow one more errno.
41745         * tests/test-renameat.c (main): Likewise.
41746         * doc/posix-functions/rename.texi (rename): Document the bug.
41747
41748         open: detect FreeBSD bug
41749         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41750         symlink.
41751         * doc/posix-functions/open.texi (open): Document the bug.
41752         * doc/posix-functions/utimes.texi (utimes): Likewise.
41753         * tests/test-open.h (test_open): Add parameters, and test symlink
41754         handling.
41755         * tests/test-open.c (main): Adjust caller.
41756         * tests/test-fcntl-safer.c (main): Likewise.
41757         * modules/open-tests (Depends-on): Add stdbool, symlink.
41758         * modules/fcntl-safer-tests (Depends-on): Likewise.
41759         * tests/test-openat.c (main): Add test-open tests.
41760
41761         stat: detect FreeBSD bug
41762         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41763         symlink.
41764         * doc/posix-functions/stat.texi (stat): Document the bug.
41765         * tests/test-stat.h (test_stat_func): Add argument.
41766         * tests/test-stat.c (main): Adjust caller.
41767         * tests/test-fstatat.c (main): Likewise.
41768         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41769         Reported by Jim Meyering.
41770
41771 2009-11-09  James Youngman  <jay@gnu.org>
41772
41773         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41774         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41775
41776 2009-11-08  Jim Meyering  <meyering@redhat.com>
41777
41778         utimens: remove invalid futimesat call
41779         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41780         It used the file descriptor of the target file as the DIR_FD
41781         parameter and NULL as the file name.  That caused failure with
41782         errno == EFAULT on FreeBSD-8.0-rc2
41783
41784 2009-11-07  Eric Blake  <ebb9@byu.net>
41785
41786         fflush, freadseek: use fseeko, not fseek
41787         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41788         (clear_ungetc_buffer): Avoid potential problems on large files.
41789         * lib/freadseek.c (freadseek): Likewise.
41790         * modules/freadseek (Depends-on): Add fseeko.
41791         * modules/fseek (configure.ac): Set a witness.
41792         * tests/test-fflush.c (main): Use fseeko.
41793         * tests/test-fpurge.c (fseek): Disable link warning.
41794         * tests/test-freadable.c (fseek): Likewise.
41795         * tests/test-freading.c (fseek): Likewise.
41796         * tests/test-fseeko.c (fseek): Likewise.
41797         * tests/test-ftell.c (fseek): Likewise.
41798         * tests/test-ftello.c (fseek): Likewise.
41799         * tests/test-fwritable.c (fseek): Likewise.
41800         * tests/test-fwriting.c (fseek): Likewise.
41801
41802 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41803
41804         * modules/memchr (Depends-on): Drop getpagesize dependency.
41805
41806 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41807
41808         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41809         Reported by Ludovic Courtès.
41810         * build-aux/pmccabe2html: Improve example usage.
41811         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41812
41813 2009-11-06  Jim Meyering  <meyering@redhat.com>
41814
41815         do-release-commit-and-tag: New module.
41816         Automate the release-commit and tag process.
41817         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41818         * modules/do-release-commit-and-tag: New file.
41819         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41820
41821 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41822
41823         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41824         because test-select.c uses inet_pton.
41825
41826 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41827
41828         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41829         GETADDRINFO_LIB.  Bump serial number.
41830         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41831         Suggested by Eric Blake <ebb9@byu.net>.
41832
41833 2009-11-05  Eric Blake  <ebb9@byu.net>
41834
41835         strtod: detect darwin bug
41836         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41837         Reported by Leo Davis.
41838
41839         freopen-safer: new module
41840         * modules/freopen-safer: New module.
41841         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41842         * lib/freopen-safer.c (freopen_safer): New file.
41843         * lib/stdio-safer.h (freopen_safer): New declaration.
41844         * lib/stdio--.h (freopen): New override.
41845         * MODULES.html.sh (File stream based Input/Output): Mention it.
41846         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41847         freopen-safer module.
41848         * doc/posix-functions/stderr.texi (stderr): Likewise.
41849         * doc/posix-functions/stdin.texi (stdin): Likewise.
41850         * doc/posix-functions/stdout.texi (stdout): Likewise.
41851         * modules/freopen-safer-tests: New test.
41852         * tests/test-reopen-safer.c: New file.
41853
41854 2009-11-05  Jim Meyering  <meyering@redhat.com>
41855
41856         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41857         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41858
41859 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41860
41861         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41862
41863 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41864
41865         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41866
41867 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41868
41869         Fix link error.
41870         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41871         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41872
41873 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41874
41875         * tests/test-func.c: Also test value of __func__.
41876
41877 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41878
41879         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41880         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41881
41882 2009-11-05  Bruno Haible  <bruno@clisp.org>
41883
41884         Fix link error.
41885         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41886         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41887         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41888
41889 2009-11-05  Bruno Haible  <bruno@clisp.org>
41890
41891         Tests for module 'inet_pton'.
41892         * modules/inet_pton-tests: New file.
41893         * tests/test-inet_pton.c: New file.
41894
41895 2009-11-05  Bruno Haible  <bruno@clisp.org>
41896
41897         Tests for module 'inet_ntop'.
41898         * modules/inet_ntop-tests: New file.
41899         * tests/test-inet_ntop.c: New file.
41900
41901 2009-11-04  Eric Blake  <ebb9@byu.net>
41902
41903         stdlib-safer: wrap all mkstemp variants
41904         * modules/mkostemp (configure.ac): Set witness.
41905         * modules/mkostemps (configure.ac): Likewise.
41906         * modules/mkstemps (configure.ac): Likewise.
41907         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41908         (mkstemps_safer): Wrap more functions.
41909         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41910         wrapping.
41911         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41912         (mkstemps_safer): Implement the wrappers.
41913
41914         mkstemps, mkostemps: new modules
41915         * modules/mkostemps: New module.
41916         * modules/mkstemps: Likewise.
41917         * lib/mkostemps.c (mkostemps): New file.
41918         * lib/mkstemps.c (mkstemps): Likewise.
41919         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41920         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41922         * modules/stdlib (Makefile.am): Substitute them.
41923         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41924         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41925         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41926         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41927         * MODULES.html.sh (File system functions): Mention them.
41928
41929         tempname: resync from glibc
41930         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41931         same values for __GT_FILE as glibc.  Abort even when assertions
41932         are disabled.
41933         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41934         match its value otherwise.  Allow idempotent inclusion.
41935         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41936         * lib/mkostemp.c (mkostemp): Likewise.
41937         * lib/mkstemp.c (mkstemp): Likewise.
41938         * lib/tmpfile.c (tmpfile): Likewise.
41939         * NEWS: Document this.
41940
41941         utimens: fix use of futimens on older Linux
41942         * lib/utimens.c (fdutimens): Use updated, rather than original,
41943         timespec to avoid bug in older Linux kernel.
41944         Reported by Simon Josefsson.
41945
41946 2009-11-04  Bruno Haible  <bruno@clisp.org>
41947
41948         Make num_processors more flexible and consistent.
41949         * lib/nproc.h (enum nproc_query): New type.
41950         (num_processors): Add a 'query' argument.
41951         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41952         (num_processors): Add a 'query' argument. Test the value of the
41953         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41954         mingw, count the number of CPUs available for the current process.
41955         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41956         Check for sched_getaffinity and sched_getaffinity_np.
41957         * modules/nproc (Depends-on): Add c-ctype, extensions.
41958         * NEWS: Mention the change.
41959
41960 2009-11-03  Bruno Haible  <bruno@clisp.org>
41961
41962         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41963
41964 2009-11-03  Jim Meyering  <meyering@redhat.com>
41965
41966         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41967         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41968         if it is defined.
41969
41970 2009-11-02  Eric Blake  <ebb9@byu.net>
41971
41972         mktime, timegm: share common declaration
41973         * lib/mktime-internal.h: New file.
41974         * lib/mktime.c: Use it rather than open-coding a declaration.
41975         * lib/timegm.c: Likewise.
41976         * modules/mktime (Files): Ship it.
41977         * modules/timegm (Files): Likewise.
41978         Suggested by Bruno Haible.
41979
41980         test-update-copyright: update test to match script changes
41981         * tests/test-update-copyright.sh: Avoid hard-coding perl
41982         location.  Don't update *.bak created by earlier runs.
41983
41984 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41985             Simon Josefsson  <simon@josefsson.org>
41986             Bruno Haible  <bruno@clisp.org>
41987
41988         Fix link error on Solaris 8.
41989         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41990         also in libnsl. Define also INET_PTON_LIB.
41991         * modules/inet_pton (Link): New section.
41992
41993 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41994             Bruno Haible  <bruno@clisp.org>
41995
41996         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41997         * modules/inet_ntop (Link): New section.
41998         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41999
42000 2009-11-02  Eric Blake  <ebb9@byu.net>
42001
42002         maint: avoid compiler warnings in m4 macros
42003         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42004         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42005
42006 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42007
42008         * m4/pmccabe2html.m4: Remove file.
42009         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42010         function.  Change maintainer.
42011         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42012         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42013         Courtès).
42014
42015 2009-10-31  Eric Blake  <ebb9@byu.net>
42016
42017         fseeko: fix m4 regression
42018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42019         regression from 2009-10-27.
42020         Reported by Ralf Wildenhues.
42021
42022 2009-10-31  Jim Meyering  <meyering@redhat.com>
42023
42024         inttostr: aesthetics and improved (compile-time) safety
42025         Define inttype_is_signed rather than inttype_is_unsigned,
42026         since the sole use is via "#if inttype_is_signed".
42027         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42028         inttype_is_unsigned.
42029         * lib/offtostr.c (inttype_is_signed): Likewise.
42030         * lib/uinttostr.c (inttype_is_signed): Likewise.
42031         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42032         * lib/inttostr.c (inttostr): Use verify to cross-check the
42033         inttype_is_signed value and the signedness of the actual type.
42034         * modules/inttostr (Depends-on): Add verify.
42035
42036 2009-10-30  Eric Blake  <ebb9@byu.net>
42037
42038         build: avoid compiler warnings
42039         * lib/fchmodat.c (lchmod): Mark unused variables.
42040         * lib/getopt.c (_getopt_initialize): Likewise.
42041         * lib/mktime.c (__mktime_internal): Provide prototype.
42042         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42043         older gcc that do not understand #pragma GCC diagnostic.
42044         * lib/uinttostr.c (inttype_is_unsigned): Define.
42045         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42046
42047 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42048
42049         stat: fix compilation on AIX
42050         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42051         only see struct stat64.
42052
42053 2009-10-30  Eric Blake  <ebb9@byu.net>
42054
42055         exclude: make more robust
42056         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42057         rather than masking a coding bug.
42058         Suggested by Bruno Haible.
42059
42060 2009-10-30  Jim Meyering  <meyering@redhat.com>
42061
42062         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42063         Rather than putting #!/usr/bin/perl on the first line,
42064         start with a variant of what's recommended by "man perlrun" that
42065         invokes the first "perl" program from your shell's search path.
42066         * build-aux/gitlog-to-changelog: Replace #!... as above.
42067         Add a "Local Variables" perl mode setting.
42068         Prompted by a patch from Ludovic Courtès.
42069         Improved by Eric Blake.
42070         * build-aux/useless-if-before-free: Likewise.
42071         * build-aux/announce-gen: Likewise.
42072         * build-aux/update-copyright: Likewise.
42073
42074 2009-10-29  Eric Blake  <ebb9@byu.net>
42075
42076         filenamecat-lgpl: adjust clients
42077         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42078         filenamecat.
42079         * modules/renameat (Depends-on): Likewise.
42080
42081         filenamecat: split into filenamecat-lgpl
42082         * modules/filenamecat-lgpl: New module.
42083         * modules/filenamecat (Files): Move library-safe files into
42084         filenamecat-lgpl.
42085         (Depends-on): Add filenamecat-lgpl.
42086         (configure.ac): Declare witness.
42087         * lib/filenamecat.h (file_name_concat): Only declare when using
42088         GPL module.
42089         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42090         Move...
42091         * lib/filenamecat-lgpl.c: ...into new file.
42092         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42093         (gl_FILE_NAME_CONCAT): Use it.
42094         * MODULES.html.sh (File system functions): Mention new module.
42095
42096         argp: avoid memory leak
42097         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42098         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42099         base_name, since the latter malloc()s and can call exit().
42100         Leak introduced 2006-07-03.
42101
42102         dirname-lgpl: adjust clients that don't need full dirname
42103         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42104         * modules/filenamecat (Depends-on): Likewise.
42105         * modules/linkat (Depends-on): Likewise.
42106         * modules/mkancesdirs (Depends-on): Likewise.
42107         * modules/mkdir (Depends-on): Likewise.
42108         * modules/openat (Depends-on): Likewise.
42109         * modules/savewd (Depends-on): Likewise.
42110         * modules/rename (Depends-on): Likewise.
42111         (License): Relax license.
42112         * modules/mkdir-tests (Depends-on): Drop progname.
42113         (Makefile.am): Delete unneeded LDADD.
42114         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42115
42116         dirname: split into dirname-lgpl
42117         * modules/dirname-lgpl: New module.
42118         * modules/dirname (Files): Move library-safe files into
42119         dirname-lgpl.
42120         (Depends-on): Add dirname-lgpl.
42121         (configure.ac): Declare witness.
42122         * modules/double-slash-root (License): Relax license.
42123         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42124         module.
42125         * lib/dirname.c (dir_len, mdir_name): Move...
42126         * lib/dirname-lgpl.c: ...into new file.
42127         * lib/basename.c (last_component, base_len): Move...
42128         * lib/basename-lgpl.c: ...into new file.
42129         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42130         (gl_DIRNAME): Use it.
42131         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42132         Mention new module.
42133         * modules/dirname-tests (Depends-on): Add progname.
42134         * tests/test-dirname.c (program_name): Delete.
42135
42136         mkdir: make safe for libraries
42137         * modules/mkdir (Depends-on): Drop xalloc.
42138         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42139         exit.
42140
42141         tests: avoid some compiler warnings
42142         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42143         literals.
42144         * tests/test-memchr.c (main): Avoid type mismatch.
42145         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42146         * tests/test-base64.c (main): Likewise.
42147         * tests/test-getdelim.c (main): Likewise.
42148         * tests/test-gethostname.c (main): Likewise.
42149         * tests/test-getline.c (main): Likewise.
42150         * tests/test-netinet_in.c (main): Likewise.
42151         * tests/test-select.c (open_server_socket, main): Likewise.
42152         * tests/test-select-stdin.c (main): Likewise.
42153         * tests/test-sockets.c (main): Likewise.
42154         * tests/test-strsignal.c (main): Likewise.
42155         * tests/test-sys_select.c (main): Likewise.
42156         * tests/test-sys_socket.c (main): Likewise.
42157         * tests/test-u64.c (main): Likewise.
42158         * tests/test-xfprintf-posix.c (main): Likewise.
42159         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42160
42161         sockets: avoid compiler warning
42162         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42163
42164         maint: detect usage(1) and other suspicious exits
42165         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42166
42167 2009-10-29  Jim Meyering  <meyering@redhat.com>
42168
42169         timespec: long-to-int truncation could make timespec_cmp malfunction
42170         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42171         a multiple of 2^32 nanoseconds as no difference.
42172
42173 2009-10-28  Jim Meyering  <meyering@redhat.com>
42174
42175         fprintftime: wrap macro code argument in "do {...} while(0)"
42176         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42177         cpy macro must be a statement that can be followed by a semicolon.
42178         Now that the else clause contains a comment and is hence longer
42179         than one line, I require curly braces.  That in turn requires
42180         that we wrap this code block in the standard do...while(0).
42181
42182         fprintftime: remove stray semicolon from previous change
42183         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42184
42185         fprintftime: avoid a warning about ignored fwrite return value
42186         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42187         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42188         that is unsafe.
42189         * modules/fprintftime (Depends-on): Add ignore-value.
42190
42191         exclude: avoid an unwarranted warning
42192         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42193
42194 2009-10-27  Eric Blake  <ebb9@byu.net>
42195
42196         fseek: avoid compilation failure when fflush is replaced
42197         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42198         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42199         module is in use.
42200         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42201         module is not in use; since REPLACE_FSEEK worked otherwise.
42202         (GNULIB_FTELLO): Likewise for ftell.
42203         Reported by Ian Beckwith and others.
42204
42205 2009-10-27  Bruno Haible  <bruno@clisp.org>
42206
42207         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42208         Reported by Jim Meyering.
42209
42210 2009-10-27  Jim Meyering  <jim@meyering.net>
42211             Bruno Haible  <bruno@clisp.org>
42212
42213         Avoid warning despite dropping the return value of fwrite.
42214         * lib/unicodeio.c: Include ignore-value.h.
42215         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42216         * modules/unicodeio (Depends-on): Add ignore-value.
42217
42218 2009-10-26  Eric Blake  <ebb9@byu.net>
42219
42220         areadlinkat: fix fallback path
42221         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42222         pointer and zero.
42223
42224 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42225
42226         Use a better IO block size for modern systems
42227         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42228         * lib/md2.c: Likewise.
42229         * lib/md4.c: Likewise.
42230         * lib/md5.c: Likewise.
42231         * lib/sha1.c: Likewise.
42232         * lib/sha256.c: Likewise.
42233         * lib/sha512.c: Likewise.
42234
42235 2009-10-22  Eric Blake  <ebb9@byu.net>
42236
42237         tests: avoid several compiler warnings
42238         * tests/test-getcwd.c (main): Avoid buffer underflow.
42239         * tests/test-getdate.c (main): String literals are not safe with
42240         putenv, so use setenv.  Declare unused argument.
42241         * modules/getdate-tests (Depends-on): Add setenv.
42242         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42243         problems with string literals in char *.
42244         * tests/test-hash.c (main): Avoid shadowing declaration.
42245         (insert_new): Treat string literals as char const *.
42246         * tests/test-getopt.h (test_getopt): Likewise.
42247         (getopt_loop): Alter types to minimize casting elsewhere.
42248         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42249         (test_getopt_long_posix): Likewise.
42250         (do_getopt_long): Add wrapper to minimize casting.
42251         * tests/test-atexit.c (clear_temp_file): Use void.
42252         * tests/test-areadlink-with-size.c (main): Declare unused
42253         arguments.
42254         * tests/test-areadlink.c (main): Likewise.
42255         * tests/test-areadlinkat-with-size.c (main): Likewise.
42256         * tests/test-areadlinkat.c (main): Likewise.
42257         * tests/test-canonicalize-lgpl.c (main): Likewise.
42258         * tests/test-canonicalize.c (main): Likewise.
42259         * tests/test-dirent-safer.c (main): Likewise.
42260         * tests/test-dirname.c (main): Likewise.
42261         * tests/test-dup2.c (main): Likewise.
42262         * tests/test-fchdir.c (main): Likewise.
42263         * tests/test-fcntl-h.c (main): Likewise.
42264         * tests/test-fcntl-safer.c (main): Likewise.
42265         * tests/test-fdopendir.c (main): Likewise.
42266         * tests/test-fdutimensat.c (main): Likewise.
42267         * tests/test-fflush.c (main): Likewise.
42268         * tests/test-filenamecat.c (main): Likewise.
42269         * tests/test-filevercmp.c (main): Likewise.
42270         * tests/test-fopen-safer.c (main): Likewise.
42271         * tests/test-fopen.c (main): Likewise.
42272         * tests/test-fpending.c (main): Likewise.
42273         * tests/test-fpurge.c (main): Likewise.
42274         * tests/test-freading.c (main): Likewise.
42275         * tests/test-fstatat.c (main): Likewise.
42276         * tests/test-fsync.c (main): Likewise.
42277         * tests/test-futimens.c (main): Likewise.
42278         * tests/test-getndelim2.c (main): Likewise.
42279         * tests/test-gettimeofday.c (main): Likewise.
42280         * tests/test-getopt.c (main): Likewise.
42281         * tests/test-i-ring.c (main): Likewise.
42282         * tests/test-inttypes.c (main): Likewise.
42283         * tests/test-link.c (main): Likewise.
42284         * tests/test-lstat.c (main): Likewise.
42285         * tests/test-math.c (main): Likewise.
42286         * tests/test-md5.c (main): Likewise.
42287         * tests/test-memchr2.c (main): Likewise.
42288         * tests/test-memrchr.c (main): Likewise.
42289         * tests/test-mkdir.c (main): Likewise.
42290         * tests/test-mkdirat.c (main): Likewise.
42291         * tests/test-mkfifoat.c (main): Likewise.
42292         * tests/test-open.c (main): Likewise.
42293         * tests/test-openat-safer.c (main): Likewise.
42294         * tests/test-openat.c (main): Likewise.
42295         * tests/test-quotearg.c (main): Likewise.
42296         * tests/test-rawmemchr.c (main): Likewise.
42297         * tests/test-readlink.c (main): Likewise.
42298         * tests/test-remove.c (main): Likewise.
42299         * tests/test-rename.c (main): Likewise.
42300         * tests/test-renameat.c (main): Likewise.
42301         * tests/test-rmdir.c (main): Likewise.
42302         * tests/test-sha1.c (main): Likewise.
42303         * tests/test-signal.c (main): Likewise.
42304         * tests/test-sigaction.c (main): Likewise.
42305         * tests/test-stat.c (main): Likewise.
42306         * tests/test-stat-time.c (main): Likewise.
42307         * tests/test-stddef.c (main): Likewise.
42308         * tests/test-stdint.c (main): Likewise.
42309         * tests/test-stdio.c (main): Likewise.
42310         * tests/test-stdlib.c (main): Likewise.
42311         * tests/test-strchrnul.c (main): Likewise.
42312         * tests/test-strerror.c (main): Likewise.
42313         * tests/test-string.c (main): Likewise.
42314         * tests/test-strtod.c (main): Likewise.
42315         * tests/test-strverscmp.c (main): Likewise.
42316         * tests/test-symlink.c (main): Likewise.
42317         * tests/test-symlinkat.c (main): Likewise.
42318         * tests/test-sys_stat.c (main): Likewise.
42319         * tests/test-sys_time.c (main): Likewise.
42320         * tests/test-time.c (main): Likewise.
42321         * tests/test-unistd.c (main): Likewise.
42322         * tests/test-unlink.c (main): Likewise.
42323         * tests/test-unlinkat.c (main): Likewise.
42324         * tests/test-utimens.c (main): Likewise.
42325         * tests/test-utimensat.c (main): Likewise.
42326         * tests/test-version-etc.c (main): Likewise.
42327         * tests/test-wchar.c (main): Likewise.
42328         * tests/test-wctype.c (main): Likewise.
42329         * tests/test-xprintf-posix.c (main): Likewise.
42330         * tests/test-posixtm.c (main): Likewise.
42331         (STREQ): Delete unused macro.
42332         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42333         shadowed variables.
42334         * tests/test-memchr.c (main): Likewise.
42335
42336 2009-10-21  Eric Blake  <ebb9@byu.net>
42337
42338         areadlinkat: avoid failure on older glibc
42339         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42340         rather than mis-comparing 0 against FUNC_RESULT of char*.
42341
42342 2009-10-21  Bruno Haible  <bruno@clisp.org>
42343
42344         * modules/stpncpy (License): Relicense under LGPLv2+.
42345         Reported by David Lutterkort <lutter@redhat.com>.
42346
42347 2009-10-20  Eric Blake  <ebb9@byu.net>
42348
42349         utimensat: work around Solaris 9 bug
42350         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42351         has trailing slash bugs.
42352         * tests/test-lutimens.h (test_lutimens): Enhance test.
42353         * tests/test-utimens.h (test_utimens): Likewise.
42354         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42355         * doc/posix-functions/utimes.texi (utimes): Likewise.
42356         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42357         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42358         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42359         * doc/posix-functions/futimens.texi (futimens): Likewise.
42360
42361         fdutimensat: new module
42362         * modules/fdutimensat: New file.
42363         * lib/fdutimensat.c (fdutimensat): Likewise.
42364         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42365         * MODULES.html.sh (File system functions): Mention module.
42366         * modules/fdutimensat-tests: New test.
42367         * tests/test-fdutimensat.c: Likewise.
42368
42369         doc: regenerate INSTALL
42370         * doc/INSTALL: Reflect recent autoconf update.
42371         * doc/INSTALL.ISO: Likewise.
42372         * doc/INSTALL.UTF-8: Likewise.
42373
42374 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42375
42376         acl: warn if ACL support is not detected
42377         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42378
42379 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42380
42381         * lib/nproc.h: Add extern "C" block for C++.
42382
42383 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42384             Bruno Haible  <bruno@clisp.org>
42385
42386         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42387         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42388         * doc/posix-functions/isalpha.texi: Likewise.
42389         * doc/posix-functions/isblank.texi: Likewise.
42390         * doc/posix-functions/iscntrl.texi: Likewise.
42391         * doc/posix-functions/isdigit.texi: Likewise.
42392         * doc/posix-functions/isgraph.texi: Likewise.
42393         * doc/posix-functions/islower.texi: Likewise.
42394         * doc/posix-functions/isprint.texi: Likewise.
42395         * doc/posix-functions/ispunct.texi: Likewise.
42396         * doc/posix-functions/isspace.texi: Likewise.
42397         * doc/posix-functions/isupper.texi: Likewise.
42398         * doc/posix-functions/isxdigit.texi: Likewise.
42399
42400 2009-10-18  Bruno Haible  <bruno@clisp.org>
42401
42402         Tests for module 'isblank'.
42403         * modules/isblank-tests: New file.
42404         * tests/test-isblank.c: New file.
42405
42406         New module 'isblank'.
42407         * lib/isblank.c: New file.
42408         * m4/isblank.m4: New file.
42409         * modules/isblank: New file.
42410         * doc/posix-functions/isblank.texi: Mention the new module.
42411
42412 2009-10-18  Bruno Haible  <bruno@clisp.org>
42413
42414         New module 'ctype'.
42415         * lib/ctype.in.h: New file.
42416         * m4/ctype.m4: New file.
42417         * modules/ctype: New file.
42418         * doc/posix-headers/ctype.texi: Mention the new module.
42419
42420 2009-10-18  Jim Meyering  <meyering@redhat.com>
42421
42422         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42423         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42424         right after its initialization, rather than farther down.
42425         Keeping these in close proximity makes it easier to ensure
42426         that each such variable is initialized.  E.g.,
42427
42428             LIB_CLOCK_GETTIME=
42429             AC_SUBST([LIB_CLOCK_GETTIME])
42430
42431         This change also increments these serial numbers.
42432         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42433         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42434         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42435
42436 2009-10-18  Bruno Haible  <bruno@clisp.org>
42437
42438         Don't let environment variables perturb build.
42439         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42440         (gl_PREREQ_GETHRXTIME): ... not here.
42441
42442 2009-10-18  Bruno Haible  <bruno@clisp.org>
42443
42444         Avoid symlink attack in localcharset module.
42445         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42446         (O_NOFOLLOW): Define fallback.
42447         (get_charset_aliases): Don't open the file if it is a symbolic link.
42448         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42449         gl_FCNTL_H.
42450         (gl_FCNTL_H): Require it.
42451         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42452         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42453         Reported by Fergal Glynn <fglynn@veracode.com>.
42454
42455 2009-10-18  Bruno Haible  <bruno@clisp.org>
42456
42457         Implement nproc for mingw.
42458         * lib/nproc.c: Include <windows.h>
42459         (num_processors): On native Windows platforms, try GetSystemInfo.
42460
42461 2009-10-18  Bruno Haible  <bruno@clisp.org>
42462
42463         Implement nproc for IRIX.
42464         * lib/nproc.c: Include <sys/sysmp.h>.
42465         (num_processors): On IRIX systems, try sysmp.
42466         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42467
42468 2009-10-18  Bruno Haible  <bruno@clisp.org>
42469
42470         Implement nproc for HP-UX.
42471         * lib/nproc.c: Include <sys/pstat.h>
42472         (num_processors): On HP-UX systems, try pstat_getdynamic.
42473         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42474         pstat_getdynamic.
42475
42476 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42477             Bruno Haible  <bruno@clisp.org>
42478
42479         Implement nproc for NetBSD, OpenBSD.
42480         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42481         (ARRAY_SIZE): New macro.
42482         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42483         * m4/nproc.m4: New file.
42484         * modules/nproc (Files): Add m4/nproc.m4.
42485         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42486         (Makefile.am): Instead, augment lib_SOURCES.
42487
42488 2009-10-18  Bruno Haible  <bruno@clisp.org>
42489
42490         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42491         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42492         sys/param.h.
42493
42494 2009-10-16  Eric Blake  <ebb9@byu.net>
42495
42496         utimensat: new module
42497         * modules/utimensat: New file.
42498         * lib/utimensat.c (utimensat): Likewise.
42499         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42500         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42501         so we can work around Linux bugs.
42502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42503         * modules/sys_stat (Makefile.am): Substitute them.
42504         * lib/sys_stat.in.h (utimensat): Declare it.
42505         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42506         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42507         * modules/utimensat-tests: New test.
42508         * tests/test-utimensat.c: Likewise.
42509
42510         utimens: let lutimens work on non-symlinks
42511         * lib/utimens.c (lutimens): Fall back to utimens rather than
42512         failing with ENOSYS, when file is not a symlink.
42513         (utimens): Reduce redirection.
42514         * tests/test-lutimens.h (test_lutimens): Update test to cover
42515         non-symlinks.
42516         * tests/test-utimens.h (test_utimens): Update test to cover
42517         symlinks.
42518         * tests/test-utimens.c (main): Update caller.
42519
42520         utimens: cache whether utimensat syscall works
42521         * lib/utimens.c (utimensat_works_really): New cache variable.
42522         (fdutimens, lutimens): Use it to avoid failing syscall.
42523
42524         test-stat-time, test-utimens: improve portability
42525         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42526         ext4 on alpha, and for cygwin.
42527         * tests/test-utimens-common.h: New file.
42528         (nap): Factor delays into single function.
42529         * tests/test-lutimens.h (test_lutimens): Use new header.
42530         * tests/test-futimens.h (test_futimens): Likewise.
42531         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42532         timestamps to occur from same machine, as was done previously for
42533         test_utimens.
42534         * modules/utimens-tests (Files): Ship new file.
42535         * modules/futimens-tests (Files): Likewise.
42536         Reported in part by Jim Meyering.
42537
42538         sys_stat: sort replacement declarations
42539         * lib/sys_stat.in.h: Sort declarations.
42540         * lib/futimens.c (futimens): Fix typo.
42541
42542 2009-10-15  Jim Meyering  <meyering@redhat.com>
42543
42544         don't let environment settings perturb build
42545         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42546         could cause a configure-time and/or build-time malfunction.
42547         Typically, a configure-time function-in-library test is performed
42548         via code like this:
42549
42550           LIB_VAR=
42551           AC_SUBST([LIB_VAR])
42552           prefix_saved_LIBS=$LIBS
42553             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42554                        [test "$ac_cv_search_FUNC" = "none required" ||
42555                         LIB_VAR=$ac_cv_search_FUNC])
42556           LIBS=$prefix_saved_LIBS
42557
42558         However, in each of the files affected by this change, the LIB_VAR=
42559         initialization was omitted.  Thus, when set in the environment, its
42560         value would propagate into generated Makefiles when FUNC is not found
42561         in LIB_NAME.
42562         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42563         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42565
42566 2009-10-14  Eric Blake  <ebb9@byu.net>
42567
42568         fchdir: avoid infinite recursion in mingw
42569         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42570         recursing.
42571
42572         test-stat-time: port to mingw
42573         * tests/test-stat-time.c (force_unlink): Return a value.
42574         (test_ctime) [W32]: Fix compilation error.
42575         (nap): Don't call usleep with too large an argument.  Use
42576         force_unlink.
42577         * doc/pastposix-functions/usleep.texi (usleep): Document the
42578         portability issue.
42579
42580 2009-10-13  Jim Meyering  <meyering@redhat.com>
42581
42582         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42583         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42584         * modules/pipe-filter-ii: Likewise.
42585         * modules/sys_socket-tests: Likewise.
42586         * modules/tsearch-tests: Likewise.
42587         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42588         (check): Depend on it.
42589
42590 2009-10-12  Eric Blake  <ebb9@byu.net>
42591
42592         utimens-tests: port to NFS file systems
42593         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42594         comparisons to avoid spurious failures from timestamp drift
42595         between NFS machines.
42596
42597 2009-10-12  Eric Blake  <ebb9@byu.net>
42598
42599         stat-time-tests: minor cleanups
42600         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42601         * tests/test-stat-time.c (nap): Separate assignment from call.
42602         Suggested by Paolo Bonzini and Bruno Haible.
42603
42604         sys_stat: guarantee struct timespec
42605         * lib/sys_stat.in.h (includes): Always include <time.h>
42606         * modules/sys_stat (Depends-on): Add time.
42607         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42608         mode_t permission values.
42609         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42610         get at subsecond timestamps.
42611
42612 2009-10-10  Eric Blake  <ebb9@byu.net>
42613
42614         futimens: new module
42615         * modules/futimens: New file.
42616         * lib/futimens.c (futimens): Likewise.
42617         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42618         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42619         we can work around Linux bugs.
42620         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42621         * modules/sys_stat (Makefile.am): Substitute them.
42622         * lib/sys_stat.in.h (futimens): Declare it.
42623         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42624         * doc/posix-functions/futimens.texi (futimens): Likewise.
42625         * modules/futimens-tests: New test.
42626         * tests/test-futimens.c: Likewise.
42627
42628         utimens: introduce fdutimens
42629         * lib/utimens.h (fdutimens): New prototype.
42630         * lib/utimens.c (gl_futimens): Move guts...
42631         (fdutimens): ...to new interface.
42632         * tests/test-utimens.c (do_fdutimens): Use it.
42633
42634         utimens: add UTIME_NOW and UTIME_OMIT support
42635         * lib/utimens.c (validate_timespec, update_timespec): New helper
42636         functions.
42637         (gl_futimens, lutimens): Use them.
42638         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42639         stdbool, sys_stat.
42640         (Link): Mention resulting library dependency.
42641         * modules/utimecmp (Link): Likewise.
42642         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42643         (Makefile.am): Pick up library dependency.
42644         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42645         definition.
42646         * tests/test-sys_stat.c: Test the definitions.
42647         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42648         * NEWS: Document library dependency.
42649
42650         utimecmp: support symlink timestamps
42651         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42652         hashing when possible.  Use pathconf when available.
42653         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42654         * modules/utimecmp (Depends-on): Add lstat.
42655
42656         utimens: add lutimens interface
42657         * lib/utimens.c (lutimens): New function.
42658         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42659         * lib/utimens.h (lutimens): Declare new interface.
42660         * tests/test-utimens.c (main): Enhance test.
42661         * tests/test-lutimens.h (test_lutimens): New file.
42662         * modules/utimens-tests (Files): Distribute it.
42663         (Depends-on): Add symlink.
42664         (configure.ac): Check for usleep.
42665
42666         utimens: validate futimens usage
42667         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42668         fewer syscalls on failure later on.  Avoid compiler warning on
42669         mingw.
42670         * modules/utimens (Depends-on): Add dup2.
42671
42672         utimens: add test
42673         * modules/utimens-tests: New test.
42674         * tests/test-utimens.h: New file.
42675         * tests/test-futimens.h: Likewise.
42676         * tests/test-utimens.c: Likewise.
42677
42678         doc: mention timestamp portability issues
42679         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42680         instead.
42681         * doc/posix-functions/utime.texi (utime): Likewise.
42682         * doc/posix-functions/utimes.texi (utimes): Likewise.
42683         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42684         instead.
42685         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42686         module.
42687         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42688         Mention weakness with symlink timestamps.
42689         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42690         to utimensat/futimens instead.
42691         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42692
42693         test-dup2: enhance test
42694         * tests/test-dup2.c (main): Also check AT_FDCWD.
42695
42696         test-stat-time: avoid more spurious failures
42697         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42698         xfs; and avoid race if the two timestamps cross quantization edge.
42699
42700         relocatable: prefer 'file system' over 'filesystem'
42701         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42702         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42703         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42704         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42705         * lib/relocatable.c (compute_curr_prefix): Likewise.
42706
42707 2009-10-10  Jim Meyering  <meyering@redhat.com>
42708
42709         stat-time-tests: check for the usleep function
42710         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42711
42712 2009-10-10  Bruno Haible  <bruno@clisp.org>
42713
42714         * modules/xnanosleep: Put the Link section after the Include section.
42715
42716 2009-10-09  Eric Blake  <ebb9@byu.net>
42717
42718         dup2: work around FreeBSD 6.1 bug
42719         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42720         * doc/posix-functions/dup2.texi (dup2): Document it.
42721         Reported by Nelson H. F. Beebe and Jim Meyering.
42722
42723         test-stat-time: port to buggy NFS clients
42724         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42725         (test_ctime): Also skip test if mtime and ctime are skewed.
42726
42727         maint: prefer 'file system' over 'filesystem'
42728         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42729         * doc/posix-functions/lstat.texi (lstat): Likewise.
42730         * lib/file-has-acl.c (file_has_acl): Likewise.
42731         * lib/fwriteerror.c [TEST]: Likewise.
42732         * tests/test-areadlink.h (test_areadlink): Likewise.
42733         * tests/test-areadlinkat-with-size.c (main): Likewise.
42734         * tests/test-areadlinkat.c (main): Likewise.
42735         * tests/test-canonicalize-lgpl.c (main): Likewise.
42736         * tests/test-canonicalize.c (main): Likewise.
42737         * tests/test-fstatat.c (main): Likewise.
42738         * tests/test-linkat.c (main): Likewise.
42739         * tests/test-lstat.h (test_lstat_func): Likewise.
42740         * tests/test-mkdir.h (test_mkdir): Likewise.
42741         * tests/test-readlink.h (test_readlink): Likewise.
42742         * tests/test-remove.c (main): Likewise.
42743         * tests/test-rename.h (test_rename): Likewise.
42744         * tests/test-renameat.c (main): Likewise.
42745         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42746         * tests/test-symlink.h (test_symlink): Likewise.
42747         * tests/test-symlinkat.c (main): Likewise.
42748         * tests/test-unlink.h (test_unlink_func): Likewise.
42749         * tests/test-unlinkat.c (main): Likewise.
42750
42751         maint: make realtime library usage explicit
42752         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42753         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42754         * modules/settime (Link): Likewise.
42755         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42756
42757         test-stat-time: speed up execution
42758         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42759         warning on mingw.
42760         (nap): New helper function.
42761         (prepare_test): Use it to reduce sleep time.
42762         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42763         execution.
42764         * modules/stat-time-tests (configure.ac): Check for usleep.
42765
42766 2009-10-09  Jim Meyering  <meyering@redhat.com>
42767
42768         selinux-h: always use getfilecon wrappers
42769         * lib/getfilecon.c: New file.
42770         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42771         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42772         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42773         (fgetfilecon): Provide a stub.
42774         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42775         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42776         file unconditionally.
42777         When <selinux/selinux.h> is found, arrange to use wrappers.
42778         * modules/selinux-h (Files): Add getfilecon.c.
42779         (Makefile.am): Substitute include-next-related bits
42780         into the now-always-generated selinux/selinux.h file.
42781         * doc/glibc-functions/lgetfilecon.texi: New file.
42782         * doc/glibc-functions/fgetfilecon.texi: New file.
42783         * doc/glibc-functions/getfilecon.texi: New file.
42784         * doc/glibc-functions/getfilecon-desc.texi: New file.
42785         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42786         which to pull in the new files.
42787         * MODULES.html.sh (Misc): Add selinux-h.
42788
42789 2009-10-08  Jim Meyering  <meyering@redhat.com>
42790
42791         unistd: fix comment typo
42792         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42793
42794 2009-10-08  Eric Blake  <ebb9@byu.net>
42795
42796         areadlink: use SIZE_MAX consistently
42797         * modules/areadlink (Depends-on): Add stdint.
42798         * modules/areadlink-with-size (Depends-on): Likewise.
42799         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42800         gives NULL; drop sys/types, since unistd gives size_t; and add
42801         stdint for SIZE_MAX.
42802         (SIZE_MAX): Rely on headers.
42803         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42804         and add stdint.
42805         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42806         (SIZE_MAX): Likewise.
42807         (INITIAL_BUF_SIZE): Turn into enum.
42808         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42809
42810 2009-10-08  Jim Meyering  <meyering@redhat.com>
42811
42812         areadlinkat: avoid compilation failure
42813         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42814         Fix typo in comment.
42815
42816 2009-10-07  Eric Blake  <ebb9@byu.net>
42817
42818         areadlinkat-with-size: new module
42819         * modules/areadlinkat-with-size: New module.
42820         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42821         * lib/areadlink.h (areadlinkat): Declare it.
42822         * MODULES.html.sh (File system functions): Mention it.
42823         * modules/areadlinkat-with-size-tests: New test.
42824         * tests/test-areadlinkat-with-size.c: New file.
42825
42826         xreadlinkat: new module
42827         * modules/xreadlinkat: New module.
42828         * lib/xreadlinkat.c (xreadlinkat): New file.
42829         * lib/xreadlink.h (xreadlinkat): Declare it.
42830         * MODULES.html.sh (File system functions): Mention it.
42831
42832         areadlinkat: new module
42833         * lib/at-func.c (FUNC_FAIL): New define.
42834         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42835         * modules/areadlinkat: New module.
42836         * lib/linkat.c (areadlinkat): Move...
42837         * lib/areadlinkat.c (areadlinkat): ...to new file.
42838         * lib/areadlink.h (areadlinkat): Declare it.
42839         * modules/linkat (Depends-on): Add areadlinkat.
42840         * MODULES.html.sh (File system functions): Mention it.
42841         * modules/areadlinkat-tests: New test.
42842         * tests/test-areadlinkat.c: New file.
42843
42844         areadlink, areadlink-with-size: add tests
42845         * modules/areadlink-tests: New test.
42846         * modules/areadlink-with-size-tests: Likewise.
42847         * tests/test-areadlink.h: New file.
42848         * tests/test-areadlink.c: Likewise.
42849         * tests/test-areadlink-with-size.c: Likewise.
42850
42851         maint: minor cleanups
42852         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42853         _UNUSED_PARAMETER_ instead.
42854         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42855         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42856         * modules/linkat-tests (Files): Distribute test-link.h.
42857
42858         openat, utimens: whitespace cleanup
42859         * lib/openat.c: Prefer space throughout, rather than mix of 8
42860         spaces vs. tabs.
42861         * lib/at-func.c: Likewise.
42862         * lib/utimens.c: Likewise.
42863
42864         openat: avoid using wrong fd
42865         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42866         working directory chooses same fd.
42867         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42868
42869         mkdir, mkdirat: fix cygwin 1.5.x bug
42870         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42871         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42872         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42873         bug.
42874         (gl_PREREQ_MKDIR): Delete unused macro.
42875         * modules/mkdir (Files): Track file rename.
42876         (configure.ac): Update macro name.
42877         * modules/openat (Depends-on): Add mkdir.
42878         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42879
42880         mkdir, mkdirat: add tests
42881         * modules/mkdir-tests: New test.
42882         * tests/test-mkdir.h: New file.
42883         * tests/test-mkdir.c: Likewise.
42884         * tests/test-mkdirat.c: Likewise.
42885         * modules/openat-tests (Files): Add new files.
42886         (Makefile.am): Run new test.
42887
42888 2009-10-06  Eric Blake  <ebb9@byu.net>
42889
42890         doc: tweak *at function documentation
42891         * doc/posix-functions/faccessat.texi (faccessat): Mention
42892         known issue with replacement.
42893         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42894         * doc/posix-functions/linkat.texi (linkat): Likewise.
42895         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42896         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42897         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42898         * doc/posix-functions/renameat.texi (renameat): Likewise.
42899         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42900
42901         openat: fix GNU/Hurd bug in unlinkat
42902         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42903         broken.
42904         * doc/posix-functions/unlink.texi (unlink): Document this.
42905         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42906
42907         fdopendir: fix GNU/Hurd bug
42908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42909         allowing non-directory fds.
42910         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42911         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42912         * modules/dirent (Makefile.am): Substitute it.
42913         * lib/dirent.in.h (fdopendir): Declare replacement.
42914         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42915         * tests/test-fdopendir.c (main): Test something other than
42916         /dev/null, since on Hurd that behaves like a directory.
42917
42918         test-symlink: port to GNU/Hurd
42919         * tests/test-symlink.h (test_symlink): Relax expected errno.
42920
42921         doc: tweak more cygwin information
42922         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42923         now compatible with glibc.
42924         * doc/posix-functions/getopt.texi (getopt): Likewise.
42925
42926         getopt-gnu: add another test
42927         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42928         guarantee behavior relied on by m4.
42929         * tests/test-getopt.c (main): Use it.
42930         * modules/getopt-posix-tests (Depends-on): Add setenv.
42931         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42932
42933         getopt: fix compilation on darwin
42934         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42935         include.
42936         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42937         Reported by Ludovic Courtès.
42938
42939 2009-10-06  Bruno Haible  <bruno@clisp.org>
42940
42941         * modules/size_max (Description): Discourage its use.
42942         Reported by Simon Josefsson.
42943
42944 2009-10-06  Jim Meyering  <meyering@redhat.com>
42945
42946         linkat: avoid compilation failure
42947         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42948
42949 2009-10-05  Eric Blake  <ebb9@byu.net>
42950
42951         linkat: support Linux 2.6.17
42952         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42953         linkat on Linux, but allow cache variable override.
42954         * lib/linkat.c (rpl_linkat): Define override.
42955         * modules/linkat (Depends-on): Add symlinkat.
42956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42957         * modules/unistd (Makefile.am): Substitute it.
42958         * lib/unistd.in.h (linkat): Declare replacement.
42959         Reported by Pádraig Brady.
42960
42961         quotearg: port test to systems with C.UTF-8 locale
42962         * tests/test-quotearg.c (struct result_strings): Add another
42963         member, differentiating between C.ASCII and C.UTF-8 handling.
42964         (compare_strings): Add parameter.
42965         (main): Adjust all callers.
42966
42967         getopt: avoid clash with FreeBSD _getopt_internal
42968         * lib/getopt.in.h (_getopt_internal): Override the name.
42969         * lib/getopt_int.h (includes): Pick up any overrides.
42970         Reported by Reuben Thomas.
42971
42972         hash: allow C89 compilation
42973         * lib/hash.c (check_tuning): Move declaration before statement.
42974         Reported by Reuben Thomas.
42975
42976 2009-10-05  Karl Berry  <karl@gnu.org>
42977
42978         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42979
42980 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42981             Bruno Haible  <bruno@clisp.org>
42982
42983         * lib/uname.c (uname): Use a table-driven algorithm to compute
42984         Windows NT versions.
42985
42986 2009-10-04  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42989         program_invocation_short_name.
42990         * modules/progname (configure.ac): Test for presence of
42991         program_invocation_short_name.
42992         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42993
42994 2009-10-04  Bruno Haible  <bruno@clisp.org>
42995
42996         * lib/progname.c (set_program_name): Fix comment.
42997         Reported by Jim Meyering.
42998
42999 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43000             Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/uname.c: Include <string.h>.
43003         (uname): Do only one call to GetVersionEx in the common case.
43004
43005 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43006             Bruno Haible  <bruno@clisp.org>
43007
43008         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43009         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43010         (uname): Add support for Windows CE and various non-x86 CPU types.
43011
43012 2009-10-03  Bruno Haible  <bruno@clisp.org>
43013
43014         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43015         invocation to tests/configure.ac.
43016         Reported by Ian Beckwith <ianb@erislabs.net>.
43017
43018 2009-10-02  Eric Blake  <ebb9@byu.net>
43019
43020         fchdir: avoid compiler warning
43021         * lib/fchdir.c (canonicalize_file_name)
43022         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43023
43024         test-open: support mingw errno values
43025         * tests/test-open.h (test_open): Relax test.
43026         * tests/test-fopen.h (test_fopen): Likewise.
43027         * tests/test-openat-safer.c (main): Likewise.
43028
43029         open: fix opening directory on mingw
43030         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43031
43032         test-open: on GNU/Hurd, /dev/null is a directory
43033         * tests/test-fopen.h (main): Rename...
43034         (test_fopen): ...to this.  Use a guaranteed non-directory when
43035         confirming open behavior on trailing slash.
43036         * tests/test-openat-safer.c (main): Likewise.
43037         * tests/test-open.h (main): Likewise....
43038         (test_open): ...to this.
43039         * tests/test-fopen.c (main): Adjust caller.
43040         * tests/test-fopen-safer.c (main): Likewise.
43041         * tests/test-open.c (main): Likewise.
43042         * tests/test-fcntl-safer.c (main): Likewise.
43043         Reported by Samuel Thibault.
43044
43045         rename, fchdir: don't ignore chdir failure
43046         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43047         * lib/rename.c (rpl_rename) [W32]: Likewise.
43048         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43049         an empty destination directory if source cannot be renamed,
43050         although there is still possibility for failure.
43051         * doc/posix-functions/rename.texi (rename): Document the race.
43052         Reported by Jim Meyering.
43053
43054         maint: cleanup whitespace in recent commits
43055         * lib/rename.c (rpl_rename): Remove tabs.
43056         * tests/test-link.h (test_link): Likewise.
43057         * lib/fchdir.c (get_name): Likewise.
43058         Reported by Jim Meyering.
43059
43060 2009-10-02  Ben Pfaff  <blp@gnu.org>
43061
43062         relocatable-prog-wrapper: Add missing dependency on
43063         double-slash-root.
43064         * modules/relocatable-prog-wrapper: Add dependency.
43065         Reported by Ian Beckwith <ianb@erislabs.net>.
43066
43067 2009-10-02  Eric Blake  <ebb9@byu.net>
43068
43069         renameat: fix Solaris bugs
43070         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43071         needed fixing.
43072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43073         * modules/stdio (Makefile.am): Substitute it.
43074         * lib/stdio.in.h (renameat): Declare replacement.
43075         * lib/renameat.c (rpl_renameat): Implement fix.
43076
43077         renameat: new module
43078         * modules/renameat: New file.
43079         * lib/renameat.c (renameat): Likewise.
43080         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43082         * modules/stdio (Makefile.am): Substitute them.
43083         * lib/stdio.in.h (renameat): Declare it.
43084         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43085         * doc/posix-functions/renameat.texi (renameat): Likewise.
43086         * modules/renameat-tests: New test.
43087         * tests/test-renameat.c: Likewise.
43088
43089         rename: fix mingw bugs
43090         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43091         directory overwrite bugs.
43092
43093         rename: fix another cygwin 1.5 bug
43094         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43095         checks.
43096         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43097         unnecessary cygwin workarounds.  Also work around bug with moving
43098         full directory onto an empty one.
43099         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43100
43101         rename-dest-slash: merge into rename module
43102         * modules/rename-dest-slash (Status): Mark obsolete.
43103         (Depends-on): Add rename.
43104         (Files): Let rename do it all.
43105         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43106         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43107         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43108         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43109         * lib/rename.c (rpl_rename): Update comments.
43110
43111         rename: fix cygwin 1.5.x bugs
43112         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43113         * lib/rename.c (rpl_rename): Work around them.
43114         * modules/rename (Depends-on): Add same-inode.
43115
43116         rename: fix Solaris 10 bug
43117         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43118         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43119         was the only bug.
43120
43121         rename: fix Solaris 9 bug
43122         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43123         on non-directory.  Avoid calling exit.
43124         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43125         strdup.
43126         * modules/rename-tests (Depends-on): Drop lstat.
43127         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43128         (gl_PREREQ_RENAME): Delete unused macro.
43129
43130         rename-dest-slash: fix NetBSD bug
43131         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43132         links.
43133         * modules/rename-dest-slash (Depends-on): Add same-inode.
43134
43135         rename-tests: new test, exposes several platform bugs
43136         * modules/rename-tests: New file.
43137         * tests/test-rename.h: Likewise.
43138         * tests/test-rename.c: Likewise.
43139         * doc/posix-functions/rename.texi (rename): Improve documentation,
43140         including bugs that will eventually be fixed in gnulib.
43141
43142 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43143
43144         * lib/uname.c: Include <stdlib.h>
43145         (uname): Assume version info is available.
43146
43147 2009-10-02  Jim Meyering  <meyering@redhat.com>
43148
43149         gnu-web-doc-update: correct --help output
43150         * build-aux/gnu-web-doc-update: Make --help output relevant.
43151
43152         gnu-web-doc-update: add standard options
43153         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43154
43155         gnu-web-doc-update: New module.
43156         Use this script to automatically update the on-line web documentation
43157         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43158         * modules/gnu-web-doc-update: New file, from coreutils.
43159         * build-aux/gnu-web-doc-update: New script.
43160
43161 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43162
43163         link: LoadLibrary is not needed.
43164         * lib/link.c: Use GetModuleHandle.
43165
43166 2009-10-01  Eric Blake  <ebb9@byu.net>
43167
43168         getopt: bump serial number
43169         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43170         change.
43171
43172         tests: tighten link, rmdir, and remove tests
43173         * tests/test-link.h (includes): No need to use <config.h> here.
43174         Clean up if directory hard link was created, otherwise test for
43175         trailing '.'.
43176         * tests/test-linkat.c (main): Simplify.
43177         * tests/test-remove.c (main): Enhance test for trailing '.'.
43178         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43179
43180 2009-10-01  Jim Meyering  <meyering@redhat.com>
43181
43182         maint.mk: requiring "make major" was annoying, for a "minor" release.
43183         What is intended is "stable", to contrast with alpha and beta,
43184         so require "make stable", not "make major".
43185         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43186         (get_tool_versions): Likewise.
43187         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43188
43189 2009-09-30  Ben Pfaff  <blp@gnu.org>
43190
43191         Fix broken build of replacement for Windows tmpfile().
43192         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43193         flags argument added along with the 'mkostemp' module.
43194
43195 2009-09-28  Bruno Haible  <bruno@clisp.org>
43196
43197         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43198         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43199         to 'remove_elt'.
43200         (gl_list_remove): Update.
43201         * lib/gl_list.c (gl_list_remove): Update.
43202         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43203         to 'remove_elt'.
43204         (gl_oset_remove): Update.
43205         * lib/gl_list.c (gl_oset_remove): Update.
43206         Reported by Eric Blake.
43207
43208 2009-09-28  Eric Blake  <ebb9@byu.net>
43209
43210         doc: mention yet more cygwin 1.7 status
43211         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43212         cygwin.
43213         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43214         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43215
43216         argp: fix test failure
43217         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43218         that are not upper-case.  Pass correct range to tolower.
43219
43220 2009-09-27  Jim Meyering  <meyering@redhat.com>
43221
43222         test-yesno: work around sparc-dash here-document infelicity
43223         Without this change, the literal \177 byte in a here document
43224         would make dash 0.5.5.1-3 access uninitialized memory.
43225         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43226         Instead, use a marker, "@", and filter through tr to create the desired
43227         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43228
43229 2009-09-27  Bruno Haible  <bruno@clisp.org>
43230
43231         Disable untested support for new flavours of ACLs on AIX.
43232         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43233         progress.
43234         * lib/set-mode-acl.c (qset_acl): Likewise.
43235
43236 2008-12-07  Bruno Haible  <bruno@clisp.org>
43237
43238         Add support for new flavours of ACLs on AIX. (Untested.)
43239         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43240         (file_has_acl): Add support for newer AIX.
43241         * lib/set-mode-acl.c (qset_acl): Likewise.
43242         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43243         Rainer Tammer <tammer@tammer.net>.
43244
43245 2009-09-26  Eric Blake  <ebb9@byu.net>
43246
43247         argp: fix compilation of getopt
43248         * lib/getopt.in.h (includes): Use different guard than glibc.
43249         Reported by Sergey Poznyakoff.
43250
43251         doc: mention more cygwin 1.7 status
43252         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43253         bug.
43254         * doc/posix-functions/execl.texi (execl): Likewise.
43255         * doc/posix-functions/execle.texi (execle): Likewise.
43256         * doc/posix-functions/execlp.texi (execlp): Likewise.
43257         * doc/posix-functions/execv.texi (execv): Likewise.
43258         * doc/posix-functions/execve.texi (execve): Likewise.
43259         * doc/posix-functions/execvp.texi (execvp): Likewise.
43260         * doc/glibc-functions/canonicalize_file_name.texi
43261         (canonicalize_file_name): Cygwin 1.7 now provides this.
43262         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43263         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43264         on AT_SYMLINK_NOFOLLOW.
43265
43266 2009-09-24  Eric Blake  <ebb9@byu.net>
43267
43268         test-linkat: make test more robust
43269         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43270
43271         getopt: fix inclusion guards for cygwin
43272         * modules/getopt-posix (Depends-on): Add include-next.
43273         (Makefile.am): Substitute more items in replacement header.
43274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43275         <getopt.h>.
43276         * lib/getopt.in.h (includes): Use split inclusion guard, and
43277         prefer <getopt.h> over include <unistd.h> when one is present.
43278         (option): Also override name of 'struct option'.
43279
43280         same-inode: revert prior change; it is not yet ready
43281         * NEWS: Undo mention of this change.
43282         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43283         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43284         * lib/cycle-check.c (cycle_check): Likewise.
43285         * lib/same.c (same_name): Likewise.
43286         * lib/at-func2.c (at_func2): Likewise.
43287
43288 2009-09-23  Eric Blake  <ebb9@byu.net>
43289
43290         linkat: new module
43291         * modules/linkat: New file.
43292         * lib/at-func2.c (at_func2): Likewise.
43293         * lib/linkat.c (linkat): Likewise.
43294         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43295         * lib/openat-priv.h (at_func2): Add declaration.
43296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43297         * modules/unistd (Makefile.am): Substitute them.
43298         * lib/unistd.in.h (linkat): Declare it.
43299         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43300         * doc/posix-functions/linkat.texi (linkat): Likewise.
43301         * doc/posix-functions/link.texi (link): Tweak wording.
43302         * tests/test-link.c (main): Move guts...
43303         * tests/test-link.h (test_link): ...into new file.
43304         * modules/linkat-tests: New test.
43305         * tests/test-linkat.c: Likewise.
43306         * modules/link-tests (Files): Ship new file.
43307         (Depends-on): Add stdbool.
43308
43309         dirname: add library-safe mdir_name
43310         * lib/dirname.h (mdir_name): New prototype.
43311         * lib/dirname.c (dir_name): Move guts...
43312         (mdir_name): ...to new function that avoids xalloc_die.
43313
43314         fchdir: another mingw fix
43315         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43316         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43317         on mingw (where it has not yet been ported), and make it optional
43318         elsewhere.
43319         (_gl_register_fd): Use it.
43320
43321         same-inode: make SAME_INODE tri-state, to port to mingw
43322         * NEWS: Mention this change.
43323         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43324         st_ino always being 0.
43325         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43326         * lib/cycle-check.c (cycle_check): Likewise.
43327         * lib/same.c (same_name): Likewise.
43328
43329         lstat: avoid mingw compilation error
43330         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43331         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43332         lstat ourselves.
43333         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43334         was adequate.
43335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43336         the checks for lstat.
43337         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43338
43339         link: fix test failure on Solaris 9
43340         * lib/link.c (rpl_link): Don't assume link will catch bogus
43341         trailing slash on source.
43342
43343         test-symlinkat: enhance test
43344         * tests/test-readlink.c (main): Move guts...
43345         * tests/test-readlink.h (test_readlink): ...into new file.
43346         * tests/test-symlink.c (main): Move guts...
43347         * tests/test-symlink.h (test_symlink): ...into new file.
43348         * tests/test-symlinkat.c (main): Use new files for further
43349         coverage.
43350         (do_symlink, do_readlink): New helper functions.
43351         * modules/symlink-tests (Files): Ship new file.
43352         (Depends-on): Add stdbool.
43353         * modules/readlink-tests (Files): Ship new file.
43354         (Depends-on): Add stdbool.
43355         * modules/symlinkat-tests (Files): Use new files.
43356
43357 2009-09-23  Eric Blake  <ebb9@byu.net>
43358
43359         readlink: document portability issue with symlink length
43360         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43361         systems have bogus st_size on symlinks, and mention the
43362         areadlink-with-size module.
43363         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43364         * doc/posix-functions/readlink.texi (readlink): Mention the
43365         areadlink module, and ERANGE failure.
43366         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43367         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43368
43369         readlink: fix Solaris 9 bug with trailing slash
43370         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43371         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43372         * doc/posix-functions/readlink.texi (readlink): Document this.
43373         * modules/readlink-tests: New test.
43374         * tests/test-readlink.c: Likewise.
43375
43376         readlink: fix cygwin 1.5.x bug with return type
43377         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43378         * lib/unistd.in.h (readlink): Use ssize_t.
43379         * lib/readlink.c (readlink): Likewise.
43380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43381         * modules/unistd (Makefile.am): Substitute it.
43382         * lib/unistd.in.h (readlink): Declare replacement.
43383         * doc/posix-functions/readlink.texi (readlink): Document this.
43384
43385         symlink: use throughout gnulib
43386         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43387         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43388         symlink is not used.
43389         * modules/symlinkat (Depends-on): Add symlink.
43390         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43391         * modules/canonicalize-tests (Depends-on): Likewise.
43392         * modules/lstat-tests (Depends-on): Likewise.
43393         * modules/openat-tests (Depends-on): Likewise.
43394         * modules/remove-tests (Depends-on): Likewise.
43395         * modules/rmdir-tests (Depends-on): Likewise.
43396         * modules/unlink-tests (Depends-on): Likewise.
43397         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43398         * tests/test-canonicalize.c (symlink): Likewise.
43399         * tests/test-fstatat.c (symlink): Likewise.
43400         * tests/test-lstat.c (symlink): Likewise.
43401         * tests/test-remove.c (symlink): Likewise.
43402         * tests/test-rmdir.c (symlink): Likewise.
43403         * tests/test-unlink.c (symlink): Likewise.
43404         * tests/test-unlinkat.c (symlink): Likewise.
43405
43406         symlink: new module, for Solaris 9 bug
43407         * modules/symlink: New file.
43408         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43409         * lib/symlink.c: Likewise.
43410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43411         * modules/unistd (Makefile.am): Substitute them.
43412         * lib/unistd.in.h (symlink): Declare replacement.
43413         * MODULES.html.sh (File system functions): Mention it.
43414         * doc/posix-functions/symlink.texi (symlink): Likewise.
43415         * modules/symlink-tests: New test.
43416         * tests/test-symlink.c: Likewise.
43417
43418 2009-09-23  Bruno Haible  <bruno@clisp.org>
43419
43420         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43421         when needed.
43422         Test case: gnulib-tool --import --with-tests atexit inttypes.
43423         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43424
43425 2009-09-23  Bruno Haible  <bruno@clisp.org>
43426
43427         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43428         subcommand, not in a subshell.
43429
43430 2009-09-22  Eric Blake  <ebb9@byu.net>
43431
43432         unistd: sort replacement declarations
43433         * lib/unistd.in.h: Sort declarations.
43434
43435         open, openat: minor optimization
43436         * lib/open.c (open): If open succeeded, len is non-zero.
43437         * lib/openat.c (rpl_openat): Likewise.
43438
43439         link-follow: ensure correct result
43440         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43441         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43442         distinguish between possible failures.
43443
43444 2009-09-21  Eric Blake  <ebb9@byu.net>
43445
43446         fts: avoid compiler warning
43447         * lib/fts.c (dirent_inode_sort_may_be_useful)
43448         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43449
43450 2009-09-19  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/progreloc.c (canonicalize_file_name): New declaration.
43453
43454 2009-09-19  Eric Blake  <ebb9@byu.net>
43455
43456         link: fix quoting
43457         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43458
43459         openat: fix openat bugs on Solaris 9
43460         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43461         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43462         * modules/openat (Depends-on): Add open.
43463         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43464         * modules/fcntl-h (Makefile.am): Substitute it.
43465         * lib/fcntl.in.h (openat): Declare replacement.
43466         * doc/posix-functions/openat.texi (openat): Document this.
43467
43468         openat: move fstatat and unlinkat into correct files
43469         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43470         compiled.
43471         * lib/openat.c (fstatat, unlinkat): Move...
43472         * lib/fstatat.c (fstatat): ...into correct files.
43473         * lib/unlinkat.c (unlinkat): Likewise.
43474
43475         openat: fix unlinkat bugs on Solaris 9
43476         * lib/unlinkat.c (unlinkat): New file.
43477         * modules/openat (Depends-on): Add unlink.
43478         (Files): Distribute it.
43479         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43480         trailing slash behavior is broken.
43481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43482         * modules/unistd (Makefile.am): Substitute it.
43483         * lib/unistd.in.h (unlinkat): Declare replacement.
43484         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43485
43486         openat: fix fstatat bugs on Solaris 9
43487         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43488         stat.
43489         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43490
43491         test-unlinkat: enhance test, to expose Solaris 9 bug
43492         * tests/test-unlink.c (main): Factor guts...
43493         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43494         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43495         * tests/test-rmdir.c (main): Adjust caller.
43496         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43497         (unlinker): New helper function.
43498         (rmdirat): Enhance check.
43499         * modules/rmdir-tests (Depends-on): Add stdbool.
43500         * modules/unlink-tests (Depends-on): Likewise.
43501         (Files): Add test-unlink.h.
43502         * modules/openat-tests (Files): Likewise.
43503         (Depends-on): Add unlinkdir.
43504
43505         test-fstatat: new test, to expose Solaris 9 bugs
43506         * tests/test-stat.c (main): Factor guts...
43507         * tests/test-stat.h (test_stat_func): ...into new file.
43508         * tests/test-lstat.c (main): Factor guts...
43509         * tests/test-lstat.h (test_lstat_func): ...into new file.
43510         * tests/test-fstatat.c: New file.
43511         * modules/stat-tests (Files): Add test-stat.h.
43512         * modules/lstat-tests (Files): Add test-lstat.h.
43513         (Depends-on): Add stdbool.
43514         * modules/openat-tests (Depends-on): Add pathmax.
43515         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43516         (Makefile.am): Run new test.
43517
43518         remove: new module, for mingw and Solaris 9 bugs
43519         * modules/remove: New file.
43520         * lib/remove.c: Likewise.
43521         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43523         * modules/stdio (Makefile.am): Use them.
43524         * lib/stdio.in.h (remove): Declare replacement.
43525         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43526         * doc/posix-functions/remove.texi (remove): Likewise.
43527         * modules/remove-tests: New test.
43528         * tests/test-remove.c: Likewise.
43529
43530         unlink: new module, for Solaris 9 bug
43531         * modules/unlink: New file.
43532         * lib/unlink.c: Likewise.
43533         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43535         * modules/unistd (Makefile.am): Use them.
43536         * lib/unistd.in.h (stat): Declare replacement.
43537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43538         * doc/posix-functions/unlink.texi (unlink): Likewise.
43539         * modules/unlink-tests: New test.
43540         * tests/test-unlink.c: Likewise.
43541
43542         lstat: fix Solaris 9 bug
43543         * lib/lstat.c (lstat): Also check for trailing slash on
43544         non-symlink, non-directories.  Use stat module to simplify logic.
43545         * doc/posix-functions/lstat.texi (lstat): Document it.
43546         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43547         (configure.ac): Check for symlink.
43548         * tests/test-lstat.c (main): Add more tests.
43549
43550         stat: add as dependency to other modules
43551         * modules/chown (Depends-on): Add stat.
43552         * modules/euidaccess (Depends-on): Likewise.
43553         * modules/fchdir (Depends-on): Likewise.
43554         * modules/isdir (Depends-on): Likewise.
43555         * modules/link (Depends-on): Likewise.
43556         * modules/lstat (Depends-on): Likewise.
43557         * modules/mkdir-p (Depends-on): Likewise.
43558         * modules/modechange (Depends-on): Likewise.
43559         * modules/open (Depends-on): Likewise.
43560         * modules/readlink (Depends-on): Likewise.
43561         * modules/same (Depends-on): Likewise.
43562
43563         stat: fix Solaris 9 bug
43564         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43565         slash.
43566         * lib/stat.c (rpl_stat): Work around it.
43567         * doc/posix-functions/stat.texi (stat): Update documentation.
43568
43569         stat: new module, for mingw bug
43570         * modules/stat: New file.
43571         * lib/stat.c: Likewise.
43572         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43574         * modules/sys_stat (Makefile.am): Use them.
43575         * lib/sys_stat.in.h (stat): Declare replacement.
43576         * lib/openat.c (fstatat): Deal with lstat and stat being function
43577         macros.
43578         * modules/openat (Depends-on): Add inline.
43579         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43580         * doc/posix-functions/stat.texi (stat): Likewise.
43581         * modules/stat-tests: New test.
43582         * tests/test-stat.c: Likewise.
43583
43584 2009-09-19  Jim Meyering  <meyering@redhat.com>
43585
43586         syntax-check: detect unnecessary inclusion of canonicalize.h
43587         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43588
43589 2009-09-19  Eric Blake  <ebb9@byu.net>
43590
43591         canonicalize-lgpl: adjust clients to use correct header
43592         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43593         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43594         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43595         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43596         * lib/progreloc.c (includes): Likewise.
43597
43598 2009-09-19  Jim Meyering  <meyering@redhat.com>
43599
43600         test-posixtm.c: correct a comment
43601         * tests/test-posixtm.c: Correct first-line comment.
43602         Spotted by Eric Blake.
43603
43604 2009-09-16  Jim Meyering  <meyering@redhat.com>
43605
43606         posixtm-tests: make T const-correct; add a test case
43607         * tests/test-posixtm.c (T): Declare const.
43608         Add a test for -(2^31+1).
43609         Remove useless can-succeed-only-in-2002 test.
43610
43611         posixtm-tests: adjust the sole failing test
43612         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43613         expected output matches what mktime now produces.  Cross-checked via
43614         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43615
43616         posixtm: move #ifdef'd tests into a new module
43617         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43618         * tests/test-posixtm.c: ... this new file.
43619         * modules/posixtm-tests: New module.
43620
43621 2009-09-19  Eric Blake  <ebb9@byu.net>
43622
43623         openat: simplify use of at-func.c
43624         * lib/at-func.c (includes): Include prerequisites here, to
43625         simplify requirements on client files.
43626         * lib/openat-priv.h: Add double-inclusion guard.
43627         * lib/faccessat.c (includes): Simplify.
43628         * lib/fchmodat.c (includes): Likewise.
43629         * lib/fchownat.c (includes): Likewise.
43630         * lib/mkdirat.c (includes): Likewise.
43631         * lib/mkfifoat.c (includes): Likewise.
43632         * lib/symlinkat.c (includes): Likewise.
43633
43634         openat: allow return of fd 0
43635         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43636         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43637         unistd-safer.
43638         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43639         <fcntl.h>; this module does not leak fds.
43640         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43641         must be allowed to return 0, leaving openat_safer to add the
43642         safety.
43643         (openat_permissive): Avoid writing to just-opened fd 2 if
43644         restoring the current directory fails.
43645         * lib/openat-die.c (openat_restore_fail): Add comment.
43646         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43647         (save_cwd): Guarantee safe fd, but without use of open_safer.
43648         * tests/test-openat.c: New test.
43649         * modules/openat-tests (Files, Makefile.am): Distribute and build
43650         new file.
43651
43652         relocatable-prog-wrapper: fix build
43653         * modules/relocatable-prog-wrapper (Files): Update name of
43654         canonicalize m4 file, broken on 2009-09-17.
43655         Reported by emad hajjar <aleppos@hotmail.com>.
43656
43657 2009-09-19  Bruno Haible  <bruno@clisp.org>
43658
43659         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43660         * lib/safe-alloc.c: Likewise.
43661         Reported by Ian Beckwith <ianb@erislabs.net>.
43662
43663 2009-09-18  Bruno Haible  <bruno@clisp.org>
43664
43665         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43666         Reported by <erobles@sensacd.com.mx>.
43667
43668 2009-09-17  Eric Blake  <ebb9@byu.net>
43669
43670         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43671         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43672         slashes when checking if last component is missing.
43673         * tests/test-canonicalize.c (main): Test this.
43674
43675         canonicalize, canonicalize-lgpl: honor // if distinct from /
43676         * modules/canonicalize (Files): Add double-slash-root.m4.
43677         * modules/canonicalize-lgpl (Files): Likewise.
43678         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43679         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43680         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43681         fallback definition.
43682         (canonicalize_filename_mode): Use it to protect //.
43683         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43684         (__realpath): Likewise.
43685         * tests/test-canonicalize.c (main): Test this.
43686         * tests/test-canonicalize-lgpl.c (main): Likewise.
43687         * modules/canonicalize-tests (Depends-on): Add same-inode.
43688         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43689
43690         canonicalize-lgpl: fix glibc bug with trailing slash
43691         * m4/canonicalize-lgpl.m4: Move contents...
43692         * m4/canonicalize.m4: ...here.
43693         (gl_CANONICALIZE_LGPL): Factor realpath check...
43694         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43695         glibc 2.3.5 bug, fixed 2005-04-27.
43696         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43697         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43698         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43699         * modules/canonicalize-lgpl (Files): Manage file rename.
43700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43701         * modules/stdlib (Makefile.am): Substitute witness.
43702         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43703         is needed.
43704         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43705         replacement is required.
43706         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43707         * doc/glibc-functions/canonicalize_file_name.texi
43708         (canonicalize_file_name): Document this.
43709         * doc/posix-functions/realpath.texi (realpath): Likewise.
43710
43711         canonicalize-lgpl: reject non-directory with trailing slash
43712         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43713         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43714         catches failures in glibc 2.3.5.
43715         * tests/test-canonicalize.c (main): Likewise.
43716
43717         canonicalize-lgpl: use native realpath if it works
43718         * lib/canonicalize-lgpl.c (realpath): Guard with
43719         FUNC_REALPATH_WORKS.
43720         * lib/stdlib.in.h (realpath): Make declaration optional based on
43721         HAVE_REALPATH.
43722         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43723         native realpath works.
43724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43725         * modules/stdlib (Makefile.am): Substitute witness.
43726
43727         canonicalize, canonicalize-lgpl: use <stdlib.h>
43728         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43729         (Include): Mention <stdlib.h>.
43730         (configure.ac): Mention functions we provide.
43731         * modules/canonicalize (configure.ac): Likewise.
43732         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43733         realpath if canonicalize_file_name is missing.
43734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43735         * modules/stdlib (Makefile.am): Substitute witnesses.
43736         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43737         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43738         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43739         * NEWS: Document this.
43740         * doc/glibc-functions/canonicalize_file_name.texi
43741         (canonicalize_file_name): Likewise.
43742         * doc/posix-functions/realpath.texi (realpath): Likewise.
43743         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43744
43745         test-canonicalize: consolidate into single C program
43746         * tests/test-canonicalize.sh: Delete; move setup into...
43747         * tests/test-canonicalize.c (main): ...the program, making it
43748         easier to run in debugger.  Add some tests.
43749         * modules/canonicalize-tests (Files): Remove unused file.
43750         (Depends-on): Add progname.
43751         (configure.ac, Makefile.am): Simplify.
43752
43753         test-canonicalize-lgpl: consolidate into single C program
43754         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43755         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43756         easier to run in debugger.  Add some tests.
43757         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43758         (configure.ac, Makefile.am): Simplify.
43759
43760         canonicalize: avoid resolvepath
43761         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43762         unnecessary checks.
43763         * lib/canonicalize.c (includes): Simplify.
43764         (canonicalize_file_name): Drop resolvepath implementation.
43765         * modules/canonicalize (Depends-on): Drop filenamecat.
43766
43767         canonicalize: don't lose errno
43768         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43769         over calls to free.
43770
43771         canonicalize: simplify errno handling
43772         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43773         assignment.
43774
43775         canonicalize, canonicalize-lgpl: update module dependencies
43776         * modules/canonicalize (Depends-on): Add extensions, lstat,
43777         pathmax, stdlib.
43778         (Files): Drop pathmax.h.
43779         (configure.ac): Adjust macro name.
43780         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43781         lstat, stdlib, sys_stat.
43782         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43783         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43784         extensions.
43785         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43786         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43787         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43788         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43789         declaration, if available.
43790         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43791         we can rely on the readlink module.
43792         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43793         (includes): Use <unistd.h> unconditionally.
43794
43795 2009-09-17  Eric Blake  <ebb9@byu.net>
43796
43797         maint: make Include sections of modules consistent
43798         * modules/alloca: Use only header name; no need to list #include.
43799         * modules/alloca-opt: Likewise.
43800         * modules/arpa_inet: Likewise.
43801         * modules/canon-host: Likewise.
43802         * modules/configmake: Likewise.
43803         * modules/dirent: Likewise.
43804         * modules/eealloc: Likewise.
43805         * modules/environ: Likewise.
43806         * modules/fchdir: Likewise.
43807         * modules/fcntl: Likewise.
43808         * modules/fcntl-h: Likewise.
43809         * modules/gethrxtime: Likewise.
43810         * modules/gettime: Likewise.
43811         * modules/ignore-value: Likewise.
43812         * modules/inet_ntop: Likewise.
43813         * modules/inet_pton: Likewise.
43814         * modules/inttypes: Likewise.
43815         * modules/isnand-nolibm: Likewise.
43816         * modules/isnanf-nolibm: Likewise.
43817         * modules/mbchar: Likewise.
43818         * modules/mbfile: Likewise.
43819         * modules/mbiter: Likewise.
43820         * modules/mbuiter: Likewise.
43821         * modules/netdb: Likewise.
43822         * modules/netinet_in: Likewise.
43823         * modules/nproc: Likewise.
43824         * modules/pagealign_alloc: Likewise.
43825         * modules/poll: Likewise.
43826         * modules/printf-frexp: Likewise.
43827         * modules/pthread: Likewise.
43828         * modules/putenv: Likewise.
43829         * modules/random_r: Likewise.
43830         * modules/relocatable-prog: Likewise.
43831         * modules/search: Likewise.
43832         * modules/select: Likewise.
43833         * modules/selinux-h: Likewise.
43834         * modules/settime: Likewise.
43835         * modules/signal: Likewise.
43836         * modules/size_max: Likewise.
43837         * modules/socklen: Likewise.
43838         * modules/ssize_t: Likewise.
43839         * modules/stdarg: Likewise.
43840         * modules/stdbool: Likewise.
43841         * modules/stddef: Likewise.
43842         * modules/stdint: Likewise.
43843         * modules/stdio: Likewise.
43844         * modules/stdlib: Likewise.
43845         * modules/string: Likewise.
43846         * modules/strings: Likewise.
43847         * modules/sys_file: Likewise.
43848         * modules/sys_ioctl: Likewise.
43849         * modules/sys_select: Likewise.
43850         * modules/sys_socket: Likewise.
43851         * modules/sys_stat: Likewise.
43852         * modules/sys_time: Likewise.
43853         * modules/sys_times: Likewise.
43854         * modules/sys_utsname: Likewise.
43855         * modules/sys_wait: Likewise.
43856         * modules/sysexits: Likewise.
43857         * modules/time: Likewise.
43858         * modules/times: Likewise.
43859         * modules/tmpfile: Likewise.
43860         * modules/trim: Likewise.
43861         * modules/unistd: Likewise.
43862         * modules/wchar: Likewise.
43863         * modules/wctype: Likewise.
43864
43865 2009-09-17  Bruno Haible  <bruno@clisp.org>
43866
43867         Make getdate.y compile on QNX and NetBSD 5 / i386.
43868         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43869         TIME_T_FITS_IN_LONG_INT.
43870         * lib/getdate.y (long_time_t): New type.
43871         (relative_time): Change type of 'seconds' field to long_time_t.
43872         (get_date): Update types of local variables. Check against overflow
43873         during conversion from long_time_t to time_t.
43874         Reported by Matt Kraai <kraai@ftbfs.org>
43875         and Hasso Tepper <hasso@netbsd.org>.
43876
43877 2009-09-17  Bruno Haible  <bruno@clisp.org>
43878
43879         * modules/COPYING: Update copyright years.
43880         * modules/README: Likeiwse.
43881         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43882         Reported by Ian Beckwith <ianb@erislabs.net>.
43883
43884 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43885
43886         * users.txt: Update references for gnuit package.
43887
43888 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43889
43890         * m4/getdelim.m4: Fix typo in copyright line.
43891
43892 2009-09-17  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/atoll.c: Use the standard header with GPL copyright.
43895         * lib/argz.in.h: Likewise.
43896         * lib/glob.c: Likewise.
43897         * lib/glob-libc.h: Likewise.
43898         * lib/random_r.c: Likewise.
43899         * lib/siglist.h: Likewise.
43900         * lib/strsignal.c: Likewise.
43901         Reported by Ian Beckwith <ianb@erislabs.net>.
43902
43903 2009-09-17  Eric Blake  <ebb9@byu.net>
43904
43905         rmdir: ensure correct dependency order
43906         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43907
43908 2009-09-17  Bruno Haible  <bruno@clisp.org>
43909
43910         Disable assertion that fails on NetBSD 5 / i386.
43911         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43912         Reported by Sam Steingold <sds@gnu.org>
43913         and Hasso Tepper <hasso@netbsd.org>.
43914
43915 2009-09-16  Eric Blake  <ebb9@byu.net>
43916
43917         unlinkdir: port to mingw
43918         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43919         on which no one can unlink a directory.
43920
43921         stdlib: sort witness names
43922         * modules/stdlib (Makefile.am): Sort replacements.
43923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43924         * lib/stdlib.in.h: Likewise.
43925
43926         parse-duration-tests: avoid link failure
43927         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43928         LIBINTL.
43929         Reported by Tom G. Christensen.
43930
43931         openat-tests: ensure unlinkat behaves like rmdir
43932         * tests/test-rmdir.c (main): Factor guts...
43933         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43934         * modules/rmdir-tests (Files): Ship new file.
43935         * modules/openat-tests: New test.
43936         * tests/test-unlinkat.c: Likewise.
43937
43938         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43939         * modules/rmdir-errno (Status, Notice): Now obsolete.
43940
43941         rmdir: work around cygwin 1.5.x and mingw bugs
43942         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43943         * lib/rmdir.c (rmdir): Work around it.
43944         * modules/rmdir (Status, Notice): No longer obsolete.
43945         (Files): Add dos.m4.
43946         (Depends-on): Add unistd.
43947         (configure.ac): Set witnesses.
43948         (License): Relax to LGPLv2+.
43949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43950         * modules/unistd (Makefile.am): Substitute witnesses.
43951         * lib/unistd.in.h (rmdir): Declare replacement.
43952         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43953         * modules/rmdir-tests: New tests.
43954         * tests/test-rmdir.c: Likewise.
43955
43956 2009-09-15  Eric Blake  <ebb9@byu.net>
43957
43958         fchdir: improve use of replacement functions
43959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43962         REPLACE_CLOSEDIR.
43963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43964         * modules/sys_stat (Makefile.am): Substitute correct witness.
43965         * modules/dirent (Makefile.am): Likewise.
43966         * modules/unistd (Makefile.am): Likewise.
43967         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43968         * lib/unistd.in.h (dup): Likewise.
43969         * lib/sys_stat.in.h (fstat): Likewise.
43970
43971         maint: ignore gnulib-tool temp files
43972         * .gitignore: Ignore files created during gnulib-tool --test.
43973
43974 2009-09-13  Jim Meyering  <meyering@redhat.com>
43975
43976         posixtm: don't reject a time that specify "60" as the number of seconds
43977         * lib/posixtm.c (posixtime): The code to reject invalid dates
43978         would also reject a time specified with the .60 suffix.
43979         But POSIX allows that, in order to accommodate leap seconds.
43980         So don't reject it.
43981         (main): Adjust tests accordingly.
43982         * modules/posixtm (Depends-on): Add stpcpy.
43983
43984 2009-09-11  Jim Meyering  <meyering@redhat.com>
43985
43986         announce-gen: include [$release_type] in emitted Subject:
43987         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43988         e.g., [stable] in the emitted Subject: line.
43989
43990 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43991
43992         Remove obsolete macros from several modules.
43993         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43994         obsolete Autoconf macros with their modern counterparts.
43995         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43996         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43998         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43999         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44000         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44002         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44003         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44004         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44005         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44006         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44007         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44008         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44009         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44010         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44011         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44012         * m4/time_r.m4 (gl_TIME_R): Likewise.
44013         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44014         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44015         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44016
44017         Fix copyright header in build-aux scripts.
44018         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44019         recommendation.
44020         * build-aux/ncftpput-ftp: Likewise.
44021         * build-aux/update-copyright: Likewise.
44022
44023 2009-09-09  Eric Blake  <ebb9@byu.net>
44024
44025         test-link: allow Linux choice of errno
44026         * tests/test-link.c (main): Relax test for alternate error.
44027
44028         strndup: fix improper m4 caching
44029         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44030         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44031         (gl_PREREQ_STRNDUP): Delete.
44032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44033         * modules/string (Makefile.am): Substitute it.
44034         * lib/string.in.h (strndup): Modernize prototype.
44035
44036         getcwd: port to mingw
44037         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44038         different from the POSIX assumptions made throughout the getcwd
44039         module; fortunately, the mingw getcwd does not need replacement.
44040         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44041         * modules/getcwd-tests: New test.
44042         * tests/test-getcwd.c: Likewise.
44043
44044         link: fix platform bugs
44045         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44046         * lib/link.c (link): Work around them.  Fix related mingw bug.
44047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44048         * modules/unistd (Makefile.am): Substitute it.
44049         * lib/unistd.in.h (link): Declare replacement.
44050         * doc/posix-functions/link.texi (link): Document this.
44051         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44052
44053         test-link: consolidate into single C program, test more cases
44054         * tests/test-link.sh: Delete.
44055         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44056         at least Cygwin and Solaris.
44057         * modules/link-tests (Files): Remove unused file.
44058         (Depends-on): Add errno, sys_stat.
44059         (Makefile.am): Simplify.
44060
44061 2009-09-08  Bruno Haible  <bruno@clisp.org>
44062
44063         Work around towlower, towupper bug on mingw.
44064         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44065         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44066         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44067         * doc/posix-functions/towupper.texi: Likewise.
44068         Reported by Eric Blake.
44069
44070 2009-09-08  Jim Meyering  <meyering@redhat.com>
44071
44072         build: don't try to run autoheader if we don't use it
44073         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44074         is not used in configure.ac.
44075
44076 2009-09-08  Eric Blake  <ebb9@byu.net>
44077
44078         euidaccess: fix compilation error
44079         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44080
44081         rawmemchr: relax license
44082         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44083         okay.
44084         Reported by Jim Meyering.
44085
44086         mkfifoat: new module
44087         * modules/mkfifoat: New file.
44088         * lib/mkfifoat.c: Likewise.
44089         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44090         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44091         * modules/sys_stat (Makefile.am): Use them.
44092         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44093         * MODULES.html.sh (File system functions): Mention module.
44094         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44095         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44096         * modules/mkfifoat-tests: New test.
44097         * tests/test-mkfifoat.c: Likewise.
44098
44099         strchrnul: relax license
44100         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44101         okay.
44102         Reported by Jim Meyering.
44103
44104 2009-09-08  Eric Blake  <ebb9@byu.net>
44105
44106         fstatat: fix compilation on Solaris
44107         * lib/fstatat.c (includes): Add fcntl.h.
44108         Reported by Pádraig Brady.
44109
44110 2009-09-07  Eric Blake  <ebb9@byu.net>
44111
44112         rename: modernize replacement
44113         * modules/rename (Depends-on): Add stdio.
44114         (configure.ac): Declare witness.
44115         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44116         stdio take care of replacement.
44117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44118         * modules/stdio (Makefile.am): Substitute them.
44119         * lib/stdio.in.h (rename): Declare replacement.
44120         * lib/rename.c (includes): Allow cross-compilation to non-windows
44121         machines.
44122         * doc/posix-functions/rename.texi (rename): Improve
44123         documentation.
44124
44125         stdio: sort witness names
44126         * modules/stdio (Makefile.am): Sort replacements.
44127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44128         * lib/stdio.in.h: Likewise.
44129
44130         getcwd: minor cleanups
44131         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44132         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44133
44134         openat: provide more convenience names
44135         * modules/faccessat (configure.ac): Add C witness.
44136         * lib/unistd.in.h (readlinkat): Fix typo.
44137         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44138         convenience wrappers.
44139         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44140         wrappers in syntax checks.
44141
44142 2009-09-06  Eric Blake  <ebb9@byu.net>
44143
44144         doc: fix comments in recent patches
44145         * lib/faccessat.c: Mention correct function.
44146         * lib/fchmodat.c: Likewise.
44147         * lib/fchownat.c: Likewise.
44148         * lib/symlinkat.c: Likewise.
44149         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44150         constants.
44151
44152         faccessat, symlinkat: continue cleanup of previous patch
44153         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44154         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44155         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44157         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44158         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44159         set.
44160
44161 2009-09-06  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44164         (fstatat): Declare if GNULIB_FSTATAT is set.
44165         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44166         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44167         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44168         * modules/fcntl-h (Files): Remove m4/openat.m4.
44169         * modules/sys_stat (Files): Remove m4/openat.m4.
44170         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44171         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44172         * modules/unistd (Files): Remove m4/openat.m4.
44173         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44174         GNULIB_OPENAT.
44175         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44176         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44178         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44179         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44180         gl_OPENAT_DEFAULTS.
44181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44182         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44183         Don't require gl_OPENAT_DEFAULTS.
44184         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44185         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44186         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44187         (gl_OPENAT_DEFAULTS): Remove macro.
44188
44189 2009-09-06  Bruno Haible  <bruno@clisp.org>
44190
44191         * modules/openat (configure.ac): Remove unneeded witness.
44192
44193 2009-09-06  Bruno Haible  <bruno@clisp.org>
44194
44195         Set errno to ENOSYS when a function is entirely unsupported.
44196         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44197         EOPNOTSUPP.
44198         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44199         * modules/chown (Depends-on): Remove errno.
44200
44201 2009-09-06  Bruno Haible  <bruno@clisp.org>
44202
44203         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44204
44205 2009-09-06  Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44208
44209 2009-09-06  Ben Pfaff  <blp@gnu.org>
44210             Bruno Haible  <bruno@clisp.org>
44211
44212         Work around a glibc bug in strtok_r.
44213         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44214         Undefine if UNDEFINE_STRTOK_R is set.
44215         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44217         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44218         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44219         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44220         UNDEFINE_STRTOK_R.
44221         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44222
44223 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44224
44225         exclude: minor fix
44226         * lib/exclude.c: Include wctype.h
44227
44228 2009-09-06  Akim Demaille  <demaille@gostai.com>
44229
44230         bootstrap: improve error message
44231         * build-aux/bootstrap (find_tool): Upon failure, report the list
44232         of candidates.
44233         Honor the initial value of the envvar.
44234
44235 2009-09-05  Eric Blake  <ebb9@byu.net>
44236
44237         symlinkat: new module
44238         * modules/symlinkat: New file.
44239         * lib/symlinkat.c: Likewise.
44240         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44242         * modules/unistd (Makefile.am): Use them.
44243         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44244         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44245         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44246         * MODULES.html.sh (File system functions): Mention module.
44247         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44248         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44249         * modules/symlinkat-tests: New test.
44250         * tests/test-symlinkat.c: Likewise.
44251
44252         test-openat-safer: add more checks
44253         * tests/test-openat-safer.c (main): Check more code paths.
44254
44255 2009-09-05  Jim Meyering  <meyering@redhat.com>
44256
44257         syntax-check: detect unnecessary inclusion of openat.h
44258         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44259
44260 2009-09-05  Bruno Haible  <bruno@clisp.org>
44261
44262         Support towlower, towupper.
44263         * doc/posix-functions/towlower.texi: Mention module wctype.
44264         * doc/posix-functions/towupper.texi: Likewise.
44265         * lib/wctype.in.h (towlower, towupper): New functions.
44266         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44267         (ASSERT): New macro.
44268         (e): New variable.
44269         (main): Test also towlower, towupper. Test WEOF argument.
44270         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44271
44272 2009-09-05  Bruno Haible  <bruno@clisp.org>
44273
44274         Fix conversion behaviour when the input is invalid.
44275         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44276         mark occurring in first pass of indirect conversion.
44277         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44278         input.
44279         Found by clang's static analyzer.
44280
44281 2009-09-05  Bruno Haible  <bruno@clisp.org>
44282
44283         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44284         where direct conversion is possible.
44285
44286 2009-09-04  Eric Blake  <ebb9@byu.net>
44287
44288         openat: fail with ENOENT on empty name
44289         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44290         buffer.
44291
44292         link-follow: fix logic bug in prior patch
44293         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44294         reversed sense of yes and no in prior patch.  Avoid confusing
44295         compilation failure with desired semantics.
44296
44297         link-follow: accommodate mingw and cross-compilation
44298         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44299         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44300         cross-compilation results to -1, to make linkat easier to
44301         implement when cross-compiling.  Trivially support mingw.
44302         * modules/link-follow (configure.ac): Call new name.
44303         * NEWS: Mention this.
44304
44305 2009-09-03  Eric Blake  <ebb9@byu.net>
44306
44307         faccessat: compile replacement
44308         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44309         needed.
44310
44311         fts: fix compilation error
44312         * lib/fts.c (includes): Re-add "openat.h", for
44313         openat_needs_fchdir.
44314
44315         faccessat: new module
44316         * modules/faccessat: New file.
44317         * lib/faccessat.c: Likewise.
44318         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44320         * modules/unistd (Makefile.am): Use it.
44321         * lib/unistd.in.h (faccessat): Declare it.
44322         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44323         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44324         * MODULES.html.sh (File system functions): Mention it.
44325         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44326         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44327
44328         euidaccess: prefer POSIX over non-standard implementation
44329         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44330         * lib/euidaccess.c (euidaccess): Use it if available.
44331
44332         openat: make template easier to use
44333         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44334         AT_FUNC_F2 to be undefined.
44335         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44336         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44337         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44338         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44339         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44340         Likewise.
44341         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44342         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44343         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44344         Likewise.
44345
44346         openat: declare in POSIX headers
44347         * NEWS: Mention this.
44348         * modules/openat (configure.ac): Declare witnesses.
44349         (Depends-on): Add fcntl-h, sys_stat, unistd.
44350         (Include): Mention correct headers.
44351         * modules/fcntl-h (Depends-on): Add link-warning.
44352         (Files): Add openat.m4.
44353         (Makefile.am): Substitute witnesses.
44354         * modules/sys_stat (Files, Makefile.am): Likewise.
44355         * modules/unistd (Files, Makefile.am): Likewise.
44356         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44357         (gl_OPENAT_DEFAULTS): New macro.
44358         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44360         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44361         (SYS_STAT_H): Remove unused variable.
44362         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44363         * lib/fcntl--.h (includes): Remove unneeded header.
44364         * lib/openat-safer.c (includes): Likewise.
44365         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44366         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44367         appropriate headers.
44368         (__OPENAT_PREFIX): Delete.
44369         * lib/fcntl.in.h (openat): Provide declaration.
44370         (AT_FDCWD): Fix Solaris bug.
44371         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44372         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44373         * lib/fchmodat.c (includes):  Adjust to find declaration.
44374         * lib/fchownat.c (includes): Likewise.
44375         * lib/mkdirat.c (includes): Likewise.
44376         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44377         still visible.
44378
44379 2009-09-02  Eric Blake  <ebb9@byu.net>
44380
44381         errno: use consistently
44382         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44383         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44384         * lib/canonicalize.c (ELOOP): Likewise.
44385         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44386         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44387         * lib/lchown.c (EOPNOTSUPP): Likewise.
44388         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44389         * lib/savewd.c (ESTALE): Likewise.
44390         * lib/settime.c (ENOSYS): Likewise.
44391         * lib/utimens.c (ENOSYS): Likewise.
44392         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44393         * lib/chdir-safer.c (ELOOP): Likewise.
44394         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44395         * modules/c-stack (Depends-on): Add errno.
44396         * modules/canonicalize (Depends-on): Likewise.
44397         * modules/chdir-safer (Depends-on): Likewise.
44398         * modules/fdopendir (Depends-on): Likewise.
44399         * modules/inet_ntop (Depends-on): Likewise.
44400         * modules/inet_pton (Depends-on): Likewise.
44401         * modules/lchown (Depends-on): Likewise.
44402         * modules/openat (Depends-on): Likewise.
44403         * modules/savewd (Depends-on): Likewise.
44404         * modules/settime (Depends-on): Likewise.
44405         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44406
44407         fts: avoid leaking fds
44408         * modules/fts (Depends-on): Add cloexec.
44409         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44410         flag.
44411
44412         fts: make directory fds more robust
44413         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44414         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44415
44416         backupfile, chdir-long, fts, savedir: make safer
44417         * lib/backupfile.c (includes): Use "dirent--.h", since
44418         numbered_backup can write to stderr during readdir.
44419         * lib/savedir.c (includes): Likewise.
44420         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44421         emulation can write to stderr on failure.
44422         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44423         * lib/getcwd.c: Document why opendir_safer is unused.
44424         * lib/glob.c: Likewise.
44425         * lib/scandir.c: Likewise.
44426         * lib/openat-proc.c: Likewise, for open_safer.
44427         * modules/backupfile (Depends-on): Add dirent-safer.
44428         * modules/savedir (Depends-on): Likewise.
44429         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44430         * modules/chdir-long (Depends-on): Add openat-safer.
44431
44432         openat-safer: new module
44433         * modules/openat-safer: New file.
44434         * lib/openat-safer.c: Likewise.
44435         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44436         * lib/fcntl-safer.h (openat_safer): Declare.
44437         * lib/fcntl--.h (openat): Override.
44438         * MODULES.html.sh (File descriptor based I/O): Mention it.
44439         * lib/openat.h: Add double-inclusion guards.
44440         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44441         "fcntl--.h", so we can implement openat.
44442         * modules/openat-safer-tests: New test.
44443         * tests/test-openat-safer.c: New file.
44444
44445         dirent-safer: new module
44446         * modules/dirent-safer: New file.
44447         * lib/dirent--.h: Likewise.
44448         * lib/dirent-safer.h: Likewise.
44449         * lib/opendir-safer.c: Likewise.
44450         * m4/dirent-safer.m4: Likewise.
44451         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44452         * modules/dirent-safer-tests: New test.
44453         * tests/test-dirent-safer.c: New file.
44454         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44455
44456         fdopendir: optimize on mingw
44457         * lib/unistd.in.h (_gl_directory_name): New prototype.
44458         * lib/fchdir.c (_gl_directory_name): Implement it.
44459         (fchdir): Use it to simplify implementation.
44460         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44461         fchdir, when available, to avoid calling [f]chdir().
44462
44463         fdopendir: split into its own module
44464         * lib/openat.c (fdopendir): Move...
44465         * lib/fdopendir.c: ...into new file.
44466         * modules/fdopendir: New module.
44467         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44468         * modules/openat (Depends-on): Add fdopendir.
44469         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44470         fdopendir here.
44471         * modules/savedir (Depends-on): Only need fdopendir, not full
44472         openat.
44473         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44474         * lib/openat.h (fdopendir): Drop prototype.
44475         * lib/dirent.in.h (fdopendir): Provide prototype.
44476         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44477         * modules/dirent (Makefile.am): Substitute them.
44478         * MODULES.html.sh (File system functions): Mention it.
44479         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44480         * modules/fdopendir-tests: New file.
44481         * tests/test-fdopendir.c: Likewise.
44482
44483         fchdir: use more consistent macro convention
44484         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44485         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44486         REPLACE_FCHDIR, rather than relying on config.h macros.
44487         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44488         inside a single make-time REPLACE_FCHDIR block, rather than using
44489         the config.h FCHDIR_REPLACEMENT.
44490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44491         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44492         Manage fstat replacement.
44493         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44494         REPLACE_FCHDIR.
44495         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44496         (Makefile.am): Substitute REPLACE_FCHDIR.
44497         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44498         FCHDIR_REPLACEMENT.
44499         * lib/dup-safer.c (dup_safer): Likewise.
44500         * lib/dup2.c (rpl_dup2): Likewise.
44501         * lib/dup3.c (rpl_dup3): Likewise.
44502         * lib/open.c (rpl_open): Likewise.
44503
44504         fchdir: simplify error handling, and support dup3
44505         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44506         stdbool, malloc-posix, realloc-posix.
44507         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44508         (ensure_dirs_slot): Return false on allocation failure.
44509         (rpl_dup2): Delete.
44510         (_gl_register_dup): New function.
44511         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44512         (_gl_register_fd): Close fd on allocation failure.
44513         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44514         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44515         prototype.
44516         (rpl_dup2_fchdir): Delete prototype.
44517         * lib/open.c (open): Update caller.
44518         * lib/dup2.c (dup2): Track fchdir metadata.
44519         * lib/dup3.c (dup3): Likewise.
44520         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44522
44523 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44524
44525         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44526         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44527         don't pass arguments to AC_OUTPUT.
44528
44529 2009-09-02  Bruno Haible  <bruno@clisp.org>
44530
44531         * modules/mkdtemp (License): Relicense under LGPLv2+.
44532         Reported by Paolo Bonzini.
44533
44534 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44535
44536         Replace uses of obsolete autoconf macros in Jim's modules.
44537         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44538         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44539         can evoke a warning from autoconf when run with -Wobsolete
44540         enabled.  They were declared obsolete for good reasons (see
44541         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44542         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44543         should not continue using the deprecated macros.
44544         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44545         obsolete Autoconf macros with modern counterparts.
44546         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44547         * m4/dos.m4 (gl_AC_DOS): Likewise.
44548         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44550         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44551         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44552         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44553         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44554         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44555         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44556         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44557         Likewise.
44558         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44559         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44560         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44561         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44562         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44563         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44564
44565 2009-09-01  Eric Blake  <ebb9@byu.net>
44566
44567         fchdir: fix off-by-one bug in previous patch
44568         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44569         (_gl_unregister_fd): Delete useless if.
44570
44571 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44572
44573         maint.mk: sort the list of syntax-check rules
44574         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44575         easier to get a sense of progress when the rules are run sequentially
44576         and take a long time.
44577
44578 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44579
44580         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44581         * modules/netinet_in: Likewise.
44582         * modules/sys_file: Likewise.
44583         * modules/sys_ioctl: Likewise.
44584         * modules/sys_select: Likewise.
44585         * modules/sys_socket: Likewise.
44586         * modules/sys_stat: Likewise.
44587         * modules/sys_time: Likewise.
44588         * modules/sys_times: Likewise.
44589         * modules/sys_utsname: Likewise.
44590         * modules/sys_wait: Likewise.
44591
44592 2009-09-01  Jim Meyering  <meyering@redhat.com>
44593
44594         fts: help ensure that return values are not ignored
44595         * lib/fts_.h (__GNUC_PREREQ): Define.
44596         (__attribute_warn_unused_result__): Define.
44597         (fts_children, fts_close, fts_open, fts_read): Declare with
44598         __attribute_warn_unused_result__.
44599
44600         fts: fts_close now fails also when closing a dir file descriptor fails
44601         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44602         and propagate to caller, along with errno.
44603
44604         announce-gen: correct formatting in --help output
44605         * build-aux/announce-gen (usage): Move the one-line description in
44606         --help output "up", to where it belongs, just after Usage:.
44607
44608 2009-08-31  Eric Blake  <ebb9@byu.net>
44609
44610         fchdir: port to mingw
44611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44612         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44613         opened, then use a substitute.
44614         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44615         replacement.
44616         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44617         (_gl_register_fd): No need to check stat if open already filters
44618         all directories.
44619         (fchdir): Fix error condition to match POSIX.
44620         * modules/fchdir (Depends-on): Add sys_stat.
44621         * doc/posix-functions/open.texi (open): Document the limitation.
44622         * modules/fchdir-tests: New file.
44623         * tests/test-fchdir.c: Likewise.
44624
44625         canonicalize: allow cross-testing from cygwin to mingw
44626         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44627         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44628         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44629         Likewise.
44630         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44631         target does not support symlinks.
44632         * tests/test-canonicalize-lgpl.sh: Likewise.
44633
44634         chown: avoid compilation warning on mingw
44635         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44636         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44637         mingw.
44638         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44639         * modules/chown (Depends-on): Add errno.
44640
44641 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44642
44643         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44644         command.
44645
44646 2009-08-31  Jim Meyering  <meyering@redhat.com>
44647
44648         canonicalize: remove useless initialization
44649         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44650         initialization of local, "end".
44651
44652 2009-08-30  Bruno Haible  <bruno@clisp.org>
44653
44654         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44655         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44656         ENOSYS.
44657
44658 2009-08-30  Bruno Haible  <bruno@clisp.org>
44659
44660         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44661         /usr/xpg4/bin/tr when it exists.
44662         * tests/test-pipe-filter-gi1.sh: Likewise.
44663
44664 2009-08-30  Bruno Haible  <bruno@clisp.org>
44665
44666         Work around deficient /usr/bin/id program on Solaris.
44667         * tests/test-file-has-acl.sh (ID): New variable.
44668         * tests/test-set-mode-acl.sh (ID): Likewise.
44669         * tests/test-copy-acl.sh (ID): Likewise.
44670         * tests/test-copy-file.sh (ID): Likewise.
44671
44672 2009-08-30  Bruno Haible  <bruno@clisp.org>
44673
44674         New module 'xstriconveh'.
44675         * lib/xstriconveh.h: New file.
44676         * lib/xstriconveh.c: New file.
44677         * modules/xstriconveh: New file.
44678
44679 2009-08-30  Bruno Haible  <bruno@clisp.org>
44680
44681         Make it easier to use mem_cd_iconveh.
44682         * lib/striconveh.h (iconveh_t): New type.
44683         (iconveh_open, iconveh_close): New declarations.
44684         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44685         with a single 'const iconveh_t *' argument.
44686         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44687         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44688         with a single 'const iconveh_t *' argument.
44689         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44690         * tests/test-striconveh.c (main): Update.
44691         * NEWS: Mention the change.
44692
44693 2009-08-30  Bruno Haible  <bruno@clisp.org>
44694
44695         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44696         problem.
44697
44698 2009-08-30  Bruno Haible  <bruno@clisp.org>
44699
44700         Work around iconv_open problem on Solaris.
44701         * lib/iconv_open-solaris.gperf: New file.
44702         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44704         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44705         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44706         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44707         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44708
44709 2009-08-29  Jim Meyering  <meyering@redhat.com>
44710
44711         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44712         * top/maint.mk (cvs-check): Remove target; it was just an alias
44713         to the better-named vc-diff-check.
44714         (maintainer-distcheck): Remove rule.  It was used only from
44715         the (alpha/beta/major) target, and all of its commands but one
44716         were coreutils-specific.
44717         (vc-dist): Remove rule.
44718         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44719         Run vc-diff-check, not vc-dist.
44720         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44721
44722 2009-08-27  Bruno Haible  <bruno@clisp.org>
44723
44724         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44725         of 0.
44726
44727 2009-08-27  Bruno Haible  <bruno@clisp.org>
44728
44729         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44730         compilers.
44731         * doc/func.texi: Document the SunPRO C bug.
44732
44733 2009-08-27  Bruno Haible  <bruno@clisp.org>
44734
44735         Fix link error on Solaris.
44736         * tests/test-parse-duration.c (xstrdup): Remove function.
44737
44738 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44739
44740         ignore-value: handle pointer types, too
44741         * lib/ignore-value.h (__attribute__): Remove definition.
44742         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44743         of a more concise and more-often effective "(void) i" statement.
44744         (ignore_ptr): New function to suppress warnings from functions that
44745         return pointers, and to make it explicit that one function doesn't
44746         handle all cases.
44747
44748 2009-08-25  Bruno Haible  <bruno@clisp.org>
44749
44750         dup2: work around a Linux bug.
44751         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44752         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44753         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44754         Reported by Simon Josefsson.
44755
44756 2009-08-25  Jim Meyering  <meyering@redhat.com>
44757
44758         libguestfs uses gnulib
44759         * users.txt: Add libguestfs.
44760
44761 2009-08-24  Eric Blake  <ebb9@byu.net>
44762
44763         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44764         * lib/pipe2.c (includes): Add binary-io.h.
44765         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44766
44767 2009-08-24  Bruno Haible  <bruno@clisp.org>
44768
44769         Tolerate declared but missing accept4 syscall.
44770         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44771         available.
44772         * lib/sys_socket.in.h (accept4): If the function is already present,
44773         override it.
44774         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44775         * modules/accept4 (Makefile.am): Compile accept4.c always.
44776         Reported by Paolo Bonzini and Eric Blake.
44777
44778 2009-08-23  Bruno Haible  <bruno@clisp.org>
44779
44780         New module 'accept4'.
44781         * lib/sys_socket.in.h (accept4): New declaration.
44782         * lib/accept4.c: New file.
44783         * m4/accept4.m4: New file.
44784         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44785         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44786         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44787         HAVE_ACCEPT4.
44788         * modules/accept4: New file.
44789         * doc/glibc-functions/accept4.texi: Mention the new module.
44790
44791 2009-08-24  Jim Meyering  <meyering@redhat.com>
44792
44793         progname: also set global program_invocation_name, when possible
44794         Before this change, a libtool-enabled program that calls glibc's
44795         error function would report the program name as
44796         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44797         * modules/progname (configure.ac): Check for a declaration of
44798         program_invocation_name.
44799         * lib/progname.c:  Include <errno.h>.
44800         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44801         Set program_invocation_name.
44802
44803 2009-08-23  Bruno Haible  <bruno@clisp.org>
44804
44805         * lib/dup3.c: Include <string.h>.
44806
44807 2009-08-23  Bruno Haible  <bruno@clisp.org>
44808
44809         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44810         * lib/pipe2.c (pipe2): Likewise.
44811         Suggested by Eric Blake.
44812
44813 2009-08-23  Bruno Haible  <bruno@clisp.org>
44814
44815         Tolerate declared but missing dup3 syscall.
44816         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44817         * lib/unistd.in.h (dup3): If the function is already present,
44818         override it.
44819         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44820         * modules/dup3 (Makefile.am): Compile dup3.c always.
44821         Reported by Paolo Bonzini.
44822
44823 2009-08-23  Bruno Haible  <bruno@clisp.org>
44824
44825         Tolerate declared but missing pipe2 syscall.
44826         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44827         available.
44828         * lib/unistd.in.h (pipe2): If the function is already present,
44829         override it.
44830         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44831         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44832         Reported by Paolo Bonzini.
44833
44834 2009-08-23  Bruno Haible  <bruno@clisp.org>
44835
44836         * lib/pipe2.c (pipe2): Move #ifs inside function.
44837
44838 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44839
44840         quotearg: document limitations of quote_these_too
44841         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44842         those limitations are created.
44843         * lib/quotearg.h (set_char_quoting): Document that digits and
44844         letters that are special after backslash are not permitted.
44845         (quotearg_char): Cross-reference set_char_quoting documentation.
44846
44847 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44848
44849         quotearg: implement custom_quoting_style
44850         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44851         right_quote fields.
44852         (set_custom_quoting): New public function.
44853         (quotearg_buffer_restyled): Add left_quote and right_quote
44854         arguments, handle them very much like locale quoting, and update
44855         all uses.
44856         (quotearg_n_custom): New public function.
44857         (quotearg_n_custom_mem): New public function.
44858         (quotearg_custom): New public function.
44859         (quotearg_custom_mem): New public function.
44860         * lib/quotearg.h: Prototype and document new public functions.
44861         (enum quoting_style): For escape_quoting_style and
44862         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44863         ignored even though they're otherwise like c_quoting_style.
44864         Add custom_quoting_style member and document with comparison to
44865         clocale_quoting_style.
44866         * tests/test-quotearg.c (custom_quotes): New array.
44867         (custom_results): New array.
44868         (main): Extend to test custom quoting.
44869
44870 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44871
44872         quotearg: fix right quote escaping when it's in quote_these_too
44873         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44874         quote, be sure to prepend only one backslash.
44875         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44876         (main): Test it.
44877
44878 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44879
44880         quotearg-tests: test escaping of embedded locale quotes
44881         * tests/test-quotearg.c (struct result_strings): Add member for
44882         new input.
44883         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44884         (inputs): Add new input.
44885         (results_g): Add expected results.
44886         (flag_results): Likewise.
44887         (locale_results): Likewise.
44888         (compare_strings): Check those.
44889
44890 2009-08-23  Bruno Haible  <bruno@clisp.org>
44891
44892         Tests for module 'dup3'.
44893         * modules/dup3-tests: New file.
44894         * tests/test-dup3.c: New file.
44895
44896         New module 'dup3'.
44897         * lib/unistd.in.h (dup3): New declaration.
44898         * lib/dup3.c: New file.
44899         * m4/dup3.m4: New file.
44900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44901         HAVE_DUP3.
44902         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44903         * modules/dup3: New file.
44904         * doc/glibc-functions/dup3.texi: Mention the new module.
44905
44906 2009-08-23  Bruno Haible  <bruno@clisp.org>
44907
44908         Tweak the dup2 test.
44909         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44910         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44911         the test file is still empty. Fix argument order of lseek.
44912
44913 2009-08-23  Bruno Haible  <bruno@clisp.org>
44914
44915         Avoid test link errors when the modules getopt-gnu, gettext are used.
44916         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44918
44919 2009-08-23  Bruno Haible  <bruno@clisp.org>
44920
44921         Fix getdtablesize() on mingw.
44922         * lib/getdtablesize.c (getdtablesize): Implement differently.
44923         * lib/unistd.in.h (getdtablesize): Improve comment.
44924
44925 2009-08-23  Bruno Haible  <bruno@clisp.org>
44926
44927         New module 'mkostemp'.
44928         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44929         * lib/stdlib.in.h (mksotemp): New declaration.
44930         * lib/mkostemp.c: New file, from glibc with modifications.
44931         * lib/tempname.h (GT_FILE): Remove outdated comment.
44932         (gen_tempname): Add flags argument.
44933         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44934         (__GT_FILE): Map to 1.
44935         (small_open, large_open): Remove macros.
44936         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44937         * lib/mkstemp.c (mkstemp): Update.
44938         * lib/mkdtemp.c (mkdtemp): Likewise.
44939         * m4/mkostemp.m4: New file.
44940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44941         HAVE_MKOSTEMP.
44942         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44943         HAVE_MKOSTEMP.
44944         * modules/mkostemp: New file, based on modules/mkstemp.
44945         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44946         * NEWS: Mention the change.
44947
44948 2009-08-23  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44951         Reported by Eric Blake.
44952
44953 2009-08-23  Bruno Haible  <bruno@clisp.org>
44954
44955         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44956         Reported by Eric Blake.
44957
44958 2009-08-23  Bruno Haible  <bruno@clisp.org>
44959
44960         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44961         * modules/pipe2 (Depends-on): Likewise.
44962
44963 2009-08-23  Eric Blake  <ebb9@byu.net>
44964
44965         fcntl-h: add O_TTY_INIT support
44966         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44967         * tests/test-fcntl-h.c (o): Test it.
44968         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44969
44970         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44971         * modules/fcntl: Move <fcntl.h> header replacement...
44972         * modules/fcntl-h: ...to new name, so as not to collide with
44973         like-named function.
44974         * tests/test-fcntl.c: Rename...
44975         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44976         * modules/fcntl-tests: Rename...
44977         * modules/fcntl-h-tests: ...to this.  Update test file name.
44978         * modules/chdir-long (Depends-on): Update clients.
44979         * modules/chdir-safer (Depends-on): Likewise.
44980         * modules/fcntl-safer (Depends-on): Likewise.
44981         * modules/fts (Depends-on): Likewise.
44982         * modules/mkancesdirs (Depends-on): Likewise.
44983         * modules/mkdir-p (Depends-on): Likewise.
44984         * modules/open (Depends-on): Likewise.
44985         * modules/savewd (Depends-on): Likewise.
44986         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44987         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44988
44989 2009-08-22  Bruno Haible  <bruno@clisp.org>
44990
44991         * modules/binary-io (License): Relicense under LGPL.
44992         * modules/pipe2 (License): Likewise.
44993
44994 2009-08-22  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44997         return value.
44998         * lib/pipe-filter-gi.c (filter_init): Likewise.
44999         Reported by Eric Blake.
45000
45001 2009-08-22  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45004         * modules/pipe (Depends-on): Add pipe2.
45005
45006 2009-08-22  Bruno Haible  <bruno@clisp.org>
45007
45008         Tests for module 'pipe2'.
45009         * modules/pipe2-tests: New file.
45010         * tests/test-pipe2.c: New file.
45011
45012         New module 'pipe2'.
45013         * lib/unistd.in.h (pipe2): New declaration.
45014         * lib/pipe2.c: New file.
45015         * m4/pipe2.m4: New file.
45016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45017         HAVE_PIPE2.
45018         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45019         * modules/pipe2: New file.
45020         * doc/glibc-functions/pipe2.texi: Mention the new module.
45021
45022 2009-08-22  Bruno Haible  <bruno@clisp.org>
45023
45024         Reference some new glibc functions.
45025         * doc/glibc-functions/accept4.texi: New file.
45026         * doc/glibc-functions/dup3.texi: New file.
45027         * doc/glibc-functions/mkostemp.texi: New file.
45028         * doc/glibc-functions/pipe2.texi: New file.
45029         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45030         (Glibc sys/socket.h): Refer to accept4.
45031         (Glibc unistd.h): Refer to dup3, pipe2.
45032         Reported by Eric Blake.
45033
45034 2009-08-22  Jim Meyering  <meyering@redhat.com>
45035             Bruno Haible  <bruno@clisp.org>
45036
45037         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45038         This makes it so packages using automake-1.11's silent-rules option
45039         can print e.g., a single "GEN    configmake.h" line, rather than
45040         the 30+ statements that perform the job.  If you want to see the
45041         actual commands, you can still run "make V=1".
45042         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45043         so that make output is abbreviated when those variables are defined
45044         appropriately.
45045         * modules/argz: Likewise.
45046         * modules/arpa_inet: Likewise.
45047         * modules/byteswap: Likewise.
45048         * modules/configmake: Likewise.
45049         * modules/dirent: Likewise.
45050         * modules/errno: Likewise.
45051         * modules/fcntl: Likewise.
45052         * modules/float: Likewise.
45053         * modules/fnmatch: Likewise.
45054         * modules/getopt-posix: Likewise.
45055         * modules/glob: Likewise.
45056         * modules/iconv_open: Likewise.
45057         * modules/inttypes: Likewise.
45058         * modules/localcharset: Likewise.
45059         * modules/locale: Likewise.
45060         * modules/math: Likewise.
45061         * modules/netdb: Likewise.
45062         * modules/netinet_in: Likewise.
45063         * modules/poll: Likewise.
45064         * modules/posix_spawnp-tests: Likewise.
45065         * modules/sched: Likewise.
45066         * modules/search: Likewise.
45067         * modules/selinux-h: Likewise.
45068         * modules/signal: Likewise.
45069         * modules/spawn: Likewise.
45070         * modules/stdarg: Likewise.
45071         * modules/stdbool: Likewise.
45072         * modules/stddef: Likewise.
45073         * modules/stdint: Likewise.
45074         * modules/stdio: Likewise.
45075         * modules/stdlib: Likewise.
45076         * modules/string: Likewise.
45077         * modules/strings: Likewise.
45078         * modules/sys_file: Likewise.
45079         * modules/sys_ioctl: Likewise.
45080         * modules/sys_select: Likewise.
45081         * modules/sys_socket: Likewise.
45082         * modules/sys_stat: Likewise.
45083         * modules/sys_time: Likewise.
45084         * modules/sys_times: Likewise.
45085         * modules/sys_utsname: Likewise.
45086         * modules/sys_wait: Likewise.
45087         * modules/sysexits: Likewise.
45088         * modules/time: Likewise.
45089         * modules/unistd: Likewise.
45090         * modules/wchar: Likewise.
45091         * modules/wctype: Likewise.
45092
45093 2009-08-22  Jim Meyering  <meyering@redhat.com>
45094
45095         announce-gen: detect write failure
45096         * build-aux/announce-gen: Add Coda at end.
45097         Remove equivalent-but-more-verbose block at top.
45098
45099 2009-08-19  Akim Demaille  <demaille@gostai.com>
45100
45101         bootstrap: --help to stdout.
45102         * bootstrap (usage): Don't send --help to stderr.
45103         Use a here doc instead of a long string.
45104
45105 2009-08-21  Eric Blake  <ebb9@byu.net>
45106
45107         test-popen-safer: split from test-popen
45108         * tests/test-popen.c (main): Move...
45109         * tests/test-popen.h: ...into new file.
45110         * tests/test-popen-safer2.c: New file.
45111         * modules/popen-tests (Files): Add test-popen.h.
45112         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45113         Suggested by Bruno Haible.
45114
45115         test-fcntl-safer: split from test-open
45116         * tests/test-open.c (main): Move...
45117         * tests/test-open.h: ...into new file.
45118         * tests/test-fcntl-safer.c: New file.
45119         * modules/open-tests (Files): Add test-open.h.
45120         * modules/fcntl-safer-tests: New file.
45121         Suggested by Bruno Haible.
45122
45123         test-fopen-safer: split from test-fopen
45124         * tests/test-fopen.c (main): Move...
45125         * tests/test-fopen.h: ...into new file.
45126         * tests/test-fopen-safer.c: New file.
45127         * modules/fopen-tests (Files): Add test-fopen.h.
45128         * modules/fopen-safer-tests: New file.
45129         Suggested by Bruno Haible.
45130
45131 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45132
45133         popen-safer: test O_CLOEXEC at run-time.
45134         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45135
45136 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45137
45138         fcntl: move more flags to the header
45139         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45140         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45141         * lib/fcntl.in.h: Do both things here.
45142
45143 2009-08-21  Jim Meyering  <meyering@redhat.com>
45144
45145         consistently remove $@-t before redirecting to it
45146         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45147         * modules/alloca-opt: Likewise.
45148         * modules/byteswap: Likewise.
45149         * modules/fnmatch: Likewise.
45150         * modules/getopt-posix: Likewise.
45151         * modules/glob: Likewise.
45152         * modules/poll: Likewise.
45153         * modules/posix_spawnp-tests: Likewise.
45154         * modules/sys_socket: Likewise.
45155         * modules/sysexits: Likewise.
45156
45157 2009-08-21  Eric Blake  <ebb9@byu.net>
45158
45159         popen: simplify access to original popen
45160         * lib/popen.c (rpl_popen): No need to worry about popen being a
45161         macro.
45162         Reported by Bruno Haible.
45163
45164 2009-08-20  Eric Blake  <ebb9@byu.net>
45165
45166         build: avoid some compiler warnings
45167         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45168         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45169         type.
45170         (new_exclude_segment, excluded_file_pattern_p)
45171         (excluded_file_name_p): Reduce scope.
45172         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45173         old-style declaration.
45174
45175 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45176
45177         * tests/test-exclude1.sh: Handle Windows EOL.
45178         * tests/test-exclude2.sh: Likewise.
45179         * tests/test-exclude3.sh: Likewise.
45180         * tests/test-exclude4.sh: Likewise.
45181         * tests/test-exclude5.sh: Likewise.
45182         * tests/test-exclude6.sh: Likewise.
45183         * tests/test-exclude7.sh: Likewise.
45184
45185 2009-08-19  Akim Demaille  <demaille@gostai.com>
45186
45187         bootstrap: find sha1sum when named gsha1sum.
45188         * bootstrap (find_tool): New.
45189         ($SHA1SUM): New.
45190         Use it.
45191
45192 2009-08-20  Jim Meyering  <meyering@redhat.com>
45193
45194         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45195         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45196         expression that converts "." in a file name to "\." in the resulting
45197         regexp.  Start with a dummy statement, so that prior shell variable
45198         definitions are expanded portably.  Reported by Simon Josefsson.
45199
45200 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45201
45202         Fix polling for writeability of a screen buffer.
45203         * lib/poll.c: Distinguish input and screen buffers for the
45204         Win32 implementation.
45205         * lib/select.c: Likewise.
45206
45207 2009-08-19  Eric Blake  <ebb9@byu.net>
45208
45209         popen-safer: prevent popen from clobbering std descriptors
45210         * modules/popen-safer: New file.
45211         * lib/popen-safer.c: Likewise.
45212         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45213         * lib/stdio--.h (popen): Provide override.
45214         * lib/stdio-safer.h (popen_safer): Provide declaration.
45215         * tests/test-popen.c (includes): Partially test this.
45216         * modules/popen-safer-tests: New file, for more tests.
45217         * tests/test-popen-safer.c: Likewise.
45218         * MODULES.html.sh (file stream based Input/Output): Mention it.
45219
45220         tests: test some of the *-safer modules
45221         * modules/fopen-safer (Depends-on): Add fopen.
45222         * modules/fcntl-safer (Depends-on): Add fcntl.
45223         * modules/stdlib-safer (Depends-on): Add stdlib.
45224         (configure.ac): Set indicator.
45225         * modules/unistd-safer (configure.ac): Likewise.
45226         * modules/tmpfile-safer (configure.ac): Likewise.
45227         (Depends-on): Add tmpfile.
45228         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45229         active.
45230         * tests/test-fopen.c (includes): Test safer versions when they are
45231         in use.
45232         * tests/test-open.c (includes): Likewise.
45233
45234         popen: fix cygwin 1.5 bug when stdin closed
45235         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45236         * modules/popen: New file.
45237         * modules/popen-tests: Likewise.
45238         * tests/test-popen.c: Likewise.
45239         * m4/popen.m4: Likewise.
45240         * lib/popen.c: Likewise.
45241         * lib/stdio.in.h (popen): New declaration.
45242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45243         * modules/stdio (Makefile.am): Likewise.
45244         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45245
45246 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45247
45248         maint.mk: give full control over update-copyright exclusions
45249         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45250         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45251         (update-copyright): Don't force inclusion of top-level
45252         ChangeLog.  Don't force exclusion of all COPYING files, but make
45253         them the default exclusion instead.
45254
45255 2009-08-16  Bruno Haible  <bruno@clisp.org>
45256
45257         Fix test failures on Solaris 10.
45258         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45259         tests when Solaris iconv() is used.
45260         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45261         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45262         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45263         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45264         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45265
45266 2009-08-16  Bruno Haible  <bruno@clisp.org>
45267
45268         Fix test failures on Solaris 10.
45269         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45270         'tr' program and pass it as first argument.
45271         * tests/test-pipe-filter-gi1.sh: Likewise.
45272         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45273         program as first argument.
45274         * tests/test-pipe-filter-gi1.c (main): Likewise.
45275
45276 2009-08-16  Eric Blake  <ebb9@byu.net>
45277
45278         fpurge: fix previous commits
45279         * modules/fpurge (Makefile.am): Make replacement conditional,
45280         partially reverting 2007-04-29 change; missed in previous
45281         attempt.
45282         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45283         is missing.
45284
45285 2009-08-16  Bruno Haible  <bruno@clisp.org>
45286
45287         Clarify fpurge's effect on the file position.
45288         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45289         * tests/test-fpurge.c (main): Make a second pass for checking the file
45290         position.
45291
45292 2009-08-16  Bruno Haible  <bruno@clisp.org>
45293
45294         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45295         declaration of fpurge is missing.
45296         * tests/test-fpurge.c (main): Check that the file has not more contents
45297         than expected. Close the file before removing it.
45298
45299 2009-08-15  Eric Blake  <ebb9@byu.net>
45300
45301         fpurge: don't wrap working cygwin implementation
45302         * lib/fpurge.c (fpurge): Fix comment typo.
45303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45304         1.7 to avoid replacement.
45305         * tests/test-fpurge.c (main): Enhance test.
45306
45307 2009-08-15  Eric Blake  <ebb9@byu.net>
45308         and Jim Meyering  <meyering@redhat.com>
45309
45310         test-update-copyright: skip if perl is insufficient
45311         * tests/test-update-copyright.sh: Failure to run maintainer tool
45312         should not cause testsuite failure on cygwin 1.5.
45313
45314 2009-08-14  Eric Blake  <ebb9@byu.net>
45315
45316         doc: mention more functions added in cygwin 1.7.0
45317         * doc/posix-headers/limits.texi (limits.h): Update for recent
45318         cygwin additions.
45319         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45320         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45321         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45322         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45323         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45324
45325 2009-08-14  Eric Blake  <ebb9@byu.net>
45326
45327         maint.mk: simplify update-copyright rule
45328         * top/maint.mk (update-copyright-local): Delete, and document how
45329         to do it in cfg.mk instead.
45330         (update-copyright-exclude-regexp): Delete, and document how to do
45331         it in .x-update-copyright instead.
45332         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45333         exclude ChangeLog.
45334
45335 2009-08-14  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45338
45339 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45340
45341         maint.mk: support update-copyright-env
45342         * top/maint.mk (update-copyright-env): Define place-holder.
45343         (update-copyright): Expand $(update-copyright-env) before
45344         invoking update-copyright.
45345
45346 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45347
45348         update-copyright: implement forced reformatting
45349         * build-aux/update-copyright: Implement and document
45350         UPDATE_COPYRIGHT_FORCE.
45351         * tests/test-update-copyright.sh: Test it.
45352
45353 2009-08-14  Eric Blake  <ebb9@byu.net>
45354         and Bruno Haible  <bruno@clisp.org>
45355
45356         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45357         * tests/test-locale.c: Revert previous patch related to NULL.
45358         * tests/test-stdio.c: Likewise.
45359         * tests/test-stdlib.c: Likewise.
45360         * tests/test-string.c: Likewise.
45361         * tests/test-unistd.c: Likewise.
45362         * modules/time-tests (Depends-on): Add verify.
45363         * modules/wchar-tests (Depends-on): Likewise.
45364         * tests/test-time.c: Test for NULL compliance.
45365         * tests/test-wchar.c: Likewise.
45366         * modules/locale (Depends-on): Add stddef.
45367         * modules/stdio (Depends-on): Likewise.
45368         * modules/stdlib (Depends-on): Likewise.
45369         * modules/string (Depends-on): Likewise.
45370         * modules/time (Depends-on): Likewise.
45371         * modules/unistd (Depends-on): Likewise.
45372         * modules/wchar (Depends-on): Likewise.
45373         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45374         * lib/stdlib.in.h (includes): Likewise.
45375         * lib/string.in.h (includes): Likewise.
45376         * lib/time.in.h (includes): Likewise.
45377         * lib/unistd.in.h (includes): Likewise.
45378         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45379         replaced.
45380         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45381         * m4/stddef_h.m4: New file.
45382         * modules/stddef: Likewise.
45383         * lib/stddef.in.h: Likewise.
45384         * modules/stddef-tests: Likewise.
45385         * tests/test-stddef.c: Likewise.
45386         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45387         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45388         * doc/posix-headers/locale.texi (locale.h): Likewise.
45389         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45390         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45391         * doc/posix-headers/string.texi (string.h): Likewise.
45392         * doc/posix-headers/time.texi (time.h): Likewise.
45393         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45394         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45395
45396 2009-08-14  Eric Blake  <ebb9@byu.net>
45397
45398         doc: improve git diff of texinfo files
45399         * .gitattributes: Add rule for *.texi files, with hint on how to
45400         use it.
45401         Copied from m4, and based on a report by Bruno Haible.
45402
45403 2009-08-14  Bruno Haible  <bruno@clisp.org>
45404
45405         Disable multithread support by default on Cygwin 1.5.x for real.
45406         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45407
45408 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45409
45410         update-copyright: much ado about intervals
45411         * build-aux/update-copyright: Implement and document
45412         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45413         of copyright year intervals.
45414         Also, document UPDATE_COPYRIGHT_YEAR.
45415         * tests/test-update-copyright.sh: Test it.
45416
45417         update-copyright: convert 2-digit to 4-digit years
45418         * build-aux/update-copyright: Implement and document.
45419         * tests/test-update-copyright.sh: Update.
45420
45421 2009-08-14  Jim Meyering  <meyering@redhat.com>
45422
45423         test-exclude: avoid coreutils "make check" failure
45424         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45425         just as in test-argmatch.c.
45426
45427 2009-08-13  Eric Blake  <ebb9@byu.net>
45428
45429         test-dup2: fix bad assumption
45430         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45431         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45432
45433         test-version-etc: fix CRLF portability issue
45434         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45435         recognize \r.
45436         * tests/test-argp-version-etc-1.sh: Likewise.
45437
45438         getopt: update client modules
45439         * modules/argp (Depends-on): Use getopt-gnu.
45440         * modules/git-merge-changelog (Depends-on): Likewise.
45441         * modules/long-options (Depends-on): Likewise.
45442         * modules/xstrtol (Depends-on): Likewise.
45443
45444 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45445
45446         * tests/test-version-etc.sh: Don't fail on different
45447         project/version.  Don't fail on CRLF differences.  Rewrite to use
45448         multiple -e instead of multiple sed forks, suggested by Eric Blake
45449         <ebb9@byu.net>.
45450         * tests/test-argp-version-etc-1.sh: Likewise.
45451
45452 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45453
45454         * tests/test-version-etc.sh: Don't fail on different
45455         project/version.
45456
45457 2009-08-12  Bruno Haible  <bruno@clisp.org>
45458
45459         Tests for modules 'getopt-posix', 'getopt-gnu'.
45460         * modules/getopt-posix-tests: New file.
45461         * tests/test-getopt.c: New file.
45462         * tests/test-getopt.h: New file.
45463         * tests/test-getopt_long.h: New file.
45464
45465         New modules 'getopt-posix', 'getopt-gnu'.
45466         * modules/getopt-gnu: New file, renamed from modules/getopt.
45467         * modules/getopt-posix: New file.
45468         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45469         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45470         (gl_GETOPT): Remove macro.
45471         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45472         Disable the test against BSD systems that declare optreset. Test
45473         against mingw bug. Test against lack of support of optional arguments
45474         on many platforms.
45475         * doc/glibc-headers/getopt.texi: Update module name and list of
45476         relevant platforms.
45477         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45478         'getopt-gnu' and more portability problems.
45479         * NEWS: Mention the changes.
45480
45481 2009-08-12  Bruno Haible  <bruno@clisp.org>
45482
45483         Ensure that optarg etc. get declared by <unistd.h>.
45484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45485         AC_USE_SYSTEM_EXTENSIONS.
45486         * modules/getopt (Depends-on): Add 'extensions'.
45487
45488 2009-08-12  Bruno Haible  <bruno@clisp.org>
45489
45490         Avoid test link errors.
45491         * modules/pipe-filter-ii-tests (Makefile.am): Define
45492         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45493         * modules/pipe-filter-gi-tests (Makefile.am): Define
45494         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45496
45497 2009-08-12  Bruno Haible  <bruno@clisp.org>
45498
45499         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45500         gl_GETOPT_SUBSTITUTE before.
45501         (gl_GETOPT): Use it.
45502         * m4/argp.m4 (gl_ARGP): Update.
45503         Reported by Sergey Poznyakoff.
45504
45505         * m4/getopt.m4: Reorder macros.
45506         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45507         (gl_GETOPT_SUBSTITUTE): Remove macro.
45508
45509 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45510
45511         Minor improvement in gitlog-to-changelog
45512
45513         * build-aux/gitlog-to-changelog: New option `--format' makes
45514         output format string configurable.
45515
45516 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45517
45518         Optimize exclude: use hash tables for non-wildcard patterns.
45519
45520         * lib/exclude.c: Include hash.h and mbuiter.h
45521         (struct exclude_pattern, exclude_segment): New data types.
45522         (struct exclude): Rewrite.
45523         (fnmatch_pattern_has_wildcards): New function.
45524         (new_exclude_segment, free_exclude_segment): New functions.
45525         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45526         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45527         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45528         * modules/exclude: Depend on hash and mbuiter.
45529
45530         * modules/exclude-tests: New file.
45531         * tests/test-exclude.c: New file.
45532         * tests/test-exclude1.sh: New file.
45533         * tests/test-exclude2.sh: New file.
45534         * tests/test-exclude3.sh: New file.
45535         * tests/test-exclude4.sh: New file.
45536         * tests/test-exclude5.sh: New file.
45537         * tests/test-exclude6.sh: New file.
45538         * tests/test-exclude7.sh: New file.
45539
45540 2009-08-12  Bruno Haible  <bruno@clisp.org>
45541
45542         Ensure that getopt() gets declared by <unistd.h>.
45543         * lib/unistd.in.h: Conditionally include getopt.h.
45544         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45545         Set GNULIB_UNISTD_H_GETOPT.
45546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45547         GNULIB_UNISTD_H_GETOPT.
45548         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45549
45550 2009-08-12  Bruno Haible  <bruno@clisp.org>
45551
45552         Clarify logic.
45553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45554         gl_replace_getopt instead of GETOPT_H.
45555
45556 2009-08-12  Bruno Haible  <bruno@clisp.org>
45557
45558         * m4/getopt.m4: Add comments.
45559
45560 2009-08-12  Bruno Haible  <bruno@clisp.org>
45561
45562         Disable multithread support by default on Cygwin 1.5.x.
45563         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45564         set gl_use_threads=no if not specified otherwise.
45565
45566 2009-08-11  Bruno Haible  <bruno@clisp.org>
45567
45568         Avoid compilation error on NetBSD 5.0.
45569         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45570         * tests/test-stdio.c: Likewise.
45571         * tests/test-stdlib.c: Likewise.
45572         * tests/test-string.c: Likewise.
45573         * tests/test-unistd.c: Likewise.
45574         Reported by Greg Troxel <gdt@ir.bbn.com>
45575         at <https://savannah.gnu.org/support/?106973>.
45576
45577 2009-08-11  Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/dup2-tests (Depends-on): Remove close.
45580
45581         Undo 2009-07-19 commit.
45582         * modules/acl-tests (Depends-on): Remove close.
45583         * modules/binary-io-tests (Depends-on): Likewise.
45584         * modules/closein-tests (Depends-on): Likewise.
45585         * modules/flock-tests (Depends-on): Likewise.
45586         * modules/fsync-tests (Depends-on): Likewise.
45587         * modules/lseek-tests (Depends-on): Likewise.
45588         * modules/pipe-tests (Depends-on): Likewise.
45589         * modules/posix_spawn-tests (Depends-on): Likewise.
45590         * modules/posix_spawnp-tests (Depends-on): Likewise.
45591         * modules/stat-time-tests (Depends-on): Likewise.
45592         * modules/yesno-tests (Depends-on): Likewise.
45593
45594 2009-08-10  Bruno Haible  <bruno@clisp.org>
45595
45596         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45597
45598 2009-08-10  Bruno Haible  <bruno@clisp.org>
45599
45600         Fix a gcc warning.
45601         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45602
45603 2009-08-10  Bruno Haible  <bruno@clisp.org>
45604
45605         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45606         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45607         not only the first time.
45608         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45609         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45610         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45611         is 1, not only the the first time.
45612
45613 2009-08-10  Bruno Haible  <bruno@clisp.org>
45614
45615         Make it possible to use module 'gethostname' without module 'close'.
45616         * lib/unistd.in.h (close): Evoke a link error only if
45617         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45619         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45620         * modules/unistd (Makefile.am): Substitute
45621         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45622         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45623         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45624         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45625         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45626         * modules/sys_ioctl (Makefile.am): Substitute
45627         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45628         * modules/socket (configure.ac): On native Windows, set
45629         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45630         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45631         Reported by Sam Steingold <sds@gnu.org>.
45632
45633 2009-08-10  Bruno Haible  <bruno@clisp.org>
45634
45635         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45636         * modules/ioctl (configure.ac): Likewise.
45637
45638 2009-08-10  Bruno Haible  <bruno@clisp.org>
45639
45640         Avoid collision between gnulib wrapper and libintl wrapper.
45641         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45642         already defined in intl/printf.c.
45643         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45644         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45645
45646 2009-08-09  Bruno Haible  <bruno@clisp.org>
45647
45648         Make <sys/select.h> really self-contained, also on Solaris 10.
45649         * lib/sys_select.in.h: Include <string.h>.
45650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45651         Solaris 10 problem.
45652         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45653         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45654         Reported by Jim Meyering.
45655
45656 2009-08-09  Bruno Haible  <bruno@clisp.org>
45657
45658         Avoid warnings from 'aclocal' that are due to a use of macro name
45659         AM_XGETTEXT_OPTION that is not defined in automake.
45660         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45661         automake.
45662         * modules/error (configure.ac): Likewise.
45663         * modules/propername (configure.ac): Likewise.
45664         * modules/vasprintf (configure.ac): Likewise.
45665         * modules/verror (configure.ac): Likewise.
45666         * modules/xprintf (configure.ac): Likewise.
45667         * modules/xvasprintf (configure.ac): Likewise.
45668
45669 2009-08-08  Bruno Haible  <bruno@clisp.org>
45670
45671         Avoid compilation error in C++ mode.
45672         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45673         Reported by Sam Steingold <sds@gnu.org>.
45674
45675 2009-08-08  Bruno Haible  <bruno@clisp.org>
45676
45677         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45678         for the various Unix platforms.
45679         * doc/posix-headers/limits.texi: Update platforms list regarding
45680         HOST_NAME_MAX.
45681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45682
45683 2009-08-07  Jim Meyering  <meyering@redhat.com>
45684
45685         selinux-at: fix typo in a comment
45686         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45687         Spotted by Paolo Bonzini.
45688
45689         selinux-at: remove redundant m4 code, add documentation
45690         * modules/selinux-at (configure.ac): Remove redundant code.
45691         LIB_SELINUX is already set via the dependent module, selinux-h.
45692         (Include): Add quotes around selinux-at.h.
45693         * lib/selinux-at.h: Add documentation.
45694         Reported by Bruno Haible in
45695         http://marc.info/?l=gnulib-bug&m=124958988300749
45696
45697 2009-08-07  Bruno Haible  <bruno@clisp.org>
45698
45699         Avoid link error on MacOS X 10.3 and 10.4.
45700         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45701         on non-ELF systems.
45702         * lib/argp-pv.c (argp_program_version): Likewise.
45703         Reported by Simon Josefsson.
45704
45705 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45706
45707         * tests/test-version-etc.sh: Use $EXEEXT.
45708
45709 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45710
45711         update-copyright: update documentation to point to maint.mk
45712         * build-aux/update-copyright: Here.
45713
45714 2009-08-06  Jim Meyering  <meyering@redhat.com>
45715
45716         maint.mk: support update-copyright-local
45717         * top/maint.mk (update-copyright-local): Define place-holder.
45718         (update-copyright): Depend on $(update-copyright-local).
45719
45720 2009-08-06  Jim Meyering  <meyering@redhat.com>
45721
45722         selinux-at: new module
45723         Initially written for coreutils, this module will soon be
45724         used by findutils, too.
45725         * MODULES.html.sh [Misc]: Add selinux-at.
45726         * lib/selinux-at.h: New file, from coreutils.
45727         * lib/selinux-at.c: Likewise.
45728         * modules/selinux-at: Likewise.
45729         (License): Change from LGPL to GPL, since it depends
45730         on the GPL'd openat module.
45731
45732         doc: update README
45733         * README: Remove references to cogito.
45734         Remove cvs-repo-updating instructions from 2007.
45735         Don't imply that CVS is better if you have limited disk space.
45736
45737 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45738
45739         update-copyright: support C-style comments
45740         * build-aux/update-copyright: Implement and document.
45741         * tests/test-update-copyright.sh: Test.
45742
45743 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45744
45745         update-copyright: support omitted "(C)"
45746         * build-aux/update-copyright: Implement and document.  Also,
45747         allow variable whitespace before "(C)".
45748         * tests/test-update-copyright.sh: Test.
45749
45750 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45751
45752         update-copyright: don't trip on non-FSF copyright statements
45753         * build-aux/update-copyright: Fix so that the first correctly
45754         formatted FSF copyright statement is recognized no matter what
45755         appears before it.  Update documentation.
45756         * tests/test-update-copyright.sh: Test that.
45757
45758 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45759
45760         update-copyright: clean up code a little
45761         * build-aux/update-copyright: Append "_re" to the name of any
45762         variable holding a regular expression.
45763         Replace "old" and "new" with "stmt" in variable names.
45764         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45765         handled correctly.
45766         Format code more consistently.
45767
45768 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45769
45770         update-copyright-tests: improve portability
45771         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45772         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45773
45774 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45775
45776         update-copyright: support @copyright{} and &copy;
45777         * build-aux/update-copyright: Implement and document.
45778         * tests/test-update-copyright.sh: Test.
45779
45780 2009-08-04  Jim Meyering  <meyering@redhat.com>
45781
45782         update-copyright-tests: correctly test EOL=\r\n handling
45783         * tests/test-update-copyright.sh: Put \r at the end of some lines
45784         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45785
45786         maint.mk: make update-copyright exclusion list more configurable
45787         * top/maint.mk (update-copyright): Default to excluding COPYING,
45788         but allow an override, in case someone does want to update that file.
45789
45790         maint.mk: don't update copyright date in COPYING
45791         * top/maint.mk (update-copyright): Exclude COPYING.
45792
45793         maint.mk: add a copyright-updating rule
45794         * top/maint.mk (update-copyright): New rule.
45795         Derived from coreutils/Makefile.am.
45796
45797         update-copyright: rename some variables
45798         * build-aux/update-copyright: Rename a few variables for clarity.
45799         Tweak syntax.  List Joel E. Denny as coauthor.
45800
45801 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45802
45803         update-copyright: fix bug for 2-digit last year and add tests
45804         * build-aux/update-copyright: Fix bug.
45805         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45806         specified.
45807         * modules/update-copyright-tests: New
45808         * tests/test-update-copyright.sh: New.
45809
45810 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45811
45812         update-copyright: handle leading tabs in line prefix
45813         * build-aux/update-copyright: Count leading tabs as 8 spaces
45814         when computing margin.  This helps with the formatting of
45815         ChangeLogs, for example.
45816         Fix documentation a little.
45817
45818 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45819
45820         update-copyright: support EOL=\r\n
45821         * build-aux/update-copyright: Implement that.
45822
45823 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45824
45825         update-copyright: automatically format copyright statements
45826         * build-aux/update-copyright: Implement that.
45827         Also, be a little more predictable and safer by always failing
45828         when the full copyright format is not perfectly recognized as an
45829         unbroken whole.  Discussed at
45830         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45831         Rewrite documentation.
45832
45833 2009-08-03  Bruno Haible  <bruno@clisp.org>
45834
45835         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45836
45837 2009-08-02  Bruno Haible  <bruno@clisp.org>
45838
45839         Tests for module 'uname'.
45840         * modules/uname-tests: New file.
45841         * tests/test-uname.c: New file.
45842
45843         New module 'uname'.
45844         * lib/uname.c: New file.
45845         * m4/uname.m4: New file.
45846         * modules/uname: New file.
45847         * doc/posix-functions/uname.texi: Mention the new module.
45848
45849 2009-08-02  Bruno Haible  <bruno@clisp.org>
45850
45851         Tests for module 'sys_utsname'.
45852         * modules/sys_utsname-tests: New file.
45853         * tests/test-sys_utsname.c: New file.
45854
45855         New module 'sys_utsname'.
45856         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45857         * m4/sys_utsname_h.m4: New file.
45858         * modules/sys_utsname: New file.
45859         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45860
45861 2009-08-02  Bruno Haible  <bruno@clisp.org>
45862
45863         Implicitly initialize the sockets library.
45864         * lib/gethostname.c: Include sockets.h.
45865         (rpl_gethostname): Invoke gl_sockets_startup.
45866         * lib/socket.c: Include sockets.h.
45867         (rpl_socket): Invoke gl_sockets_startup.
45868         * modules/gethostname (Depends-on): Add sockets.
45869         * modules/socket (Depends-on): Likewise.
45870         * tests/test-poll.c: Don't include sockets.h.
45871         (main): Don't invoke gl_sockets_startup.
45872         * tests/test-select.c: Don't include sockets.h.
45873         (main): Don't invoke gl_sockets_startup.
45874
45875 2009-08-02  Bruno Haible  <bruno@clisp.org>
45876
45877         Allow multiple calls to gl_sockets_startup.
45878         * lib/sockets.c (initialized_sockets_version): New variable.
45879         (gl_sockets_startup): Do nothing if already called for this or a higher
45880         version.
45881         (gl_sockets_cleanup): Reset initialized_sockets_version.
45882
45883 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45884
45885         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45886         different project/version.
45887
45888 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45889             Bruno Haible  <bruno@clisp.org>
45890
45891         Tests for module 'pipe-filter-gi'.
45892         * modules/pipe-filter-gi-tests: New file.
45893         * tests/test-pipe-filter-gi1.sh: New file.
45894         * tests/test-pipe-filter-gi1.c: New file.
45895         * tests/test-pipe-filter-gi2.sh: New file.
45896         * tests/test-pipe-filter-gi2-main.c: New file.
45897         * tests/test-pipe-filter-gi2-child.c: New file.
45898
45899         New module 'pipe-filter-gi'.
45900         * lib/pipe-filter-gi.c: New file.
45901         * modules/pipe-filter-gi: New file.
45902
45903 2009-08-02  Bruno Haible  <bruno@clisp.org>
45904             Paolo Bonzini  <bonzini@gnu.org>
45905
45906         Tests for module 'pipe-filter-ii'.
45907         * modules/pipe-filter-ii-tests: New file.
45908         * tests/test-pipe-filter-ii1.sh: New file.
45909         * tests/test-pipe-filter-ii1.c: New file.
45910         * tests/test-pipe-filter-ii2.sh: New file.
45911         * tests/test-pipe-filter-ii2-main.c: New file.
45912         * tests/test-pipe-filter-ii2-child.c: New file.
45913
45914         New module 'pipe-filter-ii'.
45915         * lib/pipe-filter.h: New file.
45916         * lib/pipe-filter-ii.c: New file.
45917         * lib/pipe-filter-aux.h: New file.
45918         * modules/pipe-filter-ii: New file.
45919
45920 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45921
45922         * lib/gc-libgcrypt.c: Change copyright to FSF.
45923         * lib/gc-gnulib.c: Likewise.
45924
45925 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45926
45927         * lib/gethostname.c: Include limits.h.
45928
45929 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45930             Bruno Haible  <bruno@clisp.org>
45931
45932         Ensure HOST_NAME_MAX as part of the gethostname module.
45933         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45934         define also HOST_NAME_MAX.
45935         * tests/test-gethostname.c: Include <limits.h>.
45936         (main): Check also HOST_NAME_MAX.
45937         * doc/posix-headers/limits.texi: Document the mingw problem.
45938
45939 2009-08-02  Bruno Haible  <bruno@clisp.org>
45940
45941         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45942         Add comments.
45943
45944 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45945
45946         * lib/gethostname.c: Add Windows wrapper.
45947         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45948         * modules/gethostname: Depend on sys_socket & errno, for also
45949         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45950         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45951
45952 2009-07-31  Jim Meyering  <meyering@redhat.com>
45953
45954         getloadavg: fix symbol name in comment
45955         * lib/getloadavg.c: Correct a typo I introduced when adding
45956         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45957         Matt Kraai spotted the problem.
45958
45959 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45960
45961         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45962         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45963         code also if ! defined N_NAME_POINTER.
45964         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45965         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45966         but the n_name member is a 12-byte array.
45967
45968 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45969
45970         update-copyright: generalize comment handling
45971         * build-aux/update-copyright: Handle copyright statements
45972         within more comment styles.
45973         Document usage.
45974         Report any file with an external copyright holder or parse failure.
45975
45976 2009-07-29  Jim Meyering  <meyering@redhat.com>
45977
45978         mktime: correct setting of REPLACE_MKTIME
45979         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45980
45981         update-copyright: new module
45982         * modules/update-copyright: New file.
45983         * build-aux/update-copyright: New file.
45984         * MODULES.html.sh (maint+release support): Add update-copyright.
45985
45986 2009-07-27  Bruno Haible  <bruno@clisp.org>
45987
45988         Fix compilation error when <ctime> is used and mktime is replaced.
45989         * lib/time.in.h (mktime): New declaration.
45990         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45991         REPLACE_MKTIME instead of defining mktime in config.h.
45992         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45993         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45994         Reported by Ross McFarland <rwmcfa1@neces.com>.
45995
45996 2009-07-27  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45999         Reported by Matt Kraai <mkraai@beckman.com>.
46000
46001 2009-07-25  Jim Meyering  <meyering@redhat.com>
46002
46003         maint.mk: avoid warnings about missing files
46004         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46005         diagnostic when .prev-version does not exist.
46006         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46007         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46008         nonexistent cfg.mk.
46009         Suggestions from Simon Josefsson.
46010
46011 2009-07-25  Bruno Haible  <bruno@clisp.org>
46012
46013         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46014         defined as macros. Needed on QNX 6.4.1.
46015         Reported by Matt Kraai <mkraai@beckman.com>.
46016
46017 2009-07-23  Jim Meyering  <meyering@redhat.com>
46018
46019         maint.mk: invoke "make dist" with a working value of XZ_OPT
46020         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46021
46022 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46023
46024         Make fseeko.c compile on QNX.
46025         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46026
46027 2009-07-22  Peter Simons  <simons@cryp.to>
46028
46029         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46030         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46031         * lib/md4.h: Likewise.
46032         * lib/md5.h: Likewise.
46033         * lib/sha1.h: Likewise.
46034         * lib/sha256.h: Likewise.
46035         * lib/sha512.h: Likewise.
46036
46037         tests-sha1: don't assign literal string to 'char *' variable
46038         * tests/test-sha1.c (main): Declare locals with "const" to match
46039         attributes of the right hand side.
46040
46041 2009-07-21  Eric Blake  <ebb9@byu.net>
46042
46043         dup2: fix more mingw problems
46044         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46045         fd to itself.
46046         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46047         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46048         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46049         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46050         care of mingw bugs.
46051
46052 2009-07-21  Jim Meyering  <meyering@redhat.com>
46053
46054         vc-list-files: avoid failure when /bin/sh is dash
46055         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46056         On some Debian based systems, /bin/sh is a symlink to dash, and running
46057         this command would omit the "/" following each 'tests' prefix:
46058           dash -x build-aux/vc-list-files -C . tests
46059         That is because bash and dash work differently:
46060           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46061           bash ok
46062           dash odd
46063
46064 2009-07-21  Eric Blake  <ebb9@byu.net>
46065
46066         dup2-tests: test previous patch
46067         * modules/dup2-tests: New file.
46068         * tests/test-dup2.c: Likewise.
46069         * tests/test-open.c (main): Avoid unspecified behavior.
46070         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46071         test.
46072
46073         dup2: work around mingw and cygwin 1.5 bug
46074         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46076         * modules/unistd (Makefile.am): Substitute it.
46077         * lib/unistd.in.h (dup2): Declare the replacement.
46078         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46079         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46080         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46081         * modules/execute (Depends-on): Add dup2.
46082         * modules/fseterr (Depends-on): Likewise.
46083         * modules/pipe (Depends-on): Likewise.
46084         * modules/posix_spawn-internal (Depends-on): Likewise.
46085
46086 2009-07-21  Bruno Haible  <bruno@clisp.org>
46087
46088         * modules/.gitattributes: New file.
46089
46090 2009-07-20  Bruno Haible  <bruno@clisp.org>
46091
46092         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46093         (main): Use it.
46094
46095 2009-07-20  Eric Blake  <ebb9@byu.net>
46096
46097         test-pipe: make a bit more robust.
46098         * tests/test-pipe.c (myerr): Allow error messages regardless of
46099         what we do to stderr.
46100         (test_pipe): Rearrange to avoid deadlock.
46101         (child_main): Try a larger read, to ensure we avoided deadlock.
46102         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46103         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46104         if misused.
46105
46106 2009-07-19  Jim Meyering  <meyering@redhat.com>
46107
46108         fts: avoid false-positive cycle-detection
46109         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46110         for each new command line argument.
46111
46112 2009-07-19  Bruno Haible  <bruno@clisp.org>
46113
46114         Fix build error on mingw with the modules sys_select and unistd.
46115         * modules/acl-tests (Depends-on): Add close.
46116         * modules/binary-io-tests (Depends-on): Likewise.
46117         * modules/closein-tests (Depends-on): Likewise.
46118         * modules/flock-tests (Depends-on): Likewise.
46119         * modules/fsync-tests (Depends-on): Likewise.
46120         * modules/lseek-tests (Depends-on): Likewise.
46121         * modules/pipe-tests (Depends-on): Likewise.
46122         * modules/posix_spawn-tests (Depends-on): Likewise.
46123         * modules/posix_spawnp-tests (Depends-on): Likewise.
46124         * modules/stat-time-tests (Depends-on): Likewise.
46125         * modules/yesno-tests (Depends-on): Likewise.
46126
46127 2009-07-19  Bruno Haible  <bruno@clisp.org>
46128
46129         Unify conditionals.
46130         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46131         macros, not at the compiler macros.
46132         * lib/pipe.c: Likewise.
46133         * lib/execute.c: Likewise.
46134         * lib/spawni.c: Likewise.
46135
46136 2009-07-19  Bruno Haible  <bruno@clisp.org>
46137
46138         Fix handling of closed stdin/stdout/stderr on mingw.
46139         * lib/w32spawn.h: Include unistd.h.
46140         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46141         file descriptor with O_NOINHERIT flag.
46142         (fd_safer_noinherit): New function, based on fd-safer.c.
46143         (dup_safer_noinherit): New function, based on dup-safer.c.
46144         (undup_safer_noinherit): New function.
46145         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46146         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46147         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46148         instead of fd_safer.
46149         * tests/test-pipe.c: Include <windows.h>.
46150         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46151         result.
46152
46153         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46154         from main.
46155         (test_pipe): Pass an extra argument for disambiguation.
46156         (main): Invoke parent_main or child_main.
46157
46158         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46159         consistently.
46160
46161 2009-07-18  Eric Blake  <ebb9@byu.net>
46162
46163         test-pipe: fix mingw build
46164         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46165
46166 2009-07-18  Bruno Haible  <bruno@clisp.org>
46167
46168         * modules/pipe-tests (Makefile.am): Fix typo.
46169
46170 2009-07-18  Eric Blake  <ebb9@byu.net>
46171
46172         error: fix mingw build
46173         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46174         Reported by Bruno Haible.
46175
46176         error: avoid undefined use of stdout
46177         * lib/error.c (error, error_at_line): Check that fd 1 is open
46178         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46179         is handling faults and the close_stdout module wants to report the
46180         detection of closed stdout as an error.
46181
46182 2009-07-17  Eric Blake  <ebb9@byu.net>
46183
46184         pipe: be robust in face of closed fds
46185         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46186         should cause child to misbehave.
46187         * modules/pipe-tests: New module.
46188         * tests/test-pipe.c: New file.
46189         * tests/test-pipe.sh: New file.
46190         Reported by Akim Demaille.
46191
46192 2009-07-14  Bruno Haible  <bruno@clisp.org>
46193
46194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46195         Reported by anonymous kc.
46196
46197 2009-07-07  Jim Meyering  <meyering@redhat.com>
46198
46199         maint.mk: don't look for translatable strings in *.m4 or *.mk
46200         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46201         when searching for translatable strings.
46202
46203 2009-07-05  Jim Meyering  <meyering@redhat.com>
46204
46205         remove superfluous parentheses in STREQ definition
46206         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46207         * lib/getugroups.c (STREQ): Likewise.
46208         * lib/fnmatch.c (STREQ): Likewise.
46209         Spotted by Bruno Haible.
46210
46211 2009-07-04  Jim Meyering  <meyering@redhat.com>
46212
46213         argv-iter: new module
46214         * MODULES.html.sh: Add argv-iter.
46215         * lib/argv-iter.c, lib/argv-iter.h: New files.
46216         * modules/argv-iter: New file.
46217         * modules/argv-iter-tests: New file.
46218         * tests/test-argv-iter.c: Test it.
46219
46220 2009-07-04  Bruno Haible  <bruno@clisp.org>
46221
46222         Fix assertion.
46223         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46224         contains more exact copies of a given entry than file2, leave the extra
46225         copies unpaired rather than aborting.
46226         Reported by Eric Blake.
46227
46228 2009-07-02  Bruno Haible  <bruno@clisp.org>
46229
46230         Speedup git-merge-changelog for git cherry-pick.
46231         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46232         (entries_mapping_get): New function, extracted from compute_mapping.
46233         (entries_mapping_reverse_get): New function.
46234         (compute_mapping): Add a 'full' argument. Return the result in a
46235         'struct entries_mapping'.
46236         (main): Update. Access the mappings through entries_mapping_get.
46237         Reported by Eric Blake.
46238
46239 2009-07-02  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46242         best_i.
46243
46244 2009-07-02  Bruno Haible  <bruno@clisp.org>
46245
46246         Speed up approximate search for matching ChangeLog entries.
46247         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46248         argument. Call fstrcmp_bounded instead of fstrcmp.
46249         (compute_mapping, try_split_merged_entry, main): Update callers.
46250
46251 2009-07-02  Bruno Haible  <bruno@clisp.org>
46252
46253         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46254
46255 2009-06-30  Bruno Haible  <bruno@clisp.org>
46256
46257         Reduce the number of uc_is_cased calls.
46258         * lib/unicase.h (casing_suffix_context_t): Add
46259         'first_char_except_ignorable' field.
46260         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46261         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46262         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46263         Update initializer.
46264         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46265         case-ignorable characters.
46266         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46267         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46268         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46269         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46270         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46271
46272 2009-06-30  Bruno Haible  <bruno@clisp.org>
46273
46274         Tests for module 'unicase/ignorable'.
46275         * modules/unicase/ignorable-tests: New file.
46276         * tests/unicase/test-ignorable.c: New file, generated by
46277         gen-uni-tables.
46278
46279         Tests for module 'unicase/cased'.
46280         * modules/unicase/cased-tests: New file.
46281         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46282         * tests/unicase/test-predicate-part1.h: New file, derived from
46283         tests/unictype/test-predicate-part1.h.
46284         * tests/unicase/test-predicate-part2.h: New file, same as
46285         tests/unictype/test-predicate-part2.h.
46286
46287         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46288         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46289         (output_casing_properties): New function.
46290         (main): Call it.
46291         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46292         * lib/unicase/cased.c: Include unictype/bitmap.h.
46293         (uc_is_cased): Define through a bitmap lookup.
46294         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46295         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46296         (uc_is_case_ignorable): Define through a bitmap lookup.
46297         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46298         lib/unictype/bitmap.h.
46299         (Depends-on): Add inline. Clean up.
46300         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46301         lib/unictype/bitmap.h.
46302         (Depends-on): Add inline. Clean up.
46303         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46304         recognition.
46305         * tests/unicase/test-u16-tolower.c (main): Likewise.
46306         * tests/unicase/test-u32-tolower.c (main): Likewise.
46307
46308 2009-06-30  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46311         * lib/unicase/u16-casemap.c: Likewise.
46312         * lib/unicase/u32-casemap.c: Likewise.
46313
46314 2009-06-29  Bruno Haible  <bruno@clisp.org>
46315
46316         Define u32_casefold as a wrapper around u32_ct_casefold.
46317         * lib/unicase/u32-casefold.c: Update.
46318         * modules/unicase/u32-casefold (Depends-on): Add
46319         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46320         unicase/empty-suffix-context. Clean up.
46321
46322         Define u16_casefold as a wrapper around u16_ct_casefold.
46323         * lib/unicase/u16-casefold.c: Update.
46324         * modules/unicase/u16-casefold (Depends-on): Add
46325         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46326         unicase/empty-suffix-context. Clean up.
46327
46328         Define u8_casefold as a wrapper around u8_ct_casefold.
46329         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46330         * lib/unicase/u8-casefold.c: Update.
46331         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46332         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46333
46334         Define u32_totitle as a wrapper around u32_ct_totitle.
46335         * lib/unicase/u32-totitle.c: Update.
46336         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46337         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46338
46339         Define u16_totitle as a wrapper around u16_ct_totitle.
46340         * lib/unicase/u16-totitle.c: Update.
46341         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46342         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46343
46344         Define u8_totitle as a wrapper around u8_ct_totitle.
46345         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46346         functions.
46347         (FUNC): Delegate to U_CT_TOTITLE.
46348         * lib/unicase/u8-totitle.c: Update.
46349         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46350         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46351
46352         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46353         invocation.
46354         * modules/unicase/u32-tolower (Depends-on): Add
46355         unicase/empty-prefix-context, unicase/empty-suffix-context.
46356
46357         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46358         invocation.
46359         * modules/unicase/u16-tolower (Depends-on): Add
46360         unicase/empty-prefix-context, unicase/empty-suffix-context.
46361
46362         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46363         * modules/unicase/u8-tolower (Depends-on): Add
46364         unicase/empty-prefix-context, unicase/empty-suffix-context.
46365
46366         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46367         invocation.
46368         * modules/unicase/u32-toupper (Depends-on): Add
46369         unicase/empty-prefix-context, unicase/empty-suffix-context.
46370
46371         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46372         invocation.
46373         * modules/unicase/u16-toupper (Depends-on): Add
46374         unicase/empty-prefix-context, unicase/empty-suffix-context.
46375
46376         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46377         * modules/unicase/u8-toupper (Depends-on): Add
46378         unicase/empty-prefix-context, unicase/empty-suffix-context.
46379
46380         New module 'unicase/u32-ct-casefold'.
46381         * lib/unicase/u32-ct-casefold.c: New file.
46382         * modules/unicase/u32-ct-casefold: New file.
46383
46384         New module 'unicase/u16-ct-casefold'.
46385         * lib/unicase/u16-ct-casefold.c: New file.
46386         * modules/unicase/u16-ct-casefold: New file.
46387
46388         New module 'unicase/u8-ct-casefold'.
46389         * lib/unicase/u8-ct-casefold.c: New file.
46390         * lib/unicase/u-ct-casefold.h: New file, derived from
46391         lib/unicase/u-casefold.h.
46392         * modules/unicase/u8-ct-casefold: New file.
46393
46394         New module 'unicase/u32-ct-totitle'.
46395         * lib/unicase/u32-ct-totitle.c: New file.
46396         * modules/unicase/u32-ct-totitle: New file.
46397
46398         New module 'unicase/u16-ct-totitle'.
46399         * lib/unicase/u16-ct-totitle.c: New file.
46400         * modules/unicase/u16-ct-totitle: New file.
46401
46402         New module 'unicase/u8-ct-totitle'.
46403         * lib/unicase/u8-ct-totitle.c: New file.
46404         * lib/unicase/u-ct-totitle.h: New file, derived from
46405         lib/unicase/u-totitle.h.
46406         * modules/unicase/u8-ct-totitle: New file.
46407
46408         New module 'unicase/u32-ct-tolower'.
46409         * lib/unicase/u32-ct-tolower.c: New file.
46410         * modules/unicase/u32-ct-tolower: New file.
46411
46412         New module 'unicase/u16-ct-tolower'.
46413         * lib/unicase/u16-ct-tolower.c: New file.
46414         * modules/unicase/u16-ct-tolower: New file.
46415
46416         New module 'unicase/u8-ct-tolower'.
46417         * lib/unicase/u8-ct-tolower.c: New file.
46418         * modules/unicase/u8-ct-tolower: New file.
46419
46420         New module 'unicase/u32-ct-toupper'.
46421         * lib/unicase/u32-ct-toupper.c: New file.
46422         * modules/unicase/u32-ct-toupper: New file.
46423
46424         New module 'unicase/u16-ct-toupper'.
46425         * lib/unicase/u16-ct-toupper.c: New file.
46426         * modules/unicase/u16-ct-toupper: New file.
46427
46428         New module 'unicase/u8-ct-toupper'.
46429         * lib/unicase/u8-ct-toupper.c: New file.
46430         * modules/unicase/u8-ct-toupper: New file.
46431
46432         Add context arguments to u*_casemap functions.
46433         * lib/unicase/unicasemap.h: Include unicase.h.
46434         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46435         suffix_context arguments.
46436         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46437         functions.
46438         (FUNC): Add prefix_context and suffix_context arguments. Use
46439         uc_is_cased and uc_is_case_ignorable.
46440         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46441         * lib/unicase/u16-casemap.c: Likewise.
46442         * lib/unicase/u32-casemap.c: Likewise.
46443         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46444         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46445         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46446         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46447         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46448         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46449
46450         New module 'unicase/u32-suffix-context'.
46451         * lib/unicase/u32-suffix-context.c: New file.
46452         * modules/unicase/u32-suffix-context: New file.
46453
46454         New module 'unicase/u16-suffix-context'.
46455         * lib/unicase/u16-suffix-context.c: New file.
46456         * modules/unicase/u16-suffix-context: New file.
46457
46458         New module 'unicase/u8-suffix-context'.
46459         * lib/unicase/u8-suffix-context.c: New file.
46460         * lib/unicase/u-suffix-context.h: New file.
46461         * modules/unicase/u8-suffix-context: New file.
46462
46463         New module 'unicase/empty-suffix-context'.
46464         * lib/unicase/empty-suffix-context.c: New file.
46465         * modules/unicase/empty-suffix-context: New file.
46466
46467         New module 'unicase/u32-prefix-context'.
46468         * lib/unicase/u32-prefix-context.c: New file.
46469         * modules/unicase/u32-prefix-context: New file.
46470
46471         New module 'unicase/u16-prefix-context'.
46472         * lib/unicase/u16-prefix-context.c: New file.
46473         * modules/unicase/u16-prefix-context: New file.
46474
46475         New module 'unicase/u8-prefix-context'.
46476         * lib/unicase/u8-prefix-context.c: New file.
46477         * lib/unicase/u-prefix-context.h: New file.
46478         * lib/unicase/context.h: New file.
46479         * modules/unicase/u8-prefix-context: New file.
46480
46481         New module 'unicase/empty-prefix-context'.
46482         * lib/unicase/empty-prefix-context.c: New file.
46483         * modules/unicase/empty-prefix-context: New file.
46484
46485         New module 'unicase/ignorable'.
46486         * lib/unicase/ignorable.c: New file.
46487         * modules/unicase/ignorable: New file.
46488
46489         New module 'unicase/cased'.
46490         * lib/unicase/caseprop.h: New file.
46491         * lib/unicase/cased.c: New file.
46492         * modules/unicase/cased: New file.
46493
46494         New functions for case mapping of substrings.
46495         * lib/unicase.h (casing_prefix_context_t): New type.
46496         (unicase_empty_prefix_context): New variable.
46497         (u8_casing_prefix_context, u16_casing_prefix_context,
46498         u32_casing_prefix_context, u8_casing_prefixes_context,
46499         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46500         declarations.
46501         (casing_suffix_context_t): New type.
46502         (unicase_empty_suffix_context): New variable.
46503         (u8_casing_suffix_context, u16_casing_suffix_context,
46504         u32_casing_suffix_context, u8_casing_suffixes_context,
46505         u16_casing_suffixes_context, u32_casing_suffixes_context,
46506         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46507         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46508         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46509         declarations.
46510
46511 2009-06-28  Jim Meyering  <meyering@redhat.com>
46512
46513         boostrap: indent only with spaces
46514         * build-aux/bootstrap: Indent only with spaces, never TABs.
46515
46516         bootstrap: split long lines
46517         * build-aux/bootstrap: Keep line length < 80.
46518
46519         bootstrap: sync from coreutils
46520         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46521         just as autoreconf does.  Verify a list of prerequisite
46522         package-name,version-number pairs if defined in bootstrap.conf.
46523         Refer to README-prereq, if prerequisites are not satisfied.
46524
46525 2009-06-27  Eric Blake  <ebb9@byu.net>
46526
46527         tests: add test for bogus NULL definition
46528         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46529         * tests/test-stdlib.c: Likewise.
46530         * tests/test-string.c: Likewise.
46531         * tests/test-locale.c: Likewise.
46532         * tests/test-unistd.c: Likewise.
46533         * modules/stdio-tests (Depends-on): Add verify.
46534         * modules/stdlib-tests (Depends-on): Likewise.
46535         * modules/string-tests (Depends-on): Likewise.
46536         * modules/locale-tests (Depends-on): Likewise.
46537         * modules/unistd-tests (Depends-on): Likewise.
46538
46539 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46540
46541         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46542         self-explaining comment.
46543         * m4/selinux-selinux-h: Update serial.
46544         (gl_LIBSELINUX): New macro, adding a warning for missing development
46545         packages to code extracted from...
46546         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46547         Add warning for missing development packages here, too.
46548
46549 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46550
46551         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46552
46553 2009-06-25  Eric Blake  <ebb9@byu.net>
46554
46555         version-etc: fix regression
46556         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46557         gcc.
46558         (version_etc): Use it, to catch bugs with trailing NULL.
46559         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46560         (version_etc_va): Fix logic bug.
46561         * modules/version-etc-tests: Add test.
46562         * tests/test-version-etc.c: New file.
46563         * tests/test-version-etc.sh: Likewise.
46564
46565 2009-06-25  Sam Steingold  <sds@gnu.org>
46566
46567         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46568         mbtowc declaration.
46569
46570 2009-06-25  Eric Blake  <ebb9@byu.net>
46571
46572         fpurge: migrate into <stdio.h>
46573         * lib/fpurge.h: Delete...
46574         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46575         * lib/fpurge.c (fpurge): Change declaring header.
46576         * modules/fpurge (Files): Drop deleted file.
46577         (Depends-on): Add stdio.
46578         (configure.ac): Set witness.
46579         * modules/stdio (Makefile.am): Support fpurge macros.
46580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46581         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46582         * lib/fflush.c: Update client.
46583         * tests/test-fpurge.c: Likewise.
46584         * NEWS: Mention the change.
46585
46586 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46587
46588         * lib/argp-version-etc.c (program_authors): Add const
46589         qualifier.
46590         * lib/version-etc.c: Fix typos in the comments.
46591         * modules/argp-version-etc: Depends on version-etc.
46592
46593 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46594
46595         argp-version-etc: new module.
46596
46597         * lib/argp-version-etc.c: New file.
46598         * lib/argp-version-etc.h: New file.
46599         * modules/argp-version-etc: New file.
46600         * modules/argp-version-etc-tests: New file.
46601         * tests/test-argp-version-etc.c: New test.
46602         * tests/test-argp-version-etc-1.sh: New test.
46603
46604 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46605
46606         Provide additional interfaces and documentation for version-etc
46607         module.
46608
46609         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46610         interfaces.
46611         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46612         prototypes.
46613
46614 2009-06-24  Bruno Haible  <bruno@clisp.org>
46615
46616         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46617         HAVE_LIB${NAME} macro.
46618         Reported by Sam Steingold <sds@gnu.org>.
46619
46620 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46621
46622         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46623         needed.
46624
46625 2009-06-21  Bruno Haible  <bruno@clisp.org>
46626
46627         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46628         work.
46629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46630         together with LIB${NAME}, LTLIB${NAME}.
46631         Reported by Sam Steingold <sds@gnu.org>.
46632
46633 2009-06-20  Jim Meyering  <meyering@redhat.com>
46634
46635         tests: make sc_require_test_exit_idiom more generic
46636         * top/maint.mk (Exit_witness_file): New overridable variable.
46637         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46638         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46639
46640 2009-06-19  Jim Meyering  <meyering@redhat.com>
46641
46642         hash: reverse order of src/dst parameters in an internal interface
46643         * lib/hash.c (transfer_entries): Reverse order of parameters to
46644         put DST before SRC.  Adjust callers.
46645
46646         tests: test-hash: avoid wholesale duplication
46647         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46648         Instead, use a loop and add a single conditional.
46649
46650         tests: test-hash: allow seed selection via a command line argument
46651         * tests/test-hash.c (get_seed): New function.
46652         (main): Use it.
46653
46654 2009-06-19  Eric Blake  <ebb9@byu.net>
46655
46656         hash: avoid memory leak on allocation failure
46657         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46658         failure.  Factor repeated algorithm...
46659         (transfer_entries): ...into new helper routine.
46660         (hash_delete): React to hash_rehash return value.
46661
46662         hash: reduce memory pressure in hash_rehash no-op case
46663         * lib/hash.c (next_prime): Avoid overflow.
46664         (hash_initialize): Factor bucket size computation...
46665         (compute_bucket_size): ...into new helper function.
46666         (hash_rehash): Use new function and open coding to reduce memory
46667         pressure, and avoid a memory leak in USE_OBSTACK code.
46668         Reported by Jim Meyering.
46669
46670 2009-06-18  Eric Blake  <ebb9@byu.net>
46671
46672         hash: make rotation more obvious
46673         * modules/hash (Depends-on): Add bitrotate and stdint.
46674         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46675         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46676         (SIZE_MAX): Rely on headers for definition.
46677         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46678         (raw_hasher): Use rotr_sz.
46679         Suggested by Jim Meyering.
46680
46681         hash: fix memory leak in last patch
46682         * lib/hash.c (hash_rehash): Avoid memory leak.
46683
46684         hash: avoid no-op rehashing
46685         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46686
46687         hash: provide default callback functions
46688         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46689         (hash_initialize): Use them as defaults.
46690         * tests/test-hash.c (main): Test this.
46691
46692         hash: minor optimization
46693         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46694         when possible.
46695         (hash_initialize): Document this promise.
46696         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46697         * tests/test-hash.c (hash_compare_strings): Test this.
46698
46699 2009-06-18  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46702         going to be replaced anyway.
46703
46704 2009-06-18  Bruno Haible  <bruno@clisp.org>
46705
46706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46707         in one place.
46708         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46709         be replaced anyway.
46710
46711 2009-06-18  Eric Blake  <ebb9@byu.net>
46712
46713         hash: check for resize before insertion
46714         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46715         threshold before insertion, so that a pathological hash_rehash
46716         that fills every bucket can still trigger another rehash.
46717
46718 2009-06-18  Jim Meyering  <meyering@redhat.com>
46719
46720         hash-tests: add a loop around the small tests
46721         * tests/test-hash.c (main): Repeat small tests with selected
46722         small initial table sizes.
46723
46724 2009-06-17  Eric Blake  <ebb9@byu.net>
46725
46726         hash: minor cleanups
46727         * lib/hash.h (hash_entry): Make opaque, by moving...
46728         * lib/hash.c (hash_entry): ...here.
46729         (hash_insert): Clarify restrictions on what can be inserted.
46730         (hash_get_next): Clarify when it is safe to remove an element
46731         during traversal.
46732         (check_tuning): Skip verification when tuning is known safe.
46733         (hash_initialize): Clarify restrictions on tuning.
46734
46735 2009-06-17  Jim Meyering  <jim@meyering.net>
46736         and Eric Blake  <ebb9@byu.net>
46737
46738         hash-tests: new module
46739         * modules/hash-tests: New file.
46740         * tests/test-hash.c: New file.
46741
46742 2009-06-17  Eric Blake  <ebb9@byu.net>
46743
46744         strstr-simple: document new module
46745         * MODULES.html.sh: Document new module.
46746
46747         strstr, strcasestr: replace on platforms with broken memchr
46748         * modules/strstr: Split into...
46749         * modules/strstr-simple: ...new module that does not care about
46750         performance, but does care about glibc bug.
46751         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46752         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46753         if platform memchr is broken, per Debian bug 521737.
46754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46755         memchr.
46756         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46757         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46758         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46759         * modules/mountlist (Depends-on): Add strstr-simple.
46760         * modules/gen-uni-tables (Depends-on): Likewise.
46761         * modules/argz (Depends-on): Add strstr.
46762
46763 2009-06-17  Bruno Haible  <bruno@clisp.org>
46764
46765         * modules/posix_spawn-internal (Depends-on): Add errno.
46766
46767 2009-06-17  Bruno Haible  <bruno@clisp.org>
46768
46769         Define missing ESTALE on Interix 3.5.
46770         * lib/errno.in.h (ESTALE): Assign a value if missing.
46771         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46772         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46773         missing.
46774         * doc/posix-headers/errno.texi: Mention the Interix bug.
46775         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46776
46777 2009-06-15  Eric Blake  <ebb9@byu.net>
46778
46779         memchr, memchr2: add valgrind exception
46780         * lib/memchr.valgrind: New file.
46781         * lib/memchr2.valgrind: New file.
46782         * modules/memchr (Files): Distribute valgrind file.
46783         * modules/memchr2 (Files): Likewise.
46784
46785         docs: memchr is no longer obsolete
46786         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46787         * lib/string.in.h (memchr): Simplify logic.
46788
46789 2009-06-14  Jim Meyering  <meyering@redhat.com>
46790
46791         link-follow: fix the "checking..." message to not mention trailing slash
46792         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46793         never considered trailing slashes.
46794
46795 2009-06-14  Bruno Haible  <bruno@clisp.org>
46796
46797         * m4/memchr.m4: Mention also the bug on IA-64.
46798         * doc/posix-functions/memchr.texi: Likewise.
46799
46800 2009-06-12  Eric Blake  <ebb9@byu.net>
46801
46802         memchr: detect broken x86_64 and alpha implementations
46803         * modules/memchr-tests (Depends-on): Move mmap detection...
46804         * modules/memchr (Depends-on): ...here.
46805         (configure.ac): Set indicator.
46806         * lib/string.in.h (memchr): Declare replacement.
46807         * modules/string (Makefile.am): Trigger replacement.
46808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46809         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46810         bugs.
46811         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46812         * modules/getpagesize (License): Relax license.
46813
46814 2009-06-11  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/idpriv.h: Add more references.
46817
46818 2009-06-08  Bruno Haible  <bruno@clisp.org>
46819
46820         Tests for module 'idpriv-droptemp'.
46821         * modules/idpriv-droptemp-tests: New file.
46822         * tests/test-idpriv-droptemp.sh: New file.
46823         * tests/test-idpriv-droptemp.su.sh: New file.
46824         * tests/test-idpriv-droptemp.c: New file.
46825
46826         New module 'idpriv-droptemp'.
46827         * lib/idpriv-droptemp.c: New file.
46828         * modules/idpriv-droptemp: New file.
46829
46830 2009-06-08  Bruno Haible  <bruno@clisp.org>
46831
46832         Tests for module 'idpriv-drop'.
46833         * modules/idpriv-drop-tests: New file.
46834         * tests/test-idpriv-drop.sh: New file.
46835         * tests/test-idpriv-drop.su.sh: New file.
46836         * tests/test-idpriv-drop.c: New file.
46837
46838         New module 'idpriv-drop'.
46839         * lib/idpriv.h: New file.
46840         * lib-idpriv-drop.c: New file.
46841         * m4/idpriv.m4: New file.
46842         * modules/idpriv-drop: New file.
46843
46844 2009-06-08  Bruno Haible  <bruno@clisp.org>
46845
46846         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46847         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46848         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46849         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46850         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46851         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46852         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46853
46854 2009-06-08  Eric Blake  <ebb9@byu.net>
46855
46856         test-strstr: use memory fence, when possible
46857         * tests/test-strstr.c (main): Use memory fence, in order to be
46858         more likely to trigger Debian bug 521737.
46859         * modules/strstr-tests (Files): Pull in additional files.
46860
46861         memchr: no longer obsolete, for wider field testing
46862         * modules/memchr (Status, Notice): Delete, this module is no
46863         longer obsolete.
46864         * modules/vasnprintf (Depends-on): Add memchr.
46865
46866 2009-06-07  Jim Meyering  <meyering@redhat.com>
46867
46868         hash: declare some functions with the warn_unused_result attribute
46869         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46870
46871 2009-06-07  Bruno Haible  <bruno@clisp.org>
46872
46873         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46874         Reported by Eric Blake.
46875
46876 2009-06-06  Eric Blake  <ebb9@byu.net>
46877
46878         test-alignof: fix typo with long double
46879         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46880         compiler error.
46881
46882 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46883
46884         Escape non-texinfo { and }s.
46885         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46886         markup error.
46887
46888 2009-06-04  Jim Meyering  <meyering@redhat.com>
46889
46890         gitlog-to-changelog: don't infloop on an empty commit log
46891         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46892         Reported by Boris Petersen <transacid@centerim.org>.
46893
46894 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46895
46896         version-etc: extend for packagers
46897         Add three new configure options, intended for packagers:
46898           --with-packager="packager name"
46899           --with-packager-version="packager-specific version"
46900           --with-packager-bug-reports="packager bug reporting"
46901         An example with coreutils:
46902           $ ./configure \
46903             --with-packager=Gentoo \
46904             --with-packager-bug-report=http://bugs.gentoo.org/ \
46905             --with-packager-version="patchset 1.6"
46906           $ ./src/ls --version | head -n2
46907           ls (GNU coreutils) 7.1-dirty
46908           Packaged by Gentoo (patchset 1.6)
46909         Note that the bug reporting info via --help doesn't show up because
46910         coreutils uses its own custom emit_bug_reporting_address() implementation
46911         in src/system.h.  If it didn't, it'd look like:
46912           $ ./src/ls --help | tail -n4
46913           Report bugs to <bug-coreutils@gnu.org>.
46914           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46915           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46916           General help using GNU software: <http://www.gnu.org/gethelp/>.
46917         * lib/version-etc.c: Print new information, if provided.
46918         * m4/version-etc.m4: New file.
46919         * modules/version-etc (Files): Add m4/version-etc.m4.
46920         (configure.ac): Add gl_VERSION_ETC.
46921
46922 2009-05-31  Bruno Haible  <bruno@clisp.org>
46923
46924         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46925         and 'int64_t'.
46926         * modules/alignof-tests (Dependencies): Add stdint.
46927         Reported by Eric Blake.
46928
46929 2009-05-31  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46932         restriction due to compiler bugs.
46933         Reported by Eric Blake.
46934
46935 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46936             Bruno Haible  <bruno@clisp.org>
46937
46938         Fix test-alignof failure.
46939         * lib/alignof.h (alignof_slot): New macro.
46940         (alignof_type): New macro, with the same semantics as the previous
46941         'alignof'.
46942         (alignof): Alias to alignof_slot.
46943         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46944         check that the results are usable as constant expressions.
46945
46946 2009-05-31  Bruno Haible  <bruno@clisp.org>
46947
46948         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46949         * tests/test-memchr.c (main): Check that memchr does not read past the
46950         first occurrence of the byte.
46951         * tests/test-strstr.c (main): Update comment.
46952         Suggested by Eric Blake.
46953
46954 2009-05-30  Bruno Haible  <bruno@clisp.org>
46955
46956         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46957         detail how to use dumpbin.
46958         Reported by David Byron <dbyron@dbyron.com>.
46959
46960 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46961
46962         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46963
46964 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46965
46966         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46967
46968 2009-05-28  Bruno Haible  <bruno@clisp.org>
46969
46970         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46971         build-aux/ files.
46972
46973 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46974
46975         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46976
46977 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46978
46979         * gnulib-tool (sed_transform_main_lib_file)
46980         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46981         regexps.
46982
46983 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46984
46985         * tests/test-strstr.c: Add another self-test.
46986         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46987         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46988
46989 2009-05-23  Bruno Haible  <bruno@clisp.org>
46990
46991         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46992         change.
46993
46994 2009-05-21  Bruno Haible  <bruno@clisp.org>
46995
46996         Simplify use of mode_t varargs.
46997         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46998         uses 'mode_t' or 'int'.
46999         * lib/openat.c (openat): Likewise.
47000         * lib/open-safer.c (open_safer): Likewise.
47001         * m4/mode_t.m4: New file.
47002         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47003         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47004         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47005         * modules/open (Files): Add m4/mode_t.m4.
47006         * modules/openat (Files): Likewise.
47007         * modules/fcntl-safer (Files): Likewise.
47008         Suggested by Eric Blake.
47009
47010 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47011
47012         * doc/glibc-functions/fallocate.texi: New file.
47013         * doc/gnulib.texi: Include it.
47014
47015 2009-05-21  Eric Blake  <ebb9@byu.net>
47016             Bruno Haible  <bruno@clisp.org>
47017
47018         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47019         invocations.
47020         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47021
47022 2009-05-21  Eric Blake  <ebb9@byu.net>
47023             Bruno Haible  <bruno@clisp.org>
47024
47025         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47026         include_next. Fix of 2008-11-20 commit.
47027         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47028         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47029         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47030         NEXT_MATH_H.
47031         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47032         instead of NEXT_MATH_H.
47033
47034 2009-05-21  Bruno Haible  <bruno@clisp.org>
47035
47036         Avoid redefinition warnings for SIZE_MAX.
47037         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47038         Reported by Simon Josefsson.
47039
47040 2009-05-21  Bruno Haible  <bruno@clisp.org>
47041
47042         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47043         AC_CACHE_VAL.
47044
47045 2009-05-20  Bruno Haible  <bruno@clisp.org>
47046
47047         Make zeroptr.h work on mingw.
47048         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47049         mprotect.
47050         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47051         * modules/memchr2-tests (configure.ac): Likewise.
47052         * modules/memcmp-tests (configure.ac): Likewise.
47053         * modules/memmem-tests (configure.ac): Likewise.
47054         * modules/memrchr-tests (configure.ac): Likewise.
47055         Reported by Simon Josefsson.
47056
47057 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47058
47059         * tests/test-glob.c: Include string.h for strcmp prototype.
47060
47061 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47062
47063         * modules/getdelim (Depends-on): Add explicit stdint, although it
47064         was implicitly already pulled in via realloc-posix.
47065         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47066
47067 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47068
47069         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47070         G. Christensen" <tgc@jupiterrise.com>.
47071         * m4/sys_socket_h.m4: Check for sa_family_t.
47072         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47073         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47074         * tests/test-sys_socket.c: Check that sa_family_t works.
47075
47076 2009-05-18  Eric Blake  <ebb9@byu.net>
47077
47078         maint.mk: allow gnulib_dir in VPATH build
47079         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47080
47081 2009-05-15  Jim Meyering  <meyering@redhat.com>
47082
47083         maint.mk: Give gnulib_dir a default definition.
47084         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47085         Thus, most packages no longer need to specify this variable in cfg.mk
47086
47087 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47088
47089         rename.m4: fix typos that would make non-mingw cross-configure fail
47090         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47091
47092 2009-05-13  Eric Blake  <ebb9@byu.net>
47093
47094         mmap-anon: avoid out-of-order autoconf expansion
47095         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47096         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47097         * modules/memchr-tests (Depends-on): Add extensions.
47098         * modules/memchr2-tests (Depends-on): Add extensions.
47099         * modules/memcmp-tests (Depends-on): Add extensions.
47100         * modules/memmem-tests (Depends-on): Add extensions.
47101         * modules/memrchr-tests (Depends-on): Add extensions.
47102
47103 2009-05-13  Bruno Haible  <bruno@clisp.org>
47104
47105         Make some tests ISO C 99 compliant.
47106         * tests/zerosize-ptr.h: New file.
47107         * tests/test-memchr.c: Include zerosize-ptr.h.
47108         (main): Use a zero-size object pointer instead of NULL.
47109         * tests/test-memchr2.c: Include zerosize-ptr.h.
47110         (main): Use a zero-size object pointer instead of NULL.
47111         * tests/test-memcmp.c: Include zerosize-ptr.h.
47112         (main): Use a zero-size object pointer instead of NULL.
47113         * tests/test-memmem.c: Include zerosize-ptr.h.
47114         (main): Use a zero-size object pointer instead of NULL.
47115         * tests/test-memrchr.c: Include zerosize-ptr.h.
47116         (main): Use a zero-size object pointer instead of NULL.
47117         * modules/memchr-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         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47122         m4/mmap-anon.m4.
47123         (Depends-on): Add getpagesize.
47124         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47125         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47126         m4/mmap-anon.m4.
47127         (Depends-on): Add getpagesize.
47128         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47129         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47130         m4/mmap-anon.m4.
47131         (Depends-on): Add getpagesize.
47132         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47133         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47134         m4/mmap-anon.m4.
47135         (Depends-on): Add getpagesize.
47136         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47137
47138 2009-05-12  Bruno Haible  <bruno@clisp.org>
47139
47140         Tests for module 'alignof'.
47141         * modules/alignof-tests: New file.
47142         * tests/test-alignof.c: New file.
47143
47144 2009-05-12  Bruno Haible  <bruno@clisp.org>
47145
47146         Fix alignof macro.
47147         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47148         vendor compilers that are always correct.
47149
47150 2009-05-12  Bruno Haible  <bruno@clisp.org>
47151
47152         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47153         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47154         not whether its fully works.
47155
47156 2009-05-12  Bruno Haible  <bruno@clisp.org>
47157
47158         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47159
47160 2009-05-12  Jim Meyering  <meyering@redhat.com>
47161
47162         * top/maint.mk: Adjust backslash alignment.
47163
47164 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47165
47166         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47167
47168 2009-05-11  Eric Blake  <ebb9@byu.net>
47169
47170         argp: avoid undefined behavior
47171         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47172         macros.
47173
47174 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47175
47176         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47177         user.name to prevent git commit from complaining.
47178
47179 2009-05-10  Bruno Haible  <bruno@clisp.org>
47180
47181         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47182         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47183         it rewrites every file name only once.
47184         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47185
47186 2009-05-08  Bruno Haible  <bruno@clisp.org>
47187
47188         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47189         instead of 'max'.
47190
47191 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47192
47193         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47194         sockaddr_storage test.
47195
47196 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47197
47198         * modules/sys_socket (Makefile.am): Substitute
47199         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47200         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47201         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47202         * tests/test-sys_socket.c: Check sockaddr_storage.
47203
47204 2009-05-08  Bruno Haible  <bruno@clisp.org>
47205
47206         New module 'alignof'.
47207         * lib/alignof.h: New file.
47208         * modules/alignof: New file.
47209
47210 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47211             Bruno Haible  <bruno@clisp.org>
47212
47213         Fix test-file-has-acl on FreeBSD.
47214         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47215         mask is implicitly added.
47216         * tests/test-file-has-acl.c: Include <signal.h>.
47217         (main): Terminate the test after 5 seconds.
47218         * modules/acl-tests (configure.ac): Check for alarm function.
47219
47220 2009-05-04  Bruno Haible  <bruno@clisp.org>
47221
47222         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47224         * modules/errno (configure.ac): Drop AC_REQUIRE.
47225         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47226         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47227
47228 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47229
47230         * modules/glob-tests: New module.
47231         * tests/test-glob.c: Add.
47232
47233 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47234
47235         * modules/fnmatch-tests: New module.
47236         * tests/test-fnmatch.c: Add.
47237
47238 2009-05-04  Eric Blake  <ebb9@byu.net>
47239
47240         maint: make the new no-submodule-changes rule VPATH-safe
47241         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47242
47243 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47244             Bruno Haible  <bruno@clisp.org>
47245
47246         acl: Fix infinite loop on FreeBSD.
47247         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47248         of return value from acl_get_entry.
47249         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47250         Likewise.
47251
47252 2009-05-03  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/acl-internal.h (acl_entries): Clarify return value.
47255         * lib/acl_entries.c (acl_entries): Likewise.
47256
47257 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47258
47259         Bug fix in acl module.
47260         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47261
47262 2009-05-03  Bruno Haible  <bruno@clisp.org>
47263
47264         Create gperf-generated file in the source dir, not in the build dir.
47265         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47266         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47267         * modules/unicase/locale-language (unicase/locale-languages.h):
47268         Likewise.
47269         * modules/unicase/special-casing (unicase/special-casing-table.h):
47270         Likewise.
47271         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47272         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47273         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47274         Reported by Ralf Wildenhues.
47275
47276 2009-05-03  Bruno Haible  <bruno@clisp.org>
47277
47278         * modules/fnmatch (Description, configure.ac): Taken from
47279         fnmatch-posix.
47280         * modules/fnmatch-posix: Turn into a symbolic reference to the
47281         'fnmatch' module, and deprecate.
47282         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47283
47284 2009-05-03  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47287         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47288         Reported by Ralf Wildenhues.
47289
47290 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47291
47292         * m4/fnmatch.m4: Fix fnmatch re-define.
47293
47294 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47295
47296         priv-set: new module and tests; adapt write-any-file
47297         * lib/priv-set.c: New file.
47298         * lib/priv-set.h: New file.
47299         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47300         * lib/write-any-file.c: Simplify by using priv-set module.
47301         * m4/priv-set.m4: New file.
47302         * modules/priv-set: New file.
47303         * modules/unlinkdir: Add dependency on priv-set module.
47304         * modules/write-any-file: Likewise.
47305
47306         Tests for module 'priv-set'.
47307         * modules/priv-set-tests: New file.
47308         * tests/test-priv-set.c: New file.
47309
47310 2009-05-03  Jim Meyering  <meyering@redhat.com>
47311             Bruno Haible  <bruno@clisp.org>
47312
47313         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47314         use the converted UTF-8 variant of the name instead.
47315
47316 2009-05-03  Jim Meyering  <meyering@redhat.com>
47317
47318         tests: tighten some getdate tests
47319         * tests/test-getdate.c (main): Tighten tests: require equality,
47320         not just greater than.  Set TZ envvar to UTC0.
47321
47322 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47323
47324         getdate: correctly interpret "next monday" when run on a Monday
47325         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47326         that e.g., "next tues" (when run on a tuesday) results in a date
47327         that is one week in the future, and not today's date.
47328         I.e., add a week when the wday is the same as the current one.
47329         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47330         and earlier by Martin Bernreuther and Jan Minář.
47331         * tests/test-getdate.c (main): Check that "next DAY" is always in
47332         the future and that "last DAY" is always in the past.
47333
47334 2009-05-02  Jim Meyering  <meyering@redhat.com>
47335
47336         build: ensure that a release build fails when a submodule is unclean
47337         * top/maint.mk (no-submodule-changes): New rule.
47338         (alpha beta major): Depend on it.
47339
47340 2009-05-02  Bruno Haible  <bruno@clisp.org>
47341
47342         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47343         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47344         shell variable gl_fnmatch_required to detect which variant is
47345         requested.
47346         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47347         gl_FUNC_FNMATCH_POSIX.
47348         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47349         exclude fnmatch-posix.
47350
47351 2009-05-02  Bruno Haible  <bruno@clisp.org>
47352
47353         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47354         * modules/mbsrtowcs (License): Change to LGPLv2+.
47355         * modules/strnlen1 (License): Likewise.
47356         Reported by Simon Josefsson.
47357
47358 2009-05-02  Bruno Haible  <bruno@clisp.org>
47359
47360         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47361         "cross".
47362         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47363         gnulib-tool was called with option --source-base=lib.
47364
47365 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47366
47367         Use automake *-local hooks without commands, for extensibility.
47368         * modules/localcharset (Makefile.am): Rename install-exec-local
47369         rule to install-exec-localcharset, and make it a prerequisite of
47370         install-exec-local.  Likewise, rename the uninstall-local rule to
47371         uninstall-localcharset, and make it a prerequisite of the former.
47372
47373 2009-05-01  Bruno Haible  <bruno@clisp.org>
47374
47375         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47376         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47377         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47379         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47380         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47381         m4/locale-zh.m4, m4/codeset.m4.
47382
47383         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47384         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47385         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47386         m4/locale-zh.m4.
47387
47388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47389         REPLACE_WCRTOMB if mbstate_t must be replaced.
47390         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47391         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47392
47393 2009-05-01  Bruno Haible  <bruno@clisp.org>
47394
47395         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47396         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47397         dngettext, dcngettext, textdomain, bindtextdomain,
47398         bind_textdomain_codeset): Undefine before redefining.
47399
47400 2009-04-30  Bruno Haible  <bruno@clisp.org>
47401
47402         Fix bug introduced on 2009-04-25.
47403         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47404         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47405         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47406         is defined.
47407         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47408         is defined.
47409         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47410         is defined.
47411         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47412
47413 2009-04-28  Bruno Haible  <bruno@clisp.org>
47414
47415         Comment tweaks.
47416         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47417         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47418         * lib/unicase.h (u*_casexfrm): Likewise.
47419         Reported by Paolo Bonzini.
47420
47421 2009-04-28  Bruno Haible  <bruno@clisp.org>
47422
47423         Fix a compilation error.
47424         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47425         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47426         Reported by Jim Meyering.
47427
47428 2009-04-27  Bruno Haible  <bruno@clisp.org>
47429
47430         New module 'libunistring'.
47431         * modules/libunistring: New file.
47432         * m4/libunistring.m4: New file.
47433         * MODULES.html.sh (Unicode string functions): Add it.
47434
47435 2009-04-27  Eric Blake  <ebb9@byu.net>
47436
47437         maint.mk: allow package-specific header to provide <config.h>
47438         * top/maint.mk (sc_require_config_h): New variable.
47439         (sc_require_config_h, sc_require_config_h_first): Use it.
47440
47441 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47442
47443         * top/maint.mk (sc_avoid_if_before_free): Except
47444         useless-if-before-free script.
47445
47446 2009-04-27  Eric Blake  <ebb9@byu.net>
47447
47448         maintainer-makefile: depend on all required helper scripts
47449         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47450         useless-if-before-free.
47451         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47452         version, rather than assuming gnulib checkout is available.
47453         Reported by Simen Josefsson.
47454
47455 2009-04-26  Bruno Haible  <bruno@clisp.org>
47456
47457         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47458         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47459         "../" or "..".
47460
47461 2009-04-26  Bruno Haible  <bruno@clisp.org>
47462
47463         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47464         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47465         AC_LIB_HAVE_LINKFLAGS.
47466
47467 2009-04-26  Bruno Haible  <bruno@clisp.org>
47468
47469         Simplify calling convention of u*_conv_from_encoding.
47470         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47471         u32_conv_from_encoding): Expect a resultbuf argument and return the
47472         result directly as a pointer.
47473         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47474         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47475         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47476         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47477         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47478         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47479         Update.
47480         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47481         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47482         * lib/vasnprintf.c (VASNPRINTF): Update.
47483         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47484         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47485         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47486         * NEWS: Mention the change.
47487
47488 2009-04-26  Bruno Haible  <bruno@clisp.org>
47489
47490         Simplify calling convention of u*_conv_to_encoding.
47491         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47492         u32_conv_to_encoding): Expect a resultbuf argument and return the
47493         result directly as a pointer.
47494         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47495         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47496         freeing scaled_offsets if mem_iconveha failed.
47497         * lib/unicase/u-casexfrm.h (FUNC): Update.
47498         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47499         * lib/vasnprintf.c (VASNPRINTF): Update.
47500         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47501         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47502         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47503         * NEWS: Mention the change.
47504
47505 2009-04-26  Bruno Haible  <bruno@clisp.org>
47506
47507         Avoid test failures on AIX and OSF/1.
47508         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47509         malloc(0).
47510         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47511         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47512         Likewise.
47513         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47514         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47515         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47516         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47517         * doc/posix-functions/malloc.texi: Document the portability problem
47518         related to malloc(0).
47519
47520 2009-04-26  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47523         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47524         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47525
47526 2009-04-25  Bruno Haible  <bruno@clisp.org>
47527
47528         Avoid link error when creating a namespace clean library.
47529         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47530         as macro with arguments if already defined as an alias.
47531         * lib/signbitf.c (gl_signbitf): Don't undefine.
47532         * lib/signbitd.c (gl_signbitd): Don't undefine.
47533         * lib/signbitl.c (gl_signbitl): Don't undefine.
47534
47535 2009-04-25  Jim Meyering  <meyering@redhat.com>
47536
47537         vc-list-files: fix another quoting bug
47538         * build-aux/vc-list-files: Avoid sed backslash expansion
47539         of pathological directory names.
47540
47541 2009-04-25  Eric Blake  <ebb9@byu.net>
47542
47543         vc-list-files: fix shell quoting error
47544         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47545         timestamp.
47546
47547 2009-04-25  Jim Meyering  <meyering@redhat.com>
47548
47549         vc-list-files: restore lost functionality with subdir argument
47550         * build-aux/vc-list-files: When given a non-"." sub-directory
47551         argument, substitute the $dir/ prefix back onto each resulting name.
47552         Otherwise, coreutils' root_tests check would fail.
47553
47554 2009-04-24  Eric Blake  <ebb9@byu.net>
47555
47556         vc-list-files: ignore git symlinks
47557         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47558         than ls-files, to ignore git symlinks.
47559
47560         maint.mk: import improvements from m4
47561         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47562         (move_if_change): Delete unused macro.
47563         (news-date-check, vc-diff-check): Support VPATH builds.
47564         (announcement): Likewise.  Split --bootstrap-tools list...
47565         (boostrap-tools): ...into separate list, which can be overridden
47566         in cfg.mk.
47567         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47568         requiring dependency on useless-if-before-free module.
47569         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47570         Support VPATH builds.
47571
47572 2009-04-24  Jim Meyering  <meyering@redhat.com>
47573
47574         maint.mk: remove coreutils-specific rules and variables
47575         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47576         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47577         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47578
47579         maint.mk: remove obsolete rule
47580         * top/maint.mk (rel-check): Remove rule.
47581         (WGET, WGETFLAGS): Remove now-unused variables.
47582
47583 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47584
47585         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47586         consistency.
47587
47588         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47589         '$(PATH_SEPARATOR)' instead of ':'.
47590
47591 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47592
47593         * lib/getopt1.c (main): Use 'const' for static array.
47594
47595 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47596
47597         * top/maint.mk: Sync with coreutils.
47598         * NEWS: Explain incompatibilities.
47599
47600 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47601             Bruno Haible  <bruno@clisp.org>
47602
47603         Fix cross-compilation results.
47604         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47605         statement, as third argument of AC_TRY_RUN.
47606         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47607         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47608         Likewise.
47609         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47610         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47611         Likewise.
47612         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47613         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47614         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47615
47616 2009-04-20  Bruno Haible  <bruno@clisp.org>
47617
47618         Avoid test failure on mingw.
47619         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47620
47621 2009-04-20  Bruno Haible  <bruno@clisp.org>
47622
47623         Avoid compilation error on mingw.
47624         * modules/localename-tests (Depends-on): Add locale.
47625
47626 2009-04-19  Bruno Haible  <bruno@clisp.org>
47627
47628         Support for building a shared library on Windows platforms.
47629         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47630         (main): Test the presence of UNINORM_NFC here.
47631         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47632         (main): Test the presence of UNINORM_NFD here.
47633         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47634         (main): Test the presence of UNINORM_NFKC here.
47635         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47636         (main): Test the presence of UNINORM_NFKD here.
47637
47638 2009-04-19  Bruno Haible  <bruno@clisp.org>
47639
47640         Avoid a compiler warning.
47641         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47642         Change type of variable 'sequence'.
47643
47644 2009-04-19  Bruno Haible  <bruno@clisp.org>
47645
47646         * modules/configmake (Makefile.am): When the contents of configmake.h
47647         does not change, arrange to preserve its modification time.
47648
47649 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47650
47651         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47652         gettext domain.
47653
47654 2009-04-16  Jim Meyering  <meyering@redhat.com>
47655
47656         useless-if-before-free: improve conversion code
47657         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47658         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47659
47660 2009-04-14  Bruno Haible  <bruno@clisp.org>
47661
47662         * modules/fcntl (Depends-on): Add extensions.
47663         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47664
47665 2009-04-12  Ben Pfaff  <blp@gnu.org>
47666
47667         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47668         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47669
47670 2009-03-20  Ben Pfaff  <blp@gnu.org>
47671
47672         Make rename replace existing destinations on Windows.
47673         * m4/rename.m4: Add test for Mingw.
47674         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47675         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47676         * doc/posix-functions/rename.texi: Document.
47677
47678 2009-04-10  Bruno Haible  <bruno@clisp.org>
47679
47680         New include file "iconveh.h".
47681         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47682         * lib/striconveh.h: Include it.
47683         (enum iconv_ilseq_handler): Remove definition.
47684         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47685         striconveh.h.
47686         * lib/striconveha.c: Include striconveh.h.
47687         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47688         * modules/striconveh (Files): Add lib/iconveh.h.
47689         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47690         lib/striconveh.h.
47691
47692 2009-04-10  Bruno Haible  <bruno@clisp.org>
47693
47694         * lib/uniconv.h: Update comment.
47695
47696 2009-04-10  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47699         always.
47700         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47701         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47702         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47703         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47704         "unistring-notinline.h", so that the function gets defined always.
47705         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47706         * lib/unistr/u8-uctomb.c: Likewise.
47707         * lib/unistr/u16-mbtouc.c: Likewise.
47708         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47709         * lib/unistr/u16-uctomb.c: Likewise.
47710         * lib/unistr/u32-mbtouc.c: Likewise.
47711         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47712         * lib/unistr/u32-uctomb.c: Likewise.
47713
47714 2009-04-10  Bruno Haible  <bruno@clisp.org>
47715
47716         Mark 'utime' obsolete.
47717         * modules/utime (Status, Notice): New sections.
47718         Suggested by Jim Meyering.
47719
47720         Fix cross-compile guess for utime test.
47721         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47722         autoconf.
47723         * doc/posix-functions/utime.texi: Give more precisions.
47724         Reported by Jan <ipif@ymail.com>.
47725
47726 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47727
47728         filevercmp: correct today's change
47729         * lib/filevercmp.c: Also handle coreutils' test inputs.
47730         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47731
47732         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47733         for reporting it.
47734         * lib/filevercmp.c: Special handle for "", "." and "..".
47735         * tests/test-filevercmp.c: Enlarge the set suite.
47736
47737 2009-04-07  Jim Meyering  <meyering@redhat.com>
47738
47739         useless-if-before-free: show how to remove braced useless free, too
47740         * build-aux/useless-if-before-free: still only in a comment, though.
47741
47742 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47743
47744         maint.mk: import changes to syntax-check macros from coreutils
47745         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47746         Use them in the relevant macros.
47747
47748 2009-04-06  Bruno Haible  <bruno@clisp.org>
47749
47750         Fix unportable use of bit-fields.
47751         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47752         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47753         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47754
47755 2009-04-06  Bruno Haible  <bruno@clisp.org>
47756
47757         Avoid test failures on AIX and OSF/1.
47758         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47759         that malloc(0) = NULL.
47760         * tests/unicase/test-u8-tolower.c (check): Likewise.
47761         * tests/unicase/test-u8-totitle.c (check): Likewise.
47762         * tests/unicase/test-u8-toupper.c (check): Likewise.
47763         * tests/unicase/test-u16-casefold.c (check): Likewise.
47764         * tests/unicase/test-u16-tolower.c (check): Likewise.
47765         * tests/unicase/test-u16-totitle.c (check): Likewise.
47766         * tests/unicase/test-u16-toupper.c (check): Likewise.
47767         * tests/unicase/test-u32-casefold.c (check): Likewise.
47768         * tests/unicase/test-u32-tolower.c (check): Likewise.
47769         * tests/unicase/test-u32-totitle.c (check): Likewise.
47770         * tests/unicase/test-u32-toupper.c (check): Likewise.
47771         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47772         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47773         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47774         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47775         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47776         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47777         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47778         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47779         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47780         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47781         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47782         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47783
47784 2009-04-05  Bruno Haible  <bruno@clisp.org>
47785
47786         Work around an autoconf limitation.
47787         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47788         comment line if it would be longer than 3 KB.
47789
47790 2009-04-05  Bruno Haible  <bruno@clisp.org>
47791
47792         Avoid test failure with libiconv-1.13.
47793         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47794         of the expected test results.
47795
47796 2009-04-05  Bruno Haible  <bruno@clisp.org>
47797
47798         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47799         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47800         that it should be installed.
47801
47802 2009-04-05  Bruno Haible  <bruno@clisp.org>
47803
47804         * gnulib-tool: New option --copy-file.
47805         (func_usage): Document it.
47806         (func_dest_tmpfilename): Moved out of func_import.
47807         (func_add_file, func_update_file): New functions, extracted from
47808         func_import.
47809         (func_import): Update.
47810
47811 2009-04-05  Karl Berry  <karl@gnu.org>
47812
47813         * README: prominently mention gnulib-tool.
47814         Rearrange sections so getting the code is near the top.
47815
47816 2009-04-05  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/unicase.h: Mention u*_cmp2.
47819         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47820         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47821         * lib/unicase/ulc-casecmp.c: Likewise.
47822         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47823         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47824         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47825         unistr/u8-cmp.
47826         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47827         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47828         unistr/u16-cmp.
47829         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47830         unistr/u32-cmp.
47831
47832         * lib/uninorm.h: Mention u*_cmp2.
47833         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47834         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47835         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47836         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47837         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47838         unistr/u8-cmp.
47839         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47840         unistr/u16-cmp.
47841         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47842         unistr/u32-cmp.
47843
47844         New module 'unistr/u32-cmp2'.
47845         * lib/unistr/u32-cmp2.c: New file.
47846         * modules/unistr/u32-cmp2: New file.
47847
47848         New module 'unistr/u16-cmp2'.
47849         * lib/unistr/u16-cmp2.c: New file.
47850         * modules/unistr/u16-cmp2: New file.
47851
47852         New module 'unistr/u8-cmp2'.
47853         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47854         * lib/unistr/u8-cmp2.c: New file.
47855         * lib/unistr/u-cmp2.h: New file.
47856         * modules/unistr/u8-cmp2: New file.
47857
47858 2009-04-05  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/unictype.h (uc_property_is_valid): New macro.
47861         * tests/unictype/test-pr_byname.c (main): Use it.
47862
47863         * lib/unistr.h: Doc fixes.
47864         * lib/uniconv.h: Doc fixes.
47865         * lib/unictype.h: Doc fixes.
47866
47867 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         Port coreutils 7.2 to Solaris 8.
47870
47871         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47872         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47873         for Solaris 8.  This is a bit of a hack, as it means it's the
47874         caller's responsibility to add -lnsl if needed, but most likely it
47875         won't be needed since only getaddrinfo uses this and getaddrinfo
47876         isn't needed on Solaris 8.
47877
47878         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47879         problem to Solaris 8 encountered with coreutils 7.2, which
47880         resulted in a message "fnmatch.c:292: warning: passing argument 4
47881         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47882         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47883
47884 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47885
47886         * m4/ld-version-script.m4: Add FIXME comment.
47887
47888 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47889
47890         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47891         SOVERSION variable.
47892
47893 2009-04-02  Bruno Haible  <bruno@clisp.org>
47894
47895         * Makefile (info, html, dvi, pdf): Combine the rules.
47896         Suggested by Jim Meyering.
47897
47898 2009-04-01  Bruno Haible  <bruno@clisp.org>
47899
47900         * Makefile (info, html, dvi, pdf): New targets.
47901         Reported by Reuben Thomas <rrt@sc3d.org>.
47902
47903 2009-04-01  Bruno Haible  <bruno@clisp.org>
47904
47905         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47906         can be put into PATH.
47907         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47908
47909 2009-04-01  Bruno Haible  <bruno@clisp.org>
47910
47911         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47912
47913 2009-04-01  Bruno Haible  <bruno@clisp.org>
47914
47915         Rename module 'visibility'.
47916         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47917         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47918         * doc/gnulib.texi: Update.
47919         * MODULES.html.sh (Misc): Update.
47920         * NEWS: Mention the change.
47921
47922 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47923
47924         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47925         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47926         Eric Blake <ebb9@byu.net> for review.
47927         * MODULES.html.sh: Add lib-msvc-compat.
47928         * doc/gnulib.texi: Link to new section.
47929         * m4/ld-output-def.m4: New file.
47930         * doc/ld-output-def.texi: New file.
47931
47932 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47933
47934         Rename ld-version-script to lib-symbol-versions.  Suggested by
47935         Bruno Haible <bruno@clisp.org>.
47936         * modules/ld-version-script: Renamed to lib-symbol-versions.
47937         * doc/ld-version-script.texi: Fix module name.
47938         * MODULES.html.sh: Add lib-symbol-versions.
47939
47940 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47941
47942         * modules/u64-tests: New file.
47943         * tests/test-u64.c: New file.
47944
47945 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47946
47947         * MODULES.html.sh: Mention u64.
47948         * modules/u64: New module.
47949         * modules/crypto/sha512: Depend on u64 module instead of providing
47950         u64.h.
47951
47952 2009-03-27  Eric Blake  <ebb9@byu.net>
47953
47954         test-strerror: make debugging EAI_SYSTEM easier
47955         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47956         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47957         failure was EAI_SYSTEM.
47958
47959 2009-03-25  Bruno Haible  <bruno@clisp.org>
47960
47961         Fix a problem with --enable-relocatable on Solaris 7.
47962         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47963         since 2008-02-24.
47964
47965 2009-03-25  Eric Blake  <ebb9@byu.net>
47966
47967         test-sockets: avoid gcc warning
47968         * tests/test-sockets.c (main): Silence compiler warning.
47969
47970 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47971
47972         New modules nproc, pthread, contributed by Glen Lenker.
47973
47974         * MODULES.html.sh: Add pthread, nproc.
47975         * lib/nproc.c: New file.
47976         * lib/nproc.h: New file.
47977         * lib/pthread.in.h: New file.
47978         * m4/pthread.m4: New file.
47979         * modules/nproc: New file.
47980         * modules/pthread: New file.
47981
47982 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47983
47984         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47985         New variable.
47986
47987 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47988
47989         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47990         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47991         * tests/test-filevercmp.c: Add tests for backup suffixes.
47992
47993 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47994
47995         * modules/stdlib (Depends-on): Add stdint, needed when defining
47996         struct random_data on, for example, HP-UX 10.20.  Reported by
47997         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47998
47999 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48000
48001         * lib/readline.c (readline): Call fflush on stdout after printing
48002         prompt.
48003
48004 2009-03-20  Bruno Haible  <bruno@clisp.org>
48005
48006         Remove dependency from 'close' module to -lws2_32 on native Windows.
48007         * lib/close-hook.h: New file.
48008         * lib/close-hook.c: New file.
48009         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48010         w32sock.h.
48011         (_gl_close_fd_maybe_socket): Remove function.
48012         (rpl_close): Invoke execute_all_close_hooks instead of
48013         _gl_close_fd_maybe_socket.
48014         * lib/sockets.c: Include close-hook.h, w32sock.h.
48015         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48016         (close_sockets_hook): New variable.
48017         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48018         (gl_sockets_cleanup): Unregister it.
48019         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48020         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48021         * modules/close-hook: New file.
48022         * modules/close (Files): Remove lib/w32sock.h.
48023         (Depends-on): Add close-hook.
48024         (Link): Remove section.
48025         * modules/sockets (Files): Add lib/w32sock.h.
48026         (Depends-on): Add close-hook.
48027         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48028         invocation.
48029         * NEWS: Mention that LIB_CLOSE is gone.
48030
48031 2009-03-23  Eric Blake  <ebb9@byu.net>
48032
48033         signal-tests: test previous patch
48034         * tests/test-signal.c: New file.
48035         * modules/signal-tests: Likewise.
48036
48037         signal.h: always support 'volatile sig_atomic_t'
48038         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48039         (gl_SIGNAL_H_DEFAULTS): Add a default.
48040         * modules/signal (Makefile.am): Substitute if needed.
48041         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48042         users can blindly add volatile.
48043         * doc/posix-headers/signal.texi (signal.h): Document it.
48044         Reported by Matthew Woehlke.
48045
48046 2009-03-23  Jim Meyering  <meyering@redhat.com>
48047
48048         pathmax: PATH_MAX: use pathconf only when available
48049         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48050         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48051         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48052         This avoids a link failure in a PSP cross-compilation environment
48053         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48054
48055         * lib/vasnprintf.c (divide): Fix typo in comment.
48056
48057 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48058
48059         * gnulib-tool (func_filter_filelist): Fix comment.
48060
48061 2009-03-20  Bruno Haible  <bruno@clisp.org>
48062
48063         Make sockets.h self-contained.
48064         * lib/sockets.c: Include sockets.h first.
48065         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48066
48067 2009-03-19  Eric Blake  <ebb9@byu.net>
48068
48069         doc: mention more functions added in cygwin 1.7.0
48070         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48071         addition.
48072         * doc/posix-functions/log2f.texi: Likewise.
48073
48074 2009-03-19  Jim Meyering  <meyering@redhat.com>
48075
48076         fsusage: avoid syntax error due to statement-before-declaration
48077         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48078         after all declarations.  Reported by Matthew Woehlke in
48079         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48080
48081 2009-03-18  Eric Blake  <ebb9@byu.net>
48082
48083         build-aux/compile: sync from automake
48084         * build-aux/compile: New file, from automake.
48085         * config/srclist.txt: Mention build-aux/compile.
48086
48087 2009-03-17  Bruno Haible  <bruno@clisp.org>
48088
48089         * lib/git-merge-changelog.c: Fix typo in comment.
48090         Reported by Reuben Thomas <rrt@sc3d.org>.
48091
48092 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48093
48094         * m4/regex.m4: update and improve help for
48095         --without-included-regex.
48096
48097 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48098
48099         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48100         failure on missing include files.
48101
48102 2009-03-17  Eric Blake  <ebb9@byu.net>
48103
48104         doc: mention more functions added in cygwin 1.7.0
48105         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48106         addition.
48107         * doc/posix-functions/fwscanf.texi: Likewise.
48108         * doc/posix-functions/swprintf.texi: Likewise.
48109         * doc/posix-functions/swscanf.texi: Likewise.
48110         * doc/posix-functions/vfwprintf.texi: Likewise.
48111         * doc/posix-functions/vfwscanf.texi: Likewise.
48112         * doc/posix-functions/vswprintf.texi: Likewise.
48113         * doc/posix-functions/vswscanf.texi: Likewise.
48114         * doc/posix-functions/vwprintf.texi: Likewise.
48115         * doc/posix-functions/vwscanf.texi: Likewise.
48116         * doc/posix-functions/wcscasecmp.texi: Likewise.
48117         * doc/posix-functions/wcsdup.texi: Likewise.
48118         * doc/posix-functions/wcsftime.texi: Likewise.
48119         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48120         * doc/posix-functions/wprintf.texi: Likewise.
48121         * doc/posix-functions/wscanf.texi: Likewise.
48122         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48123
48124 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48125
48126         maint.mk: really add $(AM_MAKEFLAGS)
48127         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48128         was inadvertently omitted in the last commit.
48129         Spotted by Bruno Haible.
48130
48131         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48132         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48133         $(AM_MAKEFLAGS)' rather than plain `make'.
48134
48135         gnulib-tool: execute $MAKE not make
48136         * gnulib-tool: Default $MAKE to 'make'.
48137         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48138         than make.  Initialize $MAKE in the do-autobuild script.
48139
48140         gnulib-tool: use $MAKE not make in generated files
48141         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48142         make, in generated files.  Initialize $MAKE in the do-autobuild
48143         script.
48144
48145         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48146
48147         GNUmakefile: disable parallelism only for multiple, recursive targets
48148         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48149         additions in the Makefile.
48150         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48151         by Automake.
48152         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48153         are listed on the command line and at least one of them is
48154         listed in $(ALL_RECURSIVE_TARGETS).
48155
48156 2009-03-14  Bruno Haible  <bruno@clisp.org>
48157
48158         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48159         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48160         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48161         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48162         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48163         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48164         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48165         unistr/u8-uctomb.
48166         * modules/unistr/u8-strchr (Depends-on): Likewise.
48167         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48168         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48169         unistr/u16-uctomb.
48170         * modules/unistr/u16-strchr (Depends-on): Likewise.
48171         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48172
48173 2009-03-12  Bruno Haible  <bruno@clisp.org>
48174
48175         Work around select() bug on Interix 3.5.
48176         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48177         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48178         * m4/select.m4: New file.
48179         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48180         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48181         * modules/select (Files): Add m4/select.m4.
48182         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48183         * modules/nanosleep (Depends-on): Add select.
48184         * modules/poll (Depends-on): Likewise.
48185         * doc/posix-functions/select.texi: Mention the Interix bug.
48186         Reported by Markus Duft <mduft@gentoo.org>.
48187
48188         * lib/select.c: Renamed from lib/winsock-select.c.
48189         * modules/select (Files): Add lib/select.c, remove
48190         lib/winsock-select.c.
48191         (configure.ac): Update.
48192
48193 2009-03-12  Jim Meyering  <meyering@redhat.com>
48194
48195         avoid gcc warnings about unused macro definitions
48196         * lib/readtokens.c (STREQ): Remove unused definition.
48197         * lib/xmalloc.c (SIZE_MAX): Likewise.
48198         * lib/openat-die.c (N_): Likewise.
48199         * lib/mountlist.c (SIZE_MAX): Remove definition.
48200         Instead, include <stdint.h>.
48201         * lib/readutmp.c: Likewise.
48202         * modules/readutmp (Depends-on): Add stdint.
48203         * modules/mountlist (Depends-on): Add stdint.
48204         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48205
48206 2009-03-10  Bruno Haible  <bruno@clisp.org>
48207
48208         Tests for module 'mbmemcasecoll'.
48209         * modules/mbmemcasecoll-tests: New file.
48210         * tests/test-mbmemcasecoll1.sh: New file.
48211         * tests/test-mbmemcasecoll2.sh: New file.
48212         * tests/test-mbmemcasecoll3.sh: New file.
48213         * tests/test-mbmemcasecoll.c: New file.
48214
48215         New module 'mbmemcasecoll'.
48216         * lib/mbmemcasecoll.h: New file.
48217         * lib/mbmemcasecoll.c: New file.
48218         * modules/mbmemcasecoll: New file.
48219
48220         * tests/test-mbmemcasecmp.h: New file, extracted from
48221         tests/test-mbmemcasecmp.c.
48222         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48223         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48224         (main): Update.
48225         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48226
48227 2009-03-09  Bruno Haible  <bruno@clisp.org>
48228
48229         Tests for module 'mbmemcasecmp'.
48230         * modules/mbmemcasecmp-tests: New file.
48231         * tests/test-mbmemcasecmp1.sh: New file.
48232         * tests/test-mbmemcasecmp2.sh: New file.
48233         * tests/test-mbmemcasecmp3.sh: New file.
48234         * tests/test-mbmemcasecmp.c: New file.
48235
48236         New module 'mbmemcasecmp'.
48237         * lib/mbmemcasecmp.h: New file.
48238         * lib/mbmemcasecmp.c: New file.
48239         * modules/mbmemcasecmp: New file.
48240
48241 2009-03-09  Bruno Haible  <bruno@clisp.org>
48242
48243         Tests for module 'unicase/ulc-casecoll'.
48244         * modules/unicase/ulc-casecoll-tests: New file.
48245         * tests/unicase/test-ulc-casecoll1.sh: New file.
48246         * tests/unicase/test-ulc-casecoll2.sh: New file.
48247         * tests/unicase/test-ulc-casecoll.c: New file.
48248
48249         New module 'unicase/ulc-casecoll'.
48250         * lib/unicase.h (ulc_casecoll): New declaration.
48251         * lib/unicase/ulc-casecoll.c: New file.
48252         * modules/unicase/ulc-casecoll: New file.
48253
48254         New module 'unicase/ulc-casexfrm'.
48255         * lib/unicase.h (ulc_casexfrm): New declaration.
48256         * lib/unicase/ulc-casexfrm.c: New file.
48257         * modules/unicase/ulc-casexfrm: New file.
48258
48259 2009-03-09  Bruno Haible  <bruno@clisp.org>
48260
48261         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48262         invocations.
48263
48264         * m4/mbscasecmp.m4: Remove file.
48265         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48266         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48267
48268         * m4/mbscasestr.m4: Remove file.
48269         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48270         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48271
48272         * m4/mbschr.m4: Remove file.
48273         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48274         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48275
48276         * m4/mbscspn.m4: Remove file.
48277         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48278         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48279
48280         * m4/mbslen.m4: Remove file.
48281         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48282         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48283
48284         * m4/mbsncasecmp.m4: Remove file.
48285         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48286         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48287
48288         * m4/mbsnlen.m4: Remove file.
48289         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48290         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48291
48292         * m4/mbspbrk.m4: Remove file.
48293         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48294         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48295
48296         * m4/mbspcasecmp.m4: Remove file.
48297         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48298         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48299
48300         * m4/mbsrchr.m4: Remove file.
48301         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48302         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48303
48304         * m4/mbssep.m4: Remove file.
48305         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48306         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48307
48308         * m4/mbsspn.m4: Remove file.
48309         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48310         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48311
48312         * m4/mbsstr.m4: Remove file.
48313         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48314         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48315
48316         * m4/mbstok_r.m4: Remove file.
48317         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48318         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48319
48320         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48321
48322         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48323         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48324
48325         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48326
48327 2009-03-08  Bruno Haible  <bruno@clisp.org>
48328
48329         Tests for module 'unicase/ulc-casecmp'.
48330         * modules/unicase/ulc-casecmp-tests: New file.
48331         * tests/unicase/test-ulc-casecmp1.sh: New file.
48332         * tests/unicase/test-ulc-casecmp2.sh: New file.
48333         * tests/unicase/test-ulc-casecmp.c: New file.
48334
48335         New module 'unicase/ulc-casecmp'.
48336         * lib/unicase.h (ulc_casecmp): New declaration.
48337         * lib/unicase/ulc-casecmp.c: New file.
48338         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48339         'const SRC_UNIT *'.
48340         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48341         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48342         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48343         * modules/unicase/ulc-casecmp: New file.
48344
48345         Tests for module 'unicase/u32-is-cased'.
48346         * modules/unicase/u32-is-cased-tests: New file.
48347         * tests/unicase/test-u32-is-cased.c: New file.
48348
48349         Tests for module 'unicase/u16-is-cased'.
48350         * modules/unicase/u16-is-cased-tests: New file.
48351         * tests/unicase/test-u16-is-cased.c: New file.
48352
48353         Tests for module 'unicase/u8-is-cased'.
48354         * modules/unicase/u8-is-cased-tests: New file.
48355         * tests/unicase/test-u8-is-cased.c: New file.
48356         * tests/unicase/test-is-cased.h: New file.
48357
48358         New module 'unicase/u32-is-cased'.
48359         * lib/unicase/u32-is-cased.c: New file.
48360         * modules/unicase/u32-is-cased: New file.
48361
48362         New module 'unicase/u16-is-cased'.
48363         * lib/unicase/u16-is-cased.c: New file.
48364         * modules/unicase/u16-is-cased: New file.
48365
48366         New module 'unicase/u8-is-cased'.
48367         * lib/unicase/u8-is-cased.c: New file.
48368         * lib/unicase/u-is-cased.h: New file.
48369         * modules/unicase/u8-is-cased: New file.
48370
48371         Tests for module 'unicase/u32-is-casefolded'.
48372         * modules/unicase/u32-is-casefolded-tests: New file.
48373         * tests/unicase/test-u32-is-casefolded.c: New file.
48374
48375         Tests for module 'unicase/u16-is-casefolded'.
48376         * modules/unicase/u16-is-casefolded-tests: New file.
48377         * tests/unicase/test-u16-is-casefolded.c: New file.
48378
48379         Tests for module 'unicase/u8-is-casefolded'.
48380         * modules/unicase/u8-is-casefolded-tests: New file.
48381         * tests/unicase/test-u8-is-casefolded.c: New file.
48382         * tests/unicase/test-is-casefolded.h: New file.
48383
48384         New module 'unicase/u32-is-casefolded'.
48385         * lib/unicase/u32-is-casefolded.c: New file.
48386         * modules/unicase/u32-is-casefolded: New file.
48387
48388         New module 'unicase/u16-is-casefolded'.
48389         * lib/unicase/u16-is-casefolded.c: New file.
48390         * modules/unicase/u16-is-casefolded: New file.
48391
48392         New module 'unicase/u8-is-casefolded'.
48393         * lib/unicase/u8-is-casefolded.c: New file.
48394         * modules/unicase/u8-is-casefolded: New file.
48395
48396         Tests for module 'unicase/u32-is-titlecase'.
48397         * modules/unicase/u32-is-titlecase-tests: New file.
48398         * tests/unicase/test-u32-is-titlecase.c: New file.
48399
48400         Tests for module 'unicase/u16-is-titlecase'.
48401         * modules/unicase/u16-is-titlecase-tests: New file.
48402         * tests/unicase/test-u16-is-titlecase.c: New file.
48403
48404         Tests for module 'unicase/u8-is-titlecase'.
48405         * modules/unicase/u8-is-titlecase-tests: New file.
48406         * tests/unicase/test-u8-is-titlecase.c: New file.
48407         * tests/unicase/test-is-titlecase.h: New file.
48408
48409         New module 'unicase/u32-is-titlecase'.
48410         * lib/unicase/u32-is-titlecase.c: New file.
48411         * modules/unicase/u32-is-titlecase: New file.
48412
48413         New module 'unicase/u16-is-titlecase'.
48414         * lib/unicase/u16-is-titlecase.c: New file.
48415         * modules/unicase/u16-is-titlecase: New file.
48416
48417         New module 'unicase/u8-is-titlecase'.
48418         * lib/unicase/u8-is-titlecase.c: New file.
48419         * modules/unicase/u8-is-titlecase: New file.
48420
48421         Tests for module 'unicase/u32-is-lowercase'.
48422         * modules/unicase/u32-is-lowercase-tests: New file.
48423         * tests/unicase/test-u32-is-lowercase.c: New file.
48424
48425         Tests for module 'unicase/u16-is-lowercase'.
48426         * modules/unicase/u16-is-lowercase-tests: New file.
48427         * tests/unicase/test-u16-is-lowercase.c: New file.
48428
48429         Tests for module 'unicase/u8-is-lowercase'.
48430         * modules/unicase/u8-is-lowercase-tests: New file.
48431         * tests/unicase/test-u8-is-lowercase.c: New file.
48432         * tests/unicase/test-is-lowercase.h: New file.
48433
48434         New module 'unicase/u32-is-lowercase'.
48435         * lib/unicase/u32-is-lowercase.c: New file.
48436         * modules/unicase/u32-is-lowercase: New file.
48437
48438         New module 'unicase/u16-is-lowercase'.
48439         * lib/unicase/u16-is-lowercase.c: New file.
48440         * modules/unicase/u16-is-lowercase: New file.
48441
48442         New module 'unicase/u8-is-lowercase'.
48443         * lib/unicase/u8-is-lowercase.c: New file.
48444         * modules/unicase/u8-is-lowercase: New file.
48445
48446         Tests for module 'unicase/u32-is-uppercase'.
48447         * modules/unicase/u32-is-uppercase-tests: New file.
48448         * tests/unicase/test-u32-is-uppercase.c: New file.
48449
48450         Tests for module 'unicase/u16-is-uppercase'.
48451         * modules/unicase/u16-is-uppercase-tests: New file.
48452         * tests/unicase/test-u16-is-uppercase.c: New file.
48453
48454         Tests for module 'unicase/u8-is-uppercase'.
48455         * modules/unicase/u8-is-uppercase-tests: New file.
48456         * tests/unicase/test-u8-is-uppercase.c: New file.
48457         * tests/unicase/test-is-uppercase.h: New file.
48458
48459         New module 'unicase/u32-is-uppercase'.
48460         * lib/unicase/u32-is-uppercase.c: New file.
48461         * modules/unicase/u32-is-uppercase: New file.
48462
48463         New module 'unicase/u16-is-uppercase'.
48464         * lib/unicase/u16-is-uppercase.c: New file.
48465         * modules/unicase/u16-is-uppercase: New file.
48466
48467         New module 'unicase/u8-is-uppercase'.
48468         * lib/unicase/u8-is-uppercase.c: New file.
48469         * modules/unicase/u8-is-uppercase: New file.
48470
48471         New module 'unicase/u32-is-invariant'.
48472         * lib/unicase/u32-is-invariant.c: New file.
48473         * modules/unicase/u32-is-invariant: New file.
48474
48475         New module 'unicase/u16-is-invariant'.
48476         * lib/unicase/u16-is-invariant.c: New file.
48477         * modules/unicase/u16-is-invariant: New file.
48478
48479         New module 'unicase/u8-is-invariant'.
48480         * lib/unicase/u8-is-invariant.c: New file.
48481         * lib/unicase/invariant.h: New file.
48482         * lib/unicase/u-is-invariant.h: New file.
48483         * modules/unicase/u8-is-invariant: New file.
48484
48485         Tests for module 'unicase/u32-casecoll'.
48486         * modules/unicase/u32-casecoll-tests: New file.
48487         * tests/unicase/test-u32-casecoll.c: New file.
48488
48489         Tests for module 'unicase/u16-casecoll'.
48490         * modules/unicase/u16-casecoll-tests: New file.
48491         * tests/unicase/test-u16-casecoll.c: New file.
48492
48493         Tests for module 'unicase/u8-casecoll'.
48494         * modules/unicase/u8-casecoll-tests: New file.
48495         * tests/unicase/test-u8-casecoll.c: New file.
48496
48497         New module 'unicase/u32-casecoll'.
48498         * lib/unicase/u32-casecoll.c: New file.
48499         * modules/unicase/u32-casecoll: New file.
48500
48501         New module 'unicase/u16-casecoll'.
48502         * lib/unicase/u16-casecoll.c: New file.
48503         * modules/unicase/u16-casecoll: New file.
48504
48505         New module 'unicase/u8-casecoll'.
48506         * lib/unicase/u8-casecoll.c: New file.
48507         * lib/unicase/u-casecoll.h: New file.
48508         * modules/unicase/u8-casecoll: New file.
48509
48510         New module 'unicase/u32-casexfrm'.
48511         * lib/unicase/u32-casexfrm.c: New file.
48512         * modules/unicase/u32-casexfrm: New file.
48513
48514         New module 'unicase/u16-casexfrm'.
48515         * lib/unicase/u16-casexfrm.c: New file.
48516         * modules/unicase/u16-casexfrm: New file.
48517
48518         New module 'unicase/u8-casexfrm'.
48519         * lib/unicase/u8-casexfrm.c: New file.
48520         * lib/unicase/u-casexfrm.h: New file.
48521         * modules/unicase/u8-casexfrm: New file.
48522
48523         Tests for module 'unicase/u32-casecmp'.
48524         * modules/unicase/u32-casecmp-tests: New file.
48525         * tests/unicase/test-u32-casecmp.c: New file.
48526
48527         Tests for module 'unicase/u16-casecmp'.
48528         * modules/unicase/u16-casecmp-tests: New file.
48529         * tests/unicase/test-u16-casecmp.c: New file.
48530
48531         Tests for module 'unicase/u8-casecmp'.
48532         * modules/unicase/u8-casecmp-tests: New file.
48533         * tests/unicase/test-u8-casecmp.c: New file.
48534         * tests/unicase/test-casecmp.h: New file.
48535
48536         New module 'unicase/u32-casecmp'.
48537         * lib/unicase/u32-casecmp.c: New file.
48538         * modules/unicase/u32-casecmp: New file.
48539
48540         New module 'unicase/u16-casecmp'.
48541         * lib/unicase/u16-casecmp.c: New file.
48542         * modules/unicase/u16-casecmp: New file.
48543
48544         New module 'unicase/u8-casecmp'.
48545         * lib/unicase/u8-casecmp.c: New file.
48546         * lib/unicase/u-casecmp.h: New file.
48547         * modules/unicase/u8-casecmp: New file.
48548
48549         Tests for module 'unicase/u32-casefold'.
48550         * modules/unicase/u32-casefold-tests: New file.
48551         * tests/unicase/test-u32-casefold.c: New file.
48552
48553         Tests for module 'unicase/u16-casefold'.
48554         * modules/unicase/u16-casefold-tests: New file.
48555         * tests/unicase/test-u16-casefold.c: New file.
48556
48557         Tests for module 'unicase/u8-casefold'.
48558         * modules/unicase/u8-casefold-tests: New file.
48559         * tests/unicase/test-u8-casefold.c: New file.
48560
48561         New module 'unicase/u32-casefold'.
48562         * lib/unicase/u32-casefold.c: New file.
48563         * modules/unicase/u32-casefold: New file.
48564
48565         New module 'unicase/u16-casefold'.
48566         * lib/unicase/u16-casefold.c: New file.
48567         * modules/unicase/u16-casefold: New file.
48568
48569         New module 'unicase/u8-casefold'.
48570         * lib/unicase/u8-casefold.c: New file.
48571         * lib/unicase/u-casefold.h: New file.
48572         * modules/unicase/u8-casefold: New file.
48573
48574         New module 'unicase/tocasefold'.
48575         * lib/unicase/casefold.h: New file.
48576         * lib/unicase/tocasefold.c: New file.
48577         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48578         * modules/unicase/tocasefold: New file.
48579
48580         Tests for module 'unicase/u32-totitle'.
48581         * modules/unicase/u32-totitle-tests: New file.
48582         * tests/unicase/test-u32-totitle.c: New file.
48583
48584         Tests for module 'unicase/u16-totitle'.
48585         * modules/unicase/u16-totitle-tests: New file.
48586         * tests/unicase/test-u16-totitle.c: New file.
48587
48588         Tests for module 'unicase/u8-totitle'.
48589         * modules/unicase/u8-totitle-tests: New file.
48590         * tests/unicase/test-u8-totitle.c: New file.
48591
48592         New module 'unicase/u32-totitle'.
48593         * lib/unicase/u32-totitle.c: New file.
48594         * modules/unicase/u32-totitle: New file.
48595
48596         New module 'unicase/u16-totitle'.
48597         * lib/unicase/u16-totitle.c: New file.
48598         * modules/unicase/u16-totitle: New file.
48599
48600         New module 'unicase/u8-totitle'.
48601         * lib/unicase/u8-totitle.c: New file.
48602         * lib/unicase/u-totitle.h: New file.
48603         * modules/unicase/u8-totitle: New file.
48604
48605         Tests for module 'unicase/u32-tolower'.
48606         * modules/unicase/u32-tolower-tests: New file.
48607         * tests/unicase/test-u32-tolower.c: New file.
48608
48609         Tests for module 'unicase/u16-tolower'.
48610         * modules/unicase/u16-tolower-tests: New file.
48611         * tests/unicase/test-u16-tolower.c: New file.
48612
48613         Tests for module 'unicase/u8-tolower'.
48614         * modules/unicase/u8-tolower-tests: New file.
48615         * tests/unicase/test-u8-tolower.c: New file.
48616
48617         New module 'unicase/u32-tolower'.
48618         * lib/unicase/u32-tolower.c: New file.
48619         * modules/unicase/u32-tolower: New file.
48620
48621         New module 'unicase/u16-tolower'.
48622         * lib/unicase/u16-tolower.c: New file.
48623         * modules/unicase/u16-tolower: New file.
48624
48625         New module 'unicase/u8-tolower'.
48626         * lib/unicase/u8-tolower.c: New file.
48627         * modules/unicase/u8-tolower: New file.
48628
48629         Tests for module 'unicase/u32-toupper'.
48630         * modules/unicase/u32-toupper-tests: New file.
48631         * tests/unicase/test-u32-toupper.c: New file.
48632
48633         Tests for module 'unicase/u16-toupper'.
48634         * modules/unicase/u16-toupper-tests: New file.
48635         * tests/unicase/test-u16-toupper.c: New file.
48636
48637         Tests for module 'unicase/u8-toupper'.
48638         * modules/unicase/u8-toupper-tests: New file.
48639         * tests/unicase/test-u8-toupper.c: New file.
48640
48641         New module 'unicase/u32-toupper'.
48642         * lib/unicase/u32-toupper.c: New file.
48643         * modules/unicase/u32-toupper: New file.
48644
48645         New module 'unicase/u16-toupper'.
48646         * lib/unicase/u16-toupper.c: New file.
48647         * modules/unicase/u16-toupper: New file.
48648
48649         New module 'unicase/u8-toupper'.
48650         * lib/unicase/u8-toupper.c: New file.
48651         * modules/unicase/u8-toupper: New file.
48652
48653         New module 'unicase/u32-casemap'.
48654         * lib/unicase/u32-casemap.c: New file.
48655         * modules/unicase/u32-casemap: New file.
48656
48657         New module 'unicase/u16-casemap'.
48658         * lib/unicase/u16-casemap.c: New file.
48659         * modules/unicase/u16-casemap: New file.
48660
48661         New module 'unicase/u8-casemap'.
48662         * lib/unicase/unicasemap.h: New file.
48663         * lib/unicase/u8-casemap.c: New file.
48664         * lib/unicase/u-casemap.h: New file.
48665         * modules/unicase/u8-casemap: New file.
48666
48667         New module 'unicase/special-casing'.
48668         * lib/unicase/special-casing.h: New file.
48669         * lib/unicase/special-casing.c: New file.
48670         * lib/unicase/special-casing-table.gperf: New file, generated by
48671         gen-uni-tables.c.
48672         * modules/unicase/special-casing: New file.
48673
48674         Tests for module 'unicase/locale-language'.
48675         * modules/unicase/locale-language-tests: New file.
48676         * tests/unicase/test-locale-language.sh: New file.
48677         * tests/unicase/test-locale-language.c: New file.
48678
48679         New module 'unicase/locale-language'.
48680         * lib/unicase/locale-language.c: New file.
48681         * lib/unicase/locale-languages.gperf: New file.
48682         * modules/unicase/locale-language: New file.
48683
48684         Generate more tables for case conversion and case folding.
48685         * lib/gen-uni-tables.c (SCC_*): New enum items.
48686         (struct special_casing_rule): New type.
48687         (casing_rules, num_casing_rules, allocated_casing_rules): New
48688         variables.
48689         (add_casing_rule, fill_casing_rules): New functions.
48690         (struct casefold_rule): New type.
48691         (casefolding_rules, num_casefolding_rules,
48692         allocated_casefolding_rules): New variables.
48693         (fill_casefolding_rules): New function.
48694         (unicode_casefold): New variable.
48695         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48696         sort_casing_rules, output_casing_rules): New functions.
48697         (main): Accept to more arguments: SpecialCasing.txt and
48698         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48699         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48700         Output mapping for casefolding.
48701
48702         * lib/unicase.h: Include stdbool.h, uninorm.h.
48703         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48704         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48705         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48706         arguments.
48707         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48708         resultp arguments.
48709         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48710         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48711         resultp arguments.
48712         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48713         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48714         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48715         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48716         declarations.
48717         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48718
48719 2009-03-08  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48722         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48723         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48724         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48725
48726 2009-03-07  Bruno Haible  <bruno@clisp.org>
48727
48728         Adjust u*_normcmp, u*_normcoll API.
48729         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48730         u16_normcoll, u32_normcoll): Change failure conventions.
48731         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48732         errno and return -1.
48733         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48734
48735 2009-03-07  Bruno Haible  <bruno@clisp.org>
48736
48737         Tests for module 'uninorm/u32-normcoll'.
48738         * modules/uninorm/u32-normcoll-tests: New file.
48739         * tests/uninorm/test-u32-normcoll.c: New file.
48740
48741         Tests for module 'uninorm/u16-normcoll'.
48742         * modules/uninorm/u16-normcoll-tests: New file.
48743         * tests/uninorm/test-u16-normcoll.c: New file.
48744
48745         Tests for module 'uninorm/u8-normcoll'.
48746         * modules/uninorm/u8-normcoll-tests: New file.
48747         * tests/uninorm/test-u8-normcoll.c: New file.
48748
48749 2009-03-07  Bruno Haible  <bruno@clisp.org>
48750
48751         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48752         tests/uninorm/test-u32-normcmp.c.
48753         * tests/uninorm/test-u32-normcmp.c: Include it.
48754         (test_nonascii): New function, extracted from main. Add some more
48755         tests.
48756         (main): Invoke test_ascii and test_nonascii.
48757         * modules/uninorm/u32-normcmp-tests (Files): Add
48758         tests/uninorm/test-u32-normcmp.h.
48759         (Depends-on): Remove uninorm/u32-normcmp.
48760
48761         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48762         tests/uninorm/test-u16-normcmp.c.
48763         * tests/uninorm/test-u16-normcmp.c: Include it.
48764         (test_nonascii): New function, extracted from main. Add some more
48765         tests.
48766         (main): Invoke test_ascii and test_nonascii.
48767         * modules/uninorm/u16-normcmp-tests (Files): Add
48768         tests/uninorm/test-u16-normcmp.h.
48769         (Depends-on): Remove uninorm/u16-normcmp.
48770
48771         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48772         tests/uninorm/test-u8-normcmp.c.
48773         * tests/uninorm/test-u8-normcmp.c: Include it.
48774         (test_nonascii): New function, extracted from main. Add some more
48775         tests.
48776         (main): Invoke test_ascii and test_nonascii.
48777         * modules/uninorm/u8-normcmp-tests (Files): Add
48778         tests/uninorm/test-u8-normcmp.h.
48779         (Depends-on): Remove uninorm/u8-normcmp.
48780
48781 2009-03-07  Bruno Haible  <bruno@clisp.org>
48782
48783         New module 'uninorm/u32-normcoll'.
48784         * lib/uninorm/u32-normcoll.c: New file.
48785         * modules/uninorm/u32-normcoll: New file.
48786
48787         New module 'uninorm/u16-normcoll'.
48788         * lib/uninorm/u16-normcoll.c: New file.
48789         * modules/uninorm/u16-normcoll: New file.
48790
48791         New module 'uninorm/u8-normcoll'.
48792         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48793         declarations.
48794         * lib/uninorm/u8-normcoll.c: New file.
48795         * lib/uninorm/u-normcoll.h: New file.
48796         * modules/uninorm/u8-normcoll: New file.
48797
48798         New module 'uninorm/u32-normxfrm'.
48799         * lib/uninorm/u32-normxfrm.c: New file.
48800         * modules/uninorm/u32-normxfrm: New file.
48801
48802         New module 'uninorm/u16-normxfrm'.
48803         * lib/uninorm/u16-normxfrm.c: New file.
48804         * modules/uninorm/u16-normxfrm: New file.
48805
48806         New module 'uninorm/u8-normxfrm'.
48807         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48808         declarations.
48809         * lib/uninorm/u8-normxfrm.c: New file.
48810         * lib/uninorm/u-normxfrm.h: New file.
48811         * modules/uninorm/u8-normxfrm: New file.
48812
48813 2009-03-07  Bruno Haible  <bruno@clisp.org>
48814
48815         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48816         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48817         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48818
48819 2009-03-07  Bruno Haible  <bruno@clisp.org>
48820
48821         New module 'memxfrm'.
48822         * lib/memxfrm.h: New file.
48823         * lib/memxfrm.c: New file.
48824         * modules/memxfrm: New file.
48825
48826 2009-03-07  Bruno Haible  <bruno@clisp.org>
48827
48828         New module 'memcmp2'.
48829         * lib/memcmp2.h: New file.
48830         * lib/memcmp2.c: New file.
48831         * modules/memcmp2: New file.
48832
48833 2009-03-07  Bruno Haible  <bruno@clisp.org>
48834
48835         Tests for module 'uninorm/decomposing-form'.
48836         * modules/uninorm/decomposing-form-tests: New file.
48837         * tests/uninorm/test-decomposing-form.c: New file.
48838
48839         New module 'uninorm/decomposing-form'.
48840         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48841         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48842         Add 'decomposing_variant' field.
48843         * lib/uninorm/decomposing-form.c: New file.
48844         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48845         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48846         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48847         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48848         * modules/uninorm/decomposing-form: New file.
48849         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48850         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48851
48852 2009-03-07  Bruno Haible  <bruno@clisp.org>
48853
48854         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48855         strings.
48856
48857 2009-03-06  Bruno Haible  <bruno@clisp.org>
48858
48859         Tests for module 'uninorm/u32-normcmp'.
48860         * tests/uninorm/test-u32-normcmp.c: New file.
48861         * modules/uninorm/u32-normcmp-tests: New file.
48862
48863         Tests for module 'uninorm/u16-normcmp'.
48864         * tests/uninorm/test-u16-normcmp.c: New file.
48865         * modules/uninorm/u16-normcmp-tests: New file.
48866
48867         Tests for module 'uninorm/u8-normcmp'.
48868         * tests/uninorm/test-u8-normcmp.c: New file.
48869         * modules/uninorm/u8-normcmp-tests: New file.
48870
48871         New module 'uninorm/u32-normcmp'.
48872         * lib/uninorm/u32-normcmp.c: New file.
48873         * modules/uninorm/u32-normcmp: New file.
48874
48875         New module 'uninorm/u16-normcmp'.
48876         * lib/uninorm/u16-normcmp.c: New file.
48877         * modules/uninorm/u16-normcmp: New file.
48878
48879         New module 'uninorm/u8-normcmp'.
48880         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48881         declarations.
48882         * lib/uninorm/u8-normcmp.c: New file.
48883         * lib/uninorm/u-normcmp.h: New file.
48884         * modules/uninorm/u8-normcmp: New file.
48885
48886 2009-03-06  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48889         Reported by Eric Blake.
48890
48891 2009-03-06  Eric Blake  <ebb9@byu.net>
48892             Bruno Haible  <bruno@clisp.org>
48893
48894         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48895         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48896         condition.
48897         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48898         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48899         condition.
48900         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48901
48902 2009-03-06  Eric Blake  <ebb9@byu.net>
48903
48904         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48905         to avoid compiler warnings.
48906         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48907
48908 2009-03-05  Bruno Haible  <bruno@clisp.org>
48909
48910         * tests/test-ftell.c (main): Disable test beyond end of file on
48911         FreeMiNT.
48912         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48913
48914 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48915
48916         * lib/filevercmp.c: Move hidden files up in ordering.
48917         * tests/test-filevercmp.c: Add tests for hidden files.
48918
48919 2009-03-04  Bruno Haible  <bruno@clisp.org>
48920
48921         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48922         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48923         AM_CFLAGS.
48924         Reported by Simon Josefsson.
48925
48926 2009-03-03  Bruno Haible  <bruno@clisp.org>
48927
48928         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48929         Reported by Simon Josefsson.
48930
48931         * doc/ld-version-script.texi: Update node reference.
48932
48933 2009-03-03  Bruno Haible  <bruno@clisp.org>
48934
48935         * modules/visibility (License): Change to 'unlimited'.
48936         Suggested by Simon Josefsson.
48937
48938 2009-03-03  Jim Meyering  <meyering@redhat.com>
48939
48940         unlinkdir: cannot_unlink_dir may modify process state
48941         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48942         it's neither thread-safe nor appropriate for use in a library.
48943
48944 2009-03-03  Eric Blake  <ebb9@byu.net>
48945
48946         test-closein: silence test under Darwin
48947         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48948         care if it dies from EPIPE or EBADF.
48949
48950 2009-03-03  Bruno Haible  <bruno@clisp.org>
48951
48952         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48953         earlier.
48954         * doc/visibility.texi: Fix @node and @section.
48955
48956 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48957
48958         * doc/gnulib.texi: Link to sections for ld version script and
48959         visibility.
48960         * doc/visibility.texi: Add @node and @section.
48961         * modules/ld-version-script: New module.
48962         * m4/ld-version-script.m4: New file.
48963         * doc/ld-version-script.texi: New file.
48964
48965 2009-03-02  David Lutterkort  <lutter@redhat.com>
48966
48967         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48969
48970 2009-03-02  Bruno Haible  <bruno@clisp.org>
48971
48972         * doc/visibility.texi: Mention libtool's -export-symbols option.
48973
48974 2009-03-02  Jim Meyering  <meyering@redhat.com>
48975
48976         announce-gen: new option: --no-print-checksums
48977         * build-aux/announce-gen (usage): Describe it.
48978         (print_checksums): Print a newline here, not in the [*] footnote.
48979         (main): Honor it.
48980
48981 2009-03-01  Bruno Haible  <bruno@clisp.org>
48982
48983         Use socklen_t in the native Windows replacements prototypes.
48984         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48985         instead of 'int'.
48986         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48987         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48988         * modules/getsockopt (Depends-on): Add socklen.
48989         * modules/setsockopt (Depends-on): Add socklen.
48990
48991 2009-03-01  Bruno Haible  <bruno@clisp.org>
48992
48993         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48994         least 4.2.
48995
48996 2009-03-01  Eric Blake  <ebb9@byu.net>
48997             Bruno Haible  <bruno@clisp.org>
48998
48999         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49000         error messages.
49001         * lib/wait-process.c (wait_subprocess): Omit error message about
49002         deadly signal sent to the child of termsigp != NULL.
49003
49004 2009-03-01  Eric Blake  <ebb9@byu.net>
49005
49006         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49007
49008 2009-03-01  Bruno Haible  <bruno@clisp.org>
49009
49010         Avoid a gcc warning.
49011         * tests/test-sched.c (b): Make global.
49012         Reported by Eric Blake.
49013
49014 2009-01-19  Martin Lambers  <marlam@marlam.de>
49015
49016         Provide POSIX semantics for socket timeout options on W32.
49017         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49018         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49019         * modules/setsockopt: Depend on sys_time module for struct timeval.
49020         * modules/getsockopt: Depend on sys_time module for struct timeval.
49021
49022 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49023
49024         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49025         __USE_GNU, for consistency with netdb.in.h.
49026         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49027
49028 2009-03-01  Bruno Haible  <bruno@clisp.org>
49029
49030         More support for FreeMiNT.
49031         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49032         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49033
49034 2009-03-01  Bruno Haible  <bruno@clisp.org>
49035
49036         More support for FreeMiNT.
49037         * lib/fpurge.c (fpurge): Correct last commit.
49038         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49039
49040 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49041
49042         Fix unportable awk script in vc-list-files.
49043         * build-aux/vc-list-files: In the replacement awk script, use
49044         substr with a second argument of 1, not zero.
49045         Report by Simon Josefsson.
49046
49047 2009-02-28  Bruno Haible  <bruno@clisp.org>
49048
49049         More support for FreeMiNT.
49050         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49051         to FreeMiNT today.
49052         * lib/fwriting.c (fwriting): Likewise.
49053         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49054
49055 2009-02-28  Bruno Haible  <bruno@clisp.org>
49056
49057         * tests/test-freadseek.c (main): Disable test beyond end of file on
49058         FreeMiNT.
49059         * tests/test-ftello.c (main): Likewise.
49060         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49061
49062 2009-02-28  Bruno Haible  <bruno@clisp.org>
49063
49064         Add tentative support for FreeMiNT.
49065         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49066         * lib/fpurge.c (fpurge): Likewise.
49067         * lib/freadable.c (freadable): Likewise.
49068         * lib/freading.c (freading): Likewise.
49069         * lib/freadptr.c (freadptr): Likewise.
49070         * lib/freadseek.c (freadptrinc): Likewise.
49071         * lib/fseeko.c (rpl_fseeko): Likewise.
49072         * lib/fseterr.c (fseterr): Likewise.
49073         * lib/fwritable.c (fwritable): Likewise.
49074         * lib/fwriting.c (fwriting): Likewise.
49075         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49076         Hourihane.
49077         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49078
49079 2009-02-28  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49082         SIGCHLD.
49083         Reported by Jim Meyering.
49084
49085 2009-02-28  Bruno Haible  <bruno@clisp.org>
49086
49087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49088         Mention the results of these tests on various platforms.
49089         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49090         order.
49091         * doc/posix-functions/printf.texi: Likewise.
49092         * doc/posix-functions/snprintf.texi: Likewise.
49093         * doc/posix-functions/sprintf.texi: Likewise.
49094         * doc/posix-functions/vfprintf.texi: Likewise.
49095         * doc/posix-functions/vprintf.texi: Likewise.
49096         * doc/posix-functions/vsnprintf.texi: Likewise.
49097         * doc/posix-functions/vsprintf.texi: Likewise.
49098         * doc/glibc-functions/obstack_printf.texi: Likewise.
49099         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49100
49101 2009-02-28  Bruno Haible  <bruno@clisp.org>
49102
49103         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49104         Reported by Loïc Minier <lool@dooz.org>.
49105
49106 2009-02-27  Bruno Haible  <bruno@clisp.org>
49107
49108         * gnulib-tool (func_import): Make the sed expression used to create the
49109         sed script for updating the .gitignore file POSIX compliant.
49110         Reported by Eric Blake.
49111
49112 2009-02-27  Bruno Haible  <bruno@clisp.org>
49113
49114         * gnulib-tool (sed): Don't alias as "sed --posix".
49115         Reported by Eric Blake.
49116
49117 2009-02-27  Bruno Haible  <bruno@clisp.org>
49118
49119         Avoid test link errors.
49120         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49121         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49122         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49123         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49125
49126 2009-02-27  Bruno Haible  <bruno@clisp.org>
49127
49128         Avoid spurious "(cached)" in configure output.
49129         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49130         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49131         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49132         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49133         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49134         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49135         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49136         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49137         Reported by Eric Blake.
49138
49139 2009-02-27  Eric Blake  <ebb9@byu.net>
49140
49141         printf: fix regression in previous patch
49142         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49143
49144 2009-02-27  Bruno Haible  <bruno@clisp.org>
49145
49146         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49147         value.
49148         * lib/stdint.in.h: Likewise.
49149         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49150
49151 2009-02-27  Eric Blake  <ebb9@byu.net>
49152
49153         doc: mention more functions added in cygwin 1.7.0
49154         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49155         addition.
49156         * doc/posix-functions/open_wmemstream.texi: Likewise.
49157         * doc/posix-functions/wcsnlen.texi: Likewise.
49158         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49159         * doc/posix-functions/wcstod.texi: Likewise.
49160         * doc/posix-functions/wcstof.texi: Likewise.
49161         * doc/posix-functions/wcstoimax.texi: Likewise.
49162         * doc/posix-functions/wcstok.texi: Likewise.
49163         * doc/posix-functions/wcstoumax.texi: Likewise.
49164
49165         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49167         * doc/posix-functions/fprintf.texi: Update.
49168         * doc/posix-functions/printf.texi: Update.
49169         * doc/posix-functions/snprintf.texi: Update.
49170         * doc/posix-functions/sprintf.texi: Update.
49171         * doc/posix-functions/vfprintf.texi: Update.
49172         * doc/posix-functions/vprintf.texi: Update.
49173         * doc/posix-functions/vsnprintf.texi: Update.
49174         * doc/posix-functions/vsprintf.texi: Update.
49175         * doc/glibc-functions/obstack_printf.texi: Update.
49176         * doc/glibc-functions/obstack_vprintf.texi: Update.
49177
49178 2009-02-26  Eric Blake  <ebb9@byu.net>
49179
49180         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49181         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49182         compilation bug by using runtime conversion.
49183         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49184         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49185         * modules/ceill-tests (Files): Use nan.h.
49186         * modules/floorl-tests (Files): Likewise.
49187         * modules/frexpl-tests (Files): Likewise.
49188         * modules/isnanl-tests (Files): Likewise.
49189         * modules/ldexpl-tests (Files): Likewise.
49190         * modules/roundl-tests (Files): Likewise.
49191         * modules/truncl-tests (Files): Likewise.
49192         * tests/test-ceill.c (main): Use a working NaN.
49193         * tests/test-floorl.c (main): Likewise.
49194         * tests/test-frexpl.c (main): Likewise.
49195         * tests/test-isnan.c (test_long_double): Likewise.
49196         * tests/test-isnanl.h (main): Likewise.
49197         * tests/test-ldexpl.h (main): Likewise.
49198         * tests/test-roundl.h (main): Likewise.
49199         * tests/test-truncl.h (main): Likewise.
49200         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49201
49202 2009-02-26  Eric Blake  <ebb9@byu.net>
49203             Bruno Haible  <bruno@clisp.org>
49204
49205         Work around a *printf bug with %ls on Solaris.
49206         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49207         precision is specified, sprintf stops converting the wide string
49208         argument when the number of bytes that have been produced by this
49209         conversion equals or exceeds the precision.
49210         * doc/posix-functions/fprintf.texi: Update.
49211         * doc/posix-functions/printf.texi: Update.
49212         * doc/posix-functions/snprintf.texi: Update.
49213         * doc/posix-functions/sprintf.texi: Update.
49214         * doc/posix-functions/vfprintf.texi: Update.
49215         * doc/posix-functions/vprintf.texi: Update.
49216         * doc/posix-functions/vsnprintf.texi: Update.
49217         * doc/posix-functions/vsprintf.texi: Update.
49218         * doc/glibc-functions/obstack_printf.texi: Update.
49219         * doc/glibc-functions/obstack_vprintf.texi: Update.
49220
49221 2009-02-26  Eric Blake  <ebb9@byu.net>
49222
49223         stdlib: favor compiler check of random.h
49224         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49225         to avoid an ObjC random.h installed by Swarm.
49226
49227 2009-02-26  Bruno Haible  <bruno@clisp.org>
49228
49229         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49230         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49231         Reported by Gary V. Vaughan <gary@gnu.org>.
49232
49233 2009-02-26  Bruno Haible  <bruno@clisp.org>
49234
49235         Fix *printf behaviour regarding the %ls directive.
49236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49237         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49238         NEED_PRINTF_DIRECTIVE_LS.
49239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49240         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49242         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49243         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49244         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49245         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49250         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49254         * doc/posix-functions/fprintf.texi: Update.
49255         * doc/posix-functions/printf.texi: Update.
49256         * doc/posix-functions/snprintf.texi: Update.
49257         * doc/posix-functions/sprintf.texi: Update.
49258         * doc/posix-functions/vfprintf.texi: Update.
49259         * doc/posix-functions/vprintf.texi: Update.
49260         * doc/posix-functions/vsnprintf.texi: Update.
49261         * doc/posix-functions/vsprintf.texi: Update.
49262         * doc/glibc-functions/obstack_printf.texi: Update.
49263         * doc/glibc-functions/obstack_vprintf.texi: Update.
49264         Reported by Eric Blake.
49265
49266 2009-02-25  Bruno Haible  <bruno@clisp.org>
49267
49268         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49269         with known value.
49270         Reported by Gary V. Vaughan <gary@gnu.org>.
49271
49272 2009-02-25  Bruno Haible  <bruno@clisp.org>
49273
49274         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49275         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49276         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49277         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49278         Reported by Gary V. Vaughan <gary@gnu.org>.
49279
49280 2009-02-25  Bruno Haible  <bruno@clisp.org>
49281
49282         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49283         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49284         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49285         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49286         Reported by Gary V. Vaughan <gary@gnu.org>.
49287
49288 2009-02-25  Eric Blake  <ebb9@byu.net>
49289
49290         tests: skip fseek/ftell tests if ungetc is broken
49291         * m4/ungetc.m4: New file.
49292         * modules/fseek-tests: Split test, so ungetc dependency is
49293         separate from rest of test.
49294         * modules/fseeko-tests: Likewise.
49295         * modules/ftell-tests: Likewise.
49296         * modules/ftello-tests: Likewise.
49297         * tests/test-fseek.c (main): Isolate ungetc dependency.
49298         * tests/test-fseeko.c (main): Likewise.
49299         * tests/test-ftell.c (main): Likewise.
49300         * tests/test-ftello.c (main): Likewise.
49301         * tests/test-fseek2.sh: New file.
49302         * tests/test-fseeko2.sh: Likewise.
49303         * tests/test-ftell2.sh: Likewise.
49304         * tests/test-ftello2.sh: Likewise.
49305
49306 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49307
49308         test-getaddrinfo: fix usage of skip return code 77
49309         * tests/test-gettaddrinfo.c: Return skip code 77 only
49310         for first occurrence of skip (4x77 is not 77)
49311
49312 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49313
49314         strtod: avoid C99 decl-after-statement
49315         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49316
49317 2009-02-24  Eric Blake  <ebb9@byu.net>
49318
49319         strtod: detect HP-UX 11.31 bug
49320         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49321         Reported by Gary V. Vaughan.
49322
49323 2009-02-23  Bruno Haible  <bruno@clisp.org>
49324
49325         Fix invalid read past end of memory block.
49326         * lib/vasnprintf.c (DCHAR_SET): Define.
49327         (local_wcslen): Define only when needed.
49328         (local_strnlen, local_wcsnlen): New functions.
49329         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49330         directives that involve a conversion ourselves.
49331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49332         wcsnlen, mbrtowc, wcrtomb.
49333         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49334         * tests/test-vasprintf-posix.c (test_function): Likewise.
49335         * tests/test-snprintf-posix.h (test_function): Likewise.
49336         * tests/test-sprintf-posix.h (test_function): Likewise.
49337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49338
49339 2009-02-22  Bruno Haible  <bruno@clisp.org>
49340
49341         Implement new clarified decomposition of Hangul syllables.
49342         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49343         of type LTV, return only a pairwise decomposition.
49344         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49345         Likewise.
49346         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49347         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49348         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49349
49350 2009-02-22  Bruno Haible  <bruno@clisp.org>
49351
49352         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49353         zero-length results and shrink excess allocated memory.
49354         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49355         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49356         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49357         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49358         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49359         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49360         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49361         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49362         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49363         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49364         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49365         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49366
49367 2009-02-21  Bruno Haible  <bruno@clisp.org>
49368
49369         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49370         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49371         spaces after a period. Put a space between a macro name and its
49372         argument list. Trivial rewordings.
49373         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49374         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49375         (main): Return 0 explicitly.
49376
49377 2009-02-21  Bruno Haible  <bruno@clisp.org>
49378
49379         Tests for module 'uninorm/filter'.
49380         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49381         * modules/uninorm/filter-tests: New file.
49382
49383         New module 'uninorm/filter'.
49384         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49385         uninorm_filter_flush, uninorm_filter_free): New declarations.
49386         * lib/uninorm/uninorm-filter.c: New file.
49387         * modules/uninorm/filter: New file.
49388
49389 2009-02-21  Bruno Haible  <bruno@clisp.org>
49390
49391         Tests for module 'uninorm/nfkc'.
49392         * tests/uninorm/test-nfkc.c: New file.
49393         * tests/uninorm/test-u8-nfkc.c: New file.
49394         * tests/uninorm/test-u16-nfkc.c: New file.
49395         * tests/uninorm/test-u32-nfkc.c: New file.
49396         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49397         * tests/uninorm/test-u32-nfkc-big.c: New file.
49398         * modules/uninorm/nfkc-tests: New file.
49399
49400         New module 'uninorm/nfkc'.
49401         * lib/uninorm/nfkc.c: New file.
49402         * modules/uninorm/nfkc: New file.
49403
49404         Tests for module 'uninorm/nfkd'.
49405         * tests/uninorm/test-nfkd.c: New file.
49406         * tests/uninorm/test-u8-nfkd.c: New file.
49407         * tests/uninorm/test-u16-nfkd.c: New file.
49408         * tests/uninorm/test-u32-nfkd.c: New file.
49409         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49410         * tests/uninorm/test-u32-nfkd-big.c: New file.
49411         * modules/uninorm/nfkd-tests: New file.
49412
49413         New module 'uninorm/nfkd'.
49414         * lib/uninorm/nfkd.c: New file.
49415         * modules/uninorm/nfkd: New file.
49416
49417         Tests for module 'uninorm/nfc'.
49418         * tests/uninorm/test-nfc.c: New file.
49419         * tests/uninorm/test-u8-nfc.c: New file.
49420         * tests/uninorm/test-u16-nfc.c: New file.
49421         * tests/uninorm/test-u32-nfc.c: New file.
49422         * tests/uninorm/test-u32-nfc-big.sh: New file.
49423         * tests/uninorm/test-u32-nfc-big.c: New file.
49424         * modules/uninorm/nfc-tests: New file.
49425
49426         New module 'uninorm/nfc'.
49427         * lib/uninorm/nfc.c: New file.
49428         * modules/uninorm/nfc: New file.
49429
49430         Tests for module 'uninorm/nfd'.
49431         * tests/uninorm/test-nfd.c: New file.
49432         * tests/uninorm/test-u8-nfd.c: New file.
49433         * tests/uninorm/test-u16-nfd.c: New file.
49434         * tests/uninorm/test-u32-nfd.c: New file.
49435         * tests/uninorm/test-u32-nfd-big.sh: New file.
49436         * tests/uninorm/test-u32-nfd-big.c: New file.
49437         * tests/uninorm/test-u32-normalize-big.h: New file.
49438         * tests/uninorm/test-u32-normalize-big.c: New file.
49439         * tests/uninorm/NormalizationTest.txt: New file, created from
49440         Unicode 5.1.0 NormalizationTest.txt.
49441         * modules/uninorm/nfd-tests: New file.
49442
49443         New module 'uninorm/nfd'.
49444         * lib/uninorm/nfd.c: New file.
49445         * modules/uninorm/nfd: New file.
49446
49447         New module 'uninorm/u32-normalize'.
49448         * lib/uninorm/u32-normalize.c: New file.
49449         * modules/uninorm/u32-normalize: New file.
49450
49451         New module 'uninorm/u16-normalize'.
49452         * lib/uninorm/u16-normalize.c: New file.
49453         * modules/uninorm/u16-normalize: New file.
49454
49455         New module 'uninorm/u8-normalize'.
49456         * lib/uninorm/u8-normalize.c: New file.
49457         * lib/uninorm/normalize-internal.h: New file.
49458         * lib/uninorm/u-normalize-internal.h: New file.
49459         * modules/uninorm/u8-normalize: New file.
49460
49461         New module 'uninorm/decompose-internal'.
49462         * lib/uninorm/decompose-internal.c: New file.
49463         * modules/uninorm/decompose-internal: New file.
49464
49465         Tests for module 'uninorm/composition'.
49466         * tests/uninorm/test-composition.c: New file.
49467         * modules/uninorm/composition-tests: New file.
49468
49469         New module 'uninorm/composition'.
49470         * lib/uninorm/composition.c: New file.
49471         * lib/uninorm/composition-table.gperf: New file, generated by
49472         gen-uni-tables.
49473         * modules/uninorm/composition: New file.
49474
49475         Tests for module 'uninorm/compat-decomposition'.
49476         * tests/uninorm/test-compat-decomposition.c: New file.
49477         * modules/uninorm/compat-decomposition-tests: New file.
49478
49479         New module 'uninorm/compat-decomposition'.
49480         * lib/uninorm/decompose-internal.h: New file.
49481         * lib/uninorm/compat-decomposition.c: New file.
49482         * modules/uninorm/compat-decomposition: New file.
49483
49484         Tests for module 'uninorm/canonical-decomposition'.
49485         * tests/uninorm/test-canonical-decomposition.c: New file.
49486         * modules/uninorm/canonical-decomposition-tests: New file.
49487
49488         New module 'uninorm/canonical-decomposition'.
49489         * lib/uninorm/canonical-decomposition.c: New file.
49490         * modules/uninorm/canonical-decomposition: New file.
49491
49492         Tests for module 'uninorm/decomposition'.
49493         * tests/uninorm/test-decomposition.c: New file.
49494         * modules/uninorm/decomposition-tests: New file.
49495
49496         New module 'uninorm/decomposition'.
49497         * lib/uninorm/decomposition.c: New file.
49498         * modules/uninorm/decomposition: New file.
49499
49500         New module 'uninorm/decomposition-table'.
49501         * lib/uninorm/decomposition-table.h: New file.
49502         * lib/uninorm/decomposition-table.c: New file.
49503         * lib/uninorm/decomposition-table1.h: New file, generated by
49504         gen-uni-tables.
49505         * lib/uninorm/decomposition-table2.h: New file, generated by
49506         gen-uni-tables.
49507         * modules/uninorm/decomposition-table: New file.
49508
49509         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49510         (UC_DECOMP_*): New enumeration items.
49511         (get_decomposition): New function.
49512         (struct decomp_table): New type.
49513         (output_decomposition, output_decomposition_tables): New functions.
49514         (unicode_composition_exclusions): New variable.
49515         (fill_composition_exclusions, debug_output_composition_tables): New
49516         functions.
49517         (main): Accept one more argument. Invoke fill_composition_exclusions.
49518         Output decomposition and composition tables.
49519
49520         New module 'uninorm/base'.
49521         * lib/uninorm.h: New file.
49522         * lib/unictype.h: Update comment.
49523         * modules/uninorm/base: New file.
49524
49525 2009-02-21  David Lutterkort  <lutter@redhat.com>
49526
49527         Tests for module 'safe-alloc'.
49528         * tests/test-safe-alloc.c: New file.
49529         * modules/safe-alloc-tests: New file.
49530
49531         New module 'safe-alloc'.
49532         * lib/safe-alloc.h: New file.
49533         * lib/safe-alloc.c: New file.
49534         * m4/safe-alloc.m4: New file.
49535         * modules/safe-alloc: New file.
49536         * doc/safe-alloc.texi: New file.
49537         * doc/gnulib.texi: Include it.
49538         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49539         safe-alloc.
49540
49541 2009-02-18  Bruno Haible  <bruno@clisp.org>
49542
49543         Fix link error on non-glibc systems.
49544         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49545         variable.
49546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49547
49548 2009-02-18  Jim Meyering  <meyering@redhat.com>
49549
49550         fts: avoid used-uninitialized error due to recent change
49551         * lib/fts.c (fts_read): Guard uses of the new member,
49552         parent->fts_n_dirs_remaining, since it's not relevant for
49553         the parent of a directory specified on the command-line.
49554
49555 2009-02-17  James Youngman  <jay@gnu.org>
49556             Bruno Haible  <bruno@clisp.org>
49557
49558         * m4/include_next.m4: Reformulate comment.
49559
49560 2009-02-16  Jim Meyering  <meyering@redhat.com>
49561
49562         fts: add #if guards so that the fts_lgpl module still builds
49563         * lib/fts.c: Guard just-added hash-table-using parts with
49564         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49565         Reported by Simon Josefsson.
49566
49567 2009-02-15  Bruno Haible  <bruno@clisp.org>
49568
49569         * modules/array-mergesort-tests: New file.
49570         * tests/test-array-mergesort.c: New file.
49571
49572         New module 'array-mergesort'.
49573         * modules/array-mergesort: New file.
49574         * lib/array-mergesort.h: New file.
49575
49576 2009-02-15  Bruno Haible  <bruno@clisp.org>
49577
49578         Fix 2009-02-07 commit.
49579         * lib/gen-uni-tables.c (output_predicate, output_category,
49580         output_combclass, output_bidi_category, output_decimal_digit,
49581         output_digit, output_numeric, output_mirror, output_scripts,
49582         output_ident_category, output_simple_mapping): Fix format directives.
49583         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49584
49585 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49586
49587         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49588         fixes are available from IBM.
49589
49590 2009-02-13  Jim Meyering  <meyering@redhat.com>
49591
49592         fts: arrange not to stat non-directories in more cases
49593         This makes GNU find (when it doesn't need to stat each file)
49594         *much* more efficient at traversing reiserfs file systems.
49595         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49596         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49597         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49598         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49599         (leaf_optimization_applies): New function.
49600         (LCO_hash, LCO_compare): New helper functions.
49601         (link_count_optimize_ok): New function.
49602         (fts_stat): Initialize new member (if dir).
49603         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49604         we've just stat'ed a directory.  Skip the stat call when possible.
49605         ---
49606         Note this AFS-related exchange:
49607         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49608         and note find's pioctl call in find/fstype.c.
49609         But that is necessary only if you want to enable the
49610         optimization for AFS, and for now, I don't.
49611
49612         fts: move a function definition "up" (no semantic change)
49613         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49614         "up" to precede upcoming use of a related function.
49615
49616 2009-02-11  Jim Meyering  <meyering@redhat.com>
49617
49618         fts: correct internal computation of nlinks (optimization-related)
49619         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49620         whether the current entry is a directory, so don't test it.
49621
49622 2009-02-10  Bruno Haible  <bruno@clisp.org>
49623
49624         Tests for module 'uniwbrk/ulc-wordbreaks'.
49625         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49626         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49627         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49628
49629         Tests for module 'uniwbrk/u32-wordbreaks'.
49630         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49631         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49632
49633         Tests for module 'uniwbrk/u16-wordbreaks'.
49634         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49635         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49636
49637         Tests for module 'uniwbrk/u8-wordbreaks'.
49638         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49639         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49640
49641 2009-02-10  Bruno Haible  <bruno@clisp.org>
49642
49643         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49644         property.
49645         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49646         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49647         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49648
49649 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49650
49651         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49652         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49653
49654 2009-02-10  Bruno Haible  <bruno@clisp.org>
49655
49656         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49657         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49658         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49659         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49660         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49661         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49662
49663 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49664
49665         * lib/sockets.h (gl_fd_to_handle): New function.
49666
49667         * tests/test-sockets.c: Call gl_fd_to_handle.
49668
49669 2009-02-09  Bruno Haible  <bruno@clisp.org>
49670
49671         * doc/havelib.texi: Document the conventions on bi-arch systems.
49672
49673 2009-02-08  Bruno Haible  <bruno@clisp.org>
49674
49675         Document the AC_LIB_LINKFLAGS macro.
49676         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49677         * doc/gnulib.texi: Include it.
49678
49679 2009-02-08  Bruno Haible  <bruno@clisp.org>
49680
49681         Fix wrong order of sections, compared to TOC.
49682         * doc/gnulib.texi: Include relocatable-maint.texi after the
49683         "Regular expressions" node, not before.
49684
49685 2009-02-08  Bruno Haible  <bruno@clisp.org>
49686
49687         Tests for module 'unicase/totitle'.
49688         * modules/unicase/totitle-tests: New file.
49689
49690         Tests for module 'unicase/tolower'.
49691         * modules/unicase/tolower-tests: New file.
49692
49693         Tests for module 'unicase/toupper'.
49694         * modules/unicase/toupper-tests: New file.
49695         * tests/unicase/test-mapping-part1.h: New file.
49696         * tests/unicase/test-mapping-part2.h: New file.
49697
49698         New module 'unicase/totitle'.
49699         * modules/unicase/totitle: New file.
49700         * lib/unicase/totitle.c: New file.
49701
49702         New module 'unicase/tolower'.
49703         * modules/unicase/tolower: New file.
49704         * lib/unicase/tolower.c: New file.
49705
49706         New module 'unicase/toupper'.
49707         * modules/unicase/toupper: New file.
49708         * lib/unicase/toupper.c: New file.
49709         * lib/unicase/simple-mapping.h: New file.
49710
49711         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49712         (mapping_table): New structure.
49713         (output_simple_mapping): New function.
49714         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49715         * modules/gen-uni-tables (Description): Update.
49716         * lib/unicase/toupper.h: New file, automatically generated by
49717         gen-uni-tables.
49718         * lib/unicase/tolower.h: New file, automatically generated by
49719         gen-uni-tables.
49720         * lib/unicase/totitle.h: New file, automatically generated by
49721         gen-uni-tables.
49722         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49723         gen-uni-tables.
49724         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49725         gen-uni-tables.
49726         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49727         gen-uni-tables.
49728
49729         New module 'unicase/base'.
49730         * modules/unicase/base: New file.
49731         * lib/unicase.h: New file.
49732
49733 2009-02-08  Bruno Haible  <bruno@clisp.org>
49734
49735         New module 'uniwbrk/ulc-wordbreaks'.
49736         * modules/uniwbrk/ulc-wordbreaks: New file.
49737         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49738
49739         New module 'uniwbrk/u32-wordbreaks'.
49740         * modules/uniwbrk/u32-wordbreaks: New file.
49741         * lib/uniwbrk/u32-wordbreaks.c: New file.
49742
49743         New module 'uniwbrk/u16-wordbreaks'.
49744         * modules/uniwbrk/u16-wordbreaks: New file.
49745         * lib/uniwbrk/u16-wordbreaks.c: New file.
49746
49747         New module 'uniwbrk/u8-wordbreaks'.
49748         * modules/uniwbrk/u8-wordbreaks: New file.
49749         * lib/uniwbrk/u8-wordbreaks.c: New file.
49750         * lib/uniwbrk/u-wordbreaks.h: New file.
49751
49752         New module 'uniwbrk/table'.
49753         * modules/uniwbrk/table: New file.
49754         * lib/uniwbrk/wbrktable.h: New file.
49755         * lib/uniwbrk/wbrktable.c: New file.
49756
49757         New module 'uniwbrk/wordbreak-property'.
49758         * modules/uniwbrk/wordbreak-property: New file.
49759         * lib/uniwbrk/wordbreak-property.c: New file.
49760
49761         * lib/gen-uni-tables.c (WBP_*): New enum items.
49762         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49763         (unicode_org_wbp): New variable.
49764         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49765         New functions.
49766         (wbp_table): New structure.
49767         (output_wbp, output_wbrk_tables): New functions.
49768         (main): Accept additional argument. Invoke fill_org_wbp,
49769         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49770         output_wbrk_tables.
49771         * modules/gen-uni-tables (Description): Update.
49772         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49773         gen-uni-tables.
49774
49775         New module 'uniwbrk/base'.
49776         * modules/uniwbrk/base: New file.
49777         * lib/uniwbrk.h: New file.
49778
49779 2009-02-08  Bruno Haible  <bruno@clisp.org>
49780
49781         Update to Unicode 5.1.0.
49782         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49783         U+2185..U+2188.
49784         (is_property_default_ignorable_code_point): Don't include characters
49785         of category Cc or Cs and not-a-characters.
49786         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49787         U+0D79, U+109E, U+109F, U+A60C.
49788         * lib/unictype/bidi_of.h: Regenerated.
49789         * lib/unictype/blocks.h: Regenerated.
49790         * lib/unictype/categ_C.h: Regenerated.
49791         * lib/unictype/categ_Cf.h: Regenerated.
49792         * lib/unictype/categ_Cn.h: Regenerated.
49793         * lib/unictype/categ_L.h: Regenerated.
49794         * lib/unictype/categ_Ll.h: Regenerated.
49795         * lib/unictype/categ_Lm.h: Regenerated.
49796         * lib/unictype/categ_Lo.h: Regenerated.
49797         * lib/unictype/categ_Lu.h: Regenerated.
49798         * lib/unictype/categ_M.h: Regenerated.
49799         * lib/unictype/categ_Mc.h: Regenerated.
49800         * lib/unictype/categ_Me.h: Regenerated.
49801         * lib/unictype/categ_Mn.h: Regenerated.
49802         * lib/unictype/categ_N.h: Regenerated.
49803         * lib/unictype/categ_Nd.h: Regenerated.
49804         * lib/unictype/categ_Nl.h: Regenerated.
49805         * lib/unictype/categ_No.h: Regenerated.
49806         * lib/unictype/categ_P.h: Regenerated.
49807         * lib/unictype/categ_Pd.h: Regenerated.
49808         * lib/unictype/categ_Pe.h: Regenerated.
49809         * lib/unictype/categ_Pf.h: Regenerated.
49810         * lib/unictype/categ_Pi.h: Regenerated.
49811         * lib/unictype/categ_Po.h: Regenerated.
49812         * lib/unictype/categ_Ps.h: Regenerated.
49813         * lib/unictype/categ_S.h: Regenerated.
49814         * lib/unictype/categ_Sk.h: Regenerated.
49815         * lib/unictype/categ_Sm.h: Regenerated.
49816         * lib/unictype/categ_So.h: Regenerated.
49817         * lib/unictype/categ_of.h: Regenerated.
49818         * lib/unictype/combining.h: Regenerated.
49819         * lib/unictype/ctype_alnum.h: Regenerated.
49820         * lib/unictype/ctype_alpha.h: Regenerated.
49821         * lib/unictype/ctype_graph.h: Regenerated.
49822         * lib/unictype/ctype_lower.h: Regenerated.
49823         * lib/unictype/ctype_print.h: Regenerated.
49824         * lib/unictype/ctype_punct.h: Regenerated.
49825         * lib/unictype/ctype_upper.h: Regenerated.
49826         * lib/unictype/decdigit.h: Regenerated.
49827         * lib/unictype/digit.h: Regenerated.
49828         * lib/unictype/mirror.h: Regenerated.
49829         * lib/unictype/numeric.h: Regenerated.
49830         * lib/unictype/pr_alphabetic.h: Regenerated.
49831         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49832         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49833         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49834         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49835         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49836         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49837         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49838         * lib/unictype/pr_combining.h: Regenerated.
49839         * lib/unictype/pr_dash.h: Regenerated.
49840         * lib/unictype/pr_decimal_digit.h: Regenerated.
49841         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49842         * lib/unictype/pr_deprecated.h: Regenerated.
49843         * lib/unictype/pr_diacritic.h: Regenerated.
49844         * lib/unictype/pr_extender.h: Regenerated.
49845         * lib/unictype/pr_format_control.h: Regenerated.
49846         * lib/unictype/pr_grapheme_base.h: Regenerated.
49847         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49848         * lib/unictype/pr_grapheme_link.h: Regenerated.
49849         * lib/unictype/pr_id_continue.h: Regenerated.
49850         * lib/unictype/pr_id_start.h: Regenerated.
49851         * lib/unictype/pr_ideographic.h: Regenerated.
49852         * lib/unictype/pr_ignorable_control.h: Regenerated.
49853         * lib/unictype/pr_lowercase.h: Regenerated.
49854         * lib/unictype/pr_math.h: Regenerated.
49855         * lib/unictype/pr_numeric.h: Regenerated.
49856         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49857         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49858         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49859         * lib/unictype/pr_other_id_continue.h: Regenerated.
49860         * lib/unictype/pr_other_lowercase.h: Regenerated.
49861         * lib/unictype/pr_other_math.h: Regenerated.
49862         * lib/unictype/pr_punctuation.h: Regenerated.
49863         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49864         * lib/unictype/pr_soft_dotted.h: Regenerated.
49865         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49866         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49867         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49868         * lib/unictype/pr_uppercase.h: Regenerated.
49869         * lib/unictype/pr_xid_continue.h: Regenerated.
49870         * lib/unictype/pr_xid_start.h: Regenerated.
49871         * lib/unictype/pr_zero_width.h: Regenerated.
49872         * lib/unictype/scripts.h: Regenerated.
49873         * lib/unictype/scripts_byname.gperf: Regenerated.
49874         * lib/unictype/sy_java_ident.h: Regenerated.
49875         * lib/unilbrk/lbrkprop1.h: Regenerated.
49876         * lib/unilbrk/lbrkprop2.h: Regenerated.
49877         * tests/unictype/test-categ_C.c: Regenerated.
49878         * tests/unictype/test-categ_Cf.c: Regenerated.
49879         * tests/unictype/test-categ_Cn.c: Regenerated.
49880         * tests/unictype/test-categ_L.c: Regenerated.
49881         * tests/unictype/test-categ_Ll.c: Regenerated.
49882         * tests/unictype/test-categ_Lm.c: Regenerated.
49883         * tests/unictype/test-categ_Lo.c: Regenerated.
49884         * tests/unictype/test-categ_Lu.c: Regenerated.
49885         * tests/unictype/test-categ_M.c: Regenerated.
49886         * tests/unictype/test-categ_Mc.c: Regenerated.
49887         * tests/unictype/test-categ_Me.c: Regenerated.
49888         * tests/unictype/test-categ_Mn.c: Regenerated.
49889         * tests/unictype/test-categ_N.c: Regenerated.
49890         * tests/unictype/test-categ_Nd.c: Regenerated.
49891         * tests/unictype/test-categ_Nl.c: Regenerated.
49892         * tests/unictype/test-categ_No.c: Regenerated.
49893         * tests/unictype/test-categ_P.c: Regenerated.
49894         * tests/unictype/test-categ_Pd.c: Regenerated.
49895         * tests/unictype/test-categ_Pe.c: Regenerated.
49896         * tests/unictype/test-categ_Pf.c: Regenerated.
49897         * tests/unictype/test-categ_Pi.c: Regenerated.
49898         * tests/unictype/test-categ_Po.c: Regenerated.
49899         * tests/unictype/test-categ_Ps.c: Regenerated.
49900         * tests/unictype/test-categ_S.c: Regenerated.
49901         * tests/unictype/test-categ_Sk.c: Regenerated.
49902         * tests/unictype/test-categ_Sm.c: Regenerated.
49903         * tests/unictype/test-categ_So.c: Regenerated.
49904         * tests/unictype/test-ctype_alnum.c: Regenerated.
49905         * tests/unictype/test-ctype_alpha.c: Regenerated.
49906         * tests/unictype/test-ctype_graph.c: Regenerated.
49907         * tests/unictype/test-ctype_lower.c: Regenerated.
49908         * tests/unictype/test-ctype_print.c: Regenerated.
49909         * tests/unictype/test-ctype_punct.c: Regenerated.
49910         * tests/unictype/test-ctype_upper.c: Regenerated.
49911         * tests/unictype/test-decdigit.h: Regenerated.
49912         * tests/unictype/test-digit.h: Regenerated.
49913         * tests/unictype/test-numeric.h: Regenerated.
49914         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49915         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49916         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49917         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49918         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49919         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49920         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49921         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49922         * tests/unictype/test-pr_combining.c: Regenerated.
49923         * tests/unictype/test-pr_dash.c: Regenerated.
49924         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49925         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49926         * tests/unictype/test-pr_deprecated.c: Regenerated.
49927         * tests/unictype/test-pr_diacritic.c: Regenerated.
49928         * tests/unictype/test-pr_extender.c: Regenerated.
49929         * tests/unictype/test-pr_format_control.c: Regenerated.
49930         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49931         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49932         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49933         * tests/unictype/test-pr_id_continue.c: Regenerated.
49934         * tests/unictype/test-pr_id_start.c: Regenerated.
49935         * tests/unictype/test-pr_ideographic.c: Regenerated.
49936         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49937         * tests/unictype/test-pr_lowercase.c: Regenerated.
49938         * tests/unictype/test-pr_math.c: Regenerated.
49939         * tests/unictype/test-pr_numeric.c: Regenerated.
49940         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49941         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49942         Regenerated.
49943         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49944         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49945         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49946         * tests/unictype/test-pr_other_math.c: Regenerated.
49947         * tests/unictype/test-pr_punctuation.c: Regenerated.
49948         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49949         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49950         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49951         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49952         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49953         * tests/unictype/test-pr_uppercase.c: Regenerated.
49954         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49955         * tests/unictype/test-pr_xid_start.c: Regenerated.
49956         * tests/unictype/test-pr_zero_width.c: Regenerated.
49957
49958         Update to Unicode 5.1.0.
49959         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49960         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49961         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49962         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49963         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49964         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49965         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49966         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49967         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49968         (nonspacing_table_ind): Update.
49969         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49970
49971         Update to Unicode 5.1.0.
49972         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49973         code transform.
49974         * lib/uniname/uniname.c (unicode_character_name,
49975         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49976         * lib/uniname/uninames.h: Regenerated.
49977         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49978
49979 2009-02-07  Bruno Haible  <bruno@clisp.org>
49980
49981         Merge gen-ctype and gen-lbrk into a single program.
49982         * lib/gen-uni-tables.c: New file, incorporating
49983         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49984         Add directory prefixes to the names of the generated files.
49985         * lib/unictype/gen-ctype.c: Remove file.
49986         * lib/unilbrk/gen-lbrk.c: Remove file.
49987         * modules/gen-uni-tables: New file.
49988         * modules/unictype/gen-ctype: Remove file.
49989         * modules/unilbrk/gen-lbrk: Remove file.
49990
49991 2009-02-07  Bruno Haible  <bruno@clisp.org>
49992
49993         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49994
49995         New module 'unistr/u32-strcoll'.
49996         * modules/unistr/u32-strcoll: New file.
49997         * lib/unistr/u32-strcoll.c: New file.
49998
49999         New module 'unistr/u16-strcoll'.
50000         * modules/unistr/u16-strcoll: New file.
50001         * lib/unistr/u16-strcoll.c: New file.
50002
50003         New module 'unistr/u8-strcoll'.
50004         * modules/unistr/u8-strcoll: New file.
50005         * lib/unistr/u8-strcoll.c: New file.
50006         * lib/unistr/u-strcoll.h: New file.
50007
50008 2009-02-07  Bruno Haible  <bruno@clisp.org>
50009
50010         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50011         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50012         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50013         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50014         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50015         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50016
50017 2009-02-07  Bruno Haible  <bruno@clisp.org>
50018
50019         Make 64-bit clean.
50020         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50021         output_combclass, output_bidi_category, output_decimal_digit,
50022         output_digit, output_numeric, output_mirror, output_scripts,
50023         output_ident_category): Use proper width specifier in format strings.
50024
50025 2009-02-07  Bruno Haible  <bruno@clisp.org>
50026
50027         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50028         failure behaviour.
50029
50030 2009-02-07  Jim Meyering  <meyering@redhat.com>
50031
50032         regex: avoid compilation failure with upcoming gcc-4.4
50033         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50034         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50035         "... error: integer overflow in preprocessor expression".
50036
50037 2009-02-05  Ben Pfaff  <blp@gnu.org>
50038
50039         Fix link errors on Windows when close module is used.
50040         * modules/close: Add $(LIB_CLOSE) to Link section.
50041         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50042         $(LIB_CLOSE) on Windows.
50043
50044 2009-02-05  Jim Meyering  <meyering@redhat.com>
50045
50046         still avoid unused-parameter warnings, but do it cleanly
50047         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50048         (get_fs_usage): Cast to void instead.
50049         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50050         (dev_from_mount_options, read_file_system_list): Cast to void.
50051         Prompted by Bruno Haible.
50052
50053 2009-02-04  Jim Meyering  <meyering@redhat.com>
50054
50055         fsusage.c: correct copyright year
50056         * lib/fsusage.c: Reflect year in which the change is pushed into
50057
50058         avoid misc. warnings
50059         * lib/fsusage.c (UNUSED_PARAM): Define.
50060         (get_fs_usage): Mark parameter "disk" as unused.
50061         * lib/getugroups.c (getgrent): Use "void" in prototype.
50062         * lib/mountlist.c: Mark unused parameters.
50063         (read_file_system_list): Declare a local with "const".
50064         * lib/nanosleep.c (getnow): Declare static.
50065         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50066
50067         dirfd: set errno upon failure
50068         * lib/dirfd.c: Include <errno.h>.
50069         Set errno to ENOTSUP when returning -1.
50070         * modules/dirfd (Depends-on): Add errno.
50071         Suggested by John Kodis <kodis@comcast.net>.
50072
50073 2009-02-01  Bruno Haible  <bruno@clisp.org>
50074
50075         Don't assume sizeof (long) >= sizeof (void *).
50076         * lib/memcmp.c: Include stdint.h.
50077         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50078         srcp2 to 'const byte *'.
50079         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50080         types to uintptr_t.
50081         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50082         * modules/memcmp (Depends-on): Add stdint.
50083         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50084
50085 2009-01-30  Eric Blake  <ebb9@byu.net>
50086
50087         fix more require-before-expand issues
50088         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50089         expand, AC_PROG_AWK.
50090         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50091
50092 2009-01-28  Eric Blake  <ebb9@byu.net>
50093
50094         version-etc: use consistent URL formatting
50095         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50096         Improve formatting.  Use fputs for string without %.
50097
50098 2009-01-28  Jim Meyering  <meyering@redhat.com>
50099
50100         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50101         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50102         "underquoted definition of NAME" from autoconf-2.59.
50103
50104 2009-01-28  Bruno Haible  <bruno@clisp.org>
50105
50106         * doc/gnulib.texi: Add "Obsolete modules" to index.
50107
50108 2009-01-28  Jim Meyering  <meyering@redhat.com>
50109
50110         useless-if-before-free: recognize more variants
50111         * build-aux/useless-if-before-free: Also recognize e.g.,
50112         if (NULL != p) free (p);
50113
50114 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50115
50116         test-getaddrinfo: skip (don't fail) this test when there's no network
50117         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50118         on the presumption that it means you lack network access.
50119
50120 2009-01-26  Jim Meyering  <meyering@redhat.com>
50121
50122         fflush: avoid warnings on modern systems
50123         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50124         pos and result, into scopes where they're used.
50125
50126 2009-01-26  Eric Blake  <ebb9@byu.net>
50127
50128         Silence warning reintroduced by recent extensions patch.
50129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50130         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50131         autoconf.
50132
50133         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50134         * m4/00gnulib.m4: New file.
50135         * gnulib-tool (func_get_filelist): Always use it.
50136         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50137         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50138
50139 2009-01-25  Bruno Haible  <bruno@clisp.org>
50140
50141         Make test-quotearg work on MacOS X and AIX.
50142         * tests/test-quotearg.sh: New file.
50143         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50144         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50145         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50146         include <libintl.h>.
50147         (fake_locale): Remove variable.
50148         (gettext, dgettext, dcgettext): Remove functions.
50149         (main): Instead of setting a fake locale, set a real locale. Call
50150         textdomain and bindtextdomain.
50151         * modules/quotearg-tests (Files): Add the new files.
50152         (Depends-on): Add gettext, setenv, unsetenv.
50153         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50154         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50155         Augment TESTS_ENVIRONMENT.
50156
50157 2009-01-25  Bruno Haible  <bruno@clisp.org>
50158
50159         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50160         fr_FR.ISO8859-1 locale on MacOS X.
50161         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50162         ja_JP.eucJP locale on MacOS X.
50163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50164         zh_CN.GB18030 locale on MacOS X.
50165
50166 2009-01-25  Bruno Haible  <bruno@clisp.org>
50167
50168         Avoid link errors on MacOS X 10.3.
50169         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50170         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50171
50172 2009-01-25  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50175         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50176         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50177         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50178         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50179         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50180         posix_spawnattr_init, posix_spawnattr_setsigmask,
50181         posix_spawnattr_setflags, posix_spawnattr_destroy.
50182
50183         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50184         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50185         * modules/execute (Files): Remove m4/posix_spawn.m4.
50186         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50187         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50188         posix_spawnattr_init, posix_spawnattr_setsigmask,
50189         posix_spawnattr_setflags, posix_spawnattr_destroy.
50190
50191 2009-01-25  Bruno Haible  <bruno@clisp.org>
50192
50193         * lib/glthread/threadlib.c: Include <stdlib.h>.
50194
50195 2009-01-25  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/glthread/threadlib.c (dummy): New declaration.
50198
50199 2009-01-25  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50202         multibyte characters also for the GB18030 encoding. Don't crash when
50203         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50204
50205 2009-01-25  Bruno Haible  <bruno@clisp.org>
50206
50207         Avoid redefining 'struct random_data' on OSF/1 5.1.
50208         * lib/stdlib.in.h: Include <random.h> if it exists.
50209         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50210         HAVE_RANDOM_H. Include <random.h> when testing whether
50211         'struct random_data' exists.
50212         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50213
50214 2009-01-25  Bruno Haible  <bruno@clisp.org>
50215
50216         Don't install charset.alias on MacOS X >= 10.3.
50217         * lib/localcharset.c (DARWIN7): New macro.
50218         (get_charset_aliases): Hardcode the result for Darwin7.
50219         * modules/localcharset (install-exec-local): Don't install
50220         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50221
50222 2009-01-25  Bruno Haible  <bruno@clisp.org>
50223
50224         Don't install charset.alias on mingw and Cygwin.
50225         * modules/localcharset (install-exec-local): Don't install
50226         charset.alias on mingw and Cygwin, if the file does not yet exist.
50227         The result for these platforms is hardcoded in localcharset.c.
50228
50229 2009-01-25  Bruno Haible  <bruno@clisp.org>
50230
50231         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50233         before requiring AC_USE_SYSTEM_EXTENSIONS.
50234
50235 2009-01-25  Jim Meyering  <meyering@redhat.com>
50236
50237         c-strtod: avoid warnings
50238         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50239         "assignment discards qualifiers from pointer target type" warnings.
50240
50241 2009-01-24  Bruno Haible  <bruno@clisp.org>
50242
50243         Add support for non-UTF-8 locales on MacOS X.
50244         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50245         canonical encodings. For Darwin 7 and newer, don't map traditional
50246         encodings to UTF-8.
50247         Reported by Vincent Lefevre <vincent@vinc17.org>
50248         at <http://savannah.gnu.org/bugs/?25235>.
50249
50250 2009-01-24  Bruno Haible  <bruno@clisp.org>
50251
50252         * doc/gnulib.texi (Obsolete modules): New section.
50253         Reported by Mike Frysinger <vapier@gentoo.org>.
50254
50255 2009-01-24  Bruno Haible  <bruno@clisp.org>
50256
50257         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50258         (%.dvi): New rule.
50259
50260 2009-01-24  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50263         Reported by Eric Blake.
50264
50265 2009-01-24  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50268         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50269         Reported by Gary V. Vaughan <gary@gnu.org>.
50270
50271 2009-01-24  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50274
50275 2009-01-23  Bruno Haible  <bruno@clisp.org>
50276
50277         Make c-strtod, c-strtold usable in libraries.
50278         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50279         (C_STRTOD): Call strdup instead of xstrdup.
50280         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50281         * modules/c-strtold (Depends-on): Likewise.
50282         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50283         * NEWS: Mention the change.
50284         Reported by Michael Gold <mgold@ncf.ca>.
50285
50286 2009-01-23  Jim Meyering  <meyering@redhat.com>
50287
50288         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50289         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50290         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50291
50292 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50293
50294         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50295         GNU CoreUtils.
50296         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50297         * modules/version-etc (Description): Update.
50298
50299 2009-01-22  Bruno Haible  <bruno@clisp.org>
50300
50301         Cache the C locale object.
50302         * lib/c-strtod.c (c_locale_cache): New variable.
50303         (c_locale): New function.
50304         (C_STRTOD): Use it, and don't call freelocale.
50305         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50306         Suggested by Paolo Bonzini.
50307
50308 2009-01-21  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50311         conditions other than overflow.
50312
50313 2009-01-21  Bruno Haible  <bruno@clisp.org>
50314
50315         * lib/c-strtod.c: Include errno.h.
50316         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50317         value from STRTOD_L and STRTOD.
50318
50319 2009-01-21  Bruno Haible  <bruno@clisp.org>
50320         and Jim Meyering  <meyering@redhat.com>
50321
50322         nanosleep: skip configure test (fail it) for apple universal builds
50323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50324         universal builds, assume that nanosleep does not work.
50325         * modules/nanosleep (Depends-on): Add multiarch.
50326
50327         mktime: skip configure test (fail it) for apple universal builds
50328         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50329         universal builds, assume that mktime does not work.
50330         * modules/mktime (Depends-on): Add multiarch.
50331
50332 2009-01-21  Eric Blake  <ebb9@byu.net>
50333
50334         multiarch: avoid expand-before-require warning
50335         * modules/multiarch (configure.ac): Require, rather than expand,
50336         gl_MULTIARCH.
50337         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50338         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50339         enforce that all clients require it.  Partial reversion of
50340         2008-12-29 patch.
50341
50342         error: avoid expand-before-require warning
50343         * modules/errno (configure.ac): Require, rather than expand,
50344         gl_HEADER_ERRNO_H.
50345         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50346         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50347         enforce that all clients require it.
50348
50349         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50350         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50351         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50352         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50353
50354 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50355
50356         Revert:
50357         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50358
50359         regex: do not depend on obsolete modules.
50360         * modules/regex: Remove memcmp and memmove.
50361
50362 2009-01-20  Bruno Haible  <bruno@clisp.org>
50363
50364         Make the 'link' module link on Windows NT 4.
50365         * lib/link.c (_WIN32_WINNT): Don't define.
50366         (CreateHardLinkFuncType): New type.
50367         (CreateHardLinkFunc, initialized): New variables.
50368         (initialize): New function.
50369         (link): Invoke CreateHardLink indirectly through the function pointer.
50370
50371 2009-01-20  Bruno Haible  <bruno@clisp.org>
50372
50373         Fix compilation failure on mingw.
50374         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50375
50376 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50377
50378         * doc/c-strtod.texi: Mention a couple of restrictions.
50379
50380 2009-01-20  Jim Meyering  <meyering@redhat.com>
50381
50382         gettimeofday: move more declarations out of functions
50383         * lib/gettimeofday.c: Move extern declarations of tzset and
50384         gmtime out of containing functions.  Prompted by Bruno Haible.
50385
50386 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50387
50388         regex: do not depend on obsolete modules.
50389         * modules/regex: Remove memcmp and memmove.
50390
50391 2009-01-19  Bruno Haible  <bruno@clisp.org>
50392
50393         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50394         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50395         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50396         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50397         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50398
50399 2009-01-19  Bruno Haible  <bruno@clisp.org>
50400
50401         * tests/test-link.c: Include <errno.h>.
50402         (main): Exit with code 77 when a hard link cannot be created due to
50403         the file system.
50404         * tests/test-link.sh: Skip test when a hard link cannot be created due
50405         to the file system.
50406         Suggested by Eric Blake.
50407
50408 2009-01-19  Martin Lambers  <marlam@marlam.de>
50409
50410         * modules/link-tests: New file.
50411         * tests/test-link.sh: New file.
50412         * tests/test-link.c: New file.
50413
50414 2009-01-19  Eric Blake  <ebb9@byu.net>
50415
50416         doc: mention another function added in cygwin 1.7.0
50417         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50418         Another new function in cygwin 1.7.
50419
50420 2009-01-19  Bruno Haible  <bruno@clisp.org>
50421
50422         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50423         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50424         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50425         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50426         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50427         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50428         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50429         * m4/md4.m4 (gl_MD4): Likewise.
50430         * m4/md5.m4 (gl_MD5): Likewise.
50431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50432         * m4/sha1.m4 (gl_SHA1): Likewise.
50433         * m4/sha256.m4 (gl_SHA256): Likewise.
50434         * m4/sha512.m4 (gl_SHA512): Likewise.
50435
50436 2009-01-19  Bruno Haible  <bruno@clisp.org>
50437
50438         * modules/uniname/uniname-tests (Depends-on): Add progname.
50439         * tests/uniname/test-uninames.c: Include progname.h.
50440         (main): Call set_program_name.
50441
50442         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50443         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50444         (main): Call set_program_name.
50445
50446         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50447         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50448         (main): Call set_program_name.
50449
50450         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50451         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50452         (main): Call set_program_name.
50453
50454         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50455         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50456         (main): Call set_program_name.
50457
50458         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50459         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50460         (main): Call set_program_name.
50461
50462         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50463         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50464         (main): Call set_program_name.
50465
50466         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50467         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50468         (main): Call set_program_name.
50469
50470         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50471         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50472         (main): Call set_program_name.
50473
50474 2009-01-19  Eric Blake  <ebb9@byu.net>
50475
50476         test-unistd: test previous patch
50477         * tests/test-unistd.c: Test *_FILENO macros.
50478
50479         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50480         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50481         Guarantee a definition.
50482         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50483         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50484         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50485         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50486         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50487         Likewise.
50488         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50489         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50490         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50491         Likewise.
50492         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50493         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50494         (STDERR_FILENO): Likewise.
50495         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50496         (STDERR_FILENO): Likewise.
50497         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50498         (STDERR_FILENO): Likewise.
50499         Reported by Elbert Pol.
50500
50501 2009-01-19  Eric Blake  <ebb9@byu.net>
50502
50503         doc: mention more functions added in cygwin 1.7.0
50504         * doc/posix-functions/abort.texi (abort): Update wording related
50505         to cygwin.
50506         * doc/posix-functions/daylight.texi (daylight): Likewise.
50507         * doc/posix-functions/optarg.texi (optarg): Likewise.
50508         * doc/posix-functions/optarg.texi (opterr): Likewise.
50509         * doc/posix-functions/optarg.texi (optind): Likewise.
50510         * doc/posix-functions/optarg.texi (optopt): Likewise.
50511         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50512         worked in 1.5.x, and was withdrawn in 1.7.
50513         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50514         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50515         cygwin versions.
50516         * doc/posix-functions/perror.texi (perror): Likewise.
50517         * doc/posix-functions/printf.texi (printf): Likewise.
50518         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50519         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50520         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50521         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50522         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50523         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50524         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50525         Likewise.
50526         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50527         Likewise.
50528         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50529         this function.
50530         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50531         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50532         Likewise.
50533         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50534         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50535         * doc/posix-functions/confstr.texi (confstr): Likewise.
50536         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50537         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50538         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50539         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50540         * doc/posix-functions/fputws.texi (fputws): Likewise.
50541         * doc/posix-functions/fwide.texi (fwide): Likewise.
50542         * doc/posix-functions/getwc.texi (getwc): Likewise.
50543         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50544         * doc/posix-functions/putwc.texi (putwc): Likewise.
50545         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50546         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50547         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50548         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50549         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50550         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50551         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50552         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50553         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50554         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50555         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50556
50557 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50558
50559         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50560         * lib/ioctl.c: Include <sys/ioctl.h>.
50561
50562 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50563
50564         * modules/getdate-tests (Depends-on): Add progname.
50565         * tests/test-getdate.c: Use progname module, to avoid link errors
50566         on non-glibc systems.
50567
50568 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50569
50570         * modules/filenamecat-tests (Depends-on): Add progname.
50571         * modules/fstrcmp-tests (Depends-on): Likewise.
50572
50573         * tests/test-filenamecat.c: Use progname module, to avoid link
50574         errors on non-glibc systems.
50575         * tests/test-fstrcmp.c: Likewise.
50576
50577 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50578
50579         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50580         * lib/gettimeofday.c: Move extern declaration out of function.
50581
50582 2009-01-18  Bruno Haible  <bruno@clisp.org>
50583
50584         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50585         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50586         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50587
50588 2009-01-18  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/strftime.c (MEMPCPY): Remove unused macro.
50591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50592
50593 2009-01-18  Martin Lambers  <marlam@marlam.de>
50594
50595         New module 'link'.
50596         * lib/unistd.in.h (link): New declaration.
50597         * lib/link.c: New file.
50598         * m4/link.m4: New file.
50599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50600         HAVE_LINK.
50601         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50602         * modules/link: New file.
50603         * doc/posix-functions/link.texi: Mention the new module.
50604
50605 2009-01-18  Bruno Haible  <bruno@clisp.org>
50606
50607         * tests/test-avltree_list.c (main): Call set_program_name.
50608         * tests/test-avltree_oset.c (main): Likewise.
50609         * tests/test-obstack-printf.c: Include progname.h.
50610         (main): Call set_program_name.
50611         * tests/test-quotearg.c: Include progname.h.
50612         (main): Call set_program_name.
50613         * tests/test-xmemdup0.c: Include progname.h.
50614         (main): Call set_program_name.
50615
50616 2009-01-18  Bruno Haible  <bruno@clisp.org>
50617
50618         New module 'alphasort'.
50619         * lib/dirent.in.h (alphasort): New declaration.
50620         * lib/alphasort.c: New file, from glibc with modifications.
50621         * m4/alphasort.m4: New file.
50622         * modules/alphasort: New file.
50623         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50624         HAVE_ALPHASORT.
50625         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50626         HAVE_ALPHASORT.
50627         * doc/posix-functions/alphasort.texi: Mention the new module and the
50628         portability problems.
50629
50630 2009-01-18  Bruno Haible  <bruno@clisp.org>
50631
50632         New module 'scandir'.
50633         * lib/dirent.in.h (scandir): New declaration.
50634         * lib/scandir.c: New file, from glibc with modifications.
50635         * m4/scandir.m4: New file.
50636         * modules/scandir: New file.
50637         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50638         HAVE_SCANDIR.
50639         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50640         HAVE_SCANDIR.
50641         * doc/posix-functions/scandir.texi: Mention the new module and the
50642         portability problems.
50643
50644 2009-01-17  Bruno Haible  <bruno@clisp.org>
50645
50646         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50647         Update documentation.
50648         (func_remove_suffix): Escape all dots in the suffix. Update
50649         documentation.
50650         (func_filter_filelist): Update documentation.
50651         Reported by Ralf Wildenhues.
50652
50653 2009-01-17  Bruno Haible  <bruno@clisp.org>
50654
50655         * modules/dprintf-posix-tests: New file.
50656         * tests/test-dprintf-posix.sh: New file.
50657         * tests/test-dprintf-posix.c: New file.
50658
50659         New modules 'dprintf', 'dprintf-posix'.
50660         * lib/stdio.in.h (dprintf): New declaration.
50661         * lib/dprintf.c: New file.
50662         * m4/dprintf.m4: New file.
50663         * m4/dprintf-posix.m4: New file.
50664         * modules/dprintf: New file.
50665         * modules/dprintf-posix: New file.
50666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50667         HAVE_DPRINTF, REPLACE_DPRINTF.
50668         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50669         HAVE_DPRINTF, REPLACE_DPRINTF.
50670         * doc/posix-functions/dprintf.texi: Mention the new modules.
50671
50672 2009-01-17  Bruno Haible  <bruno@clisp.org>
50673
50674         * modules/vdprintf-posix-tests: New file.
50675         * tests/test-vdprintf-posix.sh: New file.
50676         * tests/test-vdprintf-posix.c: New file.
50677
50678         New modules 'vdprintf', 'vdprintf-posix'.
50679         * lib/stdio.in.h (vdprintf): New declaration.
50680         * lib/vdprintf.c: New file.
50681         * m4/vdprintf.m4: New file.
50682         * m4/vdprintf-posix.m4: New file.
50683         * modules/vdprintf: New file.
50684         * modules/vdprintf-posix: New file.
50685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50686         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50687         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50688         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50689         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50690
50691 2009-01-17  Bruno Haible  <bruno@clisp.org>
50692
50693         Fix replacement of fopen on mingw.
50694         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50695         mingw.
50696
50697 2009-01-17  Bruno Haible  <bruno@clisp.org>
50698
50699         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50700         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50701
50702 2009-01-17  Bruno Haible  <bruno@clisp.org>
50703
50704         Avoid test-fflush2.sh failure on mingw.
50705         * tests/test-fflush2.c: Include binary-io.h.
50706         (main): Put standard input into binary mode.
50707         * modules/fflush-tests (Depends-on): Add binary-io.
50708
50709 2009-01-17  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/wchar.in.h: In another particular situation, include only the
50712         system's <wchar.h> file.
50713         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50714         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50715         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50716
50717 2009-01-17  Bruno Haible  <bruno@clisp.org>
50718
50719         Support for stripping executables in --enable-relocatable.
50720         * build-aux/install-reloc: Expect one more argument, or an environment
50721         variable RELOC_STRIP_PROG. If set, strip the destination program and
50722         its wrapper.
50723         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50724         RELOC_STRIP_PROG.
50725         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50726         to set RELOCATABLE_STRIP.
50727         * NEWS: Mention the new Makefile requirement.
50728
50729 2009-01-17  Bruno Haible  <bruno@clisp.org>
50730
50731         * build-aux/install-reloc: Remove debugging information left over by
50732         C compiler on MacOS X.
50733
50734 2009-01-17  Bruno Haible  <bruno@clisp.org>
50735
50736         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50737         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50738         _NSGetExecutablePath.
50739
50740 2009-01-16  Jim Meyering  <meyering@redhat.com>
50741
50742         strerror: avoid warnings about discarding "const"
50743         * lib/strerror.c (rpl_strerror): Instead of returning a const
50744         string from each and every "case", use a variable, and add a single
50745         cast after the switch.
50746
50747 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50748
50749         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50750
50751 2009-01-16  Bruno Haible  <bruno@clisp.org>
50752
50753         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50754         array initializer syntax that also works in C++ mode.
50755         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50756
50757 2009-01-16  Jim Meyering  <meyering@redhat.com>
50758
50759         poll: suppress a warning
50760         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50761         to ignore "...unsigned expression < 0 is always false" warnings.
50762
50763 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50764
50765         poll: remove declarations of unused variables
50766         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50767         sockbuf and optlen.
50768
50769 2009-01-15  Bruno Haible  <bruno@clisp.org>
50770
50771         Make fflush-after-ungetc POSIX compliant on BSD systems.
50772         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50773         (clear_ungetc_buffer): Implement also for other systems.
50774         (rpl_fflush): On glibc systems, invoke
50775         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50776         clear_ungetc_buffer after fetching the stream's position, not before.
50777
50778 2009-01-15  Bruno Haible  <bruno@clisp.org>
50779
50780         Make fflush-after-ungetc POSIX compliant on glibc systems.
50781         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50782         after ungetc.
50783         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50784         (rpl_fflush): On glibc systems, simply call the system's fflush
50785         function after clearing the ungetc buffer.
50786         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50787         Instead, lseek only to the end of file, then use the system's fseeko
50788         for the rest. On glibc systems, reset the EOF indicator bit.
50789
50790 2009-01-15  Jim Meyering  <meyering@redhat.com>
50791
50792         openmp.m4: revert quote-adding change, for portability to older autoconf
50793         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50794         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50795         Simon Josefsson noticed the problem when using autoconf-2.61.
50796
50797 2009-01-15  Bruno Haible  <bruno@clisp.org>
50798
50799         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50800         * tests/test-fflush2.c (ASSERT): Always fail.
50801         (main): Add two tests for fflush() after ungetc(), taking into account
50802         the Austin Group's clarification.
50803         Suggested by Eric Blake.
50804
50805 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50806
50807         mktime.m4: remove K&R-style function prototypes
50808         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50809         for the Sun C++ compiler.
50810
50811 2009-01-14  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50814         while including <wchar.h>.
50815         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50816         the system's <wchar.h> file.
50817         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50818
50819 2009-01-14  Bruno Haible  <bruno@clisp.org>
50820
50821         * m4/csharp.m4: Don't mention gettext on the serial number line.
50822         * m4/csharpexec.m4: Likewise.
50823         * m4/eaccess.m4: Likewise.
50824         * m4/javaexec.m4: Likewise.
50825         * m4/sig_atomic_t.m4: Likewise.
50826         * m4/tmpdir.m4: Likewise.
50827         * m4/intldir.m4: Bump gettext version.
50828         * m4/lib-ld.m4: Likewise.
50829
50830 2009-01-14  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/progname.c (set_program_name): Add more comments.
50833         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50834
50835 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50836
50837         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50838         were sys/stat.h does not define it.
50839
50840 2009-01-14  Jim Meyering  <meyering@redhat.com>
50841
50842         many *.m4 files: improve m4 quoting
50843         99% of this change was performed by running the following commands:
50844         git ls-files | grep '\.m4$' | xargs perl -pi \
50845           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50846           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50847           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50848           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50849         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50850         The remainder were to add Copyright dates, increment serial numbers,
50851         undo some changes in comments, exclude m4/intl.m4, and add quotes
50852         around the "1" in ",1" where the unusual spacing prohibited the
50853         above regexps from doing the job.  For more details, see
50854         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50855         * m4/acl.m4: Modified.
50856         * m4/afs.m4: Likewise.
50857         * m4/alloca.m4: Likewise.
50858         * m4/argp.m4: Likewise.
50859         * m4/argz.m4: Likewise.
50860         * m4/atexit.m4: Likewise.
50861         * m4/bison-i18n.m4: Likewise.
50862         * m4/bison.m4: Likewise.
50863         * m4/byteswap.m4: Likewise.
50864         * m4/c-stack.m4: Likewise.
50865         * m4/c-strtod.m4: Likewise.
50866         * m4/calloc.m4: Likewise.
50867         * m4/canonicalize-lgpl.m4: Likewise.
50868         * m4/chown.m4: Likewise.
50869         * m4/clock_time.m4: Likewise.
50870         * m4/codeset.m4: Likewise.
50871         * m4/copy-file.m4: Likewise.
50872         * m4/csharp.m4: Likewise.
50873         * m4/csharpcomp.m4: Likewise.
50874         * m4/csharpexec.m4: Likewise.
50875         * m4/d-ino.m4: Likewise.
50876         * m4/d-type.m4: Likewise.
50877         * m4/dirfd.m4: Likewise.
50878         * m4/double-slash-root.m4: Likewise.
50879         * m4/eaccess.m4: Likewise.
50880         * m4/eealloc.m4: Likewise.
50881         * m4/environ.m4: Likewise.
50882         * m4/errno_h.m4: Likewise.
50883         * m4/euidaccess.m4: Likewise.
50884         * m4/execute.m4: Likewise.
50885         * m4/fatal-signal.m4: Likewise.
50886         * m4/fchdir.m4: Likewise.
50887         * m4/fcntl_h.m4: Likewise.
50888         * m4/fileblocks.m4: Likewise.
50889         * m4/filenamecat.m4: Likewise.
50890         * m4/findprog.m4: Likewise.
50891         * m4/flexmember.m4: Likewise.
50892         * m4/fnmatch.m4: Likewise.
50893         * m4/fopen.m4: Likewise.
50894         * m4/fpending.m4: Likewise.
50895         * m4/fprintf-posix.m4: Likewise.
50896         * m4/free.m4: Likewise.
50897         * m4/frexp.m4: Likewise.
50898         * m4/frexpl.m4: Likewise.
50899         * m4/fsusage.m4: Likewise.
50900         * m4/ftruncate.m4: Likewise.
50901         * m4/gc-camellia.m4: Likewise.
50902         * m4/gc-random.m4: Likewise.
50903         * m4/gc.m4: Likewise.
50904         * m4/getaddrinfo.m4: Likewise.
50905         * m4/getcwd-abort-bug.m4: Likewise.
50906         * m4/getcwd-path-max.m4: Likewise.
50907         * m4/getdate.m4: Likewise.
50908         * m4/getdomainname.m4: Likewise.
50909         * m4/getgroups.m4: Likewise.
50910         * m4/gethostname.m4: Likewise.
50911         * m4/gethrxtime.m4: Likewise.
50912         * m4/getline.m4: Likewise.
50913         * m4/getloadavg.m4: Likewise.
50914         * m4/getndelim2.m4: Likewise.
50915         * m4/getpass.m4: Likewise.
50916         * m4/gettext.m4: Likewise.
50917         * m4/gettime.m4: Likewise.
50918         * m4/gettimeofday.m4: Likewise.
50919         * m4/gnulib-common.m4: Likewise.
50920         * m4/group-member.m4: Likewise.
50921         * m4/host-os.m4: Likewise.
50922         * m4/iconv.m4: Likewise.
50923         * m4/iconv_open.m4: Likewise.
50924         * m4/inet_ntop.m4: Likewise.
50925         * m4/inet_pton.m4: Likewise.
50926         * m4/inline.m4: Likewise.
50927         * m4/intldir.m4: Likewise.
50928         * m4/intlmacosx.m4: Likewise.
50929         * m4/intmax.m4: Likewise.
50930         * m4/intmax_t.m4: Likewise.
50931         * m4/inttypes.m4: Likewise.
50932         * m4/inttypes_h.m4: Likewise.
50933         * m4/inttypes-pri.m4: Likewise.
50934         * m4/isapipe.m4: Likewise.
50935         * m4/isnand.m4: Likewise.
50936         * m4/isnanf.m4: Likewise.
50937         * m4/isnanl.m4: Likewise.
50938         * m4/javacomp.m4: Likewise.
50939         * m4/javaexec.m4: Likewise.
50940         * m4/jm-winsz1.m4: Likewise.
50941         * m4/jm-winsz2.m4: Likewise.
50942         * m4/lchown.m4: Likewise.
50943         * m4/lcmessage.m4: Likewise.
50944         * m4/ldexpl.m4: Likewise.
50945         * m4/lib-ld.m4: Likewise.
50946         * m4/lib-link.m4: Likewise.
50947         * m4/libsigsegv.m4: Likewise.
50948         * m4/link-follow.m4: Likewise.
50949         * m4/localcharset.m4: Likewise.
50950         * m4/locale-fr.m4: Likewise.
50951         * m4/locale-ja.m4: Likewise.
50952         * m4/locale-tr.m4: Likewise.
50953         * m4/locale-zh.m4: Likewise.
50954         * m4/lock.m4: Likewise.
50955         * m4/longlong.m4: Likewise.
50956         * m4/ls-mntd-fs.m4: Likewise.
50957         * m4/lstat.m4: Likewise.
50958         * m4/malloc.m4: Likewise.
50959         * m4/mathl.m4: Likewise.
50960         * m4/mbrtowc.m4: Likewise.
50961         * m4/mbstate_t.m4: Likewise.
50962         * m4/mbswidth.m4: Likewise.
50963         * m4/memchr.m4: Likewise.
50964         * m4/memcmp.m4: Likewise.
50965         * m4/memcpy.m4: Likewise.
50966         * m4/memmem.m4: Likewise.
50967         * m4/memmove.m4: Likewise.
50968         * m4/mempcpy.m4: Likewise.
50969         * m4/memrchr.m4: Likewise.
50970         * m4/memset.m4: Likewise.
50971         * m4/minmax.m4: Likewise.
50972         * m4/mkdir-slash.m4: Likewise.
50973         * m4/mkdtemp.m4: Likewise.
50974         * m4/mktime.m4: Likewise.
50975         * m4/mmap-anon.m4: Likewise.
50976         * m4/mountlist.m4: Likewise.
50977         * m4/nanosleep.m4: Likewise.
50978         * m4/nls.m4: Likewise.
50979         * m4/nocrash.m4: Likewise.
50980         * m4/open.m4: Likewise.
50981         * m4/openat.m4: Likewise.
50982         * m4/openmp.m4: Likewise.
50983         * m4/pathmax.m4: Likewise.
50984         * m4/perl.m4: Likewise.
50985         * m4/physmem.m4: Likewise.
50986         * m4/pipe.m4: Likewise.
50987         * m4/po.m4: Likewise.
50988         * m4/poll.m4: Likewise.
50989         * m4/posixtm.m4: Likewise.
50990         * m4/posixver.m4: Likewise.
50991         * m4/printf-frexp.m4: Likewise.
50992         * m4/printf-frexpl.m4: Likewise.
50993         * m4/printf-posix.m4: Likewise.
50994         * m4/printf-posix-rpl.m4: Likewise.
50995         * m4/printf.m4: Likewise.
50996         * m4/progtest.m4: Likewise.
50997         * m4/putenv.m4: Likewise.
50998         * m4/readline.m4: Likewise.
50999         * m4/readlink.m4: Likewise.
51000         * m4/readutmp.m4: Likewise.
51001         * m4/realloc.m4: Likewise.
51002         * m4/regex.m4: Likewise.
51003         * m4/relocatable.m4: Likewise.
51004         * m4/relocatable-lib.m4: Likewise.
51005         * m4/rename-dest-slash.m4: Likewise.
51006         * m4/rename.m4: Likewise.
51007         * m4/rmdir-errno.m4: Likewise.
51008         * m4/rmdir.m4: Likewise.
51009         * m4/roundf.m4: Likewise.
51010         * m4/roundl.m4: Likewise.
51011         * m4/rpmatch.m4: Likewise.
51012         * m4/save-cwd.m4: Likewise.
51013         * m4/selinux-selinux-h.m4: Likewise.
51014         * m4/setenv.m4: Likewise.
51015         * m4/settime.m4: Likewise.
51016         * m4/sig2str.m4: Likewise.
51017         * m4/sig_atomic_t.m4: Likewise.
51018         * m4/signalblocking.m4: Likewise.
51019         * m4/signbit.m4: Likewise.
51020         * m4/sigpipe.m4: Likewise.
51021         * m4/sockets.m4: Likewise.
51022         * m4/sockpfaf.m4: Likewise.
51023         * m4/st_dm_mode.m4: Likewise.
51024         * m4/stat-time.m4: Likewise.
51025         * m4/stdbool.m4: Likewise.
51026         * m4/stdint.m4: Likewise.
51027         * m4/stdint_h.m4: Likewise.
51028         * m4/stpcpy.m4: Likewise.
51029         * m4/stpncpy.m4: Likewise.
51030         * m4/strcase.m4: Likewise.
51031         * m4/strchrnul.m4: Likewise.
51032         * m4/strcspn.m4: Likewise.
51033         * m4/strdup.m4: Likewise.
51034         * m4/strftime.m4: Likewise.
51035         * m4/strndup.m4: Likewise.
51036         * m4/strnlen.m4: Likewise.
51037         * m4/strpbrk.m4: Likewise.
51038         * m4/strptime.m4: Likewise.
51039         * m4/strsep.m4: Likewise.
51040         * m4/strtod.m4: Likewise.
51041         * m4/strtoimax.m4: Likewise.
51042         * m4/strtok_r.m4: Likewise.
51043         * m4/strtol.m4: Likewise.
51044         * m4/strtoll.m4: Likewise.
51045         * m4/strtoul.m4: Likewise.
51046         * m4/strtoull.m4: Likewise.
51047         * m4/strtoumax.m4: Likewise.
51048         * m4/strverscmp.m4: Likewise.
51049         * m4/threadlib.m4: Likewise.
51050         * m4/timegm.m4: Likewise.
51051         * m4/tm_gmtoff.m4: Likewise.
51052         * m4/tmpdir.m4: Likewise.
51053         * m4/tmpfile.m4: Likewise.
51054         * m4/tzset.m4: Likewise.
51055         * m4/uintmax_t.m4: Likewise.
51056         * m4/unlinkdir.m4: Likewise.
51057         * m4/unlocked-io.m4: Likewise.
51058         * m4/uptime.m4: Likewise.
51059         * m4/userspec.m4: Likewise.
51060         * m4/utimbuf.m4: Likewise.
51061         * m4/utime.m4: Likewise.
51062         * m4/utimes-null.m4: Likewise.
51063         * m4/utimes.m4: Likewise.
51064         * m4/vararrays.m4: Likewise.
51065         * m4/vasnprintf.m4: Likewise.
51066         * m4/vfprintf-posix.m4: Likewise.
51067         * m4/vprintf-posix.m4: Likewise.
51068         * m4/wait-process.m4: Likewise.
51069         * m4/wchar_t.m4: Likewise.
51070         * m4/wint_t.m4: Likewise.
51071         * m4/write-any-file.m4: Likewise.
51072         * m4/yield.m4: Likewise.
51073
51074 2009-01-13  Bruno Haible  <bruno@clisp.org>
51075
51076         Avoid test-copy-file.sh failures when ACL support insufficient.
51077         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51078         TESTS_ENVIRONMENT.
51079         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51080         Reported by Jim Meyering.
51081
51082 2009-01-13  Bruno Haible  <bruno@clisp.org>
51083
51084         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51085         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51086         * modules/unistdio/u8-printf-parse (Files): Likewise.
51087         * modules/unistdio/u32-printf-parse (Files): Likewise.
51088         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51089
51090 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51091
51092         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51093         and m4/inttypes_h.m4 too.
51094
51095 2009-01-12  Eric Blake  <ebb9@byu.net>
51096
51097         tests: IRIX 6.2 cc can't compile -0.0 into .data
51098         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51099         rather than at compile-time.
51100         * tests/test-floorl.c (minus_zero): Likewise.
51101         * tests/test-frexpl.c (minus_zero): Likewise.
51102         * tests/test-isnan.c (minus_zerol): Likewise.
51103         * tests/test-isnanl.h (minus_zero): Likewise.
51104         * tests/test-ldexpl.c (minus_zero): Likewise.
51105         * tests/test-roundl.c (minus_zero): Likewise.
51106         * tests/test-signbit.c (minus_zerol): Likewise.
51107         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51108         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51109         * tests/test-truncl.c (minus_zero): Likewise.
51110         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51111         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51112         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51113
51114 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51115
51116         regex: fix glibc bug 9697
51117         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51118         handling.
51119
51120 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51121
51122         regex: fix glibc bug 697
51123         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51124         being NULL also if there are no backreferences.
51125
51126 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51127
51128         regex: merge glibc changes
51129         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51130         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51131         re_string_skip_chars, re_string_reconstruct): Likewise.
51132         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51133
51134 2009-01-07  Jim Meyering  <meyering@redhat.com>
51135
51136         poll: filter through cppi
51137         * lib/poll.c: Indent cpp directives to reflect nesting.
51138
51139 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51140
51141         poll: don't return uninitialized
51142         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51143
51144 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51145
51146         avoid compile failure on AIX 6.1
51147         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51148         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51149
51150 2009-01-04  Jim Meyering  <meyering@redhat.com>
51151
51152         remove duplicate inclusion of <stdio.h>
51153         * tests/test-fprintf-posix.c: Likewise.
51154         * tests/test-printf-posix.c: Likewise.
51155         * tests/test-snprintf-posix.c: Likewise.
51156         * tests/test-sprintf-posix.c: Likewise.
51157         * tests/test-vasprintf-posix.c: Likewise.
51158         * tests/test-vfprintf-posix.c: Likewise.
51159         * tests/test-vprintf-posix.c: Likewise.
51160         * tests/test-vsnprintf-posix.c: Likewise.
51161         * tests/test-vsprintf-posix.c: Likewise.
51162
51163 2009-01-03  Jim Meyering  <meyering@redhat.com>
51164
51165         gnulib-tool: fix sed-based filtering
51166         * gnulib-tool (func_filter_filelist): Remove extra backslash
51167         in sed_fff_filter definition.
51168
51169 2009-01-02  Jim Meyering  <meyering@redhat.com>
51170
51171         strftime: avoid compilation failure on Solaris 2.6
51172         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51173         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51174         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51175         be available.  Reported by Tom G. Christensen.  Details in
51176         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51177
51178 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51179             Bruno Haible  <bruno@clisp.org>
51180
51181         Speed up gnulib-tool by doing more string processing through shell
51182         built-ins.
51183         * gnulib-tool (fast_func_append): New variable.
51184         (func_remove_prefix, func_remove_suffix): New functions.
51185         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51186         (func_filter_filelist): New function.
51187         (func_get_dependencies): Use func_remove_suffix instead of sed.
51188         (func_get_automake_snippet): Use func_filter_filelist instead of a
51189         subshell and sed invocation.
51190
51191 2009-01-01  Bruno Haible  <bruno@clisp.org>
51192
51193         Fix a security bug.
51194         * gnulib-tool (func_import, import, update): Don't allow the characters
51195         '"', '$', '`', '\' in macro arguments that become part of commands that
51196         are evaluated.
51197
51198 2009-01-01  Bruno Haible  <bruno@clisp.org>
51199
51200         * gnulib-tool (func_reset_sigpipe): Add more comments.
51201
51202 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51203
51204         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51205         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51206         already know the answer.
51207
51208 2009-01-01  Jim Meyering  <meyering@redhat.com>
51209
51210         * lib/version-etc.c (version_etc_va): Update copyright year.
51211
51212 2008-12-30  Bruno Haible  <bruno@clisp.org>
51213
51214         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51215         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51216         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51217
51218 2008-12-29  Eric Blake  <ebb9@byu.net>
51219
51220         multiarch: avoid autoconf AC_REQUIRE bug
51221         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51222         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51223         2.63 and older.
51224         Reported by Bruno Haible, and analyzed in
51225         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51226
51227 2008-12-29  Bruno Haible  <bruno@clisp.org>
51228
51229         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51230         files in subdirectories correctly.
51231         Reported by Ralf Wildenhues.
51232
51233 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51234
51235         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51236         rather than 'join FILE -', for Solaris join.
51237
51238 2008-12-29  Bruno Haible  <bruno@clisp.org>
51239
51240         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51241         quoting.
51242         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51243         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51244         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51245         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51246         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51247         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51248         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51249         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51250         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51251         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51252         * m4/nls.m4 (AM_NLS): Likewise.
51253         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51254         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51255         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51256         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51257         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51258         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51259         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51260         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51261         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51262         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51263         * m4/xsize.m4 (gl_XSIZE): Likewise.
51264         Suggested by Jim Meyering.
51265
51266 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51267
51268         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51269         * lib/parse-duration.c: use a switch instead of cascading if's.
51270
51271 2008-12-29  Eric Blake  <ebb9@byu.net>
51272
51273         wchar.h: supply WEOF on Irix 5.3
51274         * lib/wchar.in.h (wint_t): Also supply WEOF.
51275         * lib/wctype.in.h (wint_t): Likewise.
51276         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51277         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51278         Reported by Tom G. Christensen.
51279
51280 2008-12-26  Bruno Haible  <bruno@clisp.org>
51281
51282         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51283         i486, i586, i686.
51284
51285 2008-12-26  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51288
51289 2008-12-26  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51292         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51293         not __STDC_CONSTANT_MACROS.
51294         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51295
51296 2008-12-25  Bruno Haible  <bruno@clisp.org>
51297
51298         Add support for universal builds to vasnprintf.
51299         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51300         universal builds, guess no.
51301         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51302         * modules/vasprintf-posix (Depends-on): Likewise.
51303         * modules/fprintf-posix (Depends-on): Likewise.
51304         * modules/vfprintf-posix (Depends-on): Likewise.
51305         * modules/snprintf-posix (Depends-on): Likewise.
51306         * modules/vsnprintf-posix (Depends-on): Likewise.
51307         * modules/sprintf-posix (Depends-on): Likewise.
51308         * modules/vsprintf-posix (Depends-on): Likewise.
51309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51310         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51311         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51312         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51314         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51315         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51316
51317         Add support for universal builds to <inttypes.h>.
51318         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51319         _SCNu64_PREFIX): In Apple
51320         universal builds, define directly, using _LP64.
51321         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51322         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51323         * modules/inttypes (Depends-on): Add multiarch.
51324         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51325
51326         Add support for universal builds to <stdint.h>.
51327         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51328         universal builds, define directly, using _LP64.
51329         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51330         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51331         and size_t.
51332         * modules/stdint (Depends-on): Add multiarch.
51333         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51334
51335         New module 'multiarch'.
51336         * modules/multiarch: New file.
51337         * m4/multiarch.m4: New file.
51338
51339 2008-12-25  Bruno Haible  <bruno@clisp.org>
51340
51341         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51342
51343 2008-12-25  Bruno Haible  <bruno@clisp.org>
51344
51345         * modules/btowc (License): Relicense under LGPLv2+.
51346         * modules/mbsinit (License): Likewise.
51347         * modules/mbrtowc (License): Likewise.
51348         * modules/wcrtomb (License): Likewise.
51349         * modules/streq (License): Likewise.
51350         Reported by David Lutterkort <lutter@redhat.com>.
51351
51352 2008-12-23  Bruno Haible  <bruno@clisp.org>
51353
51354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51355
51356 2008-12-23  Bruno Haible  <bruno@clisp.org>
51357
51358         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51359         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51360         GETADDRINFO_LIB, not in LIBS.
51361         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51362         * modules/canon-host (Link): Likewise.
51363         * NEWS: Mention the change.
51364         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51365         GETADDRINFO_LIB.
51366
51367 2008-12-22  Bruno Haible  <bruno@clisp.org>
51368
51369         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51370         * doc/posix-functions/iswalpha_l.texi: Likewise.
51371         * doc/posix-functions/iswblank_l.texi: Likewise.
51372         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51373         * doc/posix-functions/iswctype_l.texi: Likewise.
51374         * doc/posix-functions/iswdigit_l.texi: Likewise.
51375         * doc/posix-functions/iswgraph_l.texi: Likewise.
51376         * doc/posix-functions/iswlower_l.texi: Likewise.
51377         * doc/posix-functions/iswprint_l.texi: Likewise.
51378         * doc/posix-functions/iswpunct_l.texi: Likewise.
51379         * doc/posix-functions/iswspace_l.texi: Likewise.
51380         * doc/posix-functions/iswupper_l.texi: Likewise.
51381         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51382         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51383         * doc/posix-functions/open_wmemstream.texi: Likewise.
51384         * doc/posix-functions/swscanf.texi: Likewise.
51385         * doc/posix-functions/towctrans_l.texi: Likewise.
51386         * doc/posix-functions/towlower.texi: Likewise.
51387         * doc/posix-functions/towlower_l.texi: Likewise.
51388         * doc/posix-functions/towupper.texi: Likewise.
51389         * doc/posix-functions/towupper_l.texi: Likewise.
51390         * doc/posix-functions/vfwprintf.texi: Likewise.
51391         * doc/posix-functions/vfwscanf.texi: Likewise.
51392         * doc/posix-functions/vswscanf.texi: Likewise.
51393         * doc/posix-functions/vwprintf.texi: Likewise.
51394         * doc/posix-functions/vwscanf.texi: Likewise.
51395         * doc/posix-functions/wcpcpy.texi: Likewise.
51396         * doc/posix-functions/wcpncpy.texi: Likewise.
51397         * doc/posix-functions/wcscasecmp.texi: Likewise.
51398         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51399         * doc/posix-functions/wcscoll_l.texi: Likewise.
51400         * doc/posix-functions/wcsdup.texi: Likewise.
51401         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51402         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51403         * doc/posix-functions/wcsnlen.texi: Likewise.
51404         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51405         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51406         * doc/posix-functions/wctrans_l.texi: Likewise.
51407         * doc/posix-functions/wctype_l.texi: Likewise.
51408         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51409         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51410         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51411         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51412         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51413         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51414         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51415         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51416         * doc/glibc-functions/wcschrnul.texi: Likewise.
51417         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51418         * doc/glibc-functions/wcstod_l.texi: Likewise.
51419         * doc/glibc-functions/wcstof_l.texi: Likewise.
51420         * doc/glibc-functions/wcstol_l.texi: Likewise.
51421         * doc/glibc-functions/wcstold_l.texi: Likewise.
51422         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51423         * doc/glibc-functions/wcstoq.texi: Likewise.
51424         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51425         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51426         * doc/glibc-functions/wcstouq.texi: Likewise.
51427         * doc/glibc-functions/wmempcpy.texi: Likewise.
51428
51429 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51430             Eric Blake  <ebb9@byu.net>
51431             Paolo Bonzini  <bonzini@gnu.org>
51432             Bruno Haible  <bruno@clisp.org>
51433
51434         Make c-stack work on Haiku.
51435         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51436         (c_stack_action): Use SA_ONSTACK flag.
51437
51438 2008-12-22  Bruno Haible  <bruno@clisp.org>
51439
51440         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51441
51442 2008-12-22  Bruno Haible  <bruno@clisp.org>
51443
51444         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51445         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51446         being overridden.
51447         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51448         New macros.
51449         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51451         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51452         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51453
51454 2008-12-22  Bruno Haible  <bruno@clisp.org>
51455
51456         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51457         from test code.
51458
51459 2008-12-22  Eric Blake  <ebb9@byu.net>
51460
51461         Avoid gcc warnings on cygwin.
51462         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51463         Avoid unused variable.
51464         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51465         Likewise.
51466
51467 2008-12-22  Bruno Haible  <bruno@clisp.org>
51468
51469         Remove HAVE_MBRTOWC conditionals.
51470         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51471         (mbscasecmp): Assume mbrtowc function.
51472         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51473         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51474         * lib/mbschr.c: Include mbuiter.h unconditionally.
51475         (mbschr): Assume mbrtowc function.
51476         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51477         (mbscspn): Assume mbrtowc function.
51478         * lib/mbslen.c: Include mbuiter.h unconditionally.
51479         (mbslen): Assume mbrtowc function.
51480         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51481         (mbsncasecmp): Assume mbrtowc function.
51482         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51483         (mbsnlen): Assume mbrtowc function.
51484         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51485         (mbspbrk): Assume mbrtowc function.
51486         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51487         (mbspcasecmp): Assume mbrtowc function.
51488         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51489         (mbsrchr): Assume mbrtowc function.
51490         * lib/mbssep.c: Include mbuiter.h unconditionally.
51491         (mbssep): Assume mbrtowc function.
51492         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51493         (mbsspn): Assume mbrtowc function.
51494         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51495         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51496         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51497         (mbstok_r): Assume mbrtowc function.
51498         * lib/propername.c: Include mbuiter.h unconditionally.
51499         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51500         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51501         (trim2): Assume mbrtowc function.
51502         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51503         (mbsnwidth): Assume mbrtowc function.
51504         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51505         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51506         fallback definitions.
51507         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51508
51509 2008-12-22  Bruno Haible  <bruno@clisp.org>
51510
51511         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51512
51513 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51514
51515         * modules/regex: Request emulations for the mb*/wc* functions we need.
51516         * m4/regex.m4: Don't look for those functions here.
51517         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51518
51519 2008-12-22  Bruno Haible  <bruno@clisp.org>
51520
51521         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51522
51523 2008-12-21  Bruno Haible  <bruno@clisp.org>
51524
51525         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51526         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51527         (Include): Remove conditionalization.
51528         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51529         (Include): Remove conditionalization.
51530         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51531         (Include): Remove conditionalization.
51532         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51533         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51534         * NEWS: Mention the change.
51535         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51536         via Sergey Poznyakoff <gray@gnu.org.ua>.
51537
51538 2008-12-21  Bruno Haible  <bruno@clisp.org>
51539
51540         * MODULES.html.sh (Extended multibyte and wide character utilities
51541         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51542         wcrtomb, wcsrtombs.
51543         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51544         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51545         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51546         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51547
51548 2008-12-21  Bruno Haible  <bruno@clisp.org>
51549
51550         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51551
51552 2008-12-21  Bruno Haible  <bruno@clisp.org>
51553
51554         * modules/wcsnrtombs-tests: New file.
51555         * tests/test-wcsnrtombs1.sh: New file.
51556         * tests/test-wcsnrtombs2.sh: New file.
51557         * tests/test-wcsnrtombs3.sh: New file.
51558         * tests/test-wcsnrtombs4.sh: New file.
51559         * tests/test-wcsnrtombs.c: New file.
51560
51561         New module 'wcsnrtombs'.
51562         * lib/wchar.in.h (wcsnrtombs): New declaration.
51563         * lib/wcsnrtombs.c: New file.
51564         * lib/wcsrtombs-state.c: New file.
51565         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51566         (internal_state): Remove variable.
51567         * m4/wcsnrtombs.m4: New file.
51568         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51569         compilation units.
51570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51571         HAVE_WCSNRTOMBS.
51572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51573         HAVE_WCSNRTOMBS.
51574         * modules/wcsnrtombs: New file.
51575         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51576         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51577
51578 2008-12-21  Bruno Haible  <bruno@clisp.org>
51579
51580         * modules/wcsrtombs-tests: New file.
51581         * tests/test-wcsrtombs1.sh: New file.
51582         * tests/test-wcsrtombs2.sh: New file.
51583         * tests/test-wcsrtombs3.sh: New file.
51584         * tests/test-wcsrtombs4.sh: New file.
51585         * tests/test-wcsrtombs.c: New file.
51586
51587         New module 'wcsrtombs'.
51588         * lib/wchar.in.h (wcsrtombs): New declaration.
51589         * lib/wcsrtombs.c: New file.
51590         * m4/wcsrtombs.m4: New file.
51591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51592         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51594         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51595         * modules/wcsrtombs: New file.
51596         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51597         bugs.
51598
51599 2008-12-21  Bruno Haible  <bruno@clisp.org>
51600
51601         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51602         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51603         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51604         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51605         if not correct.
51606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51607         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51608         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51609         m4/locale-zh.m4, m4/codeset.m4.
51610         * doc/posix-functions/wcrtomb.texi: Document the bug.
51611
51612 2008-12-21  Bruno Haible  <bruno@clisp.org>
51613
51614         Work around a btowc() bug on IRIX 6.5.
51615         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51616         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51617         REPLACE_WTOBC if not.
51618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51619         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51620         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51621
51622 2008-12-21  Bruno Haible  <bruno@clisp.org>
51623
51624         * modules/wcrtomb-tests: New file.
51625         * tests/test-wcrtomb.sh: New file.
51626         * tests/test-wcrtomb.c: New file.
51627
51628         New module 'wcrtomb'.
51629         * lib/wchar.in.h (wcrtomb): New declaration.
51630         * lib/wcrtomb.c: New file.
51631         * m4/wcrtomb.m4: New file.
51632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51633         HAVE_WCRTOMB.
51634         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51635         HAVE_WCRTOMB.
51636         * modules/wcrtomb: New file.
51637         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51638
51639 2008-12-21  Bruno Haible  <bruno@clisp.org>
51640
51641         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51642         * modules/mbsrtowcs (Files): Likewise.
51643         * modules/wctob (Files): Likewise.
51644         * modules/c-strcase-tests (Files): Likewise.
51645         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51646         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51647         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51648         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51649         * modules/vasnprintf-posix-tests (Files): Likewise.
51650
51651 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51652
51653         gitlog-to-changelog: pass all command-line arguments to git-log
51654         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51655         it is sometimes convenient to filter the commits in various ways.
51656         gitlog-to-changelog only allows --since to specify a start date,
51657         but git-log itself supports many other filtering mechanisms.
51658         At the moment, I want to filter by branch name.  Rather than
51659         adding a --branch option to gitlog-to-changelog, it seems more
51660         flexible to simply pass all options directly to git-log and let
51661         git do the work.  Notice that this effectively makes --since a
51662         redundant option for gitlog-to-changelog, but removing it would
51663         require current usage to change since calls would then require
51664         an additional '--'.
51665
51666 2008-12-21  Bruno Haible  <bruno@clisp.org>
51667
51668         * modules/mbsnrtowcs-tests: New file.
51669         * tests/test-mbsnrtowcs1.sh: New file.
51670         * tests/test-mbsnrtowcs2.sh: New file.
51671         * tests/test-mbsnrtowcs3.sh: New file.
51672         * tests/test-mbsnrtowcs4.sh: New file.
51673         * tests/test-mbsnrtowcs.c: New file.
51674
51675         New module 'mbsnrtowcs'.
51676         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51677         * lib/mbsnrtowcs.c: New file.
51678         * lib/mbsrtowcs-state.c: New file.
51679         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51680         (internal_state): Remove variable.
51681         * m4/mbsnrtowcs.m4: New file.
51682         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51683         compilation units.
51684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51685         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51686         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51687         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51688         * modules/mbsnrtowcs: New file.
51689         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51690         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51691         portability problem.
51692
51693 2008-12-21  Bruno Haible  <bruno@clisp.org>
51694
51695         Work around mbsrtowcs bug.
51696         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51697         (gl_FUNC_MBSRTOWCS): Invoke it.
51698         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51699         m4/locale-zh.m4.
51700         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51701
51702 2008-12-21  Bruno Haible  <bruno@clisp.org>
51703
51704         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51705
51706 2008-12-21  Bruno Haible  <bruno@clisp.org>
51707
51708         Update doc for AIX.
51709         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51710         16-bit wchar_t type.
51711         * doc/posix-functions/btowc.texi: Likewise.
51712         * doc/posix-functions/fgetwc.texi: Likewise.
51713         * doc/posix-functions/fgetws.texi: Likewise.
51714         * doc/posix-functions/fputwc.texi: Likewise.
51715         * doc/posix-functions/fputws.texi: Likewise.
51716         * doc/posix-functions/fwide.texi: Likewise.
51717         * doc/posix-functions/fwprintf.texi: Likewise.
51718         * doc/posix-functions/fwscanf.texi: Likewise.
51719         * doc/posix-functions/getwchar.texi: Likewise.
51720         * doc/posix-functions/getwc.texi: Likewise.
51721         * doc/posix-functions/iswalnum.texi: Likewise.
51722         * doc/posix-functions/iswalpha.texi: Likewise.
51723         * doc/posix-functions/iswblank.texi: Likewise.
51724         * doc/posix-functions/iswcntrl.texi: Likewise.
51725         * doc/posix-functions/iswctype.texi: Likewise.
51726         * doc/posix-functions/iswdigit.texi: Likewise.
51727         * doc/posix-functions/iswgraph.texi: Likewise.
51728         * doc/posix-functions/iswlower.texi: Likewise.
51729         * doc/posix-functions/iswprint.texi: Likewise.
51730         * doc/posix-functions/iswpunct.texi: Likewise.
51731         * doc/posix-functions/iswspace.texi: Likewise.
51732         * doc/posix-functions/iswupper.texi: Likewise.
51733         * doc/posix-functions/iswxdigit.texi: Likewise.
51734         * doc/posix-functions/mbrtowc.texi: Likewise.
51735         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51736         * doc/posix-functions/mbstowcs.texi: Likewise.
51737         * doc/posix-functions/mbtowc.texi: Likewise.
51738         * doc/posix-functions/putwchar.texi: Likewise.
51739         * doc/posix-functions/putwc.texi: Likewise.
51740         * doc/posix-functions/swprintf.texi: Likewise.
51741         * doc/posix-functions/tolower.texi: Likewise.
51742         * doc/posix-functions/toupper.texi: Likewise.
51743         * doc/posix-functions/towctrans.texi: Likewise.
51744         * doc/posix-functions/ungetwc.texi: Likewise.
51745         * doc/posix-functions/vswprintf.texi: Likewise.
51746         * doc/posix-functions/wcrtomb.texi: Likewise.
51747         * doc/posix-functions/wcscat.texi: Likewise.
51748         * doc/posix-functions/wcschr.texi: Likewise.
51749         * doc/posix-functions/wcscmp.texi: Likewise.
51750         * doc/posix-functions/wcscoll.texi: Likewise.
51751         * doc/posix-functions/wcscpy.texi: Likewise.
51752         * doc/posix-functions/wcscspn.texi: Likewise.
51753         * doc/posix-functions/wcsftime.texi: Likewise.
51754         * doc/posix-functions/wcslen.texi: Likewise.
51755         * doc/posix-functions/wcsncat.texi: Likewise.
51756         * doc/posix-functions/wcsncmp.texi: Likewise.
51757         * doc/posix-functions/wcsncpy.texi: Likewise.
51758         * doc/posix-functions/wcspbrk.texi: Likewise.
51759         * doc/posix-functions/wcsrchr.texi: Likewise.
51760         * doc/posix-functions/wcsrtombs.texi: Likewise.
51761         * doc/posix-functions/wcsspn.texi: Likewise.
51762         * doc/posix-functions/wcsstr.texi: Likewise.
51763         * doc/posix-functions/wcstod.texi: Likewise.
51764         * doc/posix-functions/wcstof.texi: Likewise.
51765         * doc/posix-functions/wcstoimax.texi: Likewise.
51766         * doc/posix-functions/wcstok.texi: Likewise.
51767         * doc/posix-functions/wcstold.texi: Likewise.
51768         * doc/posix-functions/wcstoll.texi: Likewise.
51769         * doc/posix-functions/wcstol.texi: Likewise.
51770         * doc/posix-functions/wcstombs.texi: Likewise.
51771         * doc/posix-functions/wcstoull.texi: Likewise.
51772         * doc/posix-functions/wcstoul.texi: Likewise.
51773         * doc/posix-functions/wcstoumax.texi: Likewise.
51774         * doc/posix-functions/wcswidth.texi: Likewise.
51775         * doc/posix-functions/wcsxfrm.texi: Likewise.
51776         * doc/posix-functions/wctob.texi: Likewise.
51777         * doc/posix-functions/wctomb.texi: Likewise.
51778         * doc/posix-functions/wctrans.texi: Likewise.
51779         * doc/posix-functions/wctype.texi: Likewise.
51780         * doc/posix-functions/wcwidth.texi: Likewise.
51781         * doc/posix-functions/wmemchr.texi: Likewise.
51782         * doc/posix-functions/wmemcmp.texi: Likewise.
51783         * doc/posix-functions/wmemcpy.texi: Likewise.
51784         * doc/posix-functions/wmemmove.texi: Likewise.
51785         * doc/posix-functions/wmemset.texi: Likewise.
51786         * doc/posix-functions/wprintf.texi: Likewise.
51787         * doc/posix-functions/wscanf.texi: Likewise.
51788
51789 2008-12-21  Bruno Haible  <bruno@clisp.org>
51790
51791         Update doc for HP-UX 11.11.
51792         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51793         in HP-UX version 11.00, not in all versions of HP-UX 11.
51794         * doc/posix-functions/fwide.texi: Likewise.
51795         * doc/posix-functions/fwprintf.texi: Likewise.
51796         * doc/posix-functions/fwscanf.texi: Likewise.
51797         * doc/posix-functions/inet_ntop.texi: Likewise.
51798         * doc/posix-functions/inet_pton.texi: Likewise.
51799         * doc/posix-functions/mbrlen.texi: Likewise.
51800         * doc/posix-functions/mbrtowc.texi: Likewise.
51801         * doc/posix-functions/mbsinit.texi: Likewise.
51802         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51803         * doc/posix-functions/swprintf.texi: Likewise.
51804         * doc/posix-functions/swscanf.texi: Likewise.
51805         * doc/posix-functions/towctrans.texi: Likewise.
51806         * doc/posix-functions/vfwprintf.texi: Likewise.
51807         * doc/posix-functions/vswprintf.texi: Likewise.
51808         * doc/posix-functions/vwprintf.texi: Likewise.
51809         * doc/posix-functions/wcrtomb.texi: Likewise.
51810         * doc/posix-functions/wcsrtombs.texi: Likewise.
51811         * doc/posix-functions/wcsstr.texi: Likewise.
51812         * doc/posix-functions/wctob.texi: Likewise.
51813         * doc/posix-functions/wctrans.texi: Likewise.
51814         * doc/posix-functions/wmemchr.texi: Likewise.
51815         * doc/posix-functions/wmemcmp.texi: Likewise.
51816         * doc/posix-functions/wmemcpy.texi: Likewise.
51817         * doc/posix-functions/wmemmove.texi: Likewise.
51818         * doc/posix-functions/wmemset.texi: Likewise.
51819         * doc/posix-functions/wprintf.texi: Likewise.
51820         * doc/posix-functions/wscanf.texi: Likewise.
51821
51822 2008-12-21  Bruno Haible  <bruno@clisp.org>
51823
51824         Work around a portability problem.
51825         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51826         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51827
51828 2008-12-20  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51831         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51832         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51834         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51835
51836         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51837         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51838         set.
51839         (GNULIB_defined_mbstate_t): New macro.
51840         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51841         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51842         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51843         reuses the system's mbrtowc function but works around the bugs.
51844         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51845         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51846         macros.
51847         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51848         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51849         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51850         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51851         REPLACE_MBSINIT if mbsinit needs to be overridden.
51852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51853         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51854         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51855         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51856         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51857         m4/locale-zh.m4.
51858         (Depends): Add mbsinit.
51859         * modules/mbsinit (Depends): Add mbrtowc.
51860         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51861
51862 2008-12-20  Bruno Haible  <bruno@clisp.org>
51863
51864         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51865         so that there are no conversion errors on AIX.
51866         * tests/test-mbsrtowcs.c (main): LIkewise.
51867
51868 2008-12-20  Bruno Haible  <bruno@clisp.org>
51869
51870         Work around wctob bug on Solaris <= 9.
51871         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51872         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51874         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51875         * modules/wctob (Files): Add m4/locale-fr.m4.
51876         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51877
51878 2008-12-20  Bruno Haible  <bruno@clisp.org>
51879
51880         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51881         /dev/null.
51882         * tests/test-select-in.sh: Likewise.
51883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51884
51885 2008-12-20  Bruno Haible  <bruno@clisp.org>
51886
51887         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51888         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51889         Cygwin 1.5.x.
51890
51891 2008-12-20  Bruno Haible  <bruno@clisp.org>
51892
51893         Ensure mbstate_t is defined on HP-UX 11.11.
51894         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51895         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51896         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51897         AC_USE_SYSTEM_EXTENSIONS.
51898         * modules/fnmatch (Depends-on): Add extensions.
51899         * modules/mbrlen (Depends-on): Likewise.
51900         * modules/mbrtowc (Depends-on): Likewise.
51901         * modules/mbsinit (Depends-on): Likewise.
51902         * modules/mbsrtowcs (Depends-on): Likewise.
51903         * modules/mbswidth (Depends-on): Likewise.
51904         * modules/quotearg (Depends-on): Likewise.
51905         * modules/strftime (Depends-on): Likewise.
51906
51907 2008-12-20  Bruno Haible  <bruno@clisp.org>
51908
51909         Ensure wctob is declared on IRIX 6.5.
51910         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51911         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51912         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51914         of HAVE_WCTOB.
51915         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51916         HAVE_WCTOB.
51917         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51918
51919 2008-12-19  Bruno Haible  <bruno@clisp.org>
51920
51921         * modules/mbsrtowcs-tests: New file.
51922         * tests/test-mbsrtowcs1.sh: New file.
51923         * tests/test-mbsrtowcs2.sh: New file.
51924         * tests/test-mbsrtowcs3.sh: New file.
51925         * tests/test-mbsrtowcs4.sh: New file.
51926         * tests/test-mbsrtowcs.c: New file.
51927
51928         New module 'mbsrtowcs'.
51929         * lib/wchar.in.h (mbsrtowcs): New declaration.
51930         * lib/mbsrtowcs.c: New file.
51931         * m4/mbsrtowcs.m4: New file.
51932         * modules/mbsrtowcs: New file.
51933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51934         HAVE_MBSRTOWCS.
51935         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51936         HAVE_MBSRTOWCS.
51937         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51938
51939 2008-12-19  Bruno Haible  <bruno@clisp.org>
51940
51941         New module 'mbrlen'.
51942         * lib/wchar.in.h (mbrlen): New declaration.
51943         * lib/mbrlen.c: New file.
51944         * m4/mbrlen.m4: New file.
51945         * modules/mbrlen: New file.
51946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51947         HAVE_MBRLEN.
51948         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51949         HAVE_MBRLEN.
51950         * doc/posix-functions/mbrlen.texi: Document the new module.
51951
51952 2008-12-19  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51955         * modules/mbrtowc (Depends-on): Add verify.
51956         Suggested by Paul Eggert.
51957
51958 2008-12-18  Bruno Haible  <bruno@clisp.org>
51959
51960         * modules/mbsinit-tests: New file.
51961         * tests/test-mbsinit.sh: New file.
51962         * tests/test-mbsinit.c: New file.
51963
51964 2008-12-18  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/mbrtowc-tests: New file.
51967         * tests/test-mbrtowc1.sh: New file.
51968         * tests/test-mbrtowc2.sh: New file.
51969         * tests/test-mbrtowc3.sh: New file.
51970         * tests/test-mbrtowc4.sh: New file.
51971         * tests/test-mbrtowc.c: New file.
51972
51973         New module 'mbrtowc'.
51974         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51975         mbsinit and mbrtowc.
51976         (mbrtowc): New declaration.
51977         * lib/mbrtowc.c: New file.
51978         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51979         * modules/mbrtowc: New file.
51980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51981         HAVE_MBRTOWC.
51982         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51983         HAVE_MBRTOWC.
51984         * doc/posix-functions/mbrtowc.texi: Document the new module.
51985
51986 2008-12-18  Bruno Haible  <bruno@clisp.org>
51987
51988         New module 'wctob'.
51989         * lib/wchar.in.h (wctob): New declaration.
51990         * lib/wctob.c: New file.
51991         * m4/wctob.m4: New file.
51992         * modules/wctob: New file.
51993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51994         HAVE_WCTOB.
51995         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51996         * doc/posix-functions/wctob.texi: Document the new module.
51997
51998 2008-12-18  Bruno Haible  <bruno@clisp.org>
51999
52000         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52001         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52002
52003 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52004
52005         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52006         G. Christensen" <tgc@jupiterrise.com>.
52007
52008         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52009         G. Christensen" <tgc@jupiterrise.com>.
52010
52011         * lib/flock.c: Need to include string.h.  Reported by "Tom
52012         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52013         <ebb9@byu.net>.
52014
52015 2008-12-18  Bruno Haible  <bruno@clisp.org>
52016
52017         * m4/locale-ja.m4: New file, from GNU gettext.
52018
52019 2008-12-17  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52022         Suggested by Eric Blake.
52023
52024 2008-12-17  Bruno Haible  <bruno@clisp.org>
52025
52026         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52027
52028 2008-12-17  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52031         * modules/mbsinit (Depends-on): Add verify.
52032         Suggested by Paul Eggert.
52033
52034 2008-12-17  Bruno Haible  <bruno@clisp.org>
52035
52036         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52037         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52038         gl_FUNC_MBRTOWC.
52039         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52040         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52041         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52042         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52043         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52044         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52045         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52046         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52047         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52048         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52049         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52050         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52051         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52052         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52053         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52054         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52055         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52056         * modules/trim (configure.ac): Likewise.
52057
52058 2008-12-17  Bruno Haible  <bruno@clisp.org>
52059
52060         * modules/btowc-tests: New file.
52061         * tests/test-btowc1.sh: New file.
52062         * tests/test-btowc2.sh: New file.
52063         * tests/test-btowc.c: New file.
52064
52065         New module 'btowc'.
52066         * lib/wchar.in.h (btowc): New declaration.
52067         * lib/btowc.c: New file.
52068         * m4/btowc.m4: New file.
52069         * modules/btowc: New file.
52070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52071         HAVE_BTOWC.
52072         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52073         * doc/posix-functions/btowc.texi: Document the new module.
52074
52075 2008-12-17  Bruno Haible  <bruno@clisp.org>
52076
52077         New module 'mbsinit'.
52078         * lib/wchar.in.h (mbsinit): New declaration.
52079         * lib/mbsinit.c: New file.
52080         * m4/mbsinit.m4: New file.
52081         * modules/mbsinit: New file.
52082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52083         HAVE_MBSINIT.
52084         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52085         HAVE_MBSINIT.
52086         * doc/posix-functions/mbsinit.texi: Document the new module.
52087
52088 2008-12-16  Bruno Haible  <bruno@clisp.org>
52089
52090         * lib/unistd.in.h: Add comment.
52091         * tests/test-environ.c: Don't include <stdlib.h>.
52092
52093 2008-12-16  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/parse-duration.h (parse_duration): Document return value
52096         convention.
52097         * lib/parse-duration.c: Include specification header first. Add
52098         comments.
52099         (_): Remove macro.
52100         (parse_year_month_day, parse_hour_minute_second): Move side effects
52101         outside of strchr call.
52102         (parse_non_iso8601): Move side effects outside of isspace call.
52103         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52104         call.
52105
52106 2008-12-16  Bruno Haible  <bruno@clisp.org>
52107
52108         * tests/test-parse-duration.sh: Produce no output when the test
52109         succeeds.
52110
52111 2008-12-16  Bruno Haible  <bruno@clisp.org>
52112
52113         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52114         expressions.
52115
52116 2008-12-15  Bruno Haible  <bruno@clisp.org>
52117
52118         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52119         * doc/glibc-functions/flistxattr.texi: Likewise.
52120         * doc/glibc-functions/fopencookie.texi: Likewise.
52121         * doc/glibc-functions/fremovexattr.texi: Likewise.
52122         * doc/glibc-functions/fsetxattr.texi: Likewise.
52123         * doc/glibc-functions/getxattr.texi: Likewise.
52124         * doc/glibc-functions/lgetxattr.texi: Likewise.
52125         * doc/glibc-functions/listxattr.texi: Likewise.
52126         * doc/glibc-functions/llistxattr.texi: Likewise.
52127         * doc/glibc-functions/lremovexattr.texi: Likewise.
52128         * doc/glibc-functions/lsetxattr.texi: Likewise.
52129         * doc/glibc-functions/removexattr.texi: Likewise.
52130         * doc/glibc-functions/setxattr.texi: Likewise.
52131         * doc/posix-functions/open_memstream.texi: Likewise.
52132
52133 2008-12-15  Eric Blake  <ebb9@byu.net>
52134
52135         Update doc for cygwin 1.7.
52136         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52137         functions.
52138         * doc/posix-functions/fchmodat.texi: Likewise.
52139         * doc/posix-functions/fchownat.texi: Likewise.
52140         * doc/posix-functions/fdopendir.texi: Likewise.
52141         * doc/posix-functions/fmemopen.texi: Likewise.
52142         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52143         * doc/posix-functions/fstatat.texi: Likewise.
52144         * doc/posix-functions/futimens.texi: Likewise.
52145         * doc/posix-functions/gai_strerror.texi: Likewise.
52146         * doc/posix-functions/getaddrinfo.texi: Likewise.
52147         * doc/posix-functions/getnameinfo.texi: Likewise.
52148         * doc/posix-functions/if_freenameindex.texi: Likewise.
52149         * doc/posix-functions/if_indextoname.texi: Likewise.
52150         * doc/posix-functions/if_nameindex.texi: Likewise.
52151         * doc/posix-functions/if_nametoindex.texi: Likewise.
52152         * doc/posix-functions/insque.texi: Likewise.
52153         * doc/posix-functions/linkat.texi: Likewise.
52154         * doc/posix-functions/llrint.texi: Likewise.
52155         * doc/posix-functions/llrintf.texi: Likewise.
52156         * doc/posix-functions/llrintl.texi: Likewise.
52157         * doc/posix-functions/lockf.texi: Likewise.
52158         * doc/posix-functions/lrintl.texi: Likewise.
52159         * doc/posix-functions/mkdirat.texi: Likewise.
52160         * doc/posix-functions/mkfifoat.texi: Likewise.
52161         * doc/posix-functions/mknodat.texi: Likewise.
52162         * doc/posix-functions/mq_close.texi: Likewise.
52163         * doc/posix-functions/mq_getattr.texi: Likewise.
52164         * doc/posix-functions/mq_notify.texi: Likewise.
52165         * doc/posix-functions/mq_open.texi: Likewise.
52166         * doc/posix-functions/mq_receive.texi: Likewise.
52167         * doc/posix-functions/mq_send.texi: Likewise.
52168         * doc/posix-functions/mq_setattr.texi: Likewise.
52169         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52170         * doc/posix-functions/mq_timedsend.texi: Likewise.
52171         * doc/posix-functions/mq_unlink.texi: Likewise.
52172         * doc/posix-functions/open_memstream.texi: Likewise.
52173         * doc/posix-functions/openat.texi: Likewise.
52174         * doc/posix-functions/posix_fadvise.texi: Likewise.
52175         * doc/posix-functions/posix_fallocate.texi: Likewise.
52176         * doc/posix-functions/posix_madvise.texi: Likewise.
52177         * doc/posix-functions/posix_memalign.texi: Likewise.
52178         * doc/posix-functions/posix_openpt.texi: Likewise.
52179         * doc/posix-functions/readlinkat.texi: Likewise.
52180         * doc/posix-functions/remque.texi: Likewise.
52181         * doc/posix-functions/renameat.texi: Likewise.
52182         * doc/posix-functions/rintl.texi: Likewise.
52183         * doc/posix-functions/sem_unlink.texi: Likewise.
52184         * doc/posix-functions/shm_open.texi: Likewise.
52185         * doc/posix-functions/shm_unlink.texi: Likewise.
52186         * doc/posix-functions/signgam.texi: Likewise.
52187         * doc/posix-functions/sigset.texi: Likewise.
52188         * doc/posix-functions/stpcpy.texi: Likewise.
52189         * doc/posix-functions/stpncpy.texi: Likewise.
52190         * doc/posix-functions/strerror.texi: Likewise.
52191         * doc/posix-functions/strtod.texi: Likewise.
52192         * doc/posix-functions/symlinkat.texi: Likewise.
52193         * doc/posix-functions/unlinkat.texi: Likewise.
52194         * doc/posix-functions/utimensat.texi: Likewise.
52195         * doc/glibc-functions/bindresvport.texi: Likewise.
52196         * doc/glibc-functions/dn_expand.texi: Likewise.
52197         * doc/glibc-functions/exp10.texi: Likewise.
52198         * doc/glibc-functions/exp10f.texi: Likewise.
52199         * doc/glibc-functions/fgetxattr.texi: Likewise.
52200         * doc/glibc-functions/flistxattr.texi: Likewise.
52201         * doc/glibc-functions/fopencookie.texi: Likewise.
52202         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52203         * doc/glibc-functions/fremovexattr.texi: Likewise.
52204         * doc/glibc-functions/fsetxattr.texi: Likewise.
52205         * doc/glibc-functions/getifaddrs.texi: Likewise.
52206         * doc/glibc-functions/getxattr.texi: Likewise.
52207         * doc/glibc-functions/lgetxattr.texi: Likewise.
52208         * doc/glibc-functions/listxattr.texi: Likewise.
52209         * doc/glibc-functions/llistxattr.texi: Likewise.
52210         * doc/glibc-functions/lremovexattr.texi: Likewise.
52211         * doc/glibc-functions/lsetxattr.texi: Likewise.
52212         * doc/glibc-functions/pow10.texi: Likewise.
52213         * doc/glibc-functions/pow10f.texi: Likewise.
52214         * doc/glibc-functions/rcmd_af.texi: Likewise.
52215         * doc/glibc-functions/removexattr.texi: Likewise.
52216         * doc/glibc-functions/res_init.texi: Likewise.
52217         * doc/glibc-functions/res_mkquery.texi: Likewise.
52218         * doc/glibc-functions/res_query.texi: Likewise.
52219         * doc/glibc-functions/res_querydomain.texi: Likewise.
52220         * doc/glibc-functions/res_send.texi: Likewise.
52221         * doc/glibc-functions/rresvport_af.texi: Likewise.
52222         * doc/glibc-functions/setxattr.texi: Likewise.
52223         * doc/glibc-functions/strcasestr.texi: Likewise.
52224
52225 2008-12-15  Bruno Haible  <bruno@clisp.org>
52226
52227         Fix compilation error on OSF/1 4.0.
52228         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52229         <sys/time.h>, simply delegate to the system header.
52230         Reported by Daniel Richard G. <oss@teragram.com>.
52231
52232 2008-12-15  Bruno Haible  <bruno@clisp.org>
52233
52234         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52235         * doc/posix-functions/fchmodat.texi: Likewise.
52236         * doc/posix-functions/fchownat.texi: Likewise.
52237         * doc/posix-functions/fdopendir.texi: Likewise.
52238         * doc/posix-functions/fstatat.texi: Likewise.
52239         * doc/posix-functions/mkdirat.texi: Likewise.
52240         * doc/posix-functions/unlinkat.texi: Likewise.
52241
52242 2008-12-14  Bruno Haible  <bruno@clisp.org>
52243
52244         Update doc for POSIX:2008.
52245         * doc/posix-functions/faccessat.texi: New file.
52246         * doc/posix-functions/fchmodat.texi: New file.
52247         * doc/posix-functions/fchownat.texi: New file.
52248         * doc/posix-functions/fdopendir.texi: New file.
52249         * doc/posix-functions/fstatat.texi: New file.
52250         * doc/posix-functions/futimens.texi: New file.
52251         * doc/posix-functions/linkat.texi: New file.
52252         * doc/posix-functions/mkdirat.texi: New file.
52253         * doc/posix-functions/mkfifoat.texi: New file.
52254         * doc/posix-functions/mknodat.texi: New file.
52255         * doc/posix-functions/open_wmemstream.texi: New file.
52256         * doc/posix-functions/openat.texi: New file.
52257         * doc/posix-functions/psiginfo.texi: New file.
52258         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52259         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52260         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52261         * doc/posix-functions/readlinkat.texi: New file.
52262         * doc/posix-functions/renameat.texi: New file.
52263         * doc/posix-functions/strerror_l.texi: New file.
52264         * doc/posix-functions/symlinkat.texi: New file.
52265         * doc/posix-functions/unlinkat.texi: New file.
52266         * doc/posix-functions/utimensat.texi: New file.
52267         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52268
52269 2008-12-14  Bruno Haible  <bruno@clisp.org>
52270
52271         Update doc for POSIX:2008.
52272         * doc/posix-functions/alphasort.texi: Renamed from
52273         doc/glibc-functions/alphasort.texi.
52274         * doc/posix-functions/dirfd.texi: Renamed from
52275         doc/glibc-functions/dirfd.texi.
52276         * doc/posix-functions/dprintf.texi: Renamed from
52277         doc/glibc-functions/dprintf.texi.
52278         * doc/posix-functions/duplocale.texi: Renamed from
52279         doc/glibc-functions/duplocale.texi.
52280         * doc/posix-functions/fexecve.texi: Renamed from
52281         doc/glibc-functions/fexecve.texi.
52282         * doc/posix-functions/fmemopen.texi: Renamed from
52283         doc/glibc-functions/fmemopen.texi.
52284         * doc/posix-functions/freelocale.texi: Renamed from
52285         doc/glibc-functions/freelocale.texi.
52286         * doc/posix-functions/getdate_err.texi: Renamed from
52287         doc/glibc-functions/getdate_err.texi.
52288         * doc/posix-functions/isalnum_l.texi: Renamed from
52289         doc/glibc-functions/isalnum_l.texi.
52290         * doc/posix-functions/isalpha_l.texi: Renamed from
52291         doc/glibc-functions/isalpha_l.texi.
52292         * doc/posix-functions/isblank_l.texi: Renamed from
52293         doc/glibc-functions/isblank_l.texi.
52294         * doc/posix-functions/iscntrl_l.texi: Renamed from
52295         doc/glibc-functions/iscntrl_l.texi.
52296         * doc/posix-functions/isdigit_l.texi: Renamed from
52297         doc/glibc-functions/isdigit_l.texi.
52298         * doc/posix-functions/isgraph_l.texi: Renamed from
52299         doc/glibc-functions/isgraph_l.texi.
52300         * doc/posix-functions/islower_l.texi: Renamed from
52301         doc/glibc-functions/islower_l.texi.
52302         * doc/posix-functions/isprint_l.texi: Renamed from
52303         doc/glibc-functions/isprint_l.texi.
52304         * doc/posix-functions/ispunct_l.texi: Renamed from
52305         doc/glibc-functions/ispunct_l.texi.
52306         * doc/posix-functions/isspace_l.texi: Renamed from
52307         doc/glibc-functions/isspace_l.texi.
52308         * doc/posix-functions/isupper_l.texi: Renamed from
52309         doc/glibc-functions/isupper_l.texi.
52310         * doc/posix-functions/iswalnum_l.texi: Renamed from
52311         doc/glibc-functions/iswalnum_l.texi.
52312         * doc/posix-functions/iswalpha_l.texi: Renamed from
52313         doc/glibc-functions/iswalpha_l.texi.
52314         * doc/posix-functions/iswblank_l.texi: Renamed from
52315         doc/glibc-functions/iswblank_l.texi.
52316         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52317         doc/glibc-functions/iswcntrl_l.texi.
52318         * doc/posix-functions/iswctype_l.texi: Renamed from
52319         doc/glibc-functions/iswctype_l.texi.
52320         * doc/posix-functions/iswdigit_l.texi: Renamed from
52321         doc/glibc-functions/iswdigit_l.texi.
52322         * doc/posix-functions/iswgraph_l.texi: Renamed from
52323         doc/glibc-functions/iswgraph_l.texi.
52324         * doc/posix-functions/iswlower_l.texi: Renamed from
52325         doc/glibc-functions/iswlower_l.texi.
52326         * doc/posix-functions/iswprint_l.texi: Renamed from
52327         doc/glibc-functions/iswprint_l.texi.
52328         * doc/posix-functions/iswpunct_l.texi: Renamed from
52329         doc/glibc-functions/iswpunct_l.texi.
52330         * doc/posix-functions/iswspace_l.texi: Renamed from
52331         doc/glibc-functions/iswspace_l.texi.
52332         * doc/posix-functions/iswupper_l.texi: Renamed from
52333         doc/glibc-functions/iswupper_l.texi.
52334         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52335         doc/glibc-functions/iswxdigit_l.texi.
52336         * doc/posix-functions/isxdigit_l.texi: Renamed from
52337         doc/glibc-functions/isxdigit_l.texi.
52338         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52339         doc/glibc-functions/mbsnrtowcs.texi.
52340         * doc/posix-functions/mkdtemp.texi: Renamed from
52341         doc/glibc-functions/mkdtemp.texi.
52342         * doc/posix-functions/newlocale.texi: Renamed from
52343         doc/glibc-functions/newlocale.texi.
52344         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52345         doc/glibc-functions/nl_langinfo_l.texi.
52346         * doc/posix-functions/open_memstream.texi: Renamed from
52347         doc/glibc-functions/open_memstream.texi.
52348         * doc/posix-functions/opterr.texi: Renamed from
52349         doc/glibc-functions/opterr.texi.
52350         * doc/posix-functions/optind.texi: Renamed from
52351         doc/glibc-functions/optind.texi.
52352         * doc/posix-functions/optopt.texi: Renamed from
52353         doc/glibc-functions/optopt.texi.
52354         * doc/posix-functions/psignal.texi: Renamed from
52355         doc/glibc-functions/psignal.texi.
52356         * doc/posix-functions/scandir.texi: Renamed from
52357         doc/glibc-functions/scandir.texi.
52358         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52359         doc/glibc-functions/sched_get_priority_min.texi.
52360         * doc/posix-functions/signgam.texi: Renamed from
52361         doc/glibc-functions/signgam.texi.
52362         * doc/posix-functions/stpcpy.texi: Renamed from
52363         doc/glibc-functions/stpcpy.texi.
52364         * doc/posix-functions/stpncpy.texi: Renamed from
52365         doc/glibc-functions/stpncpy.texi.
52366         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52367         doc/glibc-functions/strcasecmp_l.texi.
52368         * doc/posix-functions/strcoll_l.texi: Renamed from
52369         doc/glibc-functions/strcoll_l.texi.
52370         * doc/posix-functions/strfmon_l.texi: Renamed from
52371         doc/glibc-functions/strfmon_l.texi.
52372         * doc/posix-functions/strftime_l.texi: Renamed from
52373         doc/glibc-functions/strftime_l.texi.
52374         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52375         doc/glibc-functions/strncasecmp_l.texi.
52376         * doc/posix-functions/strndup.texi: Renamed from
52377         doc/glibc-functions/strndup.texi.
52378         * doc/posix-functions/strnlen.texi: Renamed from
52379         doc/glibc-functions/strnlen.texi.
52380         * doc/posix-functions/strsignal.texi: Renamed from
52381         doc/glibc-functions/strsignal.texi.
52382         * doc/posix-functions/strxfrm_l.texi: Renamed from
52383         doc/glibc-functions/strxfrm_l.texi.
52384         * doc/posix-functions/timer_gettime.texi: Renamed from
52385         doc/glibc-functions/timer_gettime.texi.
52386         * doc/posix-functions/tolower_l.texi: Renamed from
52387         doc/glibc-functions/tolower_l.texi.
52388         * doc/posix-functions/toupper_l.texi: Renamed from
52389         doc/glibc-functions/toupper_l.texi.
52390         * doc/posix-functions/towctrans_l.texi: Renamed from
52391         doc/glibc-functions/towctrans_l.texi.
52392         * doc/posix-functions/towlower_l.texi: Renamed from
52393         doc/glibc-functions/towlower_l.texi.
52394         * doc/posix-functions/towupper_l.texi: Renamed from
52395         doc/glibc-functions/towupper_l.texi.
52396         * doc/posix-functions/uselocale.texi: Renamed from
52397         doc/glibc-functions/uselocale.texi.
52398         * doc/posix-functions/vdprintf.texi: Renamed from
52399         doc/glibc-functions/vdprintf.texi.
52400         * doc/posix-functions/wcpcpy.texi:
52401         Renamed from doc/glibc-functions/wcpcpy.texi.
52402         * doc/posix-functions/wcpncpy.texi: Renamed from
52403         doc/glibc-functions/wcpncpy.texi.
52404         * doc/posix-functions/wcscasecmp.texi: Renamed from
52405         doc/glibc-functions/wcscasecmp.texi.
52406         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52407         doc/glibc-functions/wcscasecmp_l.texi.
52408         * doc/posix-functions/wcscoll_l.texi: Renamed from
52409         doc/glibc-functions/wcscoll_l.texi.
52410         * doc/posix-functions/wcsdup.texi: Renamed from
52411         doc/glibc-functions/wcsdup.texi.
52412         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52413         doc/glibc-functions/wcsncasecmp.texi.
52414         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52415         doc/glibc-functions/wcsncasecmp_l.texi.
52416         * doc/posix-functions/wcsnlen.texi: Renamed from
52417         doc/glibc-functions/wcsnlen.texi.
52418         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52419         doc/glibc-functions/wcsnrtombs.texi.
52420         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52421         doc/glibc-functions/wcsxfrm_l.texi.
52422         * doc/posix-functions/wctrans_l.texi: Renamed from
52423         doc/glibc-functions/wctrans_l.texi.
52424         * doc/posix-functions/wctype_l.texi: Renamed from
52425         doc/glibc-functions/wctype_l.texi.
52426         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52427         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52428         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52429         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52430         these subsections.
52431         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52432         Remove sections.
52433
52434 2008-12-14  Bruno Haible  <bruno@clisp.org>
52435
52436         Update doc for POSIX:2008.
52437         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52438
52439 2008-12-14  Bruno Haible  <bruno@clisp.org>
52440
52441         Update doc for POSIX:2008.
52442         * doc/pastposix-functions/bcmp.texi: Renamed from
52443         doc/posix-functions/bcmp.texi.
52444         * doc/pastposix-functions/bcopy.texi: Renamed from
52445         doc/posix-functions/bcopy.texi.
52446         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52447         doc/posix-functions/bsd_signal.texi.
52448         * doc/pastposix-functions/bzero.texi: Renamed from
52449         doc/posix-functions/bzero.texi.
52450         * doc/pastposix-functions/ecvt.texi: Renamed from
52451         doc/posix-functions/ecvt.texi.
52452         * doc/pastposix-functions/fcvt.texi: Renamed from
52453         doc/posix-functions/fcvt.texi.
52454         * doc/pastposix-functions/ftime.texi: Renamed from
52455         doc/posix-functions/ftime.texi.
52456         * doc/pastposix-functions/gcvt.texi: Renamed from
52457         doc/posix-functions/gcvt.texi.
52458         * doc/pastposix-functions/getcontext.texi: Renamed from
52459         doc/posix-functions/getcontext.texi.
52460         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52461         doc/posix-functions/gethostbyaddr.texi.
52462         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52463         doc/posix-functions/gethostbyname.texi.
52464         * doc/pastposix-functions/getwd.texi: Renamed from
52465         doc/posix-functions/getwd.texi.
52466         * doc/pastposix-functions/h_errno.texi: Renamed from
52467         doc/posix-functions/h_errno.texi.
52468         * doc/pastposix-functions/index.texi: Renamed from
52469         doc/posix-functions/index.texi.
52470         * doc/pastposix-functions/makecontext.texi: Renamed from
52471         doc/posix-functions/makecontext.texi.
52472         * doc/pastposix-functions/mktemp.texi: Renamed from
52473         doc/posix-functions/mktemp.texi.
52474         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52475         doc/posix-functions/pthread_attr_getstackaddr.texi.
52476         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52477         doc/posix-functions/pthread_attr_setstackaddr.texi.
52478         * doc/pastposix-functions/rindex.texi: Renamed from
52479         doc/posix-functions/rindex.texi.
52480         * doc/pastposix-functions/scalb.texi: Renamed from
52481         doc/posix-functions/scalb.texi.
52482         * doc/pastposix-functions/setcontext.texi: Renamed from
52483         doc/posix-functions/setcontext.texi.
52484         * doc/pastposix-functions/swapcontext.texi: Renamed from
52485         doc/posix-functions/swapcontext.texi.
52486         * doc/pastposix-functions/ualarm.texi: Renamed from
52487         doc/posix-functions/ualarm.texi.
52488         * doc/pastposix-functions/usleep.texi: Renamed from
52489         doc/posix-functions/usleep.texi.
52490         * doc/pastposix-functions/vfork.texi: Renamed from
52491         doc/posix-functions/vfork.texi.
52492         * doc/pastposix-functions/wcswcs.texi: Renamed from
52493         doc/posix-functions/wcswcs.texi.
52494         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52495         (Function Substitutes): Update.
52496
52497 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52498
52499         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52500         m4/strerror.m4.
52501
52502 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52503             Bruno Haible  <bruno@clisp.org>
52504
52505         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52506
52507 2008-12-13  Bruno Haible  <bruno@clisp.org>
52508
52509         * modules/strtoull (Depends-on): Remove unistd.
52510
52511 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52512
52513         * modules/strtoull (Depends-on): Add stdlib.
52514
52515 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52516
52517         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52518
52519 2008-12-10  Jim Meyering  <meyering@redhat.com>
52520
52521         gl_ASSERT: don't say assertions are disabled when they're not
52522         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52523         "checking whether to enable assertions... no", when they are in
52524         fact enabled.  This is solely a bug in the output of configure.
52525         In spite of saying "no", NDEBUG was not defined in that case.
52526         Also, as noted by Eric Blake, leave assertions enabled upon
52527         --enable-assert=INVALID.
52528
52529 2008-12-10  Bruno Haible  <bruno@clisp.org>
52530
52531         Change MODULES.html to refer to POSIX:2008 where possible.
52532         * MODULES.html.sh (POSIX2008_URL): New variable.
52533         (posix_headers): Remove sys/timeb, ucontext.
52534         (posix2001_headers): New variable.
52535         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52536         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52537         index, makecontext, mktemp, pthread_attr_getstackaddr,
52538         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52539         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52540         (posix2001_functions): New variable.
52541         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52542         otherwise.
52543
52544 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52545
52546         add missing include to parse-duration.c
52547         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52548         * modules/parse-duration (Depends-on): Add xalloc.
52549
52550         fix sed script reading maint.mk
52551         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52552         (syntax-check-rules): Use it.
52553
52554 2008-12-09  Bruno Haible  <bruno@clisp.org>
52555
52556         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52557         MacOS X 10.4/PowerPC.
52558         Reported by Simon Josefsson.
52559
52560 2008-12-08  Jim Meyering  <meyering@redhat.com>
52561
52562         work around mingw's lack of some S_IF definitions
52563         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52564         Reported by Simon Josefsson.
52565
52566 2008-12-08  Bruno Haible  <bruno@clisp.org>
52567
52568         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52569         applied to variables. Needed on MacOS X 10.4/PowerPC.
52570         Reported by Simon Josefsson.
52571
52572 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52573         and Eric Blake  <ebb9@byu.net>
52574
52575         assert: honor --enable-assert
52576         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52577         order to honor --enable-assert, rather than treating it as a
52578         synonym for --disable-assert.
52579
52580 2008-12-08  Jim Meyering  <meyering@redhat.com>
52581
52582         * lib/posixtm.c: Remove now-useless declaration of mktime.
52583
52584         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52585
52586 2008-12-07  Bruno Haible  <bruno@clisp.org>
52587
52588         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52589         test_once): Mark functions as static.
52590         * tests/test-tls.c (test_tls): Likewise.
52591
52592 2008-12-07  Bruno Haible  <bruno@clisp.org>
52593
52594         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52595         iconv_register_autodetect.
52596
52597 2008-12-07  Jim Meyering  <meyering@redhat.com>
52598
52599         posixtm.c: avoid a warning
52600         * lib/posixtm.c (posixtime): Don't initialize tm0.
52601         It's no longer needed to placate gcc4's -Wuninitialized,
52602         and the attempt to placate would elicit a new warning.
52603
52604         unicodeio.c: mark unused parameters
52605         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52606         (fallback_failure_callback): Likewise.
52607
52608 2008-12-07  Bruno Haible  <bruno@clisp.org>
52609
52610         * gnulib-tool (func_create_testdir): When building the tests
52611         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52612         Reported by Simon Josefsson.
52613
52614 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52615
52616         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52617
52618 2008-12-06  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52621         Suggested by Eric Blake.
52622
52623 2008-12-06  Bruno Haible  <bruno@clisp.org>
52624
52625         Fix a c-stack test failure on MacOS X.
52626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52627         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52628         handler for SIGBUS as well.
52629         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52630         install a signal handler for SIGBUS as well.
52631         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52632
52633 2008-12-06  Bruno Haible  <bruno@clisp.org>
52634
52635         Advocacy documentation.
52636         * doc/gnulib-intro.texi (Benefits): New section.
52637         * doc/gnulib.texi: Update.
52638
52639 2008-12-06  Bruno Haible  <bruno@clisp.org>
52640
52641         Document the 'manywarnings' module.
52642         * doc/manywarnings.texi: New file.
52643         * doc/gnulib.texi: Include it.
52644
52645 2008-12-05  Eric Blake  <ebb9@byu.net>
52646
52647         tests: silence some gcc warnings
52648         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52649         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52650         type mismatches.
52651
52652 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52653             Bruno Haible  <bruno@clisp.org>
52654
52655         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52656
52657 2008-11-29  Jim Meyering  <meyering@redhat.com>
52658
52659         unicodeio.c: mark unused parameters
52660         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52661         (fallback_failure_callback): Likewise.
52662
52663         fts: fix a thinko
52664         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52665         (set_stat_type): Return S_IF*-valued "type" directly.
52666         Prompted by James Youngman's spotting a related bug.
52667         Confirmed by further testing through find.
52668
52669         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52670         * lib/fts.c (D_TYPE): Define.
52671         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52672         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52673         (s_ifmt_shift_bits): New function.
52674         (set_stat_type): New function.
52675         (fts_build): When not calling fts_stat, call set_stat_type
52676         to propagate dirent.d_type info to fts_read caller.
52677         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52678         fts_statp->st_mode type information may be valid.
52679
52680 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52681
52682         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52683         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52684         <sds@gnu.org>.
52685
52686 2008-11-20  Bruno Haible  <bruno@clisp.org>
52687
52688         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52689         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52690         INCLUDE_NEXT.
52691         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52692         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52693         * modules/math (Makefile.am): Substitute
52694         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52695         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52696
52697 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52698             Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/stdint.in.h: Define all type macros so that their expansion is
52701         a single typedef'ed token. Fixes a compilation failure in Boost which
52702         does "using ::int8_t;".
52703
52704 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52705
52706         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52707         gl_MANYWARN_ALL_GCC.
52708         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52709         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52710         * modules/manywarnings: New file.
52711         * MODULES.html.sh: Mention manywarnings module.
52712
52713 2008-11-18  Bruno Haible  <bruno@clisp.org>
52714
52715         * doc/gnulib-tool.texi (Unit tests): New section.
52716
52717 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52718
52719         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52720         paths like 'lib/po/foo.po'.
52721
52722 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52723
52724         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52725         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52726
52727 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52728
52729         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52730         parameter works.
52731
52732 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52733
52734         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52735
52736 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52737
52738         * modules/parse-duration-tests: New file.
52739         * tests/test-parse-duration.sh: New file.
52740         * tests/test-parse-duration.c: New file.
52741
52742         New module 'parse-duration'.
52743         * lib/parse-duration.h: New file.
52744         * lib/parse-duration.c: New file.
52745         * modules/parse-duration: New file.
52746
52747 2008-11-17  Bruno Haible  <bruno@clisp.org>
52748
52749         * tests/test-select-out.sh: Comment out the first pipe test.
52750         Reported by Simon Josefsson.
52751
52752 2008-11-17  Bruno Haible  <bruno@clisp.org>
52753
52754         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52755         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52756         gl_HOSTENT.
52757
52758 2008-11-17  Bruno Haible  <bruno@clisp.org>
52759
52760         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52761         -lnetwork and -lnet. Needed for Haiku and BeOS.
52762
52763 2008-11-16  Bruno Haible  <bruno@clisp.org>
52764
52765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52766
52767 2008-11-16  Bruno Haible  <bruno@clisp.org>
52768
52769         Avoid test failure on Haiku.
52770         * tests/test-fsync.c: Include <errno.h>.
52771         (main): Don't require that fsync (0) fails.
52772
52773 2008-11-15  Bruno Haible  <bruno@clisp.org>
52774
52775         New module 'hostent'.
52776         * modules/hostent: New file.
52777         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52778
52779 2008-11-15  Bruno Haible  <bruno@clisp.org>
52780
52781         New module 'servent'.
52782         * modules/servent: New file.
52783         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52784
52785 2008-11-15  Bruno Haible  <bruno@clisp.org>
52786
52787         Avoid generating same test program with two different rules.
52788         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52789         test-frexp to test-frexp-nolibm.
52790         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52791         test-frexpl to test-frexpl-nolibm.
52792
52793 2008-11-15  Bruno Haible  <bruno@clisp.org>
52794
52795         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52796         $(FREXPL_LIBM).
52797
52798 2008-11-15  Bruno Haible  <bruno@clisp.org>
52799
52800         * lib/netdb.in.h: Activate the definitions also when the system's
52801         <netdb.h> has 'struct addrinfo'.
52802         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52803         EAI_OVERFLOW or AI_NUMERICSERV.
52804         * doc/posix-headers/netdb.texi: Document the problem.
52805
52806 2008-11-15  Bruno Haible  <bruno@clisp.org>
52807
52808         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52809
52810         Make the 'sched' module work on platforms where <sched.h> exists but
52811         is incomplete (such as Haiku).
52812         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52813         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52814         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52815         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52816         HAVE_STRUCT_SCHED_PARAM.
52817         * modules/sched (Depends-on): Add include_next.
52818         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52819         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52820         * doc/posix-headers/sched.texi: Document the issue.
52821
52822 2008-11-13  Jim Meyering  <meyering@redhat.com>
52823
52824         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52825         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52826         test would fail due to the difference in the Report bugs to ...
52827         line.  The expected address is empty, "<>", while the actual
52828         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52829
52830 2008-11-12  Bruno Haible  <bruno@clisp.org>
52831
52832         lstat: don't compile lstat.c on systems lacking lstat
52833         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52834         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52835         Reported by Daniel P. Berrange via Jim Meyering.
52836
52837 2008-11-12  Jim Meyering  <meyering@redhat.com>
52838
52839         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52840
52841 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52842
52843         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52844         instead.
52845
52846 2008-11-12  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/unicodeio.c: Include unistr.h.
52849         (utf8_wctomb): Remove function.
52850         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52851
52852 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52853
52854         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52855         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52856         <bruno@clisp.org>.
52857         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52858
52859 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52860
52861         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52862         * doc/gnulib.texi: Add section for warnings.
52863
52864 2008-11-11  Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/sockets.h: Add a comment.
52867
52868 2008-11-11  Karl Berry  <karl@gnu.org>
52869
52870         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52871
52872 2008-11-11  Eric Blake  <ebb9@byu.net>
52873
52874         fdl.texi: avoid git symlinks
52875         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52876
52877 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52878
52879         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52880
52881 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52882
52883         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52884         (gl_WARN_ADD): Substitute $2 if literal.
52885
52886 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52887
52888         * m4/warning.m4: Remove.
52889
52890 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52891
52892         * m4/warnings.m4: Almost complete rewrite. :-)
52893
52894 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52895
52896         * modules/warnings: New module.
52897         * m4/warnings.m4: New file.
52898         * MODULES.html.sh: Mention warnings module.
52899         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52900         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52901
52902 2008-11-10  Eric Blake  <ebb9@byu.net>
52903
52904         fdl.texi: make a symlink to the latest version
52905         * doc/standards.texi: Revert today's earlier change.
52906         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52907         * doc/fdl.texi: ...and replace this with a symlink to the newer
52908         fdl-1.3.texi.
52909
52910 2008-11-10  Bruno Haible  <bruno@clisp.org>
52911
52912         * tests/test-select-fd.c (main): Accept the result file name as fourth
52913         argument.
52914         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52915         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52916
52917 2008-11-10  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52920         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52921         as autoconf-substituted macros.
52922         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52924         gl_NETDB_H_DEFAULTS. Set these variables.
52925         * modules/netdb (Makefile.am): Substitute these variables.
52926
52927 2008-11-10  Eric Blake  <ebb9@byu.net>
52928
52929         standards.texi: include correct file for FDL 1.3
52930         * doc/standards.texi (GNU Free Documentation License): Change
52931         include file to pull in FDL 1.3, not 1.2.
52932
52933         fdl.texi: revert accidental change to license
52934         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52935
52936 2008-11-10  Bruno Haible  <bruno@clisp.org>
52937
52938         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52939         cross-compiling guesses also when the native compile gives no result.
52940
52941 2008-11-10  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/spawni.c (__spawni): Force variable into the stack.
52944
52945 2008-11-10  Bruno Haible  <bruno@clisp.org>
52946
52947         Add support for Haiku.
52948         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52949         glibc and BeOS, but also on Haiku.
52950         * lib/fpurge.c (fpurge): Likewise.
52951         * lib/freadable.c (freadable): Likewise.
52952         * lib/freadahead.c (freadahead): Likewise.
52953         * lib/freading.c (freading): Likewise.
52954         * lib/freadptr.c (freadptr): Likewise.
52955         * lib/freadseek.c (freadptrinc): Likewise.
52956         * lib/fseeko.c (rpl_fseeko): Likewise.
52957         * lib/fseterr.c (fseterr): Likewise.
52958         * lib/fwritable.c (fwritable): Likewise.
52959         * lib/fwriting.c (fwriting): Likewise.
52960         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52961
52962 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52963
52964         * lib/config.charset: Treat Haiku like BeOS.
52965
52966 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52967
52968         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52969         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52970
52971 2008-11-08  Bruno Haible  <bruno@clisp.org>
52972
52973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52974         AC_CACHE_CHECK.
52975
52976 2008-11-08  Bruno Haible  <bruno@clisp.org>
52977
52978         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52979
52980 2008-11-08  Bruno Haible  <bruno@clisp.org>
52981
52982         * tests/test-select-fd.c: New file.
52983         * tests/test-select-in.sh: New file.
52984         * tests/test-select-out.sh: New file.
52985         * tests/test-select-stdin.c: New file.
52986         * modules/select-tests (Files): Add the new files.
52987         (Depends-on): Add gettimeofday.
52988         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52989         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52990         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52991
52992 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52993             Bruno Haible  <bruno@clisp.org>
52994
52995         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52996
52997 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52998
52999         * build-aux/pmccabe2html: Added support for C++ source files.
53000
53001 2008-11-05  Ben Pfaff  <blp@gnu.org>
53002
53003         Fix lib/close.c build on Windows.
53004         * modules/close (Files): Add lib/w32sock.h.
53005
53006 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53007
53008         Accept Bison's NEWS format.
53009         * build-aux/announce-gen (print_news_deltas): Tweak
53010         $re_prefix.
53011
53012 2008-11-04  Bruno Haible  <bruno@clisp.org>
53013
53014         * modules/random_r (Maintainer): Add glibc.
53015
53016 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53017
53018         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53019         by karl@freefriends.org (Karl Berry).
53020         * doc/alloca.texi: Likewise.
53021         * doc/c-ctype.texi: Likewise.
53022         * doc/c-strcase.texi: Likewise.
53023         * doc/c-strcaseeq.texi: Likewise.
53024         * doc/c-strcasestr.texi: Likewise.
53025         * doc/c-strstr.texi: Likewise.
53026         * doc/c-strtod.texi: Likewise.
53027         * doc/c-strtold.texi: Likewise.
53028         * doc/ctime.texi: Likewise.
53029         * doc/error.texi: Likewise.
53030         * doc/fdl.texi: Likewise.
53031         * doc/gcd.texi: Likewise.
53032         * doc/getdate.texi: Likewise.
53033         * doc/gnulib-intro.texi: Likewise.
53034         * doc/gnulib-tool.texi: Likewise.
53035         * doc/gnulib.texi: Likewise.
53036         * doc/inet_ntoa.texi: Likewise.
53037         * doc/maintain.texi: Likewise.
53038         * doc/make-stds.texi: Likewise.
53039         * doc/quote.texi: Likewise.
53040         * doc/regexprops-generic.texi: Likewise.
53041         * doc/standards.texi: Likewise.
53042         * doc/verify.texi: Likewise.
53043         * doc/visibility.texi: Likewise.
53044         * doc/gnulib.texi (GNU Free Documentation License): Include
53045         fdl-1.3.texi instead of fdl.texi.
53046
53047 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53048
53049         * doc/fdl-1.3.texi: New file, from
53050         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53051         * modules/fdl-1.3: Add.
53052         * MODULES.html.sh: Add fdl-1.3.
53053
53054 2008-11-03  Bruno Haible  <bruno@clisp.org>
53055
53056         Make determination of absolute name of header file work with AIX xlc.
53057         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53058         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53059         preprocessing.
53060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53061         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53062
53063 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53064
53065         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53066         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53067         <ludo@gnu.org>.
53068
53069 2008-11-02  Bruno Haible  <bruno@clisp.org>
53070
53071         Mark 'strpbrk' obsolete.
53072         * modules/strpbrk (Status, Notice): New sections.
53073         * modules/strtok_r (Depends-on): Add strpbrk.
53074
53075 2008-11-02  Bruno Haible  <bruno@clisp.org>
53076
53077         Mark 'strdup' obsolete.
53078         * modules/strdup (Status, Notice): New sections.
53079         * modules/findprog (Depends-on): Add strdup.
53080         * modules/getaddrinfo (Depends-on): Likewise.
53081         * modules/localename (Depends-on): Likewise.
53082         * modules/relocatable-lib (Depends-on): Likewise.
53083         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53084         * modules/relocatable-prog (Depends-on): Likewise.
53085         * modules/trim (Depends-on): Likewise.
53086         * modules/unictype/gen-ctype (Depends-on): Likewise.
53087         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53088
53089 2008-11-02  Bruno Haible  <bruno@clisp.org>
53090
53091         Mark 'strcspn' obsolete.
53092         * modules/strcspn (Status, Notice): New sections.
53093
53094 2008-11-02  Bruno Haible  <bruno@clisp.org>
53095
53096         Mark 'rmdir' obsolete.
53097         * modules/rmdir (Status, Notice): New sections.
53098         * modules/clean-temp (Depends-on): Add rmdir.
53099         * modules/openat (Depends-on): Likewise.
53100
53101 2008-11-02  Bruno Haible  <bruno@clisp.org>
53102
53103         Mark 'raise' obsolete.
53104         * modules/raise (Status, Notice): New sections.
53105         (Include): Specify <signal.h>.
53106         * modules/stdio (Depends-on): Add raise.
53107         * modules/write (Depends-on): Likewise.
53108
53109 2008-11-02  Bruno Haible  <bruno@clisp.org>
53110
53111         Mark 'memset' obsolete.
53112         * modules/memset (Status, Notice): New sections.
53113
53114 2008-11-02  Bruno Haible  <bruno@clisp.org>
53115
53116         Mark 'memmove' obsolete.
53117         * modules/memmove (Status, Notice): New sections.
53118         * modules/argp (Depends-on): Add memmove.
53119         * modules/argz (Depends-on): Likewise.
53120         * modules/canonicalize (Depends-on): Likewise.
53121         * modules/canonicalize-lgpl (Depends-on): Likewise.
53122         * modules/fts (Depends-on): Likewise.
53123         * modules/getcwd (Depends-on): Likewise.
53124         * modules/human (Depends-on): Likewise.
53125         * modules/regex (Depends-on): Likewise.
53126         * modules/striconveh (Depends-on): Likewise.
53127         * modules/trim (Depends-on): Likewise.
53128         * modules/unistr/u8-move (Depends-on): Likewise.
53129         * modules/unistr/u16-move (Depends-on): Likewise.
53130         * modules/unistr/u32-move (Depends-on): Likewise.
53131
53132 2008-11-02  Bruno Haible  <bruno@clisp.org>
53133
53134         Mark 'memcpy' obsolete.
53135         * modules/memcpy (Status, Notice): New sections.
53136
53137 2008-11-02  Bruno Haible  <bruno@clisp.org>
53138
53139         Mark 'memcmp' obsolete.
53140         * modules/memcmp (Status, Notice): New sections.
53141         * modules/argmatch (Depends-on): Add memchr.
53142         * modules/backupfile (Depends-on): Likewise.
53143         * modules/c-strcasestr (Depends-on): Likewise.
53144         * modules/crypto/des (Depends-on): Likewise.
53145         * modules/csharpcomp (Depends-on): Likewise.
53146         * modules/fnmatch (Depends-on): Likewise.
53147         * modules/git-merge-changelog (Depends-on): Likewise.
53148         * modules/isnand (Depends-on): Likewise.
53149         * modules/isnand-nolibm (Depends-on): Likewise.
53150         * modules/isnanf (Depends-on): Likewise.
53151         * modules/isnanf-nolibm (Depends-on): Likewise.
53152         * modules/isnanl (Depends-on): Likewise.
53153         * modules/isnanl-nolibm (Depends-on): Likewise.
53154         * modules/mbchar (Depends-on): Likewise.
53155         * modules/memcoll (Depends-on): Likewise.
53156         * modules/quotearg (Depends-on): Likewise.
53157         * modules/regex (Depends-on): Likewise.
53158         * modules/relocatable-prog (Depends-on): Likewise.
53159         * modules/same (Depends-on): Likewise.
53160         * modules/signbit (Depends-on): Likewise.
53161         * modules/strcasestr-simple (Depends-on): Likewise.
53162         * modules/unictype/gen-ctype (Depends-on): Likewise.
53163         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53164         * modules/uniname/uniname (Depends-on): Likewise.
53165         * modules/unistr/u8-cmp (Depends-on): Likewise.
53166
53167 2008-11-02  Bruno Haible  <bruno@clisp.org>
53168
53169         Mark 'memchr' obsolete.
53170         * modules/memchr (Status, Notice): New sections.
53171         * modules/argp (Depends-on): Add memchr.
53172         * modules/base64 (Depends-on): Likewise.
53173         * modules/c-strcasestr (Depends-on): Likewise.
53174         * modules/chdir-long (Depends-on): Likewise.
53175         * modules/fnmatch (Depends-on): Likewise.
53176         * modules/getsubopt (Depends-on): Likewise.
53177         * modules/git-merge-changelog (Depends-on): Likewise.
53178         * modules/glob (Depends-on): Likewise.
53179         * modules/strcasestr-simple (Depends-on): Likewise.
53180         * modules/strnlen (Depends-on): Likewise.
53181
53182 2008-11-02  Bruno Haible  <bruno@clisp.org>
53183
53184         Mark 'atexit' obsolete.
53185         * modules/atexit (Status, Notice): New sections.
53186         * modules/chdir-long (Depends-on): Add atexit.
53187         * modules/wait-process (Depends-on): Likewise.
53188
53189 2008-11-02  Bruno Haible  <bruno@clisp.org>
53190
53191         * gnulib-tool: New option --with-obsolete.
53192         (func_usage): Document it.
53193         (func_modules_transitive_closure): Drop obsolete dependencies if
53194         incobsolete is not true.
53195         (func_import): Read and save the incobsolete variable to the cache.
53196
53197 2008-11-02  Bruno Haible  <bruno@clisp.org>
53198
53199         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53200         * gnulib-tool: New option --extract-status.
53201         (func_usage): Document it.
53202         (sed_extract_prog): Recognize it.
53203         (func_get_status): New function.
53204
53205 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53206
53207         * modules/sockets (License): Change from LGPL to LGPLv2+.
53208
53209 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53210
53211         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53212
53213 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53214
53215         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53216         Mention times and sys_times.
53217         * modules/sys_times, modules/sys_times-tests: New modules.
53218         * modules/times, modules/times-tests: Likewise
53219         * m4/sys_times_h.m4: New file.
53220         * lib/sys_times.in.h: Likewise
53221         * lib/times.c: Likewise.
53222         * tests/test-sys_times.c: Likewise.
53223         * tests/test-times.c: Likewise.
53224         * doc/posix-headers/sys_times.texi: Update.
53225         * doc/posix-functions/times.texi: Update.
53226
53227 2008-10-28  Jim Meyering  <meyering@redhat.com>
53228
53229         * modules/tempname (Depends-on): Add lstat.
53230
53231         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53232
53233 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53234
53235         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53236         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53237         using idiom used elsewhere in gnulib.
53238
53239 2008-10-27  Jim Meyering  <meyering@redhat.com>
53240
53241         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53242
53243 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53244
53245         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53246         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53247         programs.
53248         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53249
53250 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53251
53252         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53253
53254 2008-10-27  Bruno Haible  <bruno@clisp.org>
53255
53256         * tests/test-lstat.c: Include <stdio.h>.
53257
53258 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53259
53260         * modules/lstat-tests: New module.
53261         * tests/test-lstat.c: New file.
53262
53263 2008-10-26  Jim Meyering  <meyering@redhat.com>
53264
53265         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53266
53267 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53268             Bruno Haible  <bruno@clisp.org>
53269
53270         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53271         * modules/configmake (Include): Add a note that the include must come
53272         after all system headers.
53273         * lib/javaversion.c: Include configmake.h after all other includes.
53274
53275 2008-10-26  Bruno Haible  <bruno@clisp.org>
53276
53277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53278         HAVE_STRUCT_RANDOM_DATA to 1.
53279         (gl_STDLIB_H): Simplify.
53280
53281 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53282
53283         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53284         substitute HAVE_STRUCT_RANDOM_DATA.
53285         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53286         random_data.
53287         * modules/stdlib (Makefile.am): Substitute
53288         HAVE_STRUCT_RANDOM_DATA.
53289
53290 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53291
53292         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53293         * doc/gnulib-intro.texi (Copyright): Likewise.
53294
53295 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53296
53297         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53298         findings.
53299
53300 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53301             Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/unistd.in.h: Include <winsock2.h>.
53304         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53305         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53306         Provide dummy declarations.
53307         (gethostname): Override.
53308         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53309         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53310         gl_PREREQ_SYS_H_WINSOCK2.
53311         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53312         * doc/posix-functions/gethostname.texi: More details.
53313
53314 2008-10-25  Bruno Haible  <bruno@clisp.org>
53315
53316         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53317         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53318         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53319
53320         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53321         here ...
53322         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53324         gl_UNISTD_H_DEFAULTS.
53325
53326 2008-10-25  Eric Blake  <ebb9@byu.net>
53327
53328         signbit: avoid spurious compiler failure
53329         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53330         declarations inside function.
53331
53332 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53333             Bruno Haible  <bruno@clisp.org>
53334
53335         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53336         * modules/random_r (Depends-on): Add stdint.
53337
53338 2008-10-24  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53341         Eggert.
53342         * modules/strerror (License): Likewise.
53343
53344 2008-10-24  Jim Meyering  <meyering@redhat.com>
53345
53346         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53347         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53348
53349 2008-10-24  Eric Blake  <ebb9@byu.net>
53350
53351         getgroups: fix compilation when getgroups is available
53352         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53353         but with <config.h> override of getgroups disabled.
53354
53355 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53356
53357         * doc/gnulib.texi (Header files): Add note about C++ problems.
53358         Explained by Bruno Haible <bruno@clisp.org>.
53359
53360 2008-10-23  Bruno Haible  <bruno@clisp.org>
53361
53362         Define a dummy SA_NODEFER macro on Interix.
53363         * lib/signal.in.h (SA_NODEFER): Define fallback.
53364         Reported by Aleksey Cheusov <cheusov@tut.by> via
53365         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53366
53367 2008-10-23  Bruno Haible  <bruno@clisp.org>
53368
53369         * modules/freadahead (License): Change to LGPLv2+.
53370         Suggested by Simon Josefsson.
53371
53372 2008-10-23  Jim Meyering  <meyering@redhat.com>
53373
53374         random_r: new module
53375         * modules/random_r: New file.
53376         * m4/random_r.m4: New file.
53377         * lib/random_r.c: New file, from glibc.
53378         * modules/random_r-tests: New file.
53379         * tests/test-random_r.c: New file.
53380         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53381          Declare.
53382         (RAND_MAX): Define.
53383         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53384         * modules/stdlib: Substitute them, too.
53385         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53386         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53387         * doc/glibc-functions/random_r.texi: Likewise.
53388         * doc/glibc-functions/setstate_r.texi: Likewise.
53389         * doc/glibc-functions/srandom_r.texi: Likewise.
53390         * config/srclist.txt: Mention it.
53391
53392 2008-10-23  David Lutterkort  <lutter@redhat.com>
53393
53394         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53395         link requirement
53396
53397 2008-10-23  Jim Meyering  <meyering@redhat.com>
53398
53399         selinux-h: mark parameters of stub functions as intentionally unused
53400         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53401         * lib/se-context.in.h: Likewise.
53402
53403 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53404
53405         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53406
53407 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53408
53409         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53410
53411 2008-10-22  Eric Blake  <ebb9@byu.net>
53412
53413         glthread/thread: avoid compiler warning
53414         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53415         Add unreachable abort to silence compiler.
53416
53417 2008-10-22  Eric Blake  <ebb9@byu.net>
53418
53419         netdb: also supply struct addrinfo for cygwin 1.5.x
53420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53421         older cygwin.
53422         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53423         cygwin.
53424         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53425
53426 2008-10-22  Bruno Haible  <bruno@clisp.org>
53427
53428         * users.txt: Update entry about pspp.
53429
53430 2008-10-21  Bruno Haible  <bruno@clisp.org>
53431
53432         Simplification.
53433         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53434         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53435
53436         Simplification.
53437         * lib/ioctl.c (ioctl): Don't undefine.
53438         * lib/socket.c (socket): Don't undefine.
53439
53440         Remove unused module indicator macros.
53441         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53442         GNULIB_$1 as a C macro.
53443
53444         * doc/posix-functions/close.texi: Undo last change.
53445         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53446         Windows platforms.
53447
53448 2008-10-21  Bruno Haible  <bruno@clisp.org>
53449
53450         Add gethostname() declaration to <unistd.h>.
53451         * lib/unistd.in.h (gethostname): New declaration.
53452         * lib/gethostname.c: Include <unistd.h>.
53453         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53454         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53456         and HAVE_GETHOSTNAME.
53457         * modules/gethostname (Depends-on): Add unistd.
53458         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53459         (Include): Specify <unistd.h>.
53460         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53461         HAVE_GETHOSTNAME.
53462         * tests/test-gethostname.c: Include <unistd.h> first.
53463
53464 2008-10-21  Bruno Haible  <bruno@clisp.org>
53465
53466         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53467         * modules/select-tests (Depends-on): Likewise.
53468         Reported by Simon Josefsson.
53469
53470 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53471
53472         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53473         * lib/accept.c: New file, based on winsock.c.
53474         * lib/bind.c: New file, based on winsock.c.
53475         * lib/connect.c: New file, based on winsock.c.
53476         * lib/getpeername.c: New file, based on winsock.c.
53477         * lib/getsockname.c: New file, based on winsock.c.
53478         * lib/getsockopt.c: New file, based on winsock.c.
53479         * lib/ioctl.c: New file, based on winsock.c.
53480         * lib/listen.c: New file, based on winsock.c.
53481         * lib/recv.c: New file, based on winsock.c.
53482         * lib/recvfrom.c: New file, based on winsock.c.
53483         * lib/send.c: New file, based on winsock.c.
53484         * lib/sendto.c: New file, based on winsock.c.
53485         * lib/setsockopt.c: New file, based on winsock.c.
53486         * lib/shutdown.c: New file, based on winsock.c.
53487         * lib/socket.c: New file, based on winsock.c.
53488         * lib/w32sock.h: New file, based on winsock.c.
53489         * lib/winsock.c: Remove file.
53490         * modules/accept: Likewise.
53491         * modules/bind: Likewise.
53492         * modules/connect: Likewise.
53493         * modules/getpeername: Likewise.
53494         * modules/getsockname: Likewise.
53495         * modules/getsockopt: Likewise.
53496         * modules/ioctl: Likewise.
53497         * modules/listen: Likewise.
53498         * modules/recv: Likewise.
53499         * modules/recvfrom: Likewise.
53500         * modules/send: Likewise.
53501         * modules/sendto: Likewise.
53502         * modules/setsockopt: Likewise.
53503         * modules/shutdown: Likewise.
53504         * modules/socket: Use socket.c instead of winsock.c.
53505         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53506         * doc/posix-functions/accept.texi: Doc fix.
53507         * doc/posix-functions/bind.texi: Doc fix.
53508         * doc/posix-functions/close.texi: Doc fix.
53509         * doc/posix-functions/connect.texi: Doc fix.
53510         * doc/posix-functions/getpeername.texi: Doc fix.
53511         * doc/posix-functions/getsockname.texi: Doc fix.
53512         * doc/posix-functions/getsockopt.texi: Doc fix.
53513         * doc/posix-functions/ioctl.texi: Doc fix.
53514         * doc/posix-functions/listen.texi: Doc fix.
53515         * doc/posix-functions/recv.texi: Doc fix.
53516         * doc/posix-functions/recvfrom.texi: Doc fix.
53517         * doc/posix-functions/send.texi: Doc fix.
53518         * doc/posix-functions/sendto.texi: Doc fix.
53519         * doc/posix-functions/setsockopt.texi: Doc fix.
53520         * doc/posix-functions/shutdown.texi: Doc fix.
53521         * doc/posix-functions/socket.texi: Doc fix.
53522
53523 2008-10-20  Bruno Haible  <bruno@clisp.org>
53524
53525         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53526         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53527         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53528         as an alias for SIGABRT.
53529         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53530         (sigaction): Map it to SIGABRT.
53531         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53532
53533 2008-10-20  Bruno Haible  <bruno@clisp.org>
53534
53535         * lib/fts.c: Don't include lstat.h.
53536         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53537
53538         Move the lstat() declaration to <sys/stat.h>.
53539         * lib/lstat.h: Remove file.
53540         * lib/sys_stat.in.h: Add special invocation convention.
53541         (lstat): New declaration.
53542         * lib/lstat.c (orig_lstat): New function.
53543         (rpl_lstat): Use orig_lstat instead of lstat.
53544         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53545         AC_C_INLINE. Set REPLACE_LSTAT.
53546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53547         and REPLACE_LSTAT.
53548         * modules/lstat (Files): Remove lib/lstat.h.
53549         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53550         (Include): Specify <sys/stat.h> instead of lstat.h.
53551         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53552         REPLACE_LSTAT.
53553         * NEWS: Mention the change.
53554
53555 2008-10-20  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/posix_spawn-tests: New file.
53558         * tests/test-posix_spawn3.c: New file.
53559
53560 2008-10-20  Bruno Haible  <bruno@clisp.org>
53561
53562         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53563         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53564         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53565         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53566         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53567
53568 2008-10-20  Bruno Haible  <bruno@clisp.org>
53569
53570         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53571         of posix_spawn on AIX 5.3.
53572
53573 2008-10-20  Bruno Haible  <bruno@clisp.org>
53574
53575         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53576
53577 2008-10-20  Bruno Haible  <bruno@clisp.org>
53578
53579         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53580         of AC_LANG_PROGRAM.
53581
53582 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53583
53584         * lib/netdb.in.h: Don't define GNU specific constants until they
53585         are supported or needed.  Reported by Bruno Haible
53586         <bruno@clisp.org>.
53587
53588 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53589
53590         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53591
53592 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53593
53594         * lib/getaddrinfo.h: Remove file.
53595         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53596         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53597         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53598         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53599         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53600         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53601         * tests/test-getaddrinfo.c: Likewise.
53602         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53603         * NEWS: Mention change.
53604
53605 2008-10-19  Bruno Haible  <bruno@clisp.org>
53606
53607         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53608
53609 2008-10-19  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/wait-process.c: Include simply <sys/wait.h>.
53612         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53613         WIFSTOPPED): Remove fallback definitions.
53614         * modules/wait-process (Depends-on): Add sys_wait.
53615
53616         New module 'sys_wait'.
53617         * modules/sys_wait: New file.
53618         * lib/sys_wait.in.h: New file, partially copied from
53619         lib/wait-process.c.
53620         * m4/sys_wait_h.m4: New file.
53621         * doc/posix-headers/sys_wait.texi: Mention the new module.
53622
53623 2008-10-19  Bruno Haible  <bruno@clisp.org>
53624
53625         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53626
53627 2008-10-19  Bruno Haible  <bruno@clisp.org>
53628
53629         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53630         * lib/wait-process.c (WAIT_T): Remove type.
53631         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53632         (wait_subprocess): Update.
53633
53634 2008-10-19  Bruno Haible  <bruno@clisp.org>
53635
53636         New module 'atoll'.
53637         * modules/atoll: New file.
53638         * lib/stdlib.in.h (atoll): New declaration.
53639         * lib/atoll.c: New file, from glibc with modifications.
53640         * m4/atoll.m4: New file.
53641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53642         HAVE_ATOLL.
53643         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53644         * doc/posix-functions/atoll.texi: Mention the new module.
53645
53646 2008-10-19  Bruno Haible  <bruno@clisp.org>
53647
53648         Add strtoull() declaration to <stdlib.h>.
53649         * lib/stdlib.in.h (strtoull): New declaration.
53650         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53651         Set HAVE_STRTOULL.
53652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53653         HAVE_STRTOULL.
53654         * modules/strtoull (Depends-on): Add stdlib.
53655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53656         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53657         HAVE_STRTOULL.
53658
53659 2008-10-19  Bruno Haible  <bruno@clisp.org>
53660
53661         Add strtoll() declaration to <stdlib.h>.
53662         * lib/stdlib.in.h (strtoll): New declaration.
53663         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53664         Set HAVE_STRTOLL.
53665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53666         HAVE_STRTOLL.
53667         * modules/strtoll (Depends-on): Add stdlib.
53668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53669         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53670
53671 2008-10-19  Bruno Haible  <bruno@clisp.org>
53672
53673         * modules/bcopy (Depends-on): Add strings.
53674         (Include): Specify <strings.h>.
53675
53676 2008-10-19  Bruno Haible  <bruno@clisp.org>
53677
53678         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53679
53680 2008-10-19  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53683         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53684         mingw.
53685
53686 2008-10-19  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/atanl.c: Don't include isnanl.h.
53689         * lib/cosl.c: Likewise.
53690         * lib/ldexpl.c: Likewise.
53691         * lib/logl.c: Likewise.
53692         * lib/sinl.c: Likewise.
53693         * lib/sqrtl.c: Likewise.
53694         * lib/tanl.c: Likewise.
53695
53696         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53697         * lib/isnanf.h: Remove file.
53698         * lib/isnand.h: Remove file.
53699         * lib/isnanl.h: Remove file.
53700         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53701         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53702         macros.
53703         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53704         HAVE_ISNANF, don't define it as a C macro.
53705         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53706         HAVE_ISNAND, don't define it as a C macro.
53707         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53708         HAVE_ISNANL, don't define it as a C macro.
53709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53710         HAVE_ISNAN[FDL].
53711         * modules/isnanf (Files): Remove lib/isnanf.h.
53712         (Depends-on): Add math.
53713         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53714         (Include): Specify <math.h> instead of isnanf.h.
53715         * modules/isnand (Files): Remove lib/isnand.h.
53716         (Depends-on): Add math.
53717         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53718         (Include): Specify <math.h> instead of isnand.h.
53719         * modules/isnanl (Files): Remove lib/isnanl.h.
53720         (Depends-on): Add math.
53721         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53722         (Include): Specify <math.h> instead of isnanl.h.
53723         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53724         HAVE_ISNAN[FDL].
53725         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53726         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53727         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53728         * NEWS: Mention the change.
53729
53730 2008-10-18  Bruno Haible  <bruno@clisp.org>
53731
53732         Add getusershell(), setusershell(), endusershell() declarations to
53733         <unistd.h>.
53734         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53735         declarations.
53736         * lib/getusershell.c: Include unistd.h.
53737         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53738         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53739         HAVE_GETUSERSHELL.
53740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53741         and HAVE_GETUSERSHELL.
53742         * modules/getusershell (Depends-on): Add unistd, extensions.
53743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53744         (Include): Specify <unistd.h>.
53745         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53746         HAVE_GETUSERSHELL.
53747
53748 2008-10-18  Bruno Haible  <bruno@clisp.org>
53749
53750         Add a getloadavg() declaration to <stdlib.h>.
53751         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53752         getloadavg declaration.
53753         (getloadavg): New declaration.
53754         * lib/getloadavg.c: Include <stdlib.h> first.
53755         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53756         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53757         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53759         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53760         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53762         (Include): Specify <stdlib.h>.
53763         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53764         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53765
53766 2008-10-18  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/dirchownmod.c: Don't include lchmod.h.
53769
53770         Move the lchmod() declaration to <sys/stat.h>.
53771         * lib/lchmod.h: Remove file.
53772         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53773         (lchmod): New declaration, moved here from lib/lchown.h.
53774         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53775         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53777         and HAVE_LCHMOD.
53778         * modules/lchmod (Files): Remove lib/lchmod.h.
53779         (Depends-on): Add sys_stat, extensions.
53780         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53781         (Include): Specify <sys/stat.h> instead of lchmod.h.
53782         * modules/sys_stat (Depends-on): Add link-warning.
53783         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53784         definition of GL_LINK_WARNING.
53785         * NEWS: Mention the change.
53786
53787 2008-10-18  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/fchdir.c: Don't include dirfd.h.
53790         * lib/fts.c: Likewise.
53791         * lib/getcwd.c: Likewise.
53792         * lib/glob.c: Likewise.
53793
53794         Move the dirfd() declaration to <dirent.h>.
53795         * lib/dirfd.h: Remove file.
53796         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53797         (dirfd): New declaration.
53798         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53799         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53800         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53801         HAVE_DECL_DIRFD.
53802         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53803         HAVE_DECL_DIRFD.
53804         * modules/dirfd (Files): Remove lib/dirfd.h.
53805         (Depends-on): Add dirent, extensions.
53806         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53807         (Include): Specify <dirent.h> instead of dirfd.h.
53808         * modules/dirent (Depends-on): Add link-warning.
53809         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53810         definition of GL_LINK_WARNING.
53811         * NEWS: Mention the change.
53812
53813 2008-10-18  Bruno Haible  <bruno@clisp.org>
53814
53815         Move the euidaccess() declaration to <unistd.h>.
53816         * lib/euidaccess.h: Remove file.
53817         * lib/unistd.in.h (euidaccess): New declaration.
53818         * lib/euidaccess.c: Don't include euidaccess.h.
53819         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53820         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53822         and HAVE_EUIDACCESS.
53823         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53824         (Depends-on): Add unistd.
53825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53826         (Include): Specify <unistd.h> instead of euidaccess.h.
53827         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53828         HAVE_EUIDACCESS.
53829         * NEWS: Mention the change.
53830
53831 2008-10-18  Bruno Haible  <bruno@clisp.org>
53832
53833         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53834
53835         Move the getdomainname() declaration to <unistd.h>.
53836         * lib/getdomainname.h: Remove file.
53837         * lib/unistd.in.h (getdomainname): New declaration.
53838         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53839         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53840         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53841         HAVE_GETDOMAINNAME.
53842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53843         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53844         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53845         (Depends-on): Add unistd, extensions.
53846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53847         (Includes): Specify <unistd.h> instead of getdomainname.h.
53848         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53849         HAVE_GETDOMAINNAME.
53850         * NEWS: Mention the change.
53851
53852 2008-10-18  Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/dirent: New file.
53855         * m4/dirent_h.m4: New file.
53856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53857         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53858         * modules/fchdir (Files): Remove lib/dirent.in.h.
53859         (Depends-on): Add dirent.
53860         (Makefile.am): Move rules to modules/dirent.
53861         * doc/posix-headers/dirent.texi: Mention the new module.
53862
53863 2008-10-18  Bruno Haible  <bruno@clisp.org>
53864
53865         Avoid -Wunused-parameter warnings in public gnulib header files.
53866         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53867         macro.
53868         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53869
53870 2008-10-18  Bruno Haible  <bruno@clisp.org>
53871
53872         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53873         * doc/glibc-functions/error.texi: Mention the module 'error'.
53874         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53875         * doc/glibc-functions/getdomainname.texi: Mention the module
53876         'getdomainname'.
53877         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53878         * doc/glibc-functions/getpagesize.texi: Mention the module
53879         'getpagesize'.
53880         * doc/glibc-functions/getusershell.texi: Mention the module
53881         'getusershell'.
53882         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53883         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53884         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53885         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53886         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53887         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53888         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53889         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53890         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53891         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53892         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53893         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53894         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53895         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53896
53897 2008-10-17  Bruno Haible  <bruno@clisp.org>
53898
53899         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53900         HP-UX and IRIX, use -0.0L.
53901         * tests/test-ceill.c (minus_zero): Likewise.
53902         * tests/test-floorl.c (minus_zero): Likewise.
53903         * tests/test-frexpl.c (minus_zero): Likewise.
53904         * tests/test-isnan.c (minus_zerol): Likewise.
53905         * tests/test-isnanl.h (minus_zero): Likewise.
53906         * tests/test-ldexpl.c (minus_zero): Likewise.
53907         * tests/test-roundl.c (minus_zero): Likewise.
53908         * tests/test-signbit.c (minus_zerol): Likewise.
53909         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53910         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53911         * tests/test-truncl.c (minus_zero): Likewise.
53912         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53913         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53914         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53915         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53916
53917 2008-10-17  Bruno Haible  <bruno@clisp.org>
53918
53919         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53920         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53921         that it gets activated only for gcc >= 3.0.
53922         * lib/dirent.in.h: Likewise.
53923         * lib/errno.in.h: Likewise.
53924         * lib/fcntl.in.h: Likewise.
53925         * lib/float.in.h: Likewise.
53926         * lib/iconv.in.h: Likewise.
53927         * lib/inttypes.in.h: Likewise.
53928         * lib/locale.in.h: Likewise.
53929         * lib/math.in.h: Likewise.
53930         * lib/netdb.in.h: Likewise.
53931         * lib/netinet_in.in.h: Likewise.
53932         * lib/search.in.h: Likewise.
53933         * lib/signal.in.h: Likewise.
53934         * lib/spawn.in.h: Likewise.
53935         * lib/stdarg.in.h: Likewise.
53936         * lib/stdint.in.h: Likewise.
53937         * lib/stdio.in.h: Likewise.
53938         * lib/stdlib.in.h: Likewise.
53939         * lib/string.in.h: Likewise.
53940         * lib/strings.in.h: Likewise.
53941         * lib/sys_file.in.h: Likewise.
53942         * lib/sys_ioctl.in.h: Likewise.
53943         * lib/sys_select.in.h: Likewise.
53944         * lib/sys_socket.in.h: Likewise.
53945         * lib/sys_stat.in.h: Likewise.
53946         * lib/sys_time.in.h: Likewise.
53947         * lib/sysexits.in.h: Likewise.
53948         * lib/time.in.h: Likewise.
53949         * lib/unistd.in.h: Likewise.
53950         * lib/wchar.in.h: Likewise.
53951         * lib/wctype.in.h: Likewise.
53952         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53953
53954 2008-10-17  Jim Meyering  <meyering@redhat.com>
53955
53956         ignore-value: don't depend on inline module
53957         * modules/ignore-value (Depends-on): Remove 'inline'.
53958         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53959         Suggestion from Bruno Haible.
53960
53961 2008-10-17  Bruno Haible  <bruno@clisp.org>
53962
53963         New implementation of condition variables for Win32.
53964         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53965         (gl_linked_waitqueue_t): New type.
53966         (gl_cond_t): Use it.
53967         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53968         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53969         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53970         (glthread_cond_init_func, glthread_cond_wait_func,
53971         glthread_cond_timedwait_func, glthread_cond_signal_func,
53972         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53973         Reimplemented on the basis of gl_linked_waitqueue_t.
53974         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53975         gl_waitqueue_t.
53976         (gl_rwlock_t): Update.
53977         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53978
53979 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53980
53981         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53982         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53983
53984 2008-10-17  Jim Meyering  <meyering@redhat.com>
53985
53986         ignore-value: new module
53987         * modules/ignore-value: New file.
53988         * lib/ignore-value.h: New file.
53989         * MODULES.html.sh (Compiler warning management): New section,
53990         just for this module.  More to come.
53991
53992 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53993
53994         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53995         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53996         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53997
53998 2008-10-16  Jim Meyering  <meyering@redhat.com>
53999
54000         openat-die.c: avoid 'no previous prototype' warning
54001         * lib/openat-die.c: Include "openat.h".
54002         Reported by Reuben Thomas <rrt@sc3d.org>.
54003
54004 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54005
54006         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54007         * lib/netdb.in.h: Fix typo.
54008         Reported by Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/netdb.in.h: Include sys/socket.h for platforms without
54011         netdb.h, to get structures like hostent on MinGW.
54012         * modules/netdb (Depends-on): Add sys_socket.
54013
54014 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54015
54016         * modules/netdb, modules/netdb-tests: New file.
54017         * m4/netdb_h.m4: New file.
54018         * lib/netdb.in.h: Add, currently just an empty file pending
54019         definitions.
54020         * tests/test-netdb.c: New file.
54021         * doc/posix-headers/netdb.texi: Mention that we replace it if
54022         needed.
54023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54024         netdb.
54025
54026 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54027
54028         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54029         with code.
54030
54031 2008-10-13  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/glthread/cond.c (glthread_cond_wait_func,
54034         glthread_cond_timedwait_func): Add a comment.
54035
54036 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54037
54038         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54039         * tests/test-select.c: Likewise,
54040
54041 2008-10-13  Bruno Haible  <bruno@clisp.org>
54042
54043         * lib/glthread/cond.c (glthread_cond_wait_func,
54044         glthread_cond_timedwait_func): Fix variable name.
54045         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54046
54047 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54048
54049         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54051         struct sockaddr.sa_len.
54052         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54053
54054 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54055
54056         * build-aux/pmccabe2html: Add css and css_url parameters.
54057
54058 2008-10-12  Bruno Haible  <bruno@clisp.org>
54059
54060         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54061         calling aclx_get.
54062         Reported by Rainer Tammer <tammer@tammer.net>.
54063
54064 2008-10-12  Bruno Haible  <bruno@clisp.org>
54065
54066         Use msvcrt aware primitives for creation/termination of Win32 threads.
54067         * lib/glthread/thread.c: Include <process.h>.
54068         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54069         (wrapper_func): Update signature.
54070         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54071
54072 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54073             Bruno Haible  <bruno@clisp.org>
54074
54075         Provide a Win32 implementation of the 'cond' module.
54076         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54077         * lib/glthread/cond.c (glthread_cond_init_func,
54078         glthread_cond_wait_func, glthread_cond_timedwait_func,
54079         glthread_cond_signal_func, glthread_cond_broadcast_func,
54080         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54081         * modules/cond (Dependencies): Add gettimeofday.
54082
54083 2008-10-11  Bruno Haible  <bruno@clisp.org>
54084
54085         Make sleep work on older versions of mingw.
54086         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54087         only whether it exists.
54088         * doc/posix-functions/sleep.texi: Mention the problem with older
54089         versions of mingw.
54090
54091 2008-10-11  Bruno Haible  <bruno@clisp.org>
54092
54093         New module 'shutdown'.
54094         * modules/shutdown: New file.
54095         * lib/sys_socket.in.h (shutdown): New declaration.
54096         * lib/winsock.c (shutdown): New function.
54097         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54098         GNULIB_SHUTDOWN.
54099         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54100         * doc/posix-functions/shutdown.texi: Document the new module.
54101
54102 2008-10-11  Jim Meyering  <meyering@redhat.com>
54103
54104         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54105
54106 2008-10-11  Bruno Haible  <bruno@clisp.org>
54107
54108         New module 'fclose'.
54109         * modules/fclose: New file.
54110         * lib/stdio.in.h (fclose): New declaration.
54111         * lib/fclose.c: New file.
54112         * m4/fclose.m4: New file.
54113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54114         REPLACE_FCLOSE.
54115         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54116         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54117         REPLACE_FCLOSE.
54118         * modules/close (Depends-on): fclose.
54119         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54120
54121 2008-10-11  Bruno Haible  <bruno@clisp.org>
54122
54123         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54124         set errno and don't call _close.
54125
54126 2008-10-10  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54129         ACL, not afterwards. Fixes test failure on Cygwin.
54130
54131 2008-10-09  Ben Pfaff  <blp@gnu.org>
54132
54133         * build-aux/announce-gen: Fix gnulib version related part of usage
54134         message.  Die with a useful error message if no tarballs are
54135         found.
54136
54137 2008-10-10  Jim Meyering  <meyering@redhat.com>
54138
54139         bootstrap: use git's --depth=N option only if it's supported
54140         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54141         recognize the --depth option.  Reported by Pádraig Brady.
54142
54143 2008-10-09  Bruno Haible  <bruno@clisp.org>
54144
54145         New module 'ioctl'.
54146         * modules/ioctl: New file.
54147         * lib/sys_socket.in.h (ioctl): Remove declaration.
54148         * lib/winsock.c: Include <sys/ioctl.h>.
54149         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54150         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54151         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54152         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54153         * doc/posix-functions/ioctl.texi: Mention the new module.
54154
54155 2008-10-09  Bruno Haible  <bruno@clisp.org>
54156
54157         New module 'sys_ioctl'.
54158         * lib/sys_ioctl.in.h: New file.
54159         * m4/sys_ioctl_h.m4: New file.
54160         * modules/sys_ioctl: New file.
54161         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54162
54163 2008-10-09  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54166         * lib/winsock.c: Include <stdarg.h>.
54167         (rpl_ioctl): Change to second argument 'int' and then varargs.
54168
54169 2008-10-09  Bruno Haible  <bruno@clisp.org>
54170
54171         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54172         when the sys_socket module is present and the system has <winsock2.h>.
54173
54174 2008-10-09  Bruno Haible  <bruno@clisp.org>
54175
54176         * doc/posix-functions/close.texi: Mention module 'close' instead of
54177         module 'sys_socket'.
54178
54179 2008-10-09  Bruno Haible  <bruno@clisp.org>
54180
54181         * doc/glibc-headers/sys_ioctl.texi: New file.
54182         * doc/gnulib.texi: Include it.
54183
54184 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54185             Bruno Haible  <bruno@clisp.org>
54186
54187         Combine the two replacements of 'close'.
54188         * lib/sys_socket.in.h (close): Define to a reminder to include
54189         <unistd.h>.
54190         (_gl_close_fd_maybe_socket): New declaration.
54191         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54192         * lib/winsock.c (close): Remove undefinition.
54193         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54194         needed for the gnulib module 'close'.
54195         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54196         define to an error symbol or to a warning, if suitable.
54197         * lib/close.c: Include <sys/socket.h>.
54198         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54199         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54200         UNISTD_H_HAVE_WINSOCK2_H.
54201         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54203         UNISTD_H_HAVE_WINSOCK2_H.
54204         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54205         (configure.ac): Set a module indicator.
54206         (Makefile.am): Substitute GNULIB_CLOSE.
54207         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54208         * modules/poll-tests (Depends-on): Add close.
54209         * modules/select-tests (Depends-on): Likewise.
54210
54211 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54212             Bruno Haible  <bruno@clisp.org>
54213
54214         New module 'close'.
54215         * modules/close: New file.
54216         * lib/unistd.in.h (close): Move declaration out of the
54217         FCHDIR_REPLACEMENT scope.
54218         (_gl_unregister_fd): New declaration.
54219         * lib/close.c: New file.
54220         * lib/fchdir.c (rpl_close): Remove function.
54221         * m4/close.m4: New file.
54222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54223         close.
54224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54225         REPLACE_CLOSE.
54226         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54227         REPLACE_CLOSE.
54228         * modules/fchdir (Depends-on): Add close.
54229
54230 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54231             Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/fcntl.in.h (open): Simplify conditionals.
54234         (_gl_register_fd): New declaration.
54235         * lib/fchdir.c (rpl_open): Remove function.
54236         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54237         also.
54238         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54240         open.
54241
54242 2008-10-09  Jim Meyering  <meyering@redhat.com>
54243
54244         GNUmakefile: use the more name-space-friendly "_version"
54245         * top/GNUmakefile (_dummy): Update.
54246         (_version): Rename from "version".
54247
54248 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54249             Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54252         rpl_close.
54253         (_gl_register_fd): New function, extracted from rpl_open.
54254         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54255         (rpl_open, rpl_opendir): Use _gl_register_fd.
54256
54257 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54258
54259         Fix organization of 'open' replacement.
54260         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54261         (gl_FUNC_OPEN): Use it.
54262         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54263
54264 2008-10-08  Bruno Haible  <bruno@clisp.org>
54265
54266         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54267
54268 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54269
54270         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54271         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54272         listen).
54273
54274 2008-10-08  Eric Blake  <ebb9@byu.net>
54275
54276         GNUmakefile: add 'make version' target
54277         * top/GNUmakefile (_curr-ver): Split version update rules...
54278         (version): ...into a target.
54279
54280 2008-10-07  Bruno Haible  <bruno@clisp.org>
54281
54282         Use a more portable replacement expression for -0.0L.
54283         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54284         instead of -0.0L. Fix m4 quotation.
54285
54286         * tests/test-signbit.c: Include <float.h>.
54287         (minus_zero): New variable.
54288         (test_signbitl): Use minus_zero instead of -zero.
54289         * modules/signbit-tests (Depends-on): Add float.
54290
54291         * tests/test-ceill.c: Include <float.h>.
54292         (zero): Remove variable.
54293         (minus_zero): New variable.
54294         (main): Use minus_zero instead of -zero.
54295         * modules/ceill-tests (Depends-on): Add float.
54296
54297         * tests/test-floorl.c: Include <float.h>.
54298         (zero): Remove variable.
54299         (minus_zero): New variable.
54300         (main): Use minus_zero instead of -zero.
54301         * modules/floorl-tests (Depends-on): Add float.
54302
54303         * tests/test-roundl.c: Include <float.h>.
54304         (zero): Remove variable.
54305         (minus_zero): New variable.
54306         (main): Use minus_zero instead of -zero.
54307         * modules/roundl-tests (Depends-on): Add float.
54308
54309         * tests/test-truncl.c: Include <float.h>.
54310         (zero): Remove variable.
54311         (minus_zero): New variable.
54312         (main): Use minus_zero instead of -zero.
54313         * modules/truncl-tests (Depends-on): Add float.
54314
54315         * tests/test-frexpl.c (zero): Remove variable.
54316         (minus_zero): New variable.
54317         (main): Use minus_zero instead of -zero.
54318         * modules/frexpl-tests (Depends-on): Add float.
54319
54320         * tests/test-isnan.c (zerol): Remove variable.
54321         (minus_zerol): New variable.
54322         (test_long_double): Use minus_zerol instead of -zerol.
54323         * modules/isnan-tests (Depends-on): Add float.
54324
54325         * tests/test-isnanl.h (zero): Remove variable.
54326         (minus_zero): New variable.
54327         (main): Use minus_zero instead of -zero.
54328         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54329         * modules/isnanl-tests (Depends-on): Add float.
54330
54331         * tests/test-ldexpl.c (zero): Remove variable.
54332         (minus_zero): New variable.
54333         (main): Use minus_zero instead of -zero.
54334         * modules/ldexpl-tests (Depends-on): Add float.
54335
54336         * tests/test-snprintf-posix.h (zerol): Remove variable.
54337         (minus_zerol): New variable.
54338         (test_function): Use minus_zerol instead of -zerol.
54339         * modules/snprintf-posix-tests (Depends-on): Add float.
54340         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54341
54342         * tests/test-sprintf-posix.h (zerol): Remove variable.
54343         (minus_zerol): New variable.
54344         (test_function): Use minus_zerol instead of -zerol.
54345         * modules/sprintf-posix-tests (Depends-on): Add float.
54346         * modules/vsprintf-posix-tests (Depends-on): Add float.
54347
54348         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54349         (minus_zerol): New variable.
54350         (test_function): Use minus_zerol instead of -zerol.
54351         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54352
54353         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54354         (minus_zerol): New variable.
54355         (test_function): Use minus_zerol instead of -zerol.
54356         * modules/vasprintf-posix-tests (Depends-on): Add float.
54357
54358 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54359
54360         * MODULES.html.sh (Support for building documentation): Mention
54361         pmccabe2html.  Sort entries.
54362
54363         Add pmccabe2html module, from gnupdf.
54364         * build-aux/pmccabe.css: New file.
54365         * build-aux/pmccabe2html: New file.
54366         * m4/pmccabe2html.m4: New file.
54367         * modules/pmccabe2html: New file.
54368
54369 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54370
54371         flock: new module
54372         * MODULES.html.sh: Add to list of modules.
54373         * lib/flock.c: flock implementation for Windows and Unix systems
54374         which have fcntl.
54375         * doc/glibc-functions/flock.texi: Update documentation.
54376         * lib/sys_file.in.h: <sys/file.h> header file.
54377         * m4/flock.m4: M4 macros.
54378         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54379         * modules/flock: flock module.
54380         * modules/flock-tests: flock tests module.
54381         * modules/sys_file: sys/file.h module.
54382         * tests/test-flock.c: test suite for flock.
54383
54384 2008-10-06  Jim Meyering  <meyering@redhat.com>
54385
54386         bootstrap: check for LT_INIT more portably still ;-)
54387         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54388         Spotted by Bruno Haible.
54389
54390 2008-10-06  Eric Blake  <ebb9@byu.net>
54391
54392         test-signbit: avoid tripping Irix cc bug on -0.0L
54393         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54394         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54395         entire testsuite consistent and avoids an Irix 6.2 bug.
54396
54397 2008-10-05  Bruno Haible  <bruno@clisp.org>
54398             Jim Meyering  <jim@meyering.net>
54399
54400         Add an option for ignoring EPIPE during close_stdout.
54401         * lib/closeout.h: Include <stdbool.h>.
54402         (close_stdout_set_ignore_EPIPE): New declaration.
54403         * lib/closeout.c: Include <stdbool.h>.
54404         (ignore_EPIPE): New variable.
54405         (close_stdout_set_ignore_EPIPE): New function.
54406         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54407         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54408         failure.
54409         * modules/closeout (Depends-on): Add stdbool.
54410
54411 2008-10-05  Bruno Haible  <bruno@clisp.org>
54412
54413         * modules/accept: New file.
54414         * modules/bind: New file.
54415         * modules/connect: New file.
54416         * modules/getpeername: New file.
54417         * modules/getsockname: New file.
54418         * modules/getsockopt: New file.
54419         * modules/listen: New file.
54420         * modules/recv: New file.
54421         * modules/recvfrom: New file.
54422         * modules/send: New file.
54423         * modules/sendto: New file.
54424         * modules/setsockopt: New file.
54425         * modules/socket: New file.
54426         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54427         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54428         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54429         the particular module is requested. Add a link warning when the
54430         particular module is not requested.
54431         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54432         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54433         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54434         the particular module is requested.
54435         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54436         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54437         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54438         * modules/sys_socket (Depends-on): Add link-warning.
54439         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54440         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54441         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54442         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54443         GL_LINK_WARNING.
54444         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54445         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54446         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54447         * doc/posix-functions/getpeername.texi: Mention the new module
54448         'getpeername'.
54449         * doc/posix-functions/getsockname.texi: Mention the new module
54450         'getsockname'.
54451         * doc/posix-functions/getsockopt.texi: Mention the new module
54452         'getsockopt'.
54453         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54454         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54455         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54456         * doc/posix-functions/send.texi: Mention the new module 'send'.
54457         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54458         * doc/posix-functions/setsockopt.texi: Mention the new module
54459         'setsockopt'.
54460         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54461         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54462         listen, connect, accept.
54463         * modules/select-tests (Depends-on): Likewise.
54464
54465 2008-10-05  Bruno Haible  <bruno@clisp.org>
54466
54467         * lib/winsock.c (strerror): Remove unused #undef.
54468         (rpl_close): Remove unused local variable.
54469
54470         * modules/sys_socket (Depends-on); Add errno.
54471
54472 2008-10-05  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54475         (select): Add a link warning when the 'select' module is not used.
54476         * modules/sys_select (Depends-on): Add link-warning.
54477         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54478         Suggested by Paolo Bonzini.
54479
54480 2008-10-05  Jim Meyering  <meyering@redhat.com>
54481
54482         bootstrap: check for LT_INIT more portably
54483         * build-aux/bootstrap: Avoid using grep -E, since it's not
54484         portable enough.  Suggestion from Bruno Haible.
54485
54486 2008-10-05  Bruno Haible  <bruno@clisp.org>
54487
54488         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54489         as being fixed by gnulib.
54490
54491 2008-10-05  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/select-tests: New file, mostly copied from
54494         modules/sys_select-tests.
54495         * tests/test-select.c: New file, mostly copied from
54496         tests/test-sys_select.c.
54497         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54498         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54499         (Makefile.am): Remove test_sys_select_LDADD.
54500
54501         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54502         to an undefined symbol, for an error message.
54503         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54504         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54505         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54506         winsock-select.c here.
54507         * modules/sys_select (Files): Remove lib/winsock-select.c.
54508         (Depends-on): Remove alloca.
54509         (Makefile.am): Substitute GNULIB_SELECT.
54510         * modules/select: New file.
54511         * doc/posix-functions/select.texi: Update.
54512
54513 2008-10-05  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54516         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54517         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54518         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54519         getdtablesize.
54520         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54521         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54522
54523 2008-10-05  Bruno Haible  <bruno@clisp.org>
54524
54525         * modules/getdtablesize-tests: New file.
54526         * tests/test-getdtablesize.c: New file.
54527
54528         New module 'getdtablesize'.
54529         * lib/unistd.in.h (getdtablesize): New declaration.
54530         * lib/getdtablesize.c: New file.
54531         * m4/getdtablesize.m4: New file.
54532         * modules/getdtablesize: New file.
54533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54534         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54535         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54536         HAVE_GETDTABLESIZE.
54537         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54538
54539 2008-10-05  Bruno Haible  <bruno@clisp.org>
54540
54541         * modules/sched (Makefile.am): Fix typo.
54542         Reported by Simon Josefsson.
54543
54544 2008-10-05  Jim Meyering  <meyering@redhat.com>
54545
54546         bootstrap: check for LT_INIT, too
54547         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54548         are deprecated.  Suggestion from Ralf Wildenhues.
54549
54550 2008-10-05  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54553         overriding them by ours.
54554         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54555
54556 2008-10-05  Jim Meyering  <meyering@redhat.com>
54557
54558         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54559         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54560         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54561
54562 2008-10-04  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/dup2 (License): Change to LGPLv2+.
54565         * modules/sleep (License): Likewise.
54566         * modules/perror (License): Likewise.
54567         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54568         Blake.
54569         * modules/signal (License): Likewise.
54570         * modules/sigprocmask (License): Likewise.
54571         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54572         Meyering.
54573
54574 2008-10-04  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54577         Reported by Rainer Tammer <tammer@tammer.net>.
54578
54579 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54580             Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54583         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54584         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54585
54586 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54587
54588         filevercmp: new module
54589         * lib/filevercmp.h: New function filevercmp comparing version strings.
54590         * lib/filevercmp.c: Implementation of filevercmp function.
54591         * modules/filevercmp: Module metadata.
54592         * tests/test-filevercmp.c: Unit test for new module.
54593         * modules/filevercmp-tests: Unit test metadata.
54594         * MODULES.html.sh: Add filevercmp module.
54595
54596 2008-10-03  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/c-ctype.h: Add comment.
54599         Reported by Jim Meyering.
54600
54601 2008-10-02  Bruno Haible  <bruno@clisp.org>
54602
54603         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54604
54605 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54606
54607         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54608         name of bootstrap.conf accordingly.
54609
54610 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54611
54612         * build-aux/bootstrap: Install git-merge-changelog configuration
54613         items into .gitconfig if needed.
54614
54615 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54616
54617         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54618         git repository, and initialize/update it accordingly.
54619
54620 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54621
54622         * modules/fsync-tests: New file.
54623         * tests/test-fsync.c: New file.
54624
54625         New module 'fsync'.
54626         * lib/fsync.c: New file.
54627         * m4/fsync.m4: New file.
54628         * modules/fsync: New file.
54629         * lib/unistd.in.h (fsync): New declaration.
54630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54631         GNULIB_FSYNC and HAVE_FSYNC.
54632         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54633         * MODULES.html.sh (posix_functions): Add fsync.
54634         * doc/posix-functions/fsync.texi: Mention the new module.
54635
54636 2008-10-02  Jim Meyering  <meyering@redhat.com>
54637
54638         fts.c: sync with similar code from coreutils' remove.c
54639         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54640         Guard also with "#if defined __linux__", since for now at least,
54641         this code is Linux-kernel-specific.
54642
54643 2008-10-02  Jim Meyering  <meyering@redhat.com>
54644
54645         fts: bug fixes
54646         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54647         Include <sys/vfs.h>, not <sys/statfs.h>.
54648
54649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54650         Include <sys/vfs.h>, not <sys/statfs.h>.
54651
54652 2008-10-01  Bruno Haible  <bruno@clisp.org>
54653
54654         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54656         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54657         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54658         * doc/posix-functions/posix_spawnp.texi: Likewise.
54659         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54660         whether posix_spawn actually works.
54661         * m4/pipe.m4 (gl_PIPE): Likewise.
54662         * modules/execute (Files): Add m4/posix_spawn.m4.
54663         * modules/pipe (Files): Add m4/posix_spawn.m4.
54664         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54665
54666 2008-10-01  Jim Meyering  <meyering@redhat.com>
54667
54668         remove trailing spaces
54669         * NEWS: Likewise.
54670         * lib/poll.c (poll): Likewise.
54671         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54672         * lib/winsock.c (rpl_close): Likewise.
54673         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54674         * modules/yield: Likewise.
54675         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54676         * tests/test-sys_select.c (connect_to_socket): Likewise.
54677
54678         fts.c: adjust a new interface to be more generally useful
54679         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54680         (fts_build): Adjust caller.
54681
54682 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54683
54684         * modules/cond-tests: New file.
54685         * tests/test-cond.c: New file.
54686
54687 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54688             Bruno Haible  <bruno@clisp.org>
54689
54690         * modules/cond (Dependencies): Add errno, time.
54691         * lib/glthread/cond.h: Include <time.h>.
54692         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54693         across platforms.
54694
54695 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54696             Bruno Haible  <bruno@clisp.org>
54697
54698         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54699
54700 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54701             Bruno Haible  <bruno@clisp.org>
54702
54703         * modules/tls-tests (Depends-on): Add thread, yield.
54704         (configure.ac): Remove all checks.
54705         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54706         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54707         gl_thread_self): Remove definitions. Include glthread/thread.h and
54708         glthread/yield.h instead.
54709         (test_tls): Pass an additional NULL argument to gl_thread_join.
54710
54711 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54712             Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/lock-tests (Depends-on): Add thread, yield.
54715         (configure.ac): Remove all checks.
54716         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54717         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54718         gl_thread_self): Remove definitions. Include glthread/thread.h and
54719         glthread/yield.h instead.
54720         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54721         additional NULL argument to gl_thread_join.
54722
54723 2008-09-30  Bruno Haible  <bruno@clisp.org>
54724
54725         Fix the Win32 implementation of the 'thread' module.
54726         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54727         pointer type.
54728         (gl_thread_self): Invoke gl_thread_self_func.
54729         (gl_thread_self_func): New declaration.
54730         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54731         (do_init_self_key, init_self_key): New functions.
54732         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54733         Remove some fields.
54734         (running_threads, running_lock): Remove variables.
54735         (get_current_thread_handle): New function.
54736         (gl_thread_self_func, wrapper_func, glthread_create_func,
54737         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54738         simplified.
54739
54740 2008-09-30  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54743         files.
54744
54745 2008-09-30  Jim Meyering  <meyering@redhat.com>
54746
54747         fts.m4: correct the test for statfs.f_type
54748         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54749         when checking for statfs.f_type.
54750
54751 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54752
54753         tests: avoid some compiler warnings
54754         * tests/test-memchr.c (main): Pass NULL indirectly.
54755         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54756
54757 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54758
54759         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54760         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54761         exactly specified dayshifts.
54762         (dayshift): New rule.
54763         (rel): Add dayshift.
54764         (relative_time_table) [tomorrow, yesterday, today, now]:
54765         Use tDAY_SHIFT in place of tDAY_UNIT.
54766         * tests/test-getdate.c: Add tests for now-disallowed countable
54767         dayshifts, e.g., "4 yesterday ago".
54768
54769 2008-09-29  Bruno Haible  <bruno@clisp.org>
54770
54771         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54772         * tests/test-posix_spawn1.in.sh: Renamed from
54773         tests/test-posix_spawn.in.sh.
54774         * tests/test-posix_spawn2.c: New file.
54775         * tests/test-posix_spawn2.in.sh: New file.
54776         * modules/posix_spawnp-tests (Files): Update.
54777         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54778
54779 2008-09-29  Bruno Haible  <bruno@clisp.org>
54780
54781         Propagate effects of putenv/setenv/unsetenv to child processes.
54782         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54783         * lib/pipe.c (create_pipe): Likewise.
54784
54785 2008-09-29  Bruno Haible  <bruno@clisp.org>
54786
54787         Enable use of shell scripts as executables in mingw.
54788         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54789         run the program as a shell script.
54790         * lib/pipe.c (create_pipe): Likewise.
54791         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54792         resulting array.
54793
54794 2008-09-29  Eric Blake  <ebb9@byu.net>
54795
54796         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54797
54798 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54799
54800         * doc/posix-functions/accept.texi: Update mingw problems.
54801         * doc/posix-functions/bind.texi: Update mingw problems.
54802         * doc/posix-functions/close.texi: Update mingw problems.
54803         * doc/posix-functions/connect.texi: Update mingw problems.
54804         * doc/posix-functions/getpeername.texi: Update mingw problems.
54805         * doc/posix-functions/getsockname.texi: Update mingw problems.
54806         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54807         * doc/posix-functions/ioctl.texi: Update mingw problems.
54808         * doc/posix-functions/listen.texi: Update mingw problems.
54809         * doc/posix-functions/recv.texi: Update mingw problems.
54810         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54811         * doc/posix-functions/select.texi: Update mingw problems.
54812         * doc/posix-functions/send.texi: Update mingw problems.
54813         * doc/posix-functions/sendto.texi: Update mingw problems.
54814         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54815         * doc/posix-functions/socket.texi: Update mingw problems.
54816
54817 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54818             Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/sys_select.in.h: Include sys/time.h.
54821         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54822         * modules/sys_select: Depend on sys_time.
54823         * tests/test-sys_select.c: Test that sys/select.h defines struct
54824         timeval fully.
54825
54826 2008-09-29  Bruno Haible  <bruno@clisp.org>
54827
54828         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54829         * lib/sys_select.in.h: Likewise.
54830
54831 2008-09-29  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54834
54835 2008-09-29  Bruno Haible  <bruno@clisp.org>
54836
54837         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54838         Set LIBSOCKET instead of augmenting LIBS.
54839         * modules/sockets (Link): New section.
54840         * modules/sockets-tests (test_sockets_LDADD): New variable.
54841         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54842         * modules/poll-tests (test_poll_LDADD): New variable.
54843         * NEWS: Document the change.
54844
54845 2008-09-29  Bruno Haible  <bruno@clisp.org>
54846
54847         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54848         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54849         ARPA_INET_H directly.
54850         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54851
54852 2008-09-28  Bruno Haible  <bruno@clisp.org>
54853
54854         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54855         from gl_HEADER_SYS_SOCKET.
54856         (gl_HEADER_SYS_SOCKET): Invoke it.
54857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54858
54859 2008-09-28  Bruno Haible  <bruno@clisp.org>
54860
54861         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54862         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54863         Needed on OSF/1 4.0.
54864
54865 2008-09-28  Bruno Haible  <bruno@clisp.org>
54866
54867         Override open more carefully.
54868         * lib/open.c (orig_open): New function.
54869         (rpl_open): Use orig_open instead of open.
54870         * lib/fcntl.in.h: Add special invocation convention.
54871         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54872         (gl_FUNC_OPEN): Invoke it.
54873
54874         Override freopen more carefully.
54875         * lib/freopen.c (orig_freopen): New function.
54876         (rpl_freopen): Use orig_freopen instead of freopen.
54877         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54878         (gl_FUNC_FREOPEN): Invoke it.
54879
54880         Override fopen more carefully.
54881         * lib/fopen.c (orig_fopen): New function.
54882         (rpl_fopen): Use orig_fopen instead of fopen.
54883         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54884         (gl_FUNC_FOPEN): Invoke it.
54885         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54886
54887 2008-09-28  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54890         SIGPIPE.
54891
54892 2008-09-28  Bruno Haible  <bruno@clisp.org>
54893
54894         * tests/test-sigaction.c (handler, main): Disable the check whether
54895         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54896         glibc systems with LinuxThreads.
54897
54898 2008-09-28  Bruno Haible  <bruno@clisp.org>
54899
54900         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54901
54902         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54903         with AIX xlc.
54904         * lib/fcntl.in.h (open): Likewise.
54905         Reported by Rainer Tammer <tammer@tammer.net>.
54906
54907 2008-09-28  Bruno Haible  <bruno@clisp.org>
54908
54909         * modules/posix_spawnp-tests: New file.
54910         * tests/test-posix_spawn.c: New file.
54911         * tests/test-posix_spawn.in.sh: New file.
54912
54913         New module 'posix_spawnp'.
54914         * modules/posix_spawnp: New file.
54915         * lib/spawnp.c: New file, from GNU libc with modifications.
54916         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54917
54918         New module 'posix_spawn'.
54919         * modules/posix_spawn: New file.
54920         * lib/spawn.c: New file, from GNU libc with modifications.
54921         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54922
54923         New module 'posix_spawnattr_destroy'.
54924         * modules/posix_spawnattr_destroy: New file.
54925         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54926         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54927         module.
54928
54929         New module 'posix_spawnattr_setsigmask'.
54930         * modules/posix_spawnattr_setsigmask: New file.
54931         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54932         modifications.
54933         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54934         new module.
54935
54936         New module 'posix_spawnattr_getsigmask'.
54937         * modules/posix_spawnattr_getsigmask: New file.
54938         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54939         modifications.
54940         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54941         new module.
54942
54943         New module 'posix_spawnattr_setsigdefault'.
54944         * modules/posix_spawnattr_setsigdefault: New file.
54945         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54946         modifications.
54947         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54948         new module.
54949
54950         New module 'posix_spawnattr_getsigdefault'.
54951         * modules/posix_spawnattr_getsigdefault: New file.
54952         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54953         modifications.
54954         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54955         new module.
54956
54957         New module 'posix_spawnattr_setschedpolicy'.
54958         * modules/posix_spawnattr_setschedpolicy: New file.
54959         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54960         modifications.
54961         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54962         new module.
54963
54964         New module 'posix_spawnattr_getschedpolicy'.
54965         * modules/posix_spawnattr_getschedpolicy: New file.
54966         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54967         modifications.
54968         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54969         new module.
54970
54971         New module 'posix_spawnattr_setschedparam'.
54972         * modules/posix_spawnattr_setschedparam: New file.
54973         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54974         modifications.
54975         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54976         new module.
54977
54978         New module 'posix_spawnattr_getschedparam'.
54979         * modules/posix_spawnattr_getschedparam: New file.
54980         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54981         modifications.
54982         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54983         new module.
54984
54985         New module 'posix_spawnattr_setpgroup'.
54986         * modules/posix_spawnattr_setpgroup: New file.
54987         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54988         modifications.
54989         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54990         module.
54991
54992         New module 'posix_spawnattr_getpgroup'.
54993         * modules/posix_spawnattr_getpgroup: New file.
54994         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54995         modifications.
54996         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54997         module.
54998
54999         New module 'posix_spawnattr_setflags'.
55000         * modules/posix_spawnattr_setflags: New file.
55001         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55002         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55003         module.
55004
55005         New module 'posix_spawnattr_getflags'.
55006         * modules/posix_spawnattr_getflags: New file.
55007         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55008         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55009         module.
55010
55011         New module 'posix_spawnattr_init'.
55012         * modules/posix_spawnattr_init: New file.
55013         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55014         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55015         module.
55016
55017         New module 'posix_spawn_file_actions_destroy'.
55018         * modules/posix_spawn_file_actions_destroy: New file.
55019         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55020         modifications.
55021         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55022         the new module.
55023
55024         New module 'posix_spawn_file_actions_addopen'.
55025         * modules/posix_spawn_file_actions_addopen: New file.
55026         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55027         modifications.
55028         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55029         the new module.
55030
55031         New module 'posix_spawn_file_actions_adddup2'.
55032         * modules/posix_spawn_file_actions_adddup2: New file.
55033         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55034         modifications.
55035         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55036         the new module.
55037
55038         New module 'posix_spawn_file_actions_addclose'.
55039         * modules/posix_spawn_file_actions_addclose: New file.
55040         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55041         modifications.
55042         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55043         the new module.
55044
55045         New module 'posix_spawn_file_actions_init'.
55046         * modules/posix_spawn_file_actions_init: New file.
55047         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55048         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55049         new module.
55050
55051         New module 'posix_spawn-internal'.
55052         * modules/posix_spawn-internal: New file.
55053         * lib/spawn_int.h: New file, from GNU libc with modifications.
55054         * lib/spawni.c: New file, from GNU libc with modifications.
55055         * m4/posix_spawn.m4: New file.
55056
55057         New module 'spawn'.
55058         * modules/spawn: New file.
55059         * lib/spawn.in.h: New file, from GNU libc with modifications.
55060         * m4/spawn_h.m4: New file.
55061         * doc/posix-headers/spawn.texi: Mention the new module.
55062
55063 2008-09-28  Bruno Haible  <bruno@clisp.org>
55064
55065         * modules/sched-tests: New file.
55066         * tests/test-sched.c: New file.
55067
55068         New module 'sched'.
55069         * modules/sched: New file.
55070         * lib/sched.in.h: New file.
55071         * m4/sched_h.m4: New file.
55072         * doc/posix-headers/sched.texi: Mention the new module.
55073
55074 2008-09-27  Eric Blake  <ebb9@byu.net>
55075
55076         Fix previous patch, and tweak references to $0.
55077         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55078         (func_version, func_gnulib_dir): Don't call this program
55079         gnulib-tool.
55080         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55081         with using $0 in function.
55082         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55083         (func_fatal_error): Reuse the name the user invoked us with.
55084
55085 2008-09-27  Bruno Haible  <bruno@clisp.org>
55086
55087         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55088         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55089         (gl_ICONV_H): Not here.
55090         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55091         instead of assigning ICONV_H directly.
55092
55093         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55095         WCHAR_H directly.
55096
55097 2008-09-27  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55100         * modules/arpa_inet (Depends-on): Add link-warning.
55101         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55102         * modules/unistd (Makefile.am): Likewise.
55103
55104 2008-09-26  Bruno Haible  <bruno@clisp.org>
55105
55106         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55107         variables.
55108         (func_version): Essentially copied from gnulib-tool.
55109         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55110         func_readlink): Copied from gnulib-tool.
55111
55112 2008-09-26  Bruno Haible  <bruno@clisp.org>
55113
55114         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55115         invoking git-version-gen.
55116
55117 2008-09-26  Bruno Haible  <bruno@clisp.org>
55118
55119         * posix-modules: Update to directory names changed on 2008-01-19.
55120         Remove commas in output before splitting into words. No more need to
55121         avoid 'ftruncate' since 2007-02-19.
55122
55123 2008-09-26  Bruno Haible  <bruno@clisp.org>
55124
55125         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55126
55127 2008-09-26  Bruno Haible  <bruno@clisp.org>
55128
55129         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55130         * modules/fwriteerror (Depends-on): Add errno.
55131
55132 2008-09-26  Bruno Haible  <bruno@clisp.org>
55133
55134         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55135         * tests/test-vc-list-files-cvs.sh: Likewise.
55136
55137 2008-09-26  Bruno Haible  <bruno@clisp.org>
55138
55139         * doc/posix-headers/sys_resource.texi: Reorder items.
55140
55141 2008-09-26  Jim Meyering  <meyering@redhat.com>
55142
55143         fts: tweak inode comparison function
55144         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55145         inode numbers, as documented.
55146
55147         fts: sort dirent entries on inode number before traversing
55148         This avoids a quadratic, seek-related performance penalty when
55149         operating on a directory containing many entries (measurable at 10k;
55150         3.5 hours at 2 million entries with a cold cache) on certain types
55151         of file systems, including ext3 and ext4, but not tmpfs.
55152         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55153         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55154         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55155         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55156         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55157         (fts_build): Set the stat.st_ino member from D_INO.
55158         If it is likely to be useful, sort dirent entries on inode number.
55159
55160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55161         and the struct statfs.f_type member.
55162         * modules/fts (Depends-on): Add d-ino.
55163
55164 2008-09-26  Bruno Haible  <bruno@clisp.org>
55165
55166         * modules/sigpipe-die (Depends-on): Add sigpipe.
55167
55168         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55169         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55170         and GNULIB_STDIO_H_SIGPIPE are set.
55171         * lib/stdio-write.c: New file.
55172         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55173         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55174         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55175         REPLACE_STDIO_WRITE_FUNCS.
55176         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55177         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55178         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55179         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55180         * modules/stdio (Files): Add lib/stdio-write.c.
55181         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55182         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55183         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55184         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55185         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55186         REPLACE_FPRINTF_POSIX.
55187         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55188         REPLACE_PRINTF_POSIX.
55189         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55190         REPLACE_VFPRINTF_POSIX.
55191         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55192         REPLACE_VPRINTF_POSIX.
55193         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55194         SIGPIPE issue.
55195         * doc/posix-functions/fputc.texi: Likewise.
55196         * doc/posix-functions/fputs.texi: Likewise.
55197         * doc/posix-functions/fwrite.texi: Likewise.
55198         * doc/posix-functions/printf.texi: Likewise.
55199         * doc/posix-functions/putc.texi: Likewise.
55200         * doc/posix-functions/putchar.texi: Likewise.
55201         * doc/posix-functions/puts.texi: Likewise.
55202         * doc/posix-functions/vfprintf.texi: Likewise.
55203         * doc/posix-functions/vprintf.texi: Likewise.
55204
55205         * modules/safe-write (Depends-on): Add write.
55206
55207         * modules/sigpipe-tests: New file.
55208         * tests/test-sigpipe.c: New file.
55209         * tests/test-sigpipe.sh: New file.
55210
55211         * modules/write: New file.
55212         * lib/unistd.in.h: Include <sys/types.h>.
55213         (write): New declaration.
55214         * lib/write.c: New file.
55215         * m4/write.m4: New file.
55216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55217         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55218         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55219         GNULIB_WRITE, REPLACE_WRITE.
55220         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55221         and the SIGPIPE issue.
55222
55223         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55224         (raise): New declaration.
55225         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55226         (ext_signal): New function.
55227         (rpl_raise): New function.
55228         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55229         GNULIB_SIGNAL_H_SIGPIPE.
55230         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55231         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55232
55233         * modules/sigpipe: New file.
55234         * m4/sigpipe.m4: New file.
55235
55236 2008-09-25  Derek Price  <derek@ximbiot.com>
55237             Bruno Haible  <bruno@clisp.org>
55238
55239         * gnulib-tool (func_import): Report all license incompatibilities, not
55240         just the first one.
55241
55242 2008-09-25  Bruno Haible  <bruno@clisp.org>
55243
55244         * gnulib-tool (func_import): When computing the edits, consider not
55245         only the Makefile.ams that exist but also those that will be generated.
55246
55247 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55248
55249         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55250         fixes gnulib-tool --test warning about duplicate dependency.
55251
55252 2008-09-25  Bruno Haible  <bruno@clisp.org>
55253
55254         * gnulib-tool: Don't ask the user to perform edits in the generated
55255         Makefile.ams.
55256         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55257         apply to the Makefile.am being generated.
55258         (func_emit_tests_Makefile_am): Execute edits that apply to the
55259         Makefile.am being generated.
55260         (func_import): Setup list of Makefile.am edits before emitting the
55261         Makefile.ams, not at the end.
55262         (func_create_testdir): Update.
55263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55264
55265 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55266
55267         * gnulib-tool (func_import): Store the --tests-base option in the
55268         comment in gnulib-cache.m4.
55269
55270 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55271
55272         * NEWS: Document increased portability that sys_select now provides.
55273
55274         * lib/sys_select.in.h: Install select wrapper.
55275         * lib/sys_socket.in.h: Use more descriptive name when there is no
55276         select wrapper.
55277         * lib/winsock-select.c: New.
55278         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55279         Require gl_HEADER_SYS_SOCKET.
55280         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55281         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55282         * tests/test-sys_select.c: Add functional tests.
55283
55284 2008-09-24  Eric Blake  <ebb9@byu.net>
55285
55286         open, fopen: close fd leak in last patch
55287         * lib/open.c (rpl_open): Close fd before returning error.
55288         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55289         * doc/posix-functions/open.texi (open): Document that Irix also
55290         has the bug.
55291         * doc/posix-functions/fopen.texi (fopen): Likewise.
55292         Reported by Paolo Bonzini.
55293
55294 2008-09-24  Bruno Haible  <bruno@clisp.org>
55295
55296         Ensure that a filename ending in a slash cannot be used to access a
55297         non-directory.
55298         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55299         to check whether it's really a directory.
55300         * lib/fopen.c: Include fcntl.h, unistd.h.
55301         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55302         and fdopen().
55303         * modules/fopen (Depends-on): Add unistd.
55304         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55305         * tests/test-fopen.c (main): Likewise.
55306         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55307         * doc/posix-functions/fopen.texi: Likewise.
55308         Reported by Eric Blake.
55309
55310 2008-09-23  Eric Blake  <ebb9@byu.net>
55311
55312         c-stack: avoid compiler optimizations when provoking overflow
55313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55314         recursion harder to optimize, to ensure a stack overflow occurs.
55315         * tests/test-c-stack.c (recurse): Likewise.
55316         Borrowed from libsigsegv.
55317
55318         c-stack: work around Irix sigaltstack bug
55319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55320         whether sigaltstack uses wrong end of stack_t (copied in part from
55321         libsigsegv).
55322         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55323         Irix bug, without requiring an over-allocation.
55324         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55325         bug.
55326
55327         fopen: document mingw bug on directories
55328         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55329         not allowing a stream visiting a directory, even though reading
55330         from such a stream is not portable.
55331
55332 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55333
55334         * lib/poll.c: Rewrite.
55335         * modules/poll: Depend on alloca.
55336
55337 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55338
55339         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55340         instead define prototypes for a full set of wrappers.  Ensure
55341         that Cygwin does not use the compatibility code, which is only
55342         for MinGW.
55343         * lib/winsock.c: New.
55344         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55345         * modules/sys_socket: Add lib/winsock.c.
55346
55347         * modules/poll-tests: Add errno and perror.
55348         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55349
55350 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55351
55352         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55353
55354 2008-09-23  Bruno Haible  <bruno@clisp.org>
55355
55356         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55357         * doc/glibc-functions/*: Likewise.
55358
55359 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55360
55361         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55362         success.
55363
55364 2008-09-22  Eric Blake  <ebb9@byu.net>
55365             Bruno Haible  <bruno@clisp.org>
55366
55367         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55368         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55369         supply %A but mishandle pseudo-NaN.
55370         Reported by Simon Josefsson.
55371
55372 2008-09-21  Bruno Haible  <bruno@clisp.org>
55373
55374         * tests/test-lock.c (main): Tweak skip message.
55375         * tests/test-tls.c (main): Likewise.
55376
55377 2008-09-21  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55380         whether 'struct sigaction' has sa_sigaction here...
55381         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55382         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55383
55384 2008-09-21  Bruno Haible  <bruno@clisp.org>
55385
55386         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55387         section.
55388         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55389         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55390         the new section.
55391         (Support for obsolete systems lacking POSIX:2001): New section.
55392         (String handling <string.h>): Move strdup to the new section.
55393         Suggested by Simon Josefsson and Paolo Bonzini.
55394
55395 2008-09-21  Bruno Haible  <bruno@clisp.org>
55396
55397         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55398         exponents in %e and %g results on 'long double'. Needed for mingw's
55399         improved *printf functions.
55400         * tests/test-vasprintf-posix.c (test_function): Likewise.
55401         * tests/test-snprintf-posix.h (test_function): Likewise.
55402         * tests/test-sprintf-posix.h (test_function): Likewise.
55403         Reported by Eric Blake.
55404
55405 2008-09-21  Bruno Haible  <bruno@clisp.org>
55406
55407         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55408         * tests/test-sprintf-posix.h (test_function): Likewise.
55409
55410 2008-09-21  Bruno Haible  <bruno@clisp.org>
55411
55412         * modules/getpass (Depends-on): Add strdup-posix.
55413
55414         New module 'strdup-posix'.
55415         * modules/strdup-posix: New file.
55416         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55417         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55419         REPLACE_STRDUP.
55420         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55421         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55423         strdup-posix.
55424
55425         * modules/strdup (Depends-on): Remove malloc-posix.
55426
55427 2008-09-20  Bruno Haible  <bruno@clisp.org>
55428
55429         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55430         Wildenhues.
55431
55432 2008-09-20  Bruno Haible  <bruno@clisp.org>
55433
55434         Ensure that wint_t gets defined on IRIX 5.3.
55435         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55436         * lib/wctype.in.h (wint_t): Likewise.
55437         (__wctype_wint_t): Remove type.
55438         (isw*): Use wint_t instead of __wctype_wint_t.
55439         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55440         * modules/wchar (Files): Add m4/wint_t.m4.
55441         (Makefile.am): Substitute HAVE_WINT_T.
55442         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55443         * tests/test-wctype.c: Check that wint_t is defined.
55444         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55445         * doc/posix-headers/wctype.texi: Likewise.
55446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55447
55448 2008-09-18  Bruno Haible  <bruno@clisp.org>
55449
55450         * gnulib-tool (func_exit): Update comment.
55451
55452 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55453
55454         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55455         assumes strdup exists and does not depend on strdup to return
55456         ENOMEM on out of memory conditions.
55457
55458 2008-09-18  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55461         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55462         digits for the exponent.
55463
55464 2008-09-18  Jim Meyering  <meyering@redhat.com>
55465             Bruno Haible  <bruno@clisp.org>
55466
55467         * lib/vasnprintf.c (decimal_point_char): Define also if
55468         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55469
55470 2008-09-16  Bruno Haible  <bruno@clisp.org>
55471         and Eric Blake  <ebb9@byu.net>
55472
55473         vasnprintf: support Irix 5.3
55474         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55475         that mishandle long double infinity.
55476         Reported by Tom G. Christensen.
55477
55478 2008-09-16  Bruno Haible  <bruno@clisp.org>
55479
55480         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55481         Solaris 9.
55482         * doc/glibc-functions/alphasort.texi: Likewise.
55483         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55484
55485 2008-09-16  Jim Meyering  <meyering@redhat.com>
55486
55487         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55488         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55489         a umask modification leak out of a subshell.  Otherwise, the
55490         opensolaris /bin/sh would be accepted and thus cause unwarranted
55491         failures in the coreutils test suite.
55492
55493 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55494
55495         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55496         to succeed.
55497
55498 2008-09-16  Jim Meyering  <meyering@redhat.com>
55499
55500         avoid spurious test failure when library is built without ACL support
55501         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55502         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55503         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55504         * tests/test-copy-acl.sh: Likewise.
55505
55506 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55507
55508         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55509         based on character occurrence counts.
55510
55511 2008-09-15  Eric Blake  <ebb9@byu.net>
55512
55513         tests: avoid some compiler warnings
55514         * tests/test-memchr.c (main): Pass NULL indirectly.
55515         * tests/test-closein.c (main): Avoid unused variable.
55516
55517 2008-09-15  Bruno Haible  <bruno@clisp.org>
55518
55519         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55520         are missing on OpenBSD 4.0 individually.
55521         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55522
55523 2008-09-15  Bruno Haible  <bruno@clisp.org>
55524
55525         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55526         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55527         * doc/posix-functions/perror.texi: Likewise.
55528         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55529         is missing.
55530         Reported by Eric Blake.
55531
55532         * lib/errno.in.h: Use replacement values >= 2000.
55533         Reported by Eric Blake.
55534
55535 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55536
55537         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55538         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55539         limit.
55540         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55541         compareseq was aborted.
55542
55543 2008-09-14  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55546         yvec_edit_count.
55547         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55548         (fstrcmp_bounded): Simplify result computation accordingly.
55549
55550 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55551
55552         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55553         (fstrcmp): Define in terms of fstrcmp_bounded.
55554         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55555         lower_bound argument.
55556         Return quickly if the result is certainly < lower_bound.
55557         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55558
55559 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55560
55561         * lib/diffseq.h (EARLY_ABORT): New macro.
55562         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55563         evaluates to true.
55564
55565 2008-09-14  Bruno Haible  <bruno@clisp.org>
55566
55567         * modules/perror-tests: New file.
55568         * tests/test-perror.sh: New file.
55569         * tests/test-perror.c: New file.
55570
55571         New module 'perror'.
55572         * lib/stdio.in.h (perror): New declaration.
55573         * lib/perror.c: New file.
55574         * m4/perror.m4: New file.
55575         * modules/perror: New file.
55576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55577         * doc/posix-functions/perror.texi: Mention the perror module.
55578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55579         REPLACE_PERROR.
55580         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55581         REPLACE_PERROR.
55582
55583 2008-09-14  Bruno Haible  <bruno@clisp.org>
55584
55585         * modules/stdio (Makefile.am): Reorder to match the order in
55586         lib/stdio.in.h.
55587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55588
55589 2008-09-13  Bruno Haible  <bruno@clisp.org>
55590
55591         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55592
55593 2008-09-13  Bruno Haible  <bruno@clisp.org>
55594
55595         Extend strerror to cover the added errno values.
55596         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55597         (rpl_strerror): Provide error messages for the added errno values and
55598         for the WSA* values.
55599         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55600         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55601         strerror.
55602         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55603         * modules/strerror (Depends-on): Add errno.
55604         * doc/posix-functions/strerror.texi: Document the change.
55605         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55606         and EOVERFLOW.
55607
55608 2008-09-13  Bruno Haible  <bruno@clisp.org>
55609
55610         * modules/EOVERFLOW: Remove file.
55611         * m4/eoverflow.m4: Remove file.
55612         * modules/EOVERFLOW-tests: Remove file.
55613         * tests/test-EOVERFLOW.c: Remove file.
55614         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55615         * modules/ftell (Depends-on): Likewise.
55616         * modules/getdelim (Depends-on): Likewise.
55617         * modules/getugroups (Depends-on): Likewise.
55618         * modules/poll (Depends-on): Likewise.
55619         * modules/snprintf (Depends-on): Likewise.
55620         * modules/sprintf-posix (Depends-on): Likewise.
55621         * modules/vasnprintf (Depends-on): Likewise.
55622         * modules/vasprintf (Depends-on): Likewise.
55623         * modules/vfprintf-posix (Depends-on): Likewise.
55624         * modules/vsnprintf (Depends-on): Likewise.
55625         * modules/vsprintf-posix (Depends-on): Likewise.
55626         * modules/xvasprintf (Depends-on): Likewise.
55627         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55628         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55629         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55630         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55631         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55632         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55633         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55634         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55636         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55637         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55638         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55639         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55640         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55641         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55642         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55643         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55644         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55645         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55646         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55648         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55649         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55650         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55651         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55652         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55653         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55654         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55655         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55656         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55657         * MODULES.html.sh: Remove EOVERFLOW.
55658         * NEWS: Mention the change.
55659
55660 2008-09-13  Bruno Haible  <bruno@clisp.org>
55661
55662         * modules/errno-tests: New file.
55663         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55664
55665         * lib/errno.in.h: New file.
55666         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55667         * modules/errno: New file.
55668         * doc/posix-headers/errno.texi: Update documentation.
55669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55670
55671 2008-09-13  Bruno Haible  <bruno@clisp.org>
55672
55673         * tests/test-poll.c: Use #if for native Windows, rather than testing
55674         __MSVCRT__.
55675
55676 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55677             Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/glob.c: Don't include <pwd.h> on native Windows.
55680         (WINDOWS32): New macro.
55681         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55682
55683 2008-09-13  Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55686         (ETIMEDOUT): Remove macro.
55687         (glthread_cond_timedwait_multithreaded): New declaration.
55688         (glthread_cond_timedwait): Use it.
55689         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55690         (glthread_cond_timedwait_multithreaded): New function.
55691
55692 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55693
55694         * modules/poll-tests: Do not check for io.h.
55695         * tests/test-poll.c: Check for __MSVCRT__ instead.
55696
55697 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55698
55699         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55700         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55701         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55702
55703 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55704
55705         * modules/poll-tests: New.
55706         * tests/test-poll.c: New.
55707
55708 2008-09-12  Eric Blake  <ebb9@byu.net>
55709
55710         frexp: test for NetBSD failure on -0.0
55711         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55712         not all, bugs from NetBSD 3.0 have been fixed.
55713         * doc/posix-functions/frexp.texi (frexp): Document bug.
55714         Reported by Thomas Klausner.
55715
55716         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55717         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55718         literal -0.0.
55719         Reported by Jonathan C. Patschke <jp@centtech.com>.
55720
55721 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55722
55723         * lib/glthread/cond.h: Use dummy implementation also if
55724         USE_WIN32_THREADS.
55725
55726 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55727
55728         * modules/fnmatch-posix (License): Change to LGPLv2+.
55729         * modules/fnmatch-gnu (License): Likewise.
55730
55731 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55732
55733         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55734
55735 2008-09-11  Jim Meyering  <meyering@redhat.com>
55736
55737         * users.txt: Add gtk-vnc.
55738
55739 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55740
55741         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55742         rotate amounts.
55743
55744         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55745         required for 16-bit and 8-bit rotates.
55746         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55747         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55748         UINT8_MAX instead of hard-coded constants.
55749         Suggested by Paul Eggert.
55750
55751 2008-09-07  Bruno Haible  <bruno@clisp.org>
55752
55753         * tests/test-striconveh.c (main): Check behaviour when converting from
55754         UTF-7.
55755
55756         Make striconveh work better with stateful encodings.
55757         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55758         that iconv does not increment the inptr when returning -1/EINVAL.
55759
55760 2008-09-07  Bruno Haible  <bruno@clisp.org>
55761
55762         * build-aux/config.rpath: Update according to libtool-2.2.6.
55763         * build-aux/config.libpath: Likewise.
55764
55765 2008-09-06  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55768         * lib/freadptr.c (freadptr): Likewise.
55769         * lib/freadseek.c (freadptrinc): Likewise.
55770         Reported by Simon Josefsson.
55771
55772 2008-09-06  Bruno Haible  <bruno@clisp.org>
55773
55774         * modules/freadptr (License): Change to LGPLv2+.
55775         * modules/freadseek (License): Likewise.
55776         Suggested by Eric Blake.
55777
55778         * modules/memchr2 (License): Change to LGPLv2+.
55779         Approved by Eric Blake.
55780
55781 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55782             Bruno Haible  <bruno@clisp.org>
55783
55784         Make gnulib-tool work with native 'sed' on AIX.
55785         * gnulib-tool (sed_noop): New variable.
55786         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55787         func_add_or_update, func_create_testdir): Use it to initialize sed
55788         script variables.
55789         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55790
55791 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55792             Bruno Haible  <bruno@clisp.org>
55793
55794         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55795         also works after #include directives.
55796
55797 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55798
55799         getdate.y: reject an out-of-range timezone value
55800         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55801         the range [-24...+24].  When specified with only one or two digits,
55802         * tests/test-getdate.c: Tests for the fix.
55803         * doc/getdate.texi: Document this change.
55804
55805 2008-09-03  Bruno Haible  <bruno@clisp.org>
55806
55807         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55808
55809 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55810
55811         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55812         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55813         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55814         Blake <ebb9@byu.net>.
55815
55816         * tests/test-bitrotate.c: Add more test vectors.
55817
55818 2008-09-02  Eric Blake  <ebb9@byu.net>
55819
55820         vasnprintf-posix: handle large precision via %.*d
55821         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55822         when handling it ourselves.
55823         * tests/test-vasnprintf-posix.c (test_function): Add test.
55824         * tests/test-snprintf-posix.h (test_function): Likewise.
55825         * tests/test-sprintf-posix.h (test_function): Likewise.
55826         * tests/test-vasprintf-posix.c (test_function): Likewise.
55827         Reported by Alain Guibert.
55828
55829 2008-09-01  Eric Blake  <ebb9@byu.net>
55830
55831         c-stack: make configure-time check more robust
55832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55833         successful sigaction call.
55834         Reported by Tom G. Christensen.
55835
55836 2008-09-01  Bruno Haible  <bruno@clisp.org>
55837
55838         New module 'findprog-lgpl'.
55839         * modules/findprog-lgpl: New file.
55840         * lib/findprog-lgpl.c: New file.
55841         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55842         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55843         to decide whether to use strdup or xstrdup, concatenated_filename or
55844         xconcatenated_filename.
55845
55846 2008-09-01  Bruno Haible  <bruno@clisp.org>
55847
55848         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55849         'xconcat-filename' (GPL).
55850         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55851         (License): Change to LGPLv2+.
55852         * modules/xconcat-filename: New file.
55853         * lib/concat-filename.h (concatenated_filename): Change specification.
55854         (xconcatenated_filename): New declaration.
55855         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55856         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55857         memory situations.
55858         * lib/xconcat-filename.c: New file.
55859         * NEWS: Mention the change.
55860         * lib/findprog.c: Include concat-filename.h, not filename.h.
55861         (find_in_path): Use xconcatenated_filename instead of
55862         concatenated_filename.
55863         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55864         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55865         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55866         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55867         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55868         instead of concatenated_filename.
55869         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55870         (execute_java_class): Use xconcatenated_filename instead of
55871         concatenated_filename.
55872         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55873         * modules/javacomp (Depends-on): Likewise.
55874         * modules/javaexec (Depends-on): Likewise.
55875
55876 2008-09-01  Bruno Haible  <bruno@clisp.org>
55877
55878         Split module 'filename' into 'filename' and 'concat-filename'.
55879         * modules/filename: Keep only lib/filename.h.
55880         (License): Change to LGPLv2+.
55881         * modules/concat-filename: New file, extracted from modules/filename.
55882         * lib/filename.h (concatenated_filename): Remove declaration.
55883         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55884         * lib/concat-filename.c: Include concat-filename.h.
55885         * NEWS: Mention the change.
55886
55887 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55888
55889         * lib/bitrotate.h (rotl8, rotr8): Add.
55890
55891         * modules/bitrotate (configure.ac): Need
55892         AC_REQUIRE([AC_C_INLINE]).
55893         (Description): Mention stdint.h.  Reported by Bruno Haible
55894         <bruno@clisp.org>.
55895
55896         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55897         Paolo Bonzini <bonzini@gnu.org>.
55898
55899 2008-08-31  Bruno Haible  <bruno@clisp.org>
55900
55901         Assume Solaris specific bi-arch conventions on Solaris systems.
55902         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55903         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55904         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55905         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55906         like acl_libdirstem.
55907         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55908         acl_libdirstem.
55909         * NEWS: Mention the change.
55910         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55911
55912 2008-08-31  Jim Meyering  <meyering@redhat.com>
55913
55914         * lib/strftime.h: Add comments describing the two added arguments.
55915
55916         remove duplicate #include directives
55917         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55918         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55919
55920 2008-08-31  Bruno Haible  <bruno@clisp.org>
55921
55922         New module 'sigpipe-die'.
55923         * modules/sigpipe-die: New file.
55924         * lib/sigpipe-die.h: New file.
55925         * lib/sigpipe-die.c: New file.
55926         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55927
55928 2008-08-31  Bruno Haible  <bruno@clisp.org>
55929
55930         Don't override previously installed signal handlers.
55931         * lib/fatal-signal.c (saved_sigactions): New variable.
55932         (uninstall_handlers): Reset the signal to the saved handler, not
55933         to SIG_DFL (except when ignored).
55934         (install_handlers): Save the previous handlers.
55935
55936 2008-08-30  Bruno Haible  <bruno@clisp.org>
55937
55938         * gnulib-tool (func_reset_sigpipe): New function.
55939         (func_get_automake_snippet, func_modules_transitive_closure,
55940         func_import): Invoke it before a join command that reads from stdin,
55941         to avoid "echo: write error: Broken pipe" error messages on stderr.
55942         Reported by Sam Steingold <sds@gnu.org>.
55943
55944 2008-08-30  Bruno Haible  <bruno@clisp.org>
55945
55946         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55947         Code copied from m4/open.m4.
55948         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55949         access and the filename ends in a slash. Code copied from lib/open.c.
55950         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55951         * tests/test-fopen.c (main): Check against bug with trailing slash.
55952
55953 2008-08-29  Bruno Haible  <bruno@clisp.org>
55954
55955         Avoid some "gcc -pedantic" warnings.
55956         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55957         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55958         * lib/dirent.in.h: Likewise.
55959         * lib/fcntl.in.h: Likewise.
55960         * lib/float.in.h: Likewise.
55961         * lib/iconv.in.h: Likewise.
55962         * lib/inttypes.in.h: Likewise.
55963         * lib/locale.in.h: Likewise.
55964         * lib/math.in.h: Likewise.
55965         * lib/netinet_in.in.h: Likewise.
55966         * lib/search.in.h: Likewise.
55967         * lib/signal.in.h: Likewise.
55968         * lib/stdarg.in.h: Likewise.
55969         * lib/stdint.in.h: Likewise.
55970         * lib/stdio.in.h: Likewise.
55971         * lib/stdlib.in.h: Likewise.
55972         * lib/string.in.h: Likewise.
55973         * lib/strings.in.h: Likewise.
55974         * lib/sys_select.in.h: Likewise.
55975         * lib/sys_socket.in.h: Likewise.
55976         * lib/sys_stat.in.h: Likewise.
55977         * lib/sys_time.in.h: Likewise.
55978         * lib/sysexits.in.h: Likewise.
55979         * lib/time.in.h: Likewise.
55980         * lib/unistd.in.h: Likewise.
55981         * lib/wchar.in.h: Likewise.
55982         * lib/wctype.in.h: Likewise.
55983         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55984         * modules/fchdir (Makefile.am): Likewise.
55985         * modules/fcntl (Makefile.am): Likewise.
55986         * modules/float (Makefile.am): Likewise.
55987         * modules/iconv_open (Makefile.am): Likewise.
55988         * modules/inttypes (Makefile.am): Likewise.
55989         * modules/locale (Makefile.am): Likewise.
55990         * modules/math (Makefile.am): Likewise.
55991         * modules/netinet_in (Makefile.am): Likewise.
55992         * modules/search (Makefile.am): Likewise.
55993         * modules/signal (Makefile.am): Likewise.
55994         * modules/stdarg (Makefile.am): Likewise.
55995         * modules/stdint (Makefile.am): Likewise.
55996         * modules/stdio (Makefile.am): Likewise.
55997         * modules/stdlib (Makefile.am): Likewise.
55998         * modules/string (Makefile.am): Likewise.
55999         * modules/strings (Makefile.am): Likewise.
56000         * modules/sys_select (Makefile.am): Likewise.
56001         * modules/sys_socket (Makefile.am): Likewise.
56002         * modules/sys_stat (Makefile.am): Likewise.
56003         * modules/sys_time (Makefile.am): Likewise.
56004         * modules/sysexits (Makefile.am): Likewise.
56005         * modules/time (Makefile.am): Likewise.
56006         * modules/unistd (Makefile.am): Likewise.
56007         * modules/wchar (Makefile.am): Likewise.
56008         * modules/wctype (Makefile.am): Likewise.
56009         Reported by Reuben Thomas <rrt@sc3d.org>.
56010
56011 2008-08-29  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56014         any more.
56015
56016 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56017
56018         * MODULES.html.sh (Misc): Add bitrotate.
56019
56020         * modules/bitrotate: New file.
56021
56022         * lib/bitrotate.h: New file.
56023
56024         * modules/bitrotate-tests: New file.
56025
56026         * tests/test-bitrotate.c: New file.
56027
56028         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56029         on the bitrotate module.
56030
56031         * lib/arctwo.c: Use new bitrotate module.
56032
56033 2008-08-29  Jim Meyering  <meyering@redhat.com>
56034
56035         bootstrap: merge changes from coreutils
56036         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56037         of copied files.  Remove a kludge, now that this is fixed.
56038         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56039         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56040         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56041
56042 2008-08-29  Bruno Haible  <bruno@clisp.org>
56043
56044         * MODULES.html.sh: Remove --cvs-urls option.
56045
56046 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56047
56048         maint.mk: adjust to file name change
56049         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56050
56051 2008-08-28  Jim Meyering  <meyering@redhat.com>
56052
56053         * modules/getndelim2 (License): Relicense to LGPLv2+.
56054         Approved by Richard Stallman for the version of 1995, and by
56055         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56056
56057 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56058
56059         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56060         dummy if one is not available.  Do not touch them if
56061         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56062         (getc_maybe_unlocked): New.
56063         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56064
56065 2008-08-26  Eric Blake  <ebb9@byu.net>
56066
56067         doc/INSTALL: resync from autoconf
56068         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56069         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56070         moving...
56071         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56072         * INSTALL: Regenerate.
56073         * INSTALL.ISO: New file.
56074         * INSTALL.UTF-8: Likewise.
56075
56076 2008-08-26  Jim Meyering  <meyering@redhat.com>
56077
56078         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56079         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56080         these definitions conditional, so that they may be overridden, too.
56081
56082 2008-08-26  Bruno Haible  <bruno@clisp.org>
56083
56084         Generate INSTALL file variants with prettier quotes.
56085         * doc/Makefile (INSTALL_PRELUDE): New macro.
56086         (INSTALL): Use it.
56087         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56088
56089 2008-08-26  Bruno Haible  <bruno@clisp.org>
56090
56091         Run makeinfo in an English locale.
56092         * doc/Makefile (MAKEINFO): New variable.
56093
56094 2008-08-26  Bruno Haible  <bruno@clisp.org>
56095
56096         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56097         Suggested by Eric Blake.
56098
56099 2008-08-25  Bruno Haible  <bruno@clisp.org>
56100
56101         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56102
56103 2008-08-25  Eric Blake  <ebb9@byu.net>
56104
56105         c-stack: test that stack overflow can be caught
56106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56107         that platform allows handling stack overflow; at least OS/2 EMX
56108         has sigaltstack, but crashes before transferring control to
56109         handler on stack overflow.
56110         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56111         check for HAVE_STACK_OVERFLOW_HANDLING.
56112         Reported by Elbert Pol.
56113
56114 2008-08-25  Bruno Haible  <bruno@clisp.org>
56115
56116         * doc/posix-functions/strftime.texi: Fix description of strftime
56117         module.
56118
56119 2008-08-24  Bruno Haible  <bruno@clisp.org>
56120
56121         * tests/uniwidth/test-uc_width2.c: New file.
56122         * tests/uniwidth/test-uc_width2.sh: New file.
56123         * modules/uniwidth/width-tests (Files): Add the new files.
56124         (TESTS): Add uniwidth/test-uc_width2.sh.
56125         (TESTS_ENVIRONMENT): New variable.
56126         (check_PROGRAMS): Add test-uc_width2.
56127         (test_uc_width2_SOURCES): New variable.
56128
56129         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56130         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56131         not 0x00AB.
56132         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56133
56134 2008-08-22  Eric Blake  <ebb9@byu.net>
56135
56136         test-lock, test-tls: mention why a test is skipped
56137         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56138         skipped.
56139         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56140
56141         count-one-bits: relax license
56142         * modules/count-one-bits (License): Relicense to LGPLv2+.
56143         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56144
56145 2008-08-22  Andreas Schwab  <schwab@suse.de>
56146
56147         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56148         Remove spurious space in assignment.
56149
56150 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56151
56152         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56153         Paul Eggert <eggert@CS.UCLA.EDU>.
56154
56155 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56156
56157         * modules/gettext: Add m4/threadlib.m4.
56158
56159 2008-08-19  Eric Blake  <ebb9@byu.net>
56160
56161         test-c-stack: fix compilation failure on FreeBSD 5.0
56162         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56163         headers before <sys/resource.h>.
56164         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56165         the bug.
56166         Reported by Nelson H. F. Beebe.
56167
56168         strverscmp: migrate from "strverscmp.h" to <string.h>
56169         * modules/string (Makefile.am): Add new hooks.
56170         * modules/strverscmp (Files): Remove strverscmp.h.
56171         (Depends-on): Add string.
56172         (configure.ac): Add indicator.
56173         (Include): Mention new header.
56174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56175         defaults.
56176         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56177         results.
56178         * lib/strverscmp.h: Delete.
56179         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56180         * tests/test-strverscmp.c (includes): Adjust client.
56181         * lib/check-version.c (includes): Likewise.
56182         * NEWS: Document the change.
56183
56184         strverscmp: add unit test
56185         * modules/strverscmp-tests: New file.
56186         * tests/test-strverscmp.c: Likewise.
56187
56188 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56189
56190         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56191         regarding Windows crypto stuff, from Mono.
56192
56193 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56194
56195         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56196         if present, for intel RND.  Return error on failures.
56197
56198 2008-08-18  Ben Pfaff  <blp@gnu.org>
56199
56200         gitlog-to-changelog: give better diagnostic for failed pipe-open
56201         * build-aux/gitlog-to-changelog: Improve error message: suggest
56202         that the version of Git may be too old.
56203
56204 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56205
56206         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56207         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56208
56209 2008-08-18  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56212         pthread_in_use().
56213
56214 2008-08-18  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/glthread/threadlib.c: Include <pthread.h>.
56217
56218 2008-08-18  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56221         glthread_recursive_lock_* macros.
56222         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56223         Fix syntax error.
56224
56225 2008-08-18  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/glthread/thread.c: Avoid forcing a context switch right after
56228         thread creation.
56229
56230 2008-08-17  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56233         * lib/glthread/thread.h: Provide Win32 specific implementation.
56234         * modules/thread (Files): Add lib/glthread/thread.c.
56235         (Depends-on): Add lock.
56236         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56237
56238 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56239
56240         New module 'yield'.
56241         * modules/yield: New file.
56242         * lib/glthread/yield.h: New file.
56243         * m4/yield.m4: New file.
56244         * MODULES.html.sh (Multithreading): Add yield.
56245
56246 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56247
56248         New module 'thread'.
56249         * modules/thread: New file.
56250         * lib/glthread/thread.h: New file.
56251         * m4/thread.m4: New file.
56252         * MODULES.html.sh (Multithreading): Add thread.
56253
56254 2008-08-17  Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/glthread/lock.h: Include <stdlib.h> always.
56257         * lib/glthread/tls.h: Likewise.
56258         * lib/glthread/cond.h: Likewise.
56259
56260 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56261
56262         New module 'cond'.
56263         * modules/cond: New file.
56264         * lib/glthread/cond.h: New file.
56265         * lib/glthread/cond.c: New file.
56266         * m4/cond.m4: New file.
56267         * MODULES.html.sh (Multithreading): Add cond.
56268
56269 2008-08-16  Eric Blake  <ebb9@byu.net>
56270
56271         c-stack: fix regression on Irix 5.3 from 2008-06-21
56272         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56273         sa_sigaction...
56274         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56275         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56276         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56277         * modules/signal (Makefile.am): Use the value.
56278         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56279         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56280         * doc/posix-headers/signal.texi (signal.h): Document this
56281         portability issue.
56282         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56283         Reported by Tom G. Christensen.
56284
56285 2008-08-17  Bruno Haible  <bruno@clisp.org>
56286
56287         New module 'threadlib'.
56288         * modules/threadlib: New file.
56289         * lib/glthread/threadlib.c: New file, extracted from
56290         lib/glthread/lock.c.
56291         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56292         functions.
56293         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56294         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56295         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56296         macros.
56297         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56298         (gl_DISABLE_THREADS): Remove macro.
56299         * modules/lock (Files): Remove build-aux/config.rpath.
56300         (Depends-on): Remove havelib. Add threadlib.
56301         (configure.ac-early): Remove section.
56302         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56303         * modules/tls (Depends-on): Remove lock. Add threadlib.
56304         (Link): New section, copied from threadlib.
56305         * MODULES.html.sh (Multithreading): Add threadlib.
56306
56307 2008-08-14  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56310         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56311         glthread_rwlock_unlock, glthread_rwlock_destroy,
56312         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56313         glthread_recursive_lock_destroy): Define as macros always.
56314         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56315         glthread_lock_lock.
56316         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56317         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56318         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56319         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56320         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56321         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56322         (glthread_recursive_lock_lock_func): Renamed from
56323         glthread_recursive_lock_lock.
56324         (glthread_recursive_lock_unlock_func): Renamed from
56325         glthread_recursive_lock_unlock.
56326         (glthread_recursive_lock_destroy_func): Renamed from
56327         glthread_recursive_lock_destroy.
56328
56329 2008-08-14  Bruno Haible  <bruno@clisp.org>
56330
56331         * lib/glthread/lock.h: Renamed from lib/lock.h.
56332         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56333         * lib/glthread/tls.h: Renamed from lib/tls.h.
56334         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56335         * lib/fstrcmp.c: Update includes.
56336         * lib/strsignal.c: Update includes.
56337         * modules/lock (Files, Makefile.am): Update.
56338         (Include): Change to "glthread/lock.h".
56339         * modules/tls (Files, Makefile.am): Update.
56340         (Include): Change to "glthread/tls.h".
56341         * tests/test-lock.c: Update includes.
56342         * tests/test-tls.c: Update includes.
56343         * NEWS: Mention the renamed header files.
56344
56345 2008-08-11  Jim Meyering  <meyering@redhat.com>
56346
56347         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56348
56349 2008-08-11  Eric Blake  <ebb9@byu.net>
56350
56351         test-c-stack: avoid C99-ism
56352         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56353         before statement.
56354         Reported by Alain Guibert.
56355
56356 2008-08-10  Jim Meyering  <meyering@redhat.com>
56357
56358         ensure that return value of uinttostr et al are not ignored
56359         * lib/inttostr.h (__GNUC_PREREQ): Define.
56360         (__attribute_warn_unused_result__): Define.
56361         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56362
56363 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56364
56365         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56366         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56367
56368 2008-08-07  Jim Meyering  <meyering@redhat.com>
56369
56370         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56371
56372         * modules/mkstemp (License): Relicense under LGPLv2+.
56373         * modules/tempname (License): Likewise.
56374
56375 2008-08-06  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/poll.c (poll): Further micro-optimization.
56378
56379 2008-08-06  Jim Meyering  <meyering@redhat.com>
56380
56381         inet_pton.c: use locale-independent tolower
56382         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56383         (inet_pton6): Use c_tolower rather than tolower.
56384         * modules/inet_pton (Depends-on): Add c-ctype.
56385
56386 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56387
56388         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56389         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56390
56391 2008-08-06  Jim Meyering  <meyering@redhat.com>
56392
56393         * modules/inet_pton (License): Relicense under LGPLv2+.
56394
56395 2008-08-03  Bruno Haible  <bruno@clisp.org>
56396
56397         Additional non-aborting API for lock and tls.
56398         * lib/lock.h: Include <errno.h>.
56399         (glthread_lock_init): New macro/function.
56400         (gl_lock_init): Define as wrapper around glthread_lock_init.
56401         (glthread_lock_lock): New macro/function.
56402         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56403         (glthread_lock_unlock): New macro/function.
56404         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56405         (glthread_lock_destroy): New macro/function.
56406         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56407         (glthread_rwlock_init): New macro/function.
56408         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56409         (glthread_rwlock_rdlock): New macro/function.
56410         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56411         (glthread_rwlock_wrlock): New macro/function.
56412         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56413         (glthread_rwlock_unlock): New macro/function.
56414         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56415         (glthread_rwlock_destroy): New macro/function.
56416         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56417         (glthread_recursive_lock_init): New macro/function.
56418         (gl_recursive_lock_init): Define as wrapper around
56419         glthread_recursive_lock_init.
56420         (glthread_recursive_lock_lock): New macro/function.
56421         (gl_recursive_lock_lock): Define as wrapper around
56422         glthread_recursive_lock_lock.
56423         (glthread_recursive_lock_unlock): New macro/function.
56424         (gl_recursive_lock_unlock): Define as wrapper around
56425         glthread_recursive_lock_unlock.
56426         (glthread_recursive_lock_destroy): New macro/function.
56427         (gl_recursive_lock_destroy): Define as wrapper around
56428         glthread_recursive_lock_destroy.
56429         (glthread_once): New macro/function.
56430         (gl_once): Define as wrapper around glthread_once.
56431         Update function declarations.
56432         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56433         glthread_rwlock_init. Return error code.
56434         (glthread_rwlock_rdlock_multithreaded): Renamed from
56435         glthread_rwlock_rdlock. Return error code.
56436         (glthread_rwlock_wrlock_multithreaded): Renamed from
56437         glthread_rwlock_wrlock. Return error code.
56438         (glthread_rwlock_unlock_multithreaded): Renamed from
56439         glthread_rwlock_unlock. Return error code.
56440         (glthread_rwlock_destroy_multithreaded): Renamed from
56441         glthread_rwlock_destroy. Return error code.
56442         (glthread_recursive_lock_init_multithreaded): Renamed from
56443         glthread_recursive_lock_init. Return error code.
56444         (glthread_recursive_lock_lock_multithreaded): Renamed from
56445         glthread_recursive_lock_lock. Return error code.
56446         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56447         glthread_recursive_lock_unlock. Return error code.
56448         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56449         glthread_recursive_lock_destroy. Return error code.
56450         (glthread_once_call): Make static.
56451         (glthread_once_multithreaded): Renamed from glthread_once.
56452         * lib/tls.h: Include <errno.h>.
56453         (glthread_tls_key_init): New macro/function.
56454         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56455         (glthread_tls_set): New macro/function.
56456         (gl_tls_set): Define as wrapper around glthread_tls_set.
56457         (glthread_tls_key_destroy): New macro/function.
56458         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56459         Update function declarations.
56460         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56461         glthread_tls_get.
56462         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56463
56464 2008-08-04  Eric Blake  <ebb9@byu.net>
56465
56466         gnumakefile: use space, not TAB, outside of targets
56467         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56468
56469 2008-08-02  Jim Meyering  <meyering@redhat.com>
56470
56471         getdate.y: avoid locale-dependent date parsing failure
56472         In Turkish locales, getdate would fail to recognize keywords
56473         containing a lowercase "i".  The solution is not to rely on
56474         locale-sensitive case-conversion.
56475         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56476         (lookup_word): Use c_toupper in place of toupper.
56477         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56478         Reported by Vefa Bicakci <bicave@superonline.com> in
56479         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56480         * modules/getdate (Depends-on): Add c-ctype.
56481
56482 2008-08-02  Bruno Haible  <bruno@clisp.org>
56483
56484         * gnulib-tool (func_import): When updating or creating a .gitignore
56485         file, prepend each added line with a slash, and ignore leading slashes
56486         from the existing lines.
56487         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56488
56489 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56490
56491         Portability fix for GNU make 3.79.1.
56492         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56493         versions do not understand.
56494
56495 2008-08-01  Bruno Haible  <bruno@clisp.org>
56496
56497         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56498         * tests/test-isnanf.h (zero): New variable.
56499         (main): Avoid literal -0.0f.
56500         * tests/test-isnand.h (zero): New variable.
56501         (main): Avoid literal -0.0.
56502         * tests/test-isnanl.h (zero): New variable.
56503         (main): Avoid literal -0.0L.
56504         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56505         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56506         -0.0, -0.0L.
56507         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56508         (test_signbitd): Avoid literal -0.0.
56509         (test_signbitl): Avoid literal -0.0L.
56510         * tests/test-ceilf1.c (zero): New variable.
56511         (main): Avoid literal -0.0f.
56512         * tests/test-ceill.c (zero): New variable.
56513         (main): Avoid literal -0.0L.
56514         * tests/test-floorf1.c (zero): New variable.
56515         (main): Avoid literal -0.0f.
56516         * tests/test-floorl.c (zero): New variable.
56517         (main): Avoid literal -0.0L.
56518         * tests/test-roundf1.c (zero): New variable.
56519         (main): Avoid literal -0.0f.
56520         * tests/test-round1.c (zero): New variable.
56521         (main): Avoid literal -0.0.
56522         * tests/test-roundl.c (zero): New variable.
56523         (main): Avoid literal -0.0L.
56524         * tests/test-truncf1.c (zero): New variable.
56525         (main): Avoid literal -0.0f.
56526         * tests/test-trunc1.c (zero): New variable.
56527         (main): Avoid literal -0.0.
56528         * tests/test-truncl.c (zero): New variable.
56529         (main): Avoid literal -0.0L.
56530         * tests/test-frexp.c (zero): New variable.
56531         (main): Avoid literal -0.0.
56532         * tests/test-frexpl.c (zero): New variable.
56533         (main): Avoid literal -0.0L.
56534         * tests/test-ldexpl.c (zero): New variable.
56535         (main): Avoid literal -0.0L.
56536         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56537         (zerod, zerol): New variables.
56538         (test_function): Avoid literals -0.0, -0.0L.
56539         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56540         (zerod, zerol): New variables.
56541         (test_function): Avoid literals -0.0, -0.0L.
56542         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56543         (zerod, zerol): New variables.
56544         (test_function): Avoid literals -0.0, -0.0L.
56545         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56546         (zerod, zerol): New variables.
56547         (test_function): Avoid literals -0.0, -0.0L.
56548         * tests/test-strtod.c (zero): New variable.
56549         (main): Avoid literal -0.0.
56550         Reported by Jonathan C. Patschke <jp@centtech.com>.
56551
56552 2008-07-31  Jim Meyering  <meyering@redhat.com>
56553
56554         sha256.h: correct definition of SHA224_DIGEST_SIZE
56555         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56556         Reported by Paulie Pena IV <paulie4@gmail.com>.
56557         Define as 224 / 8, rather than as a literal.
56558         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56559         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56560         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56561
56562 2008-07-31  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56565         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56566         Reported by Jonathan Patschke <jp@centtech.com>.
56567
56568 2008-07-31  Bruno Haible  <bruno@clisp.org>
56569
56570         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56571         Reported by Paolo Bonzini <bonzini@gnu.org>.
56572
56573 2008-07-30  Eric Blake  <ebb9@byu.net>
56574
56575         test-strtod: allow compilation without -lm
56576         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56577         Reported by Dennis Clarke <blastwave@gmail.com>.
56578
56579 2008-07-28  Jim Meyering  <meyering@redhat.com>
56580
56581         bootstrap: work also when there are no .po files in po/
56582         * build-aux/bootstrap (update_po_files): Complete the change
56583         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56584
56585 2008-07-27  Jim Meyering  <meyering@redhat.com>
56586
56587         * users.txt: Add zile.
56588
56589 2008-07-26  Ben Pfaff  <blp@gnu.org>
56590
56591         Add missing dependencies on new m4/exponent[fdl].m4 files.
56592         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56593         * modules/isnand-nolibm: Add m4/exponentd.m4.
56594         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56595         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56596         m4/isnan[fdl].m4, because the macros actually used moved.
56597         Reported by Jim Meyering.
56598
56599 2008-07-14  Ben Pfaff  <blp@gnu.org>
56600
56601         Add isinf module.
56602         * lib/isinf.c: New file.
56603         * lib/math.in.h: Define isinf macro if we have decided to replace
56604         it.
56605         * m4/isinf.m4: New file.
56606         * m4/math_h.m4: Initialize and substitute variables for isinf
56607         module.
56608         * modules/isinf: New file.
56609         * modules/isinf-tests: New file.
56610         * modules/math: Add substitutions for new module.
56611         * tests/test-isinf.c: New file.
56612         * doc/posix-functions/isinf.texi: Mention new module.
56613         * MODULES.html.sh: Mention new module.
56614
56615 2008-07-14  Ben Pfaff  <blp@gnu.org>
56616
56617         Factor out some macros for use by additional modules.
56618         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56619         exponentf.m4.
56620         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56621         exponentd.m4.
56622         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56623         file exponentl.m4.
56624         * m4/exponentf.m4: New file.
56625         * m4/exponentd.m4: New file.
56626         * m4/exponentl.m4: New file.
56627         * modules/isnanf: Use new file m4/exponentf.m4.
56628         * modules/isnand: Use new file m4/exponentd.m4.
56629         * modules/isnanl: Use new file m4/exponentl.m4.
56630
56631 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56632
56633         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56634         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56635         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56636         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56637
56638         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56639         readlink on platforms without PATH_MAX.
56640
56641 2008-07-21  Eric Blake  <ebb9@byu.net>
56642
56643         Warn, not fail, on stale version.
56644         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56645
56646         Don't allow installation with stale devel version number.
56647         * top/GNUmakefile (_is-install-target): New macro.
56648         (_curr-ver): Forbid installation with stale version number.
56649
56650 2008-07-20  Bruno Haible  <bruno@clisp.org>
56651
56652         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56653         TESTS_ENVIRONMENT.
56654         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56655
56656 2008-07-20  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/c-stack.h (c_stack_action): Add documentation.
56659         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56660
56661 2008-07-20  Bruno Haible  <bruno@clisp.org>
56662
56663         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56664         * modules/readlink (License): Likewise.
56665
56666 2008-07-17  Eric Blake  <ebb9@byu.net>
56667
56668         * modules/c-stack (Link): Fix typo.
56669
56670         Make c-stack use libsigsegv, when available.
56671         * modules/c-stack (Depends-on): Add libsigsegv.
56672         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56673         needed.
56674         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56675         (segv_handler, overflow_handler, c_stack_action)
56676         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56677         implementation when libsigsegv is available, but only when using
56678         the library is necessary.
56679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56680         comment, explaining why XSI check fails on Linux.
56681         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56682         * tests/test-c-stack2.sh: Tweak skip message.
56683         * NEWS: Document new link-time requirements.
56684
56685 2008-07-16  Eric Blake  <ebb9@byu.net>
56686
56687         c-stack: Expose false positives when not using libsigsegv.
56688         * modules/c-stack-tests (Files): Expand test.
56689         * tests/test-c-stack.c (main): Add means to conditionally trigger
56690         non-overflow SIGSEGV.
56691         * tests/test-c-stack2.sh: New file.
56692
56693 2008-07-14  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56696         Reported by Eric Blake.
56697
56698 2008-07-14  Sam Steingold  <sds@gnu.org>
56699             Bruno Haible  <bruno@clisp.org>
56700
56701         New module libsigsegv.
56702         * modules/libsigsegv: New file.
56703         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56704         modifications.
56705         * MODULES.html.sh (Signal handling): New section.
56706
56707 2008-07-14  Bruno Haible  <bruno@clisp.org>
56708
56709         * modules/unictype/ctype-* (Description): Add the word "function".
56710         Improves the resulting doc in MODULES.html.
56711
56712 2008-07-12  Ben Pfaff  <blp@gnu.org>
56713
56714         Add longlong module.
56715         * modules/longlong: New file.
56716
56717 2008-07-12  Bruno Haible  <bruno@clisp.org>
56718
56719         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56720         to empty.
56721
56722 2008-07-10  Ben Pfaff  <blp@gnu.org>
56723
56724         Add isnan module.
56725         * doc/posix-functions/isnan.texi: Mention new module.
56726         * lib/math.in.h: Define isnan macro if we have decided to replace
56727         it.
56728         * m4/isnan.m4: New file.
56729         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56730         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56731         also.
56732         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56733         redundancy.
56734         * m4/math_h.m4: Initialize and substitute variables for isnan
56735         module.
56736         * modules/isnan: New file.
56737         * modules/isnan-tests: New file.
56738         * modules/math: Add substitutions for new module.
56739         * tests/test-isnan.c: New file.
56740         * MODULES.html.sh: Mention new module.
56741
56742 2008-07-10  Ben Pfaff  <blp@gnu.org>
56743
56744         Add isnanf module.
56745         * lib/isnanf.m4: New file.
56746         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56747         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56748         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56749         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56750         * modules/isnanf: New file.
56751         * modules/isnanf-tests: New file.
56752         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56753         files.
56754         * tests/test-isnanf-nolibm.c: factored most of its contents into
56755         new file tests/test-isnanf.h.
56756         * tests/test-isnanf.h: New file.
56757         * tests/test-isnanf.c: New file.
56758         * MODULES.html.sh: Mention new module.
56759         * doc/glibc-functions/isnanf.texi: Mention new module.
56760
56761 2008-07-10  Ben Pfaff  <blp@gnu.org>
56762
56763         Add isnand module.
56764         * lib/isnand.h: New file.
56765         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56766         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56767         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56768         functionality also.
56769         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56770         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56771         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56772         * modules/isnand: New file.
56773         * modules/isnand-tests: New file.
56774         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56775         files.
56776         * tests/test-isnand-nolibm.c: factored most of its contents into
56777         new file tests/test-isnand.h.
56778         * tests/test-isnand.h: New file.
56779         * tests/test-isnand.c: New file.
56780         * MODULES.html.sh: Mention new module.
56781
56782 2008-07-10  Ben Pfaff  <blp@gnu.org>
56783
56784         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56785         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56786         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56787         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56788         * modules/isnanf-nolibm: Update references to renamed files.
56789         * modules/isnand-nolibm: Likewise.
56790         * modules/isnanf-nolibm-tests: Likewise.
56791         * modules/isnand-nolibm-tests: Likewise.
56792         * lib/frexp.c: Likewise.
56793         * lib/isfinite.c: Likewise.
56794         * lib/signbitd.c: Likewise.
56795         * lib/signbitf.c: Likewise.
56796         * lib/vasnprintf.c: Likewise.
56797         * tests/test-ceilf1.c: Likewise.
56798         * tests/test-ceilf2.c: Likewise.
56799         * tests/test-floorf1.c: Likewise.
56800         * tests/test-floorf2.c: Likewise.
56801         * tests/test-frexp.c: Likewise.
56802         * tests/test-round1.c: Likewise.
56803         * tests/test-round2.c: Likewise.
56804         * tests/test-roundf1.c: Likewise.
56805         * tests/test-strtod.c: Likewise.
56806         * tests/test-trunc1.c: Likewise.
56807         * tests/test-trunc2.c: Likewise.
56808         * tests/test-truncf1.c: Likewise.
56809         * tests/test-truncf2.c: Likewise.
56810         * NEWS: Mention the renamed header files.
56811
56812 2008-07-11  Jim Meyering  <meyering@redhat.com>
56813
56814         vc-list-files: make the last-resort awk code more portable
56815         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56816         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56817         does not support it.
56818
56819 2008-07-10  Eric Blake  <ebb9@byu.net>
56820
56821         Work with tar's bootstrap.
56822         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56823         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56824         an m4 comment.
56825
56826 2008-07-09  Jim Meyering  <meyering@redhat.com>
56827
56828         posix-shell.m4: fix typo that made this test malfunction
56829         * m4/posix-shell.m4: Remove capitalization in variable name.
56830
56831 2008-07-08  Bruno Haible  <bruno@clisp.org>
56832
56833         * m4/onceonly.m4: Update comments.
56834         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56835
56836 2008-07-04  Jim Meyering  <meyering@redhat.com>
56837
56838         * users.txt: Add vc-dwim.
56839         (bison, coreutils): Use the gitweb URL.
56840
56841 2008-07-03  Jim Meyering  <meyering@redhat.com>
56842
56843         * users.txt: Add libffcall.  From Sam Steingold.
56844
56845 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56846
56847         getdate.y: do not ignore TZ with relative day, month or year offset
56848         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56849         relative-date-handling, since otherwise, the latter would clobber the
56850         sole output (an updated Start value) of the tz-handling block.
56851         * tests/test-getdate.c: Tests for the fix
56852
56853 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56854
56855         Recognize 'foo_LIBRARIES += libgnu.a'.
56856         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56857         makefile snippet has already specified an installation location,
56858         also using '+='.
56859
56860 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56861
56862         getdate.y: factor out common actions
56863         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56864         Use them in place of open-coded actions.
56865
56866 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56867
56868         Add self-test for getdate module.
56869         * modules/getdate-tests: New file.
56870         * tests/test-getdate.c: New file.
56871
56872 2008-06-29  Bruno Haible  <bruno@clisp.org>
56873
56874         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56875         .gitignore.
56876         Reported by Sylvain Beucler <beuc@beuc.net>.
56877
56878 2008-06-29  Bruno Haible  <bruno@clisp.org>
56879
56880         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56881         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56882
56883 2008-06-29  Bruno Haible  <bruno@clisp.org>
56884
56885         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56886         EXTRA_DIST.
56887         Reported by Sylvain Beucler <beuc@beuc.net>.
56888
56889 2008-06-26  Jim Meyering  <meyering@redhat.com>
56890
56891         make several modules depend on the "open" module
56892         This provides slightly increased consistency when opening-for-write
56893         the name of a non-directory spelled with a trailing slash.
56894         * modules/chdir-safer: Likewise.
56895         * modules/chown: Likewise.
56896         * modules/clean-temp: Likewise.
56897         * modules/copy-file: Likewise.
56898         * modules/fchdir: Likewise.
56899         * modules/fcntl-safer: Likewise.
56900         * modules/pipe: Likewise.
56901         * modules/utime: Likewise.
56902         Prompted by Eric Blake and Bruno Haible.
56903
56904 2008-06-24  Andreas Schwab  <schwab@suse.de>
56905
56906         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56907         literals can be used as initializers for global variables.
56908
56909 2008-06-23  Eric Blake  <ebb9@byu.net>
56910
56911         Make gnulib-cache.m4 easier to diff.
56912         * gnulib-tool (func_import): Allow newlines when reading cached
56913         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56914
56915 2008-06-23  Bruno Haible  <bruno@clisp.org>
56916
56917         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56918         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56919         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56920         m4/signalblocking.m4.
56921         (gl_PREREQ_SIGACTION): Don't invoke it.
56922         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56923         gl_PREREQ_SIG_HANDLER_H.
56924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56925         Don't check for sigaction here.
56926
56927 2008-06-23  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56930         (install_handlers): Don't set the SA_RESETHAND flag.
56931
56932 2008-06-23  Bruno Haible  <bruno@clisp.org>
56933
56934         * m4/sigaction.m4: Comment fixes.
56935         * lib/signal.in.h: Likewise.
56936
56937 2008-06-23  Eric Blake  <ebb9@byu.net>
56938
56939         Fix typo.
56940         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56941
56942         Avoid SA_ namespace.
56943         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56944         Reported by Ralf Wildenhues.
56945
56946         Avoid test failure due to SA_RESTORER.
56947         * tests/test-sigaction.c (SA_MASK): New macro.
56948         (main): Avoid failing due to extension flags being set.
56949         Reported by Jim Meyering.
56950
56951         Revert use of sig-handler.h in sigprocmask.c.
56952         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56953         it requires the existence of struct sigaction.
56954         * lib/sigprocmask.c (handler_t): Restore typedef.
56955         (rpl_signal, old_handlers): Use local type.
56956
56957 2008-06-22  Bruno Haible  <bruno@clisp.org>
56958
56959         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56960         conditionally.
56961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56962
56963 2008-06-22  Bruno Haible  <bruno@clisp.org>
56964
56965         * doc/posix-functions/siginterrupt.texi: Move note.
56966
56967         * lib/signal.in.h (SA_RESTART): New macro.
56968         * lib/sigaction.c: Update comment.
56969
56970         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56971
56972         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56973         (gl_PREREQ_SIGPROCMASK): Invoke it.
56974         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56975
56976         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56977
56978         * lib/sigprocmask.c: Update a comment.
56979
56980 2008-06-21  Eric Blake  <ebb9@byu.net>
56981
56982         Use sigaction module rather than signal().
56983         * modules/c-stack (Depends-on): Add sigaction.
56984         * modules/fatal-signal (Depends-on): Likewise.
56985         * modules/nanosleep (Depends-on): Likewise.
56986         * modules/sigprocmask (Files): Add sig-handler.h.
56987         * modules/sigaction (Files): Likewise.
56988         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56989         Eggert.
56990         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56991         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56992         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56993         (init_fatal_signals): Likewise.
56994         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56995         (siginterrupt): Delete fallback.
56996         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56997         instead.
56998         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56999         siginterrupt.
57000
57001         New module sigaction, for mingw.
57002         * modules/sigaction: New module...
57003         * modules/sigaction-tests: ...and its test.
57004         * m4/sigaction.m4: New file.
57005         * lib/sigaction.c: Likewise.
57006         * tests/test-sigaction.c: Likewise.
57007         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57008         * modules/signal (Makefile.am): Likewise.
57009         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57010         needed.
57011         * doc/posix-headers/signal.texi (signal.h): Mention provided
57012         types.
57013         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57014         that sigaction is preferable.
57015         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57016         module.
57017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57018         sigaction.
57019
57020         Improve robustness of sigprocmask by overriding signal.
57021         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57022         is in use.
57023         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57024         (SIGKILL, SIGSTOP): Provide fallbacks.
57025         (rpl_signal): Implement.
57026         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57027         signal can be called inside handlers.
57028
57029         Fix nanosleep module on mingw.
57030         * modules/nanosleep (Depends-on): Add sys_select.
57031         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57032
57033         Fix licensing of sigprocmask.
57034         * modules/raise (License): Relicense as LGPL.
57035
57036 2008-06-21  Bruno Haible  <bruno@clisp.org>
57037
57038         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57039         result if it contains question marks.
57040         Reported by Michael Geng <linux@michaelgeng.de>.
57041
57042 2008-06-19  Bruno Haible  <bruno@clisp.org>
57043
57044         Fix CVS-ism.
57045         * doc/gnulib.texi: Include updated-stamp.texi.
57046         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57047         (updated-stamp.texi): New rule.
57048         (gnulib.info): Depend on it.
57049         * doc/.gitignore: Add updated-stamp.texi.
57050         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57051
57052 2008-06-19  Bruno Haible  <bruno@clisp.org>
57053
57054         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57055         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57056
57057 2008-06-19  Eric Blake  <ebb9@byu.net>
57058
57059         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57060         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57061         Reported by Stepan Kasal.
57062
57063 2008-06-18  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57066         Reported by Eric Blake.
57067
57068 2008-06-18  Eric Blake  <ebb9@byu.net>
57069
57070         Work around cygwin 1.5.25 strsignal bug.
57071         * tests/test-strsignal.c: Allow for const char *.
57072         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57073
57074 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57075
57076         * users.txt: Update URL to article and add author/date
57077         information.
57078
57079 2008-06-17  Bruno Haible  <bruno@clisp.org>
57080
57081         New macro gl_DISABLE_THREADS.
57082         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57083         if the user did not pass --enable-threads or --disable-threads option.
57084         (gl_DISABLE_THREADS): New macro.
57085         Reported by Eric Blake <ebb9@byu.net>.
57086
57087 2008-06-17  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57090         when the macro ignores it.
57091         Based on a patch by Eric Blake <ebb9@byu.net>.
57092
57093 2008-06-17  Bruno Haible  <bruno@clisp.org>
57094
57095         * modules/tls (License): Change to LGPLv2+.
57096         Reported by Eric Blake.
57097
57098 2008-06-17  Eric Blake  <ebb9@byu.net>
57099
57100         Simplify c-stack prerequisites.
57101         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57103         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57104         check.
57105         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57106         <sys/resource.h>.
57107
57108         Move c-stack test into testsuite.
57109         * modules/c-stack-tests: New file.
57110         * lib/c-stack.c [DEBUG]: Move test program...
57111         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57112         fail test if sigaltstack is lacking.
57113         * tests/test-c-stack.sh: New driver file.
57114
57115 2008-06-16  Eric Blake  <ebb9@byu.net>
57116
57117         Use raise module consistently.
57118         * modules/fatal-signal (Depends-on): Add raise.
57119         * modules/sigprocmask (Depends-on): Likewise.
57120         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57121         * lib/sigprocmask.c (sigprocmask): Likewise.
57122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57123         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57124
57125         Fix compliance bug in sigpending.
57126         * lib/sigprocmask.c (sigpending): Return pending array via
57127         parameter, not return value.
57128
57129 2008-06-14  Eric Blake  <ebb9@byu.net>
57130
57131         Improve obstack-printf test code.
57132         * tests/test-obstack-printf.c (test_function): Fix comment, and
57133         simplify usage of obstack_* in macros.  Add a test for coverage.
57134         Reported by Bruno Haible.
57135
57136 2008-06-14  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57139         array size as a constant, not as a const variable.
57140         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57141         AC_USE_SYSTEM_EXTENSIONS.
57142         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57143         Test whether the obstack_printf function actually exists.
57144         * modules/obstack-printf (Depends-on): Add extensions.
57145         (Include): Remove obstack.h.
57146         * modules/obstack-printf-posix (Depends-on): Add extensions.
57147         (Include): Remove obstack.h.
57148
57149 2008-06-13  Eric Blake  <ebb9@byu.net>
57150
57151         Add obstack-printf and obstack-printf-posix modules.
57152         * modules/obstack-printf: New file.
57153         * modules/obstack-printf-posix: Likewise.
57154         * MODULES.html.sh (Misc): Mention them.
57155         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57156         Likewise.
57157         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57158         Likewise.
57159         * modules/stdio (Makefile.am): Accomodate new modules.
57160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57161         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57162         Declare.
57163         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57164         functions.
57165         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57166         (gl_REPLACE_OBSTACK_PRINTF): New macros
57167         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57168         * tests/test-obstack-printf.c: New file.
57169         * modules/obstack-printf-tests: Likewise.
57170         * modules/obstack-printf-posix-tests: Likewise.
57171
57172 2008-06-11  Bruno Haible  <bruno@clisp.org>
57173
57174         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57175         * lib/open.c: Include errno.h.
57176         (open): Fail when attempting to write to a file that has a trailing
57177         slash.
57178         * tests/test-open.c (main): Test against trailing slash bug.
57179         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57180
57181 2008-06-10  Bruno Haible  <bruno@clisp.org>
57182
57183         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57184         for $? to work inside the trap command, with various /bin/sh-s.
57185         * tests/test-vc-list-files-cvs.sh: Likewise.
57186
57187 2008-06-10  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/acl-internal.h: Don't include gettext.h here.
57190         * lib/set-mode-acl.c: Include gettext.h here.
57191         * lib/copy-acl.c: Likewise.
57192
57193 2008-06-10  Bruno Haible  <bruno@clisp.org>
57194
57195         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57196         * lib/wait-process.c (wait_subprocess): Likewise.
57197         * lib/execute.h (execute): Add termsigp argument.
57198         * lib/execute.c (execute): Likewise.
57199         * lib/csharpcomp.c (compile_csharp_using_pnet,
57200         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57201         * lib/csharpexec.c (execute_csharp_using_pnet,
57202         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57203         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57204         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57205         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57206         is_jikes_present): Update.
57207         * lib/javaexec.c (execute_java_class): Update.
57208         * lib/javaversion.c (execute_and_read_line): Update.
57209         * NEWS: Document the changes.
57210         Reported by Eric Blake.
57211
57212 2008-06-10  Eric Blake  <ebb9@byu.net>
57213
57214         Add missing include.
57215         * tests/test-strstr.c (includes): Add <signal.h>.
57216         * tests/test-strcasestr.c (includes): Likewise.
57217         * tests/test-memmem.c (includes): Likewise.
57218
57219 2008-06-10  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/wait-process.c (wait_subprocess): Add an assertion.
57222
57223 2008-06-10  Bruno Haible  <bruno@clisp.org>
57224
57225         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57226
57227 2008-06-10  Bruno Haible  <bruno@clisp.org>
57228
57229         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57230         using alarm().
57231         * tests/test-strcasestr.c (main): Likewise.
57232         * tests/test-strstr.c (main): Likewise.
57233
57234 2008-06-09  Bruno Haible  <bruno@clisp.org>
57235
57236         Work around the Solaris 10 ACE ACLs ABI change.
57237         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57238         declare if ACL_NO_TRIVIAL is present.
57239         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57240         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57241         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57242         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57243         define if ACL_NO_TRIVIAL is present.
57244         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57245         and use the current ABI.
57246         (file_has_acl): Use same #if condition as elsewhere.
57247         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57248         in use, and use the current ABI.
57249         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57250         Reported by Jim Meyering.
57251
57252 2008-06-09  Eric Blake  <ebb9@byu.net>
57253
57254         Work around environments that (stupidly) ignore SIGALRM.
57255         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57256         before using alarm().
57257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57258         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57259         Reported by Ian Beckwith <ianb@erislabs.net>.
57260
57261         Produce autobuild blurb earlier in log.
57262         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57263
57264 2008-06-09  Jim Meyering  <meyering@redhat.com>
57265         and OndÅ™ej Vašík  <ovasik@redhat.com>
57266
57267         utimens.c: correct kernel bug work-around
57268         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57269         failure, not success, and the kernel bug we're trying to work
57270         around affects not just the utimensat call, but also the fallback
57271         futimens call.
57272         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57273         not success.
57274         [HAVE_FUTIMENS]: Use the same work-around, here.
57275
57276 2008-06-09  Jim Meyering  <meyering@redhat.com>
57277
57278         add more guards around definition of ACE_-related code
57279         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57280         ALLOW and ACE_OWNER are also defined.
57281
57282 2008-06-08  Bruno Haible  <bruno@clisp.org>
57283
57284         * lib/acl-internal.h: Add me as co-author.
57285         * lib/file-has-acl.c: Likewise.
57286         * lib/set-mode-acl.c: Likewise.
57287         * lib/copy-acl.c: Likewise.
57288
57289 2008-06-08  Bruno Haible  <bruno@clisp.org>
57290
57291         Add support for AIX ACLs.
57292         * lib/acl-internal.h (acl_nontrivial): New declaration.
57293         * lib/file-has-acl.c (acl_nontrivial): New function.
57294         (file_has_acl): Add implementation using AIX 4 ACL API.
57295         * lib/set-mode-acl.c (qset_acl): Likewise.
57296         * lib/copy-acl.c (qcopy_acl): Likewise.
57297
57298 2008-06-08  Bruno Haible  <bruno@clisp.org>
57299
57300         Add support for HP-UX ACLs.
57301         * lib/acl-internal.h (acl_nontrivial): New declaration.
57302         * lib/file-has-acl.c (acl_nontrivial): New function.
57303         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57304         * lib/set-mode-acl.c (qset_acl): Likewise.
57305         * lib/copy-acl.c (qcopy_acl): Likewise.
57306
57307 2008-06-08  Bruno Haible  <bruno@clisp.org>
57308
57309         Add support for Cygwin ACLs.
57310         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57311         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57312         the chmod_or_fchmod call.
57313         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57314
57315 2008-06-08  Bruno Haible  <bruno@clisp.org>
57316
57317         Fix bug with setuid modes in Solaris 10+ code.
57318         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57319         succeeded, when the mode contains some special bits.
57320
57321 2008-06-08  Bruno Haible  <bruno@clisp.org>
57322
57323         Add support for Solaris 7..10 ACLs.
57324         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57325         declarations.
57326         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57327         functions.
57328         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57329         * lib/set-mode-acl.c (qset_acl): Likewise.
57330         * lib/copy-acl.c (qcopy_acl): Likewise.
57331
57332 2008-06-08  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57335         declaration.
57336         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57337         (acl_access_nontrivial): Remove MacOS X case.
57338         (file_has_acl): Use acl_extended_nontrivial.
57339         * lib/copy-acl.c (qcopy_acl): Likewise.
57340
57341 2008-06-08  Bruno Haible  <bruno@clisp.org>
57342
57343         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57344
57345 2008-06-08  Jim Meyering  <meyering@redhat.com>
57346
57347         * modules/acl (Maintainer): Add Bruno Haible.
57348
57349 2008-06-07  Bruno Haible  <bruno@clisp.org>
57350
57351         Improve support for Tru64 ACLs.
57352         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57353         ACL on OSF/1.
57354
57355 2008-06-07  Bruno Haible  <bruno@clisp.org>
57356
57357         Add support for MacOS X ACLs.
57358         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57359         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57360         * lib/set-mode-acl.c (qset_acl): Likewise.
57361         * lib/copy-acl.c (qcopy_acl): Likewise.
57362
57363 2008-06-07  Bruno Haible  <bruno@clisp.org>
57364
57365         Fix memory leak introduced on 2008-05-22.
57366         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57367         use.
57368
57369 2008-06-07  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57372         to construct an empty ACL.
57373
57374 2008-06-07  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57377         precisely.
57378         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57379
57380 2008-06-07  Bruno Haible  <bruno@clisp.org>
57381
57382         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57383         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57384
57385 2008-06-07  Bruno Haible  <bruno@clisp.org>
57386
57387         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57388         regardless of POSIX.
57389         * doc/posix-functions/_longjmp.texi: Likewise.
57390         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57391         SystemV platform in this case.
57392
57393 2008-06-06  Eric Blake  <ebb9@byu.net>
57394
57395         Document abort() bugs.
57396         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57397
57398         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57399         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57400         sigsetjmp.
57401         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57402         siglongjmp, but only as a macro.
57403         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57404         is obsolete.
57405         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57406
57407         Tweak documentation to cover cygwin argz bugs.
57408         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57409         argz bug fix; no code change needed since no cygwin releases
57410         occurred between the last fix and the bug being tested.
57411         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57412         module and recently fixed cygwin bugs.
57413         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57414         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57415         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57416         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57417         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57418         Likewise.
57419         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57420         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57421         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57422         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57423         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57424         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57425         Likewise.
57426
57427         Avoid gcc warning on cygwin.
57428         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57429         !ACL_NO_TRIVIAL]: Avoid unused variable.
57430
57431 2008-06-05  Eric Blake  <ebb9@byu.net>
57432
57433         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57434         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57435         git-version-gen fails to come up with a version.
57436         Reported by Simon Josefsson.
57437
57438 2008-06-05  Jim Meyering  <meyering@redhat.com>
57439             Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         utimens.c: work around a probable Linux kernel bug
57442         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57443         appears to be a kernel bug that causes utimensat to return 280
57444         instead of 0, indicating success.
57445
57446 2008-06-04  Bruno Haible  <bruno@clisp.org>
57447
57448         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57449         2008-06-01 commit.
57450
57451 2008-06-04  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57454         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57455         (file_has_acl): Use it. Save errno afterwards.
57456         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57457
57458 2008-06-03  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57461         draft code. Simplify #ifs.
57462         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57463         Put Solaris code after POSIX-draft code. Fix comments regarding
57464         Solaris 10, HP-UX. Mention Cygwin.
57465         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57466
57467 2008-06-03  Eric Blake  <ebb9@byu.net>
57468
57469         Provide fallback for older kernels.
57470         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57471         Provide runtime fallback if kernel lacks support.
57472         Reported by Mike Frysinger.
57473
57474 2008-06-02  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57477         it exists.
57478
57479 2008-06-02  Bruno Haible  <bruno@clisp.org>
57480
57481         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57482         * lib/copy-acl.c (qcopy_acl): Update comment.
57483
57484 2008-06-02  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57487         like ACL APIs.
57488
57489 2008-06-02  Bruno Haible  <bruno@clisp.org>
57490
57491         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57492         * tests/test-set-mode-acl.sh: Likewise.
57493         * tests/test-copy-acl.sh: Likewise.
57494         * tests/test-copy-file.sh: Likewise.
57495
57496 2008-06-02  Bruno Haible  <bruno@clisp.org>
57497
57498         * tests/test-file-has-acl.sh: Remove unused code.
57499
57500 2008-06-01  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57503         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57504         messages.
57505         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57506
57507 2008-06-01  Bruno Haible  <bruno@clisp.org>
57508
57509         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57510         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57511         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57512         APIs.
57513         * modules/acl-tests (configure.ac): Remove tests now contained in
57514         m4/acl.m4.
57515
57516 2008-06-02  Jim Meyering  <meyering@redhat.com>
57517
57518         announce-gen: use a better key-server host name
57519         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57520         it may be more consistently reliable.  Suggested by Werner Koch
57521         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57522
57523 2008-06-01  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57526         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57527
57528 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57529
57530         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57531
57532 2008-06-01  Bruno Haible  <bruno@clisp.org>
57533
57534         New ACL tests.
57535         * tests/test-file-has-acl.sh: New file.
57536         * tests/test-file-has-acl.c: New file.
57537         * tests/test-set-mode-acl.sh: New file.
57538         * tests/test-set-mode-acl.c: New file.
57539         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57540         * tests/test-copy-acl.c: New file.
57541         * modules/acl-tests: New file, based on modules/copy-file-tests.
57542         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57543         (Depends-on): Add acl-tests.
57544         (configure.ac): Remove checks.
57545         (Makefile.am): Don't create test-sameacls program here any more.
57546
57547 2008-06-01  Bruno Haible  <bruno@clisp.org>
57548
57549         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57550         * tests/test-sameacls.c: Include progname.h.
57551         (main): Invoke set_program_name. Portability fixes for MacOS X,
57552         Solaris, HP-UX.
57553
57554 2008-06-01  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57557         function.
57558         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57559
57560 2008-06-01  Bruno Haible  <bruno@clisp.org>
57561
57562         * modules/rpmatch (Depends-on): Add strdup.
57563
57564 2008-06-01  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/pipe.c: Include unistd-safer.h.
57567         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57568         * modules/pipe (Depends-on): Add unistd-safer.
57569
57570 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57571
57572         * modules/autobuild (configure.ac): Call AB_INIT.
57573
57574 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57575
57576         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57577         Suggested by Bruno Haible <bruno@clisp.org>.
57578
57579 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57580
57581         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57582         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57583         <bruno@clisp.org>.
57584
57585 2008-05-29  Eric Blake  <ebb9@byu.net>
57586
57587         Prefer new POSIX 200x interfaces over futimesat.
57588         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57589         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57590         when available.
57591         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57592
57593 2008-05-28  Bruno Haible  <bruno@clisp.org>
57594
57595         * modules/stpcpy (License): Change to LGPLv2+.
57596         Requested by David Lutterkort <dlutter@redhat.com>.
57597
57598 2008-05-27  Bruno Haible  <bruno@clisp.org>
57599
57600         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57601         current mingw.
57602         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57603
57604 2008-05-27  Bruno Haible  <bruno@clisp.org>
57605
57606         * modules/iconv_open (Link): New section, from module 'iconv'.
57607         * modules/striconv (Link): Likewise.
57608         * modules/striconveh (Link): Likewise.
57609         * modules/xstriconv (Link): Likewise.
57610         * modules/unicodeio (Link): Likewise.
57611         * modules/propername (Link): Likewise.
57612         Reported by Jim Meyering.
57613
57614 2008-05-26  Jim Meyering  <meyering@redhat.com>
57615
57616         sha256: do not artificially restrict buffer length to be < 2^32
57617         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57618         uint32_t to size_t.
57619         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57620         to match.
57621
57622         avoid unaligned access errors, e.g., on sparc
57623         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57624         direct access through a possibly-unaligned uint64* pointer.
57625         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57626         direct access through a possibly-unaligned uint32* pointer.
57627         Prompted by this patch from Tom "spot" Callaway:
57628         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57629
57630         sha512.c: fix typo in comment
57631         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57632
57633 2008-05-25  Bruno Haible  <bruno@clisp.org>
57634
57635         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57636         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57637         (Makefile.am): Update lib_SOURCES.
57638
57639 2008-05-25  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57642
57643 2008-05-25  Jim Meyering  <meyering@redhat.com>
57644
57645         useless-if-before-free: freed expr may have white-space differences
57646         * build-aux/useless-if-before-free: Recognize cases in which the
57647         freed expression differs from the tested one in embedded white
57648         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57649         $1 was used, so we can't make any regexp shy.  Improved tests now
57650         detect this.
57651
57652         useless-if-before-free: accept white space in the expression.
57653         * build-aux/useless-if-before-free: For now, any white space
57654         in the expression must be identical in the free argument.
57655
57656         useless-if-before-free: efficiency tweak
57657         * build-aux/useless-if-before-free: Make the expression-matching
57658         regexp "shy".
57659         Make the *outer* regexp shy, not the expr-matching one.
57660
57661         update code-in-comment to accept cast of free arg
57662         * build-aux/useless-if-before-free: Update regexp.
57663
57664 2008-05-25  Bruno Haible  <bruno@clisp.org>
57665
57666         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57667         * modules/copy-file-tests (Files, Makefile.am): Update.
57668         * tests/test-copy-file.c (func_test_copy): Update.
57669
57670 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57671
57672         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57673
57674 2008-05-23  Bruno Haible  <bruno@clisp.org>
57675
57676         Improve support for ACLs on OSF/1.
57677         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57678         Remove fallback for unknown flavors of ACLs.
57679
57680 2008-05-22  Bruno Haible  <bruno@clisp.org>
57681
57682         Add support for ACLs on OSF/1.
57683         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57684         replacements.
57685         (acl_free_text): New macro fallback.
57686         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57687         acl_free.
57688         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57689         acl_free_text function. Require AC_C_INLINE.
57690
57691 2008-05-22  Bruno Haible  <bruno@clisp.org>
57692
57693         Make copy_acl work on MacOS X 10.5.
57694         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57695         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57696         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57697         If MODE_INSIDE_ACL, don't assume that every system has the same text
57698         representation for ACLs as FreeBSD.
57699         * lib/copy-acl.c (copy_acl): Add support for platforms with
57700         !MODE_INSIDE_ACL.
57701         * lib/file-has-acl.c (file_has_acl): Likewise.
57702         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57703         FreeBSD, MacOS X, or IRIX, respectively.
57704
57705 2008-05-22  Bruno Haible  <bruno@clisp.org>
57706
57707         * lib/acl.h: Don't include <sys/acl.h>.
57708         (GETACLCNT): Move fallback to lib/acl-internal.h.
57709         * lib/acl-internal.h: Include <sys/acl.h> here.
57710         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57711
57712 2008-05-22  Bruno Haible  <bruno@clisp.org>
57713
57714         Split off copy_acl function to separate file.
57715         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57716         * lib/acl.c (copy_acl): Moved function to separate file.
57717         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57718         * modules/acl (Files): Add lib/copy-acl.c.
57719         (Makefiles.am): Augment lib_SOURCES.
57720
57721 2008-05-22  Bruno Haible  <bruno@clisp.org>
57722
57723         * modules/copy-file-tests: New file.
57724         * tests/test-copy-file.sh: New file.
57725         * tests/test-copy-file.c: New file.
57726         * tests/test-copy-file-sameacls.c: New file.
57727
57728 2008-05-22  Eric Blake  <ebb9@byu.net>
57729
57730         Avoid gcc warning.
57731         * tests/test-memcmp.c (main): Pass NULL indirectly.
57732
57733 2008-05-21  Bruno Haible  <bruno@clisp.org>
57734
57735         Add reference doc about ACLs.
57736         * doc/acl-resources.txt: New file.
57737         * doc/acl-cygwin.txt: New file.
57738
57739 2008-05-21  Bruno Haible  <bruno@clisp.org>
57740
57741         Avoid one more warning from gcc.
57742         * lib/vasnprintf.c (IF_LINT): Update comments.
57743         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57744
57745 2008-05-21  Jim Meyering  <meyering@redhat.com>
57746
57747         avoid a warning from gcc
57748         * lib/vasnprintf.c (IF_LINT): Define.
57749         (scale10_round_decimal_long_double):
57750         Use it to avoid a "may be used uninitialized" warning.
57751         (scale10_round_decimal_double): Likewise.
57752
57753 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57754
57755         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57756         declared.
57757
57758 2008-05-20  Bruno Haible  <bruno@clisp.org>
57759
57760         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57761         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57762
57763 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57764
57765         * modules/memcmp-tests: New file.
57766         * tests/test-memcmp.c: New file.
57767
57768 2008-05-19  Bruno Haible  <bruno@clisp.org>
57769
57770         * modules/propername (Notice, configure.ac): Put quoted "..." into
57771         --keyword option.
57772         * lib/propername.h: Update comments accordingly.
57773         Reported by Eric Blake.
57774
57775 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57776
57777         * modules/getpass-gnu (Depends-on): Add fseeko.
57778
57779 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57780
57781         * modules/base64-tests: New file.
57782
57783 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57784
57785         * lib/base64.c (base64_decode_ctx): If a decode context structure
57786         was passed in use it to ignore newlines.  If a context structure
57787         was _not_ passed in, continue to treat newlines as garbage (this
57788         is the historical behavior).  Formerly base64_decode.
57789         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57790         takes a decode context structure.
57791         * lib/base64.h (base64_decode): Macro for four-argument calls.
57792         (base64_decode_alloc): Likewise.
57793         * lib/base64.c (base64_decode_ctx): If a decode context structure
57794         was passed in use it to ignore newlines.  If a context structure
57795         was _not_ passed in, continue to treat newlines as garbage (this
57796         is the historical behavior).  Formerly base64_decode.
57797         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57798         takes a decode context structure.
57799         * lib/base64.h (base64_decode): Macro for four-argument calls.
57800         (base64_decode_alloc): Likewise.
57801
57802 2008-05-19  Jim Meyering  <meyering@redhat.com>
57803
57804         avoid a warning from gcc
57805         * lib/trim.c (IF_LINT): Define.
57806         (trim2): Use it to avoid a "may be used uninitialized" warning.
57807
57808         Fix doc typo.
57809         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57810
57811 2008-05-19  Bruno Haible  <bruno@clisp.org>
57812
57813         * doc/glibc-functions/getpass.texi: Document limits of other
57814         implementations.
57815
57816 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57817             Bruno Haible <bruno@clisp.org>
57818
57819         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57820
57821 2008-05-18  Bruno Haible  <bruno@clisp.org>
57822
57823         * modules/propername: New file, from GNU gettext.
57824         * lib/propername.h: New file, from GNU gettext.
57825         * lib/propername.c: New file, from GNU gettext.
57826         * MODULES.html.sh (Internationalization functions): Add propername.
57827
57828 2008-05-16  Jim Meyering  <meyering@redhat.com>
57829             Bruno Haible  <bruno@clisp.org>
57830
57831         Avoid some warnings from "gcc -Wshadow".
57832         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57833
57834 2008-05-15  Eric Blake  <ebb9@byu.net>
57835
57836         Extend previous patch to cygwin 1.7.0.
57837         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57838         fast implementation in cygwin >= 1.7.0.
57839         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57841
57842 2008-05-15  Bruno Haible  <bruno@clisp.org>
57843
57844         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57845         implementation in glibc >= 2.9.
57846         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57848
57849 2008-05-15  Bruno Haible  <bruno@clisp.org>
57850
57851         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57852         (Unicode string functions): Add unilbrk/*.
57853         Reported by Karl Berry.
57854
57855 2008-05-15  Eric Blake  <ebb9@byu.net>
57856
57857         Fix violation of <stdbool.h> replacement in regex.
57858         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57859         * lib/regexec.c (re_search_internal): Likewise.
57860         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57861
57862 2008-05-15  Jim Meyering  <meyering@redhat.com>
57863
57864         avoid distracting test output when git or cvs is not found
57865         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57866         * tests/test-vc-list-files-git.sh: Likewise.
57867
57868 2008-05-15  Eric Blake  <ebb9@byu.net>
57869
57870         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57871         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57872         glibc version.
57873         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57874         * doc/posix-functions/strstr.texi (strstr): Likewise.
57875         * lib/str-two-way.h (MAX): Sychronize with glibc.
57876
57877 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57878
57879         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57880         opr.ctx_type.
57881         (calc_first): Initialize constraint field.
57882         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57883         Fix grammar.
57884         (duplicate_node): Merge constraint field for all node types.
57885         (calc_eclosure_iter): Look at constraint field for all node types.
57886         * lib/regex_internal.c (create_cd_newstate): Don't look at
57887         opr.ctx_type.
57888
57889 2008-05-14  Bruno Haible  <bruno@clisp.org>
57890
57891         Help GCC to do better code generation.
57892         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57893         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57894         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57895         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57896         Declare with attribute 'malloc' if supported.
57897
57898 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57899
57900         use "echo STR|wc -c" rather than unportable "expr length STR"
57901         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57902         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57903
57904 2008-05-14  Jim Meyering  <meyering@redhat.com>
57905
57906         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57907         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57908         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57909         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57910         via Collin Lasse.
57911
57912 2008-05-14  Eric Blake  <ebb9@byu.net>
57913
57914         Avoid quadratic growth in gl_LIBSOURCES.
57915         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57916         Suggested by Bruno Haible.
57917
57918         Test xmemdup0.
57919         * modules/xmemdup0-tests: New file.
57920         * tests/test-xmemdup0.c: Likewise.
57921
57922 2008-05-13  Eric Blake  <ebb9@byu.net>
57923
57924         Split xmemdup0 into its own module.
57925         * modules/xmemdup0: New file.
57926         * lib/xmemdup0.h: Likewise.
57927         * lib/xmemdup0.c: Likewise.
57928         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57929         * lib/xalloc.h (xmemdup0): Remove.
57930         * lib/xmalloc.c (xmemdup0): Likewise.
57931
57932 2008-05-13  Eric Blake  <ebb9@byu.net>
57933             Bruno Haible  <bruno@clisp.org>
57934
57935         Reduce number of forks required during autoconf.
57936         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57937         and gl_LIBSOURCES_DIR.
57938         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57939         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57940         m4_syscmd per file.
57941         <m4_foreach_w>: Move...
57942         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57943
57944 2008-05-13  Eric Blake  <ebb9@byu.net>
57945
57946         * gnulib-tool: Fix various comment typos.
57947
57948 2008-05-12  Bruno Haible  <bruno@clisp.org>
57949
57950         Tailor the linebreaking algorithm.
57951         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57952
57953 2008-05-12  Bruno Haible  <bruno@clisp.org>
57954
57955         Update to Unicode 5.0.0.
57956         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57957         LBP_JV, LBP_JT. Redistribute values.
57958         (unilbrk_table): Change size.
57959         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57960         Unicode TR#14 rev. 22.
57961         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57962         LBP_JV, LBP_JT. Redistribute values.
57963         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57964         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57965         Update.
57966         * lib/unilbrk/lbrkprop1.h: Regenerated.
57967         * lib/unilbrk/lbrkprop2.h: Regenerated.
57968         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57969         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57970         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57971         Likewise.
57972         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57973         Likewise.
57974         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57975         result.
57976         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57977         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57978         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57979         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57980         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57981         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57982
57983 2008-05-11  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57986
57987 2008-05-11  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57990         * modules/unilbrk/gen-lbrk: New file.
57991
57992 2008-05-11  Bruno Haible  <bruno@clisp.org>
57993
57994         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57995         * m4/sha512.m4 (gl_SHA512): Likewise.
57996
57997 2008-05-11  Jim Meyering  <meyering@redhat.com>
57998
57999         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58000         * modules/crypto/sha256: New file.
58001         * modules/crypto/sha512: Likewise.
58002         * lib/sha256.c: Likewise.
58003         * lib/sha256.h: Likewise.
58004         * lib/sha512.c: Likewise.
58005         * lib/sha512.h: Likewise.
58006         * lib/u64.h: Likewise.
58007         * m4/sha256.m4: Likewise.
58008         * m4/sha512.m4: Likewise.
58009         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58010
58011 2008-05-10  Bruno Haible  <bruno@clisp.org>
58012
58013         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58014         (Input/Output <stdio.h>): Add xprintf.
58015         (Signal handling <signal.h>): Add strsignal.
58016         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58017         (Core language properties): Add func.
58018         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58019         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58020         strings.
58021         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58022         (Input/output): New section.
58023         (File system functions): Add openat-die, stat-macros.
58024         (Networking functions): Add sockets.
58025         (Unicode string functions): Add unictype/*.
58026         (Support for building libraries and executables): Add gperf.
58027         (Support for building documentation): Add agpl-3.0.
58028         (Misc): Add nocrash.
58029
58030 2008-05-10  Bruno Haible  <bruno@clisp.org>
58031
58032         * modules/unictype/gen-ctype: New file.
58033
58034 2008-05-10  Jim Meyering  <meyering@redhat.com>
58035
58036         Make chdir-safer.c more efficient on a system with no symlinks.
58037         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58038         also if ELOOP is zero.  Suggested by Bruno Haible.
58039
58040         Make chdir-safer.c slightly safer.
58041         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58042         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58043
58044         Avoid compile failure on systems without ELOOP (like mingw).
58045         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58046         Reported by Bruno Haible.
58047
58048 2008-05-10  Bruno Haible  <bruno@clisp.org>
58049
58050         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58051         (is_utf8_encoding): Use a case-insensitive comparison.
58052         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58053         streq.
58054
58055 2008-05-10  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58058         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58059         * lib/unilbrk/ulc-common.h (iconv_string_length,
58060         iconv_string_keeping_offsets): Remove declarations.
58061         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58062         Don't include <iconv.h>, streq.h, xsize.h.
58063         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58064         conversion.
58065         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58066         <iconv.h>, streq.h, xsize.h.
58067         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58068         conversion.
58069         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58070         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58071         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58072         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58073
58074 2008-05-10  Bruno Haible  <bruno@clisp.org>
58075
58076         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58077         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58078
58079         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58080         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58081
58082         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58083         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58084
58085         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58086         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58087
58088         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58089         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58090
58091         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58092         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58093
58094         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58095         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58096
58097         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58098         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58099
58100 2008-05-10  Bruno Haible  <bruno@clisp.org>
58101
58102         Split up 'linebreak' module.
58103         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58104         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58105         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58106         modifications.
58107         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58108         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58109         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58110         lib/linebreak.c.
58111         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58112         lib/linebreak.c.
58113         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58114         lib/linebreak.c.
58115         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58116         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58117         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58118         lib/linebreak.c.
58119         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58120         lib/linebreak.c.
58121         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58122         lib/linebreak.c.
58123         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58124         lib/linebreak.c.
58125         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58126         lib/linebreak.c.
58127         * modules/unilbrk/base: New file.
58128         * modules/unilbrk/tables: New file.
58129         * modules/unilbrk/u8-possible-linebreaks: New file.
58130         * modules/unilbrk/u16-possible-linebreaks: New file.
58131         * modules/unilbrk/u32-possible-linebreaks: New file.
58132         * modules/unilbrk/ulc-common: New file.
58133         * modules/unilbrk/ulc-possible-linebreaks: New file.
58134         * modules/unilbrk/u8-width-linebreaks: New file.
58135         * modules/unilbrk/u16-width-linebreaks: New file.
58136         * modules/unilbrk/u32-width-linebreaks: New file.
58137         * modules/unilbrk/ulc-width-linebreaks: New file.
58138         * lib/linebreak.h: Remove file.
58139         * lib/linebreak.c: Remove file.
58140         * m4/linebreak.m4: Remove file.
58141         * modules/linebreak: Remove file.
58142         * NEWS: Mention the changes.
58143
58144 2008-05-09  Eric Blake  <ebb9@byu.net>
58145
58146         Add xmemdup0.
58147         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58148         implementation.
58149         * lib/xmalloc.c (xmemdup0): New C implementation.
58150
58151 2008-05-08  Bruno Haible  <bruno@clisp.org>
58152
58153         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58154
58155 2008-05-07  Eric Blake  <ebb9@byu.net>
58156
58157         Support cross-compilation of <wctype.h>.
58158         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58159         AC_CACHE_CHECK.
58160
58161 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58162
58163         * build-aux/vc-list-files: Add support for bzr.
58164
58165 2008-05-03  Jim Meyering  <meyering@redhat.com>
58166
58167         avoid failed assertion with tight malloc
58168         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58169
58170 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58171
58172         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58173         are needed from arpa/inet.h.
58174         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58175         Reported by Bruno Haible.
58176
58177 2008-05-02  Jim Meyering  <meyering@redhat.com>
58178
58179         avoid compilation error on FreeBSD 6
58180         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58181
58182 2008-05-01  Jim Meyering  <meyering@redhat.com>
58183
58184         useless-if-before-free: correct --help's exit status description
58185         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58186         for one or more matches, etc.  Reported by Bruno Haible.
58187
58188         vc-list-files: make the stand-alone gnulib test work
58189         * modules/vc-list-files-tests (configure.ac):
58190         Define and AC_SUBST abs_aux_dir.
58191         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58192         $(abs_top_srcdir) to each script and having each of them
58193         duplicate the work of setting PATH, set PATH here, using
58194         the new variable, abs_aux_dir instead.
58195         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58196         * tests/test-vc-list-files-git.sh: Likewise.
58197         Reported by Bruno Haible.
58198
58199 2008-05-01  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58202         reallocation. Rename 'done' to 'found_delimiter'.
58203
58204 2008-05-01  Jim Meyering  <meyering@redhat.com>
58205
58206         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58207         * build-aux/vc-list-files: Use `...`, not $(...).
58208
58209 2008-04-30  Jim Meyering  <meyering@redhat.com>
58210
58211         add tests for vc-list-files
58212         * modules/vc-list-files-tests: New module.
58213         * tests/test-vc-list-files-cvs.sh: New file.
58214         * tests/test-vc-list-files-git.sh: New file.
58215
58216         avoid a warning from gcc
58217         * lib/getndelim2.c (IF_LINT): Define.
58218         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58219
58220         vc-list-files: work properly with build-aux/cvsu, too
58221         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58222         to all cvs-based clauses.
58223
58224         vc-list-files: work properly in the CVS+awk case, too
58225         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58226
58227         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58228         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58229         take more than one file argument, so .  Add quotes, just in case $dir
58230         ever contains a shell meta-character.  Prompted by Soren Hansen in
58231         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58232
58233 2008-04-29  Eric Blake  <ebb9@byu.net>
58234
58235         Optimize getndelim2 to use block operations when possible.
58236         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58237         freadseek, and memchr2.
58238         * lib/getndelim2.c (getndelim2): Use them for block reads.
58239
58240 2008-04-29  Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58243         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58244         * modules/inet_ntop (Depends-on): Add extensions.
58245         * modules/inet_pton (Depends-on): Likewise.
58246         Reported by Simon Josefsson.
58247
58248 2008-04-29  Jim Meyering  <meyering@redhat.com>
58249
58250         When the is more than one match in a block, match all of them.
58251         * build-aux/useless-if-before-free: Iterate through each block
58252         until there are no more matches.
58253
58254         Fix broken useless-if-before-free script.
58255         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58256         the expression to match cast of argument to free-like function.
58257
58258 2008-04-29  Eric Blake  <ebb9@byu.net>
58259
58260         Use new header.
58261         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58262
58263 2008-04-29  Jim Meyering  <meyering@redhat.com>
58264
58265         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58266         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58267         by gnulib to exist and to declare e.g., inet_ntop.
58268         Don't include "inet_ntop.h", now removed.
58269
58270         * m4/arpa_inet_h.m4: Remove trailing blanks.
58271
58272 2008-04-29  Eric Blake  <ebb9@byu.net>
58273
58274         Silence valgrind on safe reads beyond potential array bounds.
58275         * lib/rawmemchr.valgrind: New file.
58276         * lib/strchrnul.valgrind: Likewise.
58277         * modules/rawmemchr (Files): Distribute new file.
58278         * modules/strchrnul (Files): Likewise.
58279         Suggested by Bruno Haible.
58280
58281 2008-04-29  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58284         (inet_ntop, inet_pton): Change portability warning's wording.
58285         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58286         Invoke gl_CHECK_NEXT_HEADERS.
58287         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58288         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58289         set ARPA_INET_H.
58290         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58291         * modules/arpa_inet (Description): No longer only for systems that
58292         lack it.
58293         (Depends-on): Add include_next.
58294         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58295         HAVE_ARPA_INET_H.
58296
58297 2008-04-29  Jim Meyering  <meyering@redhat.com>
58298
58299         * modules/mkdir (License): Re-license as LGPLv2+.
58300
58301 2008-04-29  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/rawmemchr (Maintainer): Set to Eric.
58304         * modules/strchrnul (Maintainer): Likewise.
58305
58306 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58307
58308         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58309         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58310
58311         * modules/arpa_inet (arpa/inet.h): Use them.
58312
58313 2008-04-28  Eric Blake  <ebb9@byu.net>
58314
58315         Test getndelim2.
58316         * modules/getndelim2-tests: New file.
58317         * tests/test-getndelim2.c: Likewise.
58318         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58319         stream.
58320         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58321
58322         * MODULES.html.sh: Document new module.
58323
58324 2008-04-20  Bruno Haible  <bruno@clisp.org>
58325
58326         * lib/c-stack.c (die): Use raise.
58327         * modules/c-stack (Depends-on): Add raise.
58328
58329 2008-04-28  Bruno Haible  <bruno@clisp.org>
58330
58331         Expect rpmatch to be declared.
58332         * lib/yesno.c (rpmatch): Remove declaration.
58333
58334         Declare rpmatch.
58335         * lib/stdlib.in.h (rpmatch): New declaration.
58336         * lib/rpmatch.c: Include <stdlib.h> first.
58337         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58338         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58340         HAVE_RPMATCH.
58341         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58343         (Include): Set to <stdlib.h>.
58344         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58345         HAVE_RPMATCH.
58346         * NEWS: Document the change.
58347
58348 2008-04-28  Bruno Haible  <bruno@clisp.org>
58349
58350         Change rpmatch to use nl_langinfo when appropriate.
58351         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58352         (N_): New macro.
58353         (localized_pattern): New function/macro.
58354         (try): Remove match, nomatch arguments. Copy the pattern into safe
58355         memory before caching it.
58356         (rpmatch): Use localized_pattern. Add translator comments.
58357         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58358         Suggested by Eric Blake.
58359         * modules/rpmatch (Depends-on): Add stdbool.
58360
58361 2008-04-28  Eric Blake  <ebb9@byu.net>
58362
58363         Add rawmemchr module, matching glibc.
58364         * modules/string (Makefile.am): New indicator.
58365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58366         * lib/string.in.h (rawmemchr): Declare when appropriate.
58367         * modules/rawmemchr: New file.
58368         * m4/rawmemchr.m4: Likewise.
58369         * lib/rawmemchr.c: Likewise.
58370         * modules/rawmemchr-tests: Likewise.
58371         * tests/test-rawmemchr.c: Likewise.
58372         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58373         module.
58374         * modules/strchrnul (Depends-on): Add rawmemchr.
58375         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58376
58377         Whitespace cleanup.
58378         * tests/test-strchrnul.c: Reindent.
58379         * lib/strchrnul.c: Likewise.
58380
58381         Optimize and test strchrnul.
58382         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58383         * modules/strchrnul-tests: New file.
58384         * tests/test-strchrnul.c: Likewise.
58385
58386         Remove intprops dependency.
58387         * modules/memchr (Depends-on): Remove intprops.
58388         * modules/memrchr (Depends-on): Likewise.
58389         * modules/memchr2 (Depends-on): Likewise.
58390         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58391         * lib/memrchr.c (__memrchr): Likewise.
58392         * lib/memrchr2.c (memchr2): Likewise.
58393         Reported by Simon Josefsson.
58394
58395 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58396
58397         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58398         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58399
58400 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58401
58402         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58403
58404         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58405
58406         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58407
58408         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58409         declarations.
58410         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58411
58412         * m4/inet_pton.m4: Don't check for header files.
58413
58414         * m4/inet_ntop.m4: Don't check for header files.
58415
58416 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58417
58418         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58419         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58420         trigger for cygwin).
58421         Reported by Bruno Haible  <bruno@clisp.org>.
58422
58423 2008-04-28  Bruno Haible  <bruno@clisp.org>
58424
58425         * doc/posix-functions/strdup.texi: Mention mingw problem.
58426
58427 2008-04-27  Bruno Haible  <bruno@clisp.org>
58428
58429         * modules/stat-time-tests (Depends-on): Add sleep.
58430         * tests/test-stat-time.c (force_unlink): New function.
58431         (cleanup): Use it.
58432         (test_mtime): Remove the ctime related tests.
58433         (test_ctime): New function, containing the ctime related tests.
58434         (main): Call test_ctime, except on native Windows platforms.
58435
58436 2008-04-27  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/rpmatch.c (rpmatch): Add some comments.
58439         Reported by James Youngman <jay@gnu.org>.
58440
58441 2008-04-27  Bruno Haible  <bruno@clisp.org>
58442
58443         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58444         quiet NaNs.
58445
58446 2008-04-27  Bruno Haible  <bruno@clisp.org>
58447
58448         Make test-yesno.sh work on mingw.
58449         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58450         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58451         (main): Set stdin to binary mode.
58452         * modules/yesno-tests (Depends-on): Add binary-io.
58453
58454 2008-04-27  Bruno Haible  <bruno@clisp.org>
58455
58456         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58457         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58458         argument that lie outside the IEEE 854 domain.
58459         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58460         (gl_ISFINITE): Use it.
58461         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58462
58463 2008-04-27  Bruno Haible  <bruno@clisp.org>
58464
58465         Allow local renaming in config.h.
58466         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58467
58468 2008-04-27  Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/memchr.c (__memchr): Change type of 'i'.
58471         * lib/memchr2.c (memchr2): Likewise.
58472
58473 2008-04-26  Eric Blake  <ebb9@byu.net>
58474         and Bruno Haible  <bruno@clisp.org>
58475
58476         Optimize and test memrchr.
58477         * modules/memrchr (Depends-on): Add intprops.
58478         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58479         * modules/memrchr-tests: New file.
58480         * tests/test-memrchr.c: New file.
58481
58482 2008-04-26  Bruno Haible  <bruno@clisp.org>
58483
58484         Add tentative support for DragonFly BSD.
58485         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58486         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58487         fp.
58488         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58489         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58490         * lib/fpurge.c (fpurge): Likewise.
58491         * lib/freadable.c (freaadable): Likewise.
58492         * lib/freadahead.c (freadahead): Likewise.
58493         * lib/freading.c (freading): Likewise.
58494         * lib/freadptr.c (freadptr): Likewise.
58495         * lib/freadseek.c (freadptrinc): Likewise.
58496         * lib/fseeko.c (fseeko): Likewise.
58497         * lib/fseterr.c (fseterr): Likewise.
58498         * lib/fwritable.c (fwritable): Likewise.
58499         * lib/fwriting.c (fwriting): Likewise.
58500
58501 2008-04-26  Bruno Haible  <bruno@clisp.org>
58502
58503         * lib/stdio-impl.h: New file.
58504         * lib/fbufmode.c: Include stdio-impl.h.
58505         (fbufmode): Use fp_, remove redundant #defines.
58506         * lib/fflush.c: Include stdio-impl.h.
58507         (clear_ungetc_buffer): Remove redundant #defines.
58508         * lib/fpurge.c: Include stdio-impl.h.
58509         (fpurge): Remove redundant #defines.
58510         * lib/freadable.c: Include stdio-impl.h.
58511         (freadable): Remove redundant #defines.
58512         * lib/freadahead.c: Include stdio-impl.h.
58513         (freadahead): Remove redundant #defines.
58514         * lib/freading.c: Include stdio-impl.h.
58515         (freading): Remove redundant #defines.
58516         * lib/freadptr.c: Include stdio-impl.h.
58517         (freadptr): Remove redundant #defines.
58518         * lib/freadseek.c: Include stdio-impl.h.
58519         (freadptrinc): Remove redundant #defines.
58520         * lib/fseeko.c: Include stdio-impl.h.
58521         (rpl_fseeko): Remove redundant #defines.
58522         * lib/fseterr.c: Include stdio-impl.h.
58523         (fseterr): Remove redundant #defines.
58524         * lib/fwritable.c: Include stdio-impl.h.
58525         (fwritable: Remove redundant #defines.
58526         * lib/fwriting.c: Include stdio-impl.h.
58527         (fwriting): Remove redundant #defines.
58528         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58529         * modules/fflush (Files): Likewise.
58530         * modules/fpurge (Files): Likewise.
58531         * modules/freadable (Files): Likewise.
58532         * modules/freadahead (Files): Likewise.
58533         * modules/freading (Files): Likewise.
58534         * modules/freadptr (Files): Likewise.
58535         * modules/freadseek (Files): Likewise.
58536         * modules/fseeko (Files): Likewise.
58537         * modules/fseterr (Files): Likewise.
58538         * modules/fwritable (Files): Likewise.
58539         * modules/fwriting (Files): Likewise.
58540
58541 2008-04-26  Bruno Haible  <bruno@clisp.org>
58542
58543         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58544         restore_seek_optimization, update_fpos_cache): New functions, extracted
58545         from rpl_fflush.
58546         (rpl_fflush): Use them.
58547         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58548         (gl_REPLACE_FFLUSH): Use it.
58549
58550 2008-04-26  Bruno Haible  <bruno@clisp.org>
58551
58552         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58553         on Solaris.
58554         * tests/test-xstrtoimax.sh: Likewise.
58555         * tests/test-xstrtoumax.sh: Likewise.
58556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58557
58558 2008-04-26  Bruno Haible  <bruno@clisp.org>
58559
58560         * modules/memchr-tests: New file.
58561         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58562
58563 2008-04-26  Eric Blake  <ebb9@byu.net>
58564             Bruno Haible  <bruno@clisp.org>
58565
58566         * lib/memchr.c: Include intprops.h.
58567         (__memchr): Optimize parallel detection of matching bytes. Rename local
58568         variables. Add explanatory comments.
58569
58570 2008-04-26  Bruno Haible  <bruno@clisp.org>
58571
58572         Fix module 'memchr', broken since 2000-10-28.
58573         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58574
58575 2008-04-26  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58578         comments.
58579
58580 2008-04-25  Eric Blake  <ebb9@byu.net>
58581
58582         Use native fstatat on cygwin 1.7.0.
58583         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58584         first.
58585
58586 2008-04-23  Eric Blake  <ebb9@byu.net>
58587
58588         Improve memchr2 performance.
58589         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58590         NUL bytes.
58591         * modules/memchr2 (Depends-on): Use intprops.h.
58592
58593 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58594
58595         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58596         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58597         <blp@cs.stanford.edu>.
58598
58599 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58600
58601         * lib/arpa_inet.in.h: New file.
58602
58603         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58604         (Makefile.am): Sed in substitute header file.
58605
58606         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58607         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58608
58609         * modules/inet_ntop (configure.ac): Use
58610         gl_ARPA_INET_MODULE_INDICATOR.
58611
58612         * modules/inet_pton (configure.ac): Use
58613         gl_ARPA_INET_MODULE_INDICATOR.
58614
58615 2008-04-22  Jim Meyering  <meyering@redhat.com>
58616
58617         * modules/verify (License): Re-license as LGPLv2+.
58618
58619 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58620
58621         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58622         parameter to void* as per POSIX standard (MinGW uses char*).
58623
58624 2008-04-21  Bruno Haible  <bruno@clisp.org>
58625
58626         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58627         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58628         Define to replacements if REPLACE_ISWCNTRL is 1.
58629         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58630         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58631         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58632         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58633         what it fixes.
58634         * doc/posix-functions/iswalpha.texi: Likewise.
58635         * doc/posix-functions/iswblank.texi: Likewise.
58636         * doc/posix-functions/iswcntrl.texi: Likewise.
58637         * doc/posix-functions/iswdigit.texi: Likewise.
58638         * doc/posix-functions/iswgraph.texi: Likewise.
58639         * doc/posix-functions/iswlower.texi: Likewise.
58640         * doc/posix-functions/iswprint.texi: Likewise.
58641         * doc/posix-functions/iswpunct.texi: Likewise.
58642         * doc/posix-functions/iswspace.texi: Likewise.
58643         * doc/posix-functions/iswupper.texi: Likewise.
58644         * doc/posix-functions/iswxdigit.texi: Likewise.
58645         Reported by Alain Guibert.
58646
58647 2008-04-21  Bruno Haible  <bruno@clisp.org>
58648
58649         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58650         Patch by Alain Guibert.
58651
58652 2008-04-21  Bruno Haible  <bruno@clisp.org>
58653
58654         Fix test failures on mingw.
58655         * tests/test-xstrtol.c (print_no_progname): New function.
58656         (main): Install it in error_print_progname hook.
58657         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58658         * tests/test-xstrtoimax.sh: Likewise.
58659         * tests/test-xstrtoumax.sh: Likewise.
58660
58661 2008-04-21  Bruno Haible  <bruno@clisp.org>
58662
58663         Fix test failure on mingw.
58664         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58665
58666 2008-04-21  Bruno Haible  <bruno@clisp.org>
58667
58668         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58669         Actually assign a value.
58670
58671 2008-04-20  Bruno Haible  <bruno@clisp.org>
58672
58673         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58674         take 2.
58675         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58676         'canonicalize-lgpl' module is also used.
58677         * lib/canonicalize-lgpl.c: Undo last change.
58678         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58679
58680 2008-04-20  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58683         config.h. Provide _mkdir based fallback for mingw.
58684         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58685         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58686         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58687         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58688         rather than defining mkdir in config.h.
58689         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58690         (gl_SYS_STAT_H_DEFAULTS): New macro.
58691         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58692         HAVE_IO_H any more.
58693         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58694         HAVE_DECL_MKDIR and HAVE_IO_H.
58695
58696 2008-04-20  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/isapipe.c: Port to native Windows platforms.
58699
58700 2008-04-20  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58703
58704 2008-04-21  Eric Blake  <ebb9@byu.net>
58705
58706         Work around preprocessors that don't handle UINTMAX_MAX.
58707         * lib/memchr2.c (memchr2): Avoid embedded #if.
58708         Reported by Alain Guibert, fix suggested by Bruno Haible.
58709
58710 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58711
58712         * doc/posix-functions/strftime.texi (strftime): Explain better
58713         Windows incompatibility.  Suggested by Micah Cowan
58714         <micah@cowan.name>.
58715
58716 2008-04-20  Bruno Haible  <bruno@clisp.org>
58717
58718         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58719         unistr/u8-mblen.
58720
58721 2008-04-20  Bruno Haible  <bruno@clisp.org>
58722
58723         Fix test failure on platforms with non-GNU iconv.
58724         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58725         (U_TO_U8): Use it, rather than u16_to_u8.
58726         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58727         units at the end of the input string.
58728         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58729
58730 2008-04-20  Bruno Haible  <bruno@clisp.org>
58731
58732         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58733         when the resulting length is 0.
58734         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58735
58736 2008-04-20  Bruno Haible  <bruno@clisp.org>
58737
58738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58739         works.
58740         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58741
58742 2008-04-20  Bruno Haible  <bruno@clisp.org>
58743
58744         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58745         * modules/tsearch-tests (configure.ac): Test for initstate function.
58746
58747 2008-04-20  Bruno Haible  <bruno@clisp.org>
58748
58749         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58750         for nlink_t if missing.
58751         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58752
58753 2008-04-19  Bruno Haible  <bruno@clisp.org>
58754
58755         Work around snprintf bug on Linux libc5.
58756         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58758         gl_SNPRINTF_SIZE1.
58759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58760         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58761         that test failed.
58762         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58763         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58764         * modules/snprintf (Files): Add m4/printf.m4.
58765         * modules/vsnprintf (Files): Likewise.
58766         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58767         * doc/posix-functions/vsnprintf.texi: Likewise.
58768
58769 2008-04-19  Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58772         from 0.0058 to less than 10^-7.
58773
58774 2008-04-19  Bruno Haible  <bruno@clisp.org>
58775
58776         Fix rounding when a precision is given.
58777         * lib/vasnprintf.c (is_borderline): New function.
58778         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58779         9...9x.
58780         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58781         %e, %g.
58782         * tests/test-vasprintf-posix.c (test_function): Likewise.
58783         * tests/test-snprintf-posix.h (test_function): Likewise.
58784         * tests/test-sprintf-posix.h (test_function): Likewise.
58785         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58786         * tests/test-printf-posix.h (test_function): Likewise.
58787         * tests/test-printf-posix.output: Update.
58788         Reported by John Darrington <john@darrington.wattle.id.au> via
58789         Ben Pfaff <blp@cs.stanford.edu>.
58790
58791 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58792
58793         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58794         Suggested by Bruno Haible <bruno@clisp.org>.
58795
58796 2008-04-17  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58799         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58800         implementation.
58801         Patch by Bruce Merry <bmerry@gmail.com>.
58802
58803 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58804
58805         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58806         doesn't work under Windows.
58807
58808 2008-04-16  Bruno Haible  <bruno@clisp.org>
58809
58810         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58811         New macros.
58812         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58813         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58814         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58815         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58816         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58817         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58818         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58819         macros.
58820         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58821         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58822         Northern Sotho, Uighur.
58823
58824 2008-04-16  Bruno Haible  <bruno@clisp.org>
58825
58826         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58827         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58828         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58829         Reported by Daniel Bergström <daniel@octocode.com>.
58830
58831 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58832             Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58835         function.
58836         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58837         New functions, mostly extracted from gl_locale_name_default.
58838         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58839
58840 2008-04-16  Eric Blake  <ebb9@byu.net>
58841
58842         Adjust strtod detection to catch glibc 2.7 bug.
58843         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58844         Reported by John Gatewood Ham.
58845
58846 2008-04-16  Bruno Haible  <bruno@clisp.org>
58847
58848         Add tentative support for Linux libc5.
58849         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58850         * lib/fpurge.c (fpurge): Likewise.
58851         * lib/freadable.c (freadable): Likewise.
58852         * lib/freadahead.c (freadahead): Likewise.
58853         * lib/freading.c (freading): Likewise.
58854         * lib/freadptr.c (freadptr): Likewise.
58855         * lib/freadseek.c (freadptrinc): Likewise.
58856         * lib/fseeko.c (rpl_fseeko): Likewise.
58857         * lib/fseterr.c (fseterr): Likewise.
58858         * lib/fwritable.c (fwritable): Likewise.
58859         * lib/fwriting.c (fwriting): Likewise.
58860         Reported by Alain Guibert <alguibert+bts@free.fr>.
58861
58862 2008-04-15  Bruno Haible  <bruno@clisp.org>
58863
58864         * modules/mathl (configure.ac): Define module indicator.
58865
58866 2008-04-15  Bruno Haible  <bruno@clisp.org>
58867
58868         * lib/logl.c (logl): Remove unused variables.
58869
58870 2008-04-15  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58873         fails.
58874
58875 2008-04-15  Bruno Haible  <bruno@clisp.org>
58876
58877         * lib/trim.c (trim2): Fix argument of isspace() macro.
58878
58879 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58880
58881         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58882         to 0.
58883         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58884
58885 2008-04-14  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58888         AC_LANG_PROGRAM argument.
58889         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58890         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58892         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58893         * m4/math_h.m4 (gl_MATH_H): Likewise.
58894         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58896         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58897         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58898         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58899         * m4/regex.m4 (gl_REGEX): Likewise.
58900         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58901         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58903         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58904         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58905         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58907         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58908
58909 2008-04-14  Jim Meyering  <meyering@redhat.com>
58910
58911         test-strtod: fix typos: s/abs/fabs/
58912         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58913
58914 2008-04-13  Bruno Haible  <bruno@clisp.org>
58915
58916         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58917         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58918         module is also used and while not building the reloc-wrapper.
58919
58920 2008-04-13  Bruno Haible  <bruno@clisp.org>
58921
58922         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58923
58924 2008-04-13  Bruno Haible  <bruno@clisp.org>
58925
58926         Fix AIX compilation failure introduced on 2008-04-02.
58927         * tests/test-frexp.c (exp): Undefine before redefining.
58928         * tests/test-frexpl.c (exp): Likewise.
58929
58930 2008-04-13  Bruno Haible  <bruno@clisp.org>
58931
58932         Work around a HP-UX stdio bug.
58933         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58934         * tests/test-ftello.c (main): Likewise.
58935         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58936         * doc/posix-functions/ftello.texi: Likewise.
58937
58938 2008-04-13  Bruno Haible  <bruno@clisp.org>
58939
58940         Make test-signbit pass on HP-UX/hppa.
58941         * tests/test-signbit.c (minus_zerol): New variable.
58942         (test_signbitl): Use it.
58943
58944 2008-04-13  Bruno Haible  <bruno@clisp.org>
58945
58946         Make truncl work on OSF/1 4.0.
58947         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58948         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58949         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58951         HAVE_DECL_TRUNCL.
58952         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58953         HAVE_DECL_TRUNCL.
58954         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58955
58956 2008-04-13  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58959
58960 2008-04-13  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58963         expression, so as to avoid HP-UX 11 cc compiler bug.
58964
58965 2008-04-13  Bruno Haible  <bruno@clisp.org>
58966
58967         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58968
58969 2008-04-13  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/git-merge-changelog.c: Remove empty declaration outside of
58972         functions.
58973
58974 2008-04-13  Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58977
58978 2008-04-13  Bruno Haible  <bruno@clisp.org>
58979
58980         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58981         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58983         also if it exists but lacks definitions of the SHUT_* macros.
58984         * modules/sys_socket (Description): Update.
58985         Reported by Elbert Pol <e.pol@chello.nl>.
58986
58987 2008-04-13  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/localcharset.c (OS2): Don't redefine if already defined.
58990         Reported by Elbert Pol <e.pol@chello.nl>.
58991
58992 2008-04-13  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/binary-io.h [__EMX__]: Include <io.h>.
58995         Reported by Elbert Pol <e.pol@chello.nl>.
58996
58997 2008-04-12  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/fpucw.h: Enable the definitions also for x86_64.
59000         Needed for NetBSD/x86_64.
59001         Reported by Thomas Klausner <tk@giga.or.at>.
59002
59003 2008-04-12  Bruno Haible  <bruno@clisp.org>
59004
59005         * tests/test-strtod.c: Include isnand.h.
59006         (main): Use isnand instead of isnan.
59007         Reported by Jim Meyering.
59008
59009 2008-04-12  Bruno Haible  <bruno@clisp.org>
59010
59011         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59012         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59013
59014 2008-04-12  Jim Meyering  <meyering@redhat.com>
59015
59016         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59017
59018 2008-04-12  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59021         Reported by Elbert Pol <e.pol@chello.nl>.
59022
59023 2008-04-12  Eric Blake  <ebb9@byu.net>
59024
59025         Work around Solaris 10 math.h bug.
59026         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59027         (gl_MATH_H_DEFAULTS): Set up default.
59028         * modules/math (Makefile.am): Replace new indicators.
59029         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59030         * tests/test-math.c (main): Test this.
59031         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59032         * doc/posix-headers/math.texi (math.h): Mention bug.
59033         Reported by Nelson H. F. Beebe and Jim Meyering.
59034
59035 2008-04-11  Bruno Haible  <bruno@clisp.org>
59036
59037         Adapt to future versions of Apple GCC.
59038         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59039         Reported by Peter O'Gorman <peter@pogma.com>.
59040
59041 2008-04-11  Bruno Haible  <bruno@clisp.org>
59042
59043         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59044
59045 2008-04-11  Bruno Haible  <bruno@clisp.org>
59046
59047         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59048
59049         * modules/getaddrinfo-tests (Makefile.am): Define
59050         test_getaddrinfo_LDADD.
59051
59052 2008-04-11  Bruno Haible  <bruno@clisp.org>
59053
59054         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59055         (init): Fix syntax error.
59056         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59057         is declared.
59058
59059 2008-04-11  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59062         * modules/glob (Depends-on): Add stdbool.
59063
59064 2008-04-11  Bruno Haible  <bruno@clisp.org>
59065
59066         * lib/trim.c: Include <string.h>.
59067
59068 2008-04-11  Eric Blake  <ebb9@byu.net>
59069
59070         Avoid compile failure on OS/2.
59071         * lib/regex_internal.h (internal_function): Disable optimization
59072         on OS/2 (__EMX__), where it caused compiler error.
59073         Reported by Elbert Pol.
59074
59075 2008-04-11  Bruno Haible  <bruno@clisp.org>
59076
59077         Flush the standard error stream before aborting. Needed on mingw.
59078         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59079         * tests/test-array_list.c (ASSERT): Likewise.
59080         * tests/test-array_oset.c (ASSERT): Likewise.
59081         * tests/test-avltree_list.c (ASSERT): Likewise.
59082         * tests/test-avltree_oset.c (ASSERT): Likewise.
59083         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59084         * tests/test-binary-io.c (ASSERT): Likewise.
59085         * tests/test-byteswap.c (ASSERT): Likewise.
59086         * tests/test-c-ctype.c (ASSERT): Likewise.
59087         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59088         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59089         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59090         * tests/test-c-strstr.c (ASSERT): Likewise.
59091         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59092         * tests/test-canonicalize.c (ASSERT): Likewise.
59093         * tests/test-carray_list.c (ASSERT): Likewise.
59094         * tests/test-ceilf1.c (ASSERT): Likewise.
59095         * tests/test-ceilf2.c (ASSERT): Likewise.
59096         * tests/test-ceill.c (ASSERT): Likewise.
59097         * tests/test-count-one-bits.c (ASSERT): Likewise.
59098         * tests/test-fbufmode.c (ASSERT): Likewise.
59099         * tests/test-fflush2.c (ASSERT): Likewise.
59100         * tests/test-floorf1.c (ASSERT): Likewise.
59101         * tests/test-floorf2.c (ASSERT): Likewise.
59102         * tests/test-floorl.c (ASSERT): Likewise.
59103         * tests/test-fopen.c (ASSERT): Likewise.
59104         * tests/test-fpending.c (ASSERT): Likewise.
59105         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59106         * tests/test-fpurge.c (ASSERT): Likewise.
59107         * tests/test-freadable.c (ASSERT): Likewise.
59108         * tests/test-freadahead.c (ASSERT): Likewise.
59109         * tests/test-freading.c (ASSERT): Likewise.
59110         * tests/test-freadptr.c (ASSERT): Likewise.
59111         * tests/test-freadptr2.c (ASSERT): Likewise.
59112         * tests/test-freadseek.c (ASSERT): Likewise.
59113         * tests/test-freopen.c (ASSERT): Likewise.
59114         * tests/test-frexp.c (ASSERT): Likewise.
59115         * tests/test-frexpl.c (ASSERT): Likewise.
59116         * tests/test-fseek.c (ASSERT): Likewise.
59117         * tests/test-fseeko.c (ASSERT): Likewise.
59118         * tests/test-fstrcmp.c (ASSERT): Likewise.
59119         * tests/test-ftell.c (ASSERT): Likewise.
59120         * tests/test-ftello.c (ASSERT): Likewise.
59121         * tests/test-func.c (ASSERT): Likewise.
59122         * tests/test-fwritable.c (ASSERT): Likewise.
59123         * tests/test-fwriting.c (ASSERT): Likewise.
59124         * tests/test-getdelim.c (ASSERT): Likewise.
59125         * tests/test-getline.c (ASSERT): Likewise.
59126         * tests/test-i-ring.c (ASSERT): Likewise.
59127         * tests/test-iconv-utf.c (ASSERT): Likewise.
59128         * tests/test-iconv.c (ASSERT): Likewise.
59129         * tests/test-isfinite.c (ASSERT): Likewise.
59130         * tests/test-isnand.c (ASSERT): Likewise.
59131         * tests/test-isnanf.c (ASSERT): Likewise.
59132         * tests/test-isnanl.h (ASSERT): Likewise.
59133         * tests/test-ldexpl.c (ASSERT): Likewise.
59134         * tests/test-linked_list.c (ASSERT): Likewise.
59135         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59136         * tests/test-localename.c (ASSERT): Likewise.
59137         * tests/test-lseek.c (ASSERT): Likewise.
59138         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59139         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59140         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59141         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59142         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59143         * tests/test-mbschr.c (ASSERT): Likewise.
59144         * tests/test-mbscspn.c (ASSERT): Likewise.
59145         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59146         * tests/test-mbspbrk.c (ASSERT): Likewise.
59147         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59148         * tests/test-mbsrchr.c (ASSERT): Likewise.
59149         * tests/test-mbsspn.c (ASSERT): Likewise.
59150         * tests/test-mbsstr1.c (ASSERT): Likewise.
59151         * tests/test-mbsstr2.c (ASSERT): Likewise.
59152         * tests/test-mbsstr3.c (ASSERT): Likewise.
59153         * tests/test-memchr2.c (ASSERT): Likewise.
59154         * tests/test-memmem.c (ASSERT): Likewise.
59155         * tests/test-open.c (ASSERT): Likewise.
59156         * tests/test-printf-frexp.c (ASSERT): Likewise.
59157         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59158         * tests/test-printf-posix.c (ASSERT): Likewise.
59159         * tests/test-quotearg.c (ASSERT): Likewise.
59160         * tests/test-rbtree_list.c (ASSERT): Likewise.
59161         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59162         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59163         * tests/test-round1.c (ASSERT): Likewise.
59164         * tests/test-roundf1.c (ASSERT): Likewise.
59165         * tests/test-roundl.c (ASSERT): Likewise.
59166         * tests/test-signbit.c (ASSERT): Likewise.
59167         * tests/test-sleep.c (ASSERT): Likewise.
59168         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59169         * tests/test-snprintf.c (ASSERT): Likewise.
59170         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59171         * tests/test-stat-time.c (ASSERT): Likewise.
59172         * tests/test-strcasestr.c (ASSERT): Likewise.
59173         * tests/test-strerror.c (ASSERT): Likewise.
59174         * tests/test-striconv.c (ASSERT): Likewise.
59175         * tests/test-striconveh.c (ASSERT): Likewise.
59176         * tests/test-striconveha.c (ASSERT): Likewise.
59177         * tests/test-strsignal.c (ASSERT): Likewise.
59178         * tests/test-strstr.c (ASSERT): Likewise.
59179         * tests/test-strtod.c (ASSERT): Likewise.
59180         * tests/test-trunc1.c (ASSERT): Likewise.
59181         * tests/test-trunc2.c (ASSERT): Likewise.
59182         * tests/test-truncf1.c (ASSERT): Likewise.
59183         * tests/test-truncf2.c (ASSERT): Likewise.
59184         * tests/test-truncl.c (ASSERT): Likewise.
59185         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59186         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59187         * tests/test-vasnprintf.c (ASSERT): Likewise.
59188         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59189         * tests/test-vasprintf.c (ASSERT): Likewise.
59190         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59191         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59192         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59193         * tests/test-vsnprintf.c (ASSERT): Likewise.
59194         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59195         * tests/test-wcwidth.c (ASSERT): Likewise.
59196         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59197         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59198         * tests/test-xvasprintf.c (ASSERT): Likewise.
59199         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59200         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59201         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59202         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59203         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59204         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59205         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59206         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59207         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59208         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59209         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59210         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59211         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59212         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59213         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59214         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59215         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59216         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59217         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59218         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59219         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59220         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59221         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59222         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59223         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59224         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59225         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59226         * tests/unictype/test-combining.c (ASSERT): Likewise.
59227         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59228         * tests/unictype/test-digit.c (ASSERT): Likewise.
59229         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59230         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59231         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59232         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59233         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59234         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59235         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59236         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59237         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59238         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59239         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59240         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59241         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59242         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59243         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59244         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59245         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59246         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59247         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59248         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59249         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59250         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59251         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59252         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59253         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59254         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59255         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59256         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59257         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59258         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59259         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59260         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59261         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59262         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59263         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59264         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59265         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59266         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59267         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59268         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59269         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59270         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59271         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59272         Reported by Eric Blake.
59273
59274 2008-04-11  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/wchar.in.h: Tweak comment.
59277
59278 2008-04-11  Bruno Haible  <bruno@clisp.org>
59279
59280         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59281         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59282         gl_COMMON.
59283         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59284
59285 2008-04-11  Bruno Haible  <bruno@clisp.org>
59286
59287         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59288
59289 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59290
59291         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59292         of attempting to use non-existing /dev/*random.  Based on patch
59293         from Adam Strzelecki <ono@java.pl> in
59294         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59295
59296 2008-04-08  Bruno Haible  <bruno@clisp.org>
59297
59298         Add tentative support for emx+gcc.
59299         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59300         * lib/fpurge.c (fpurge): Likewise.
59301         * lib/freadable.c (freadable): Likewise.
59302         * lib/freadahead.c (freadahead): Likewise.
59303         * lib/freading.c (freading): Likewise.
59304         * lib/freadptr.c (freadptr): Likewise.
59305         * lib/freadseek.c (freadptrinc): Likewise.
59306         * lib/fseeko.c (rpl_fseeko): Likewise.
59307         * lib/fseterr.c (fseterr): Likewise.
59308         * lib/fwritable.c (fwritable): Likewise.
59309         * lib/fwriting.c (fwriting): Likewise.
59310         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59311
59312 2008-04-09  Eric Blake  <ebb9@byu.net>
59313
59314         Avoid some autoconf warnings.
59315         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59316         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59317         * m4/afs.m4 (gl_AFS): Likewise.
59318         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59319         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59321         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59322         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59323         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59324         (AC_CHECK_DECLS_ONCE): Likewise.
59325         Rename file...
59326         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59327         gnulib-tool requires autoconf 2.59 or better.
59328         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59329
59330 2008-04-08  Eric Blake  <ebb9@byu.net>
59331
59332         Use 'git describe --match' if present (added in git 1.5.5).
59333         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59334         if possible.
59335
59336 2008-04-08  Bruno Haible  <bruno@clisp.org>
59337
59338         Add tentative support for OpenServer.
59339         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59340         _ptr, _cnt.
59341         * lib/fpurge.c (fpurge): Likewise.
59342         * lib/freadable.c (freadable): Likewise.
59343         * lib/freadahead.c (freadahead): Likewise.
59344         * lib/freading.c (freading): Likewise.
59345         * lib/freadptr.c (freadptr): Likewise.
59346         * lib/freadseek.c (freadptrinc): Likewise.
59347         * lib/fseeko.c (rpl_fseeko): Likewise.
59348         * lib/fseterr.c (fseterr): Likewise.
59349         * lib/fwritable.c (fwritable): Likewise.
59350         * lib/fwriting.c (fwriting): Likewise.
59351         Reported by Roger Cornelius <rac@tenzing.org> and
59352         Brian K. White <brian@aljex.com>.
59353
59354 2008-04-06  Jim Meyering  <meyering@redhat.com>
59355
59356         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59357
59358 2008-04-06  Bruno Haible  <bruno@clisp.org>
59359
59360         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59361         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59362         * tests/test-printf-posix.sh: Likewise.
59363         * tests/test-vfprintf-posix.sh: Likewise.
59364         * tests/test-vprintf-posix.sh: Likewise.
59365         * tests/test-xprintf-posix.sh: Likewise.
59366
59367 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59368
59369         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59370         hide error from 'ls', needed on OS/2.
59371         Report by Elbert Pol <elbert.pol@gmail.com>.
59372
59373 2008-04-04  Eric Blake  <ebb9@byu.net>
59374
59375         Make test-fseeko.c failures meaningful.
59376         * tests/test-fseeko.c: Print line number on failure.
59377         * tests/test-fseek.c: Likewise.
59378         Reported by Nelson H. F. Beebe.
59379
59380         Improve strtod bug detection check.
59381         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59382         required for Solaris 10.
59383         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59384
59385 2008-04-04  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59388         by m4/setenv.m4.
59389
59390 2008-04-03  Eric Blake  <ebb9@byu.net>
59391
59392         Ensure sane .version contents.
59393         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59394         version string.
59395         * build-aux/git-version-gen: Improve documentation.
59396
59397         Make GNU make output nicer.
59398         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59399         MAKECMDGOALS to enforce message for all command line targets.  Set
59400         srcdir for use in maint.mk.
59401
59402         Another maintainer tweak.
59403         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59404         a target that regenerates version.
59405
59406 2008-04-03  Jim Meyering  <meyering@redhat.com>
59407
59408         vc-list-files: don't cause coreutils "make po-check" failure
59409         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59410
59411 2008-04-03  Eric Blake  <ebb9@byu.net>
59412
59413         Allow VPATH usage of vc-list-files.
59414         * build-aux/vc-list-files (scriptversion): Add timestamp.
59415         (options): Add --help, --version, -C.
59416         (CVS): Support installed cvsu.
59417
59418 2008-04-02  Bruno Haible  <bruno@clisp.org>
59419
59420         Avoid some "statement with no effect" warnings from gcc.
59421         * tests/test-wctype.c (main): Explicitly ignore unused values.
59422         Reported by Jim Meyering.
59423
59424 2008-04-02  Jim Meyering  <meyering@redhat.com>
59425
59426         Avoid some warnings from "gcc -Wshadow".
59427         * tests/test-frexp.c (exp): Define to a different identifier.
59428         * tests/test-frexpl.c (exp): Likewise.
59429
59430 2008-04-03  Jim Meyering  <meyering@redhat.com>
59431
59432         bootstrap: remove dangling *.[ch] symlinks from lib
59433         * build-aux/bootstrap [dangling symlink removal]: Move find's
59434         -depth option to precede all others, to avoid a warning.
59435         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59436
59437 2008-04-02  Bruno Haible  <bruno@clisp.org>
59438
59439         Avoid some warnings from "gcc -Wshadow".
59440         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59441         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59442         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59443         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59444         Reported by Jim Meyering.
59445
59446 2008-04-01  Bruno Haible  <bruno@clisp.org>
59447
59448         Fix test to work on IRIX 6.5 with cc.
59449         * tests/test-math.c (numeric_equal): New function.
59450         (main): Use it.
59451
59452 2008-04-01  Bruno Haible  <bruno@clisp.org>
59453
59454         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59455
59456 2008-04-01  Bruno Haible  <bruno@clisp.org>
59457
59458         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59459         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59460         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59461         (Depends-on): Remove math.
59462
59463         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59464         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59465         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59466         (Depends-on): Remove math.
59467
59468         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59469         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59470         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59471         (Depends-on): Remove math.
59472         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59473         (Depends-on): Remove math.
59474
59475         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59476         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59477         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59478         (Depends-on): Remove math.
59479         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59480         (Depends-on): Remove math.
59481
59482         * tests/test-round1.c: Include nan.h.
59483         (main): Use NaNd instead of NAN.
59484         * modules/round-tests (Files): Add tests/nan.h.
59485
59486         * tests/test-trunc1.c: Include nan.h.
59487         (main): Use NaNd instead of NAN.
59488         * modules/trunc-tests (Files): Add tests/nan.h.
59489
59490         * tests/test-roundf1.c: Include nan.h.
59491         (main): Use NaNf instead of NAN.
59492         * modules/roundf-tests (Files): Add tests/nan.h.
59493
59494         * tests/test-truncf1.c: Include nan.h.
59495         (main): Use NaNf instead of NAN.
59496         * modules/truncf-tests (Files): Add tests/nan.h.
59497
59498         * tests/test-ceilf1.c: Include nan.h.
59499         (main): Use NaNf instead of NAN.
59500         * modules/ceilf-tests (Files): Add tests/nan.h.
59501
59502         * tests/test-floorf1.c: Include nan.h.
59503         (main): Use NaNf instead of NAN.
59504         * modules/floorf-tests (Files): Add tests/nan.h.
59505
59506         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59507         (main): Use NaNf instead of NAN.
59508         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59509
59510         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59511         (main): Use NaNd instead of NAN.
59512         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59513
59514         * tests/test-frexp.c: Include nan.h.
59515         (main): Use NaNd instead of NAN.
59516         * modules/frexp-tests (Files): Add tests/nan.h.
59517
59518         * lib/isnan.c: Don't include <math.h>.
59519         (FUNC): Don't use NAN macro.
59520         * modules/isnand-nolibm (Depends-on): Remove math.
59521         * modules/isnanf-nolibm (Depends-on): Remove math.
59522         * modules/isnanl (Depends-on): Remove math.
59523         * modules/isnanl-nolibm (Depends-on): Remove math.
59524
59525         * tests/nan.h: New file.
59526
59527 2008-04-01  Eric Blake  <ebb9@byu.net>
59528
59529         Fix typos.
59530         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59531         values to be the right type.
59532
59533         For now, cater to gnulib strtod inaccuracies.
59534         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59535         fractional results.  While not as nice from a QoI perspective, it
59536         is a quicker patch than correctly implementing decimal to binary
59537         rounding.
59538
59539 2008-03-31  Eric Blake  <ebb9@byu.net>
59540
59541         Guarantee a definition of NAN.
59542         * lib/math.in.h (NAN): Define if missing.
59543         * tests/test-math.c (main): Test it.
59544         * doc/posix-headers/math.texi (math.h): Document this.
59545         * lib/isnan.c (rpl_isnand): Use it.
59546         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59547         * tests/test-floorf1.c (NaN): Likewise.
59548         * tests/test-frexp.c (NaN): Likewise.
59549         * tests/test-isnand.c (NaN): Likewise.
59550         * tests/test-isnanf.c (NaN): Likewise.
59551         * tests/test-round1.c (NaN): Likewise.
59552         * tests/test-roundf1.c (NaN): Likewise.
59553         * tests/test-snprintf-posix.h (NaN): Likewise.
59554         * tests/test-sprintf-posix.h (NaN): Likewise.
59555         * tests/test-trunc1.c (NaN): Likewise.
59556         * tests/test-truncf1.c (NaN): Likewise.
59557         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59558         * tests/test-vasprintf-posix.c (NaN): Likewise.
59559         * modules/isnand-nolibm (Depends-on): Add math.
59560         * modules/isnanf-nolibm (Depends-on): Likewise.
59561         * modules/isnanl (Depends-on): Likewise.
59562         * modules/isnanl-nolibm (Depends-on): Likewise.
59563         * modules/snprintf-posix-tests (Depends-on): Likewise.
59564         * modules/sprintf-posix-tests (Depends-on): Likewise.
59565         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59566         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59567         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59568         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59569
59570 2008-03-31  Bruno Haible  <bruno@clisp.org>
59571
59572         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59573         * doc/posix-functions/strtod.texi: Likewise.
59574
59575 2008-03-31  Bruno Haible  <bruno@clisp.org>
59576
59577         * tests/test-strtod.c (main): Don't use C99 syntax.
59578
59579 2008-03-31  Bruno Haible  <bruno@clisp.org>
59580
59581         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59582         Reported by Eric Blake.
59583
59584 2008-03-31  Jim Meyering  <meyering@redhat.com>
59585
59586         Don't compare actual signbit return values.
59587         * tests/test-strtod.c (main): Rather, compare only their
59588         zero/non-zero nature.
59589
59590 2008-03-31  Eric Blake  <ebb9@byu.net>
59591
59592         More strtod documentation.
59593         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59594         failures as distinct bugs.
59595
59596 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59599         Problem reported by Erik Benada in
59600         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59601
59602 2008-03-30  Bruno Haible  <bruno@clisp.org>
59603
59604         * tests/test-strtod.c: Add comments about which assertion fails on which
59605         platform.
59606         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59607
59608 2008-03-30  Eric Blake  <ebb9@byu.net>
59609
59610         Test signbit behavior on zeros.
59611         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59612         (test_signbitd, test_signbitl): Likewise.
59613
59614         More strtod touchups.
59615         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59616         sign of negative underflow, for now.  Use .5, not .1.
59617         * doc/posix-functions/strtod.texi (strtod): Mention these
59618         limitations.
59619         Reported by Jim Meyering.
59620
59621 2008-03-30  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59624         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59625
59626 2008-03-30  Bruno Haible  <bruno@clisp.org>
59627
59628         Avoid failure when attempting to return empty iconv results on some
59629         platforms.
59630         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59631         allocation, don't report ENOMEM when the resulting string is empty.
59632
59633 2008-03-30  Bruno Haible  <bruno@clisp.org>
59634
59635         Fix buffer overrun.
59636         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59637         Don't consider the width for tmp_length. Check count against tmp_length
59638         before doing the padding. Ensure enough allocation during padding.
59639
59640 2008-03-30  Eric Blake  <ebb9@byu.net>
59641
59642         strtod touchups.
59643         * lib/strtod.c (strtod): Avoid compiler warnings.
59644         Reported by Jim Meyering.
59645
59646 2008-03-30  Bruno Haible  <bruno@clisp.org>
59647
59648         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59649         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59650         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59651         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59652         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59653         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59654         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59655         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59656
59657         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59658         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59659         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59660         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59661         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59662         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59663         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59664         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59665
59666         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59667         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59668         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59669         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59670         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59671         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59672         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59673         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59674
59675         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59676         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59677
59678         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59679         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59680
59681         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59682         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59683
59684         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59686         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59687
59688         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59690         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59691
59692         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59693         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59694         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59695
59696         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59698         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59699
59700         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59701         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59703         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59704         (Depends-on): Add EOVERFLOW.
59705         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59706         (Depends-on): Add EOVERFLOW.
59707         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59708         (Depends-on): Add EOVERFLOW.
59709         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59710         (Depends-on): Add EOVERFLOW.
59711         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59712         (Depends-on): Add EOVERFLOW.
59713         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59714         (Depends-on): Add EOVERFLOW.
59715         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59716         (Depends-on): Add EOVERFLOW.
59717         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59718         (Depends-on): Add EOVERFLOW.
59719
59720         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59722         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59723
59724         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59726         * modules/snprintf (Depends-on): Add EOVERFLOW.
59727
59728         * lib/poll.c (EOVERFLOW): Remove fallback.
59729         * modules/poll (Depends-on): Add EOVERFLOW.
59730
59731         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59732         * modules/getugroups (Depends-on): Add EOVERFLOW.
59733
59734         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59735         * modules/getdelim (Depends-on): Add EOVERFLOW.
59736
59737         * lib/ftell.c (EOVERFLOW): Remove fallback.
59738         * modules/ftell (Depends-on): Add EOVERFLOW.
59739
59740         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59742         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59743
59744         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59745
59746         * modules/EOVERFLOW-tests: New file.
59747         * tests/test-EOVERFLOW.c: New file.
59748
59749         * modules/EOVERFLOW: New file.
59750         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59751
59752 2008-03-30  Bruno Haible  <bruno@clisp.org>
59753
59754         Fix bug introduced on 2007-06-10.
59755         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59756         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59757
59758 2008-03-30  Bruno Haible  <bruno@clisp.org>
59759
59760         Improve freadseek's efficiency after ungetc.
59761         * lib/freadseek.c: Include freadahead.h.
59762         (freadptrinc): New function, extracted from freadseek.
59763         (freadseek): Use it in a loop. Use freadahead to determine the number
59764         of loop iterations.
59765         * modules/freadseek (Depends-on): Add freadahead.
59766         (configure.ac): Require AC_C_INLINE.
59767
59768 2008-03-30  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/freadseek.c (freadseek): Don't ignore the return value of
59771         freadptr.
59772
59773 2008-03-29  Eric Blake  <ebb9@byu.net>
59774
59775         Add hex float support.
59776         * modules/strtod (Depends-on): Add c-ctype.
59777         (Link): Mention POW_LIB.
59778         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59779         whitespace between 'e' and exponent.
59780         * tests/test-strtod.c (main): Enable hex float tests.
59781         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59782         now provides.
59783
59784         Document various strtod bugs, with some fixes.
59785         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59786         "-0x", "inf", "nan", and hex constants.
59787         * doc/posix-functions/atof.texi (atof): Likewise.
59788         * modules/stdlib (Makefile.am): Support strtod.
59789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59790         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59791         detect additional strtod bugs.
59792         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59793         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59794         bool where appropriate.  Parse 'inf' and 'nan'.
59795         * tests/test-strtod.c: New file.
59796         * modules/strtod (Depends-on): Add stdbool, stdlib.
59797         (configure.ac): Turn on module indicator.
59798         * modules/strtod-tests: New module.
59799
59800 2008-03-29  Eric Blake  <ebb9@byu.net>
59801
59802         Fix ftell on mingw.
59803         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59804         * modules/ftell-tests (Depends-on): Add binary-io.
59805         * modules/ftello-tests (Depends-on): Likewise.
59806         * tests/test-ftell.c (main): Enhance test to cover behavior after
59807         ungetc.  Enforce binary mode.
59808         * tests/test-ftello.c (main): Likewise.
59809
59810         Pass test-freadseek on cygwin.
59811         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59812         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59813         ungetc buffer.
59814
59815         * tests/test-fflush2.c (main): Fix typo.
59816
59817 2008-03-29  Bruno Haible  <bruno@clisp.org>
59818
59819         * tests/test-fflush2.c (main): Temporarily disable the contents of
59820         this test.
59821         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59822         Reported by Eric Blake.
59823
59824 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59825
59826         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59827         (GC_SHA224_DIGEST_SIZE): Add.
59828
59829         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59830         (gc_hash_digest_length): Likewise.
59831         (gc_hash_buffer): Likewise.
59832
59833 2008-03-25  Bruno Haible  <bruno@clisp.org>
59834
59835         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59836         detail which gettext release to use.
59837         Reported by Simon Josefsson.
59838
59839 2008-03-26  Jim Meyering  <meyering@redhat.com>
59840
59841         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59842         * modules/gnumakefile (clean-GNUmakefile): Also, use
59843         test ... && ... || : syntax rather than if-then ... fi.
59844
59845         gnumakefile: Don't double-quote-expand $(VPATH) value.
59846         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59847
59848 2008-03-24  Eric Blake  <ebb9@byu.net>
59849
59850         Alter GNUmakefile to install into top directory.
59851         * modules/maintainer-makefile: Split, and add dependency...
59852         * modules/gnumakefile: to this new module.
59853         * build-aux/GNUmakefile: Move...
59854         * top/GNUmakefile: ...here.
59855         * build-aux/maint.mk: Move...
59856         * top/maint.mk: ...here.
59857         * MODULES.html.sh (Support for maintaining...): Document new
59858         module.
59859
59860 2008-03-23  Bruno Haible  <bruno@clisp.org>
59861
59862         * gnulib-tool: New options --vc-files, --no-vc-files.
59863         (func_usage): Document them.
59864         (vc_files): New variable.
59865         (func_import): Consider vc_files.
59866         (func_create_testdir): Set vc_files to empty.
59867         Suggested by Jim Meyering and Karl Berry.
59868
59869 2008-03-23  Bruno Haible  <bruno@clisp.org>
59870
59871         Fix regex compilation error on HP-UX 11.
59872         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59873         * modules/regex (Files): Add m4/mbstate_t.m4.
59874         Reported by Ton Voon <ton.voon@altinity.com>.
59875
59876 2008-03-23  Bruno Haible  <bruno@clisp.org>
59877
59878         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59879
59880 2008-03-23  Eric Blake  <ebb9@byu.net>
59881             Bruno Haible  <bruno@clisp.org>
59882
59883         Install files from top/ in the destination directory.
59884         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59885         augmentation also for the files from top/.
59886         (func_import, func_create_testdir): Rewrite file names:
59887         top/filename -> filename.
59888
59889 2008-03-23  Bruno Haible  <bruno@clisp.org>
59890
59891         Tweak "gnulib --version" output.
59892         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59893
59894 2008-03-23  Bruno Haible  <bruno@clisp.org>
59895
59896         Tweak "gnulib --version" output.
59897         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59898         rather than contents of ChangeLog, when possible.
59899
59900 2008-03-21  Eric Blake  <ebb9@byu.net>
59901
59902         More --version tweaks.
59903         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59904         date of last ChangeLog entry.
59905
59906 2008-03-21  Jim Meyering  <meyering@redhat.com>
59907
59908         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59909
59910 2008-03-20  Eric Blake  <ebb9@byu.net>
59911
59912         VPATH fix.
59913         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59914
59915 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59916
59917         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59918         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59919
59920 2008-03-20  Eric Blake  <ebb9@byu.net>
59921
59922         Sync GNUmakefile with coreutils.
59923         * build-aux/GNUmakefile (have-Makefile): Rename...
59924         (_have-Makefile): ...to this, for namespace consideration.
59925         (GNUmakefile.cfg): Include, if present.
59926         (_autoreconf): Define a default.
59927         (_is-dist-target): New rule for rebuilds to pick up intra-release
59928         version.
59929         (maint-cfg.mk): Rename...
59930         (cfg.mk): ...to this.
59931
59932 2008-03-18  Jim Meyering  <meyering@redhat.com>
59933
59934         New script and module: mktempd
59935         * MODULES.html.sh (maint+release support): Add mktempd.
59936         * build-aux/mktempd: New file.
59937         * modules/mktempd: New file.
59938
59939 2008-03-15  Jim Meyering  <meyering@redhat.com>
59940
59941         Undo last change.
59942         * lib/sha1.c, lib/md5.c: 63 != ~63.
59943         Reported by Andreas Schwab.
59944
59945         sha1.c, md5.c: Hoist a redundant expression.
59946         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59947         "ctx->buflen" only once, before calling *_process_block.
59948         * lib/md5.c (md5_process_bytes): Likewise.
59949
59950 2008-03-14  Eric Blake  <ebb9@byu.net>
59951
59952         Bump copyright year in files generated by gnulib-tool.
59953         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59954         gnulib-tool, rather than hard-coding it.
59955
59956         Fix 'gnulib-tool --version' output to work with git.
59957         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59958         (startup): ...here.
59959         (func_version): Use it to invoke git-version-gen, rather than
59960         relying on CVS keyword expansion.  Modernize wording.
59961         (cvsdatestamp, last_checkin_date, version): Kill unused
59962         variables.
59963
59964 2008-03-12  Jim Meyering  <meyering@redhat.com>
59965
59966         Recognize optional cast of the argument to free.
59967         * build-aux/useless-if-before-free: Update regexps.
59968
59969         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59970
59971 2008-03-11  Bruno Haible  <bruno@clisp.org>
59972
59973         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59974         by a single package.
59975         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59976         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59977         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59978         Reported by Sam Steingold <sds@gnu.org>.
59979
59980 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59981
59982         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59983         repositories.
59984
59985 2008-03-11  Bruno Haible  <bruno@clisp.org>
59986
59987         Avoid conflicts between local macro definitions.
59988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59989         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59990
59991 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59992             Bruno Haible  <bruno@clisp.org>
59993
59994         Make va_copy work with some version of xlc on AIX 5.1.
59995         * lib/stdarg.in.h: New file.
59996         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59997         On AIX, use a <stdarg.h> file substitute.
59998         * modules/stdarg (Files): Add lib/stdarg.in.h.
59999         (Depends-on): Add include_next.
60000         (Makefile.am): Build a stdarg.h substitute if requested.
60001         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60002
60003 2008-03-10  Bruno Haible  <bruno@clisp.org>
60004
60005         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60007         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60008
60009 2008-03-10  Bruno Haible  <bruno@clisp.org>
60010
60011         * modules/stdlib (Depends-on): Add include_next, remove
60012         absolute-header.
60013
60014 2008-03-09  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/freadahead.h (freadahead): Document more precisely.
60017         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60018         the sum of both buffer sizes.
60019         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60020         * NEWS: Document the change.
60021
60022 2008-03-09  Bruno Haible  <bruno@clisp.org>
60023
60024         Extend freadptr to return also the buffer size.
60025         * lib/freadptr.h (freadptr): Add sizep argument.
60026         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60027         (freadptr): Add sizep argument. Determine buffer size like freadahead
60028         does.
60029         * tests/test-freadptr.c: Don't include freadahead.h.
60030         (main): Adapt for new calling convention of freadptr.
60031         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60032         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60033         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60034         tests/test-freadptr2.sh.
60035         (Depends): Remove freadahead.
60036         (TESTS): Add test-freadptr2.sh.
60037         (check_PROGRAMS): Add test-freadptr2.
60038
60039 2008-03-09  Bruno Haible  <bruno@clisp.org>
60040
60041         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60042         Report and solution by Simon Josefsson.
60043
60044 2008-03-06  Bruno Haible  <bruno@clisp.org>
60045
60046         Make fflush after ungetc work on BSD platforms.
60047         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60048         * tests/test-fflush2.c: New file.
60049         * tests/test-fflush2.sh: New file.
60050         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60051         tests/test-fflush2.c.
60052         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60053         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60054
60055 2008-03-06  Eric Blake  <ebb9@byu.net>
60056
60057         Likewise for ftello.
60058         * modules/ftello (Dependencies): Add extensions.
60059         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60060
60061 2008-03-06  Bruno Haible  <bruno@clisp.org>
60062
60063         * modules/fseeko (Dependencies): Add extensions.
60064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60065         Needed on glibc systems.
60066
60067 2008-03-06  Bruno Haible  <bruno@clisp.org>
60068
60069         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60070         email address.
60071         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60072
60073 2008-03-06  Bruno Haible  <bruno@clisp.org>
60074
60075         * users.txt: Add libgnupdf.
60076
60077 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60078
60079         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60080         (Header File Substitutes, Function Substitutes,
60081         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60082         (Build robot for gnulib): Fix typo.
60083
60084 2008-03-06  Bruno Haible  <bruno@clisp.org>
60085
60086         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60087         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60088
60089 2008-03-06  Bruno Haible  <bruno@clisp.org>
60090
60091         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60092         * doc/gnulib.texi: Include it.
60093
60094 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60095
60096         * modules/func (License): Change license to unlimited; there was
60097         no LGPL parts in the module anyway.
60098
60099 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60100
60101         * modules/__func__: Renamed to modules/func.
60102         * modules/__func__-tests: Renamed to modules/func-tests.
60103         * tests/test-__func__.c: Renamed to tests/test-func.c.
60104         * m4/__func__.m4: Renamed to m4/func.m4.
60105         * doc/gnulib.texi (__func__): Section renamed to func.
60106         Suggested by Eric Blake <ebb9@byu.net>.
60107
60108 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60109
60110         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60111         about __func__.  Make example self-contained.  Suggested by Eric
60112         Blake <ebb9@byu.net>.
60113
60114         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60115         Suggested by Eric Blake <ebb9@byu.net>.
60116
60117 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60118
60119         * modules/__func__: New file.
60120         * modules/__func__-tests: New file.
60121         * tests/test-__func__.c: New file.
60122         * m4/__func__.m4: New file.
60123         * doc/gnulib.texi (__func__): Document __func__ module.
60124
60125 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60126
60127         * modules/byteswap (License): Re-license as LGPLv2+.
60128
60129 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60130
60131         * doc/Makefile: Add pdf target.
60132
60133 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60134
60135         * modules/inline (License): Use 'unlimited', since there are only
60136         *.m4 files in this module.
60137
60138 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60139             Bruno Haible  <bruno@clisp.org>
60140
60141         Add support for HP C 7.1 on OpenVMS 8.3.
60142         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60143
60144 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60145
60146         Update VMS specifics.
60147         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60148
60149 2008-03-02  Jim Meyering  <meyering@redhat.com>
60150
60151         Remove the last dependency on the "free" module.
60152         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60153         Reported by Bob Proulx.
60154
60155         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60156
60157         Remove useless "if" tests before free.  Deprecate "free" module.
60158         * doc/posix-functions/free.texi: Mention that this
60159         module is no longer useful.
60160         * modules/free (Notice): Say this module is obsolete.
60161         * modules/readutmp (Depends-on): Remove free.
60162         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60163         * lib/putenv.c (putenv): Likewise.
60164         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60165         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60166         * tests/test-c-strcasestr.c (main): Likewise.
60167         * tests/test-c-strstr.c (main): Likewise.
60168         * tests/test-mbscasestr1.c (main): Likewise.
60169         * tests/test-mbscasestr2.c (main): Likewise.
60170         * tests/test-mbsstr1.c (main): Likewise.
60171         * tests/test-mbsstr2.c (main): Likewise.
60172         * tests/test-memmem.c (main): Likewise.
60173         * tests/test-strcasestr.c (main): Likewise.
60174         * tests/test-striconv.c (main): Likewise.
60175         * tests/test-striconveh.c (main): Likewise.
60176         * tests/test-striconveha.c (main): Likewise.
60177         * tests/test-strstr.c (main): Likewise.
60178
60179         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60180
60181         bootstrap: sync from coreutils again
60182         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60183
60184 2008-03-01  Jim Meyering  <meyering@redhat.com>
60185
60186         bootstrap: sync from coreutils
60187         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60188         also when the target doesn't exist.
60189
60190 2008-03-01  Eric Blake  <ebb9@byu.net>
60191
60192         Fix bugs in last patch.
60193         * lib/memchr2.c (memchr2): Fix typo.
60194         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60195         extension.
60196         Reported by Bruce Korb.
60197
60198         New module 'memchr2'.
60199         * modules/memchr2: New file.
60200         * modules/memchr2-tests: Likewise.
60201         * lib/memchr2.h: Likewise.
60202         * lib/memchr2.c: Likewise, based on memchr.c.
60203         * tests/test-memchr2.c: New test.
60204         * MODULES.html.sh (String handling): Add memchr2.
60205
60206 2008-02-29  Bruno Haible  <bruno@clisp.org>
60207
60208         * modules/freadseek-tests: New file.
60209         * tests/test-freadseek.sh: New file.
60210         * tests/test-freadseek.c: New file.
60211
60212         New module 'freadseek'.
60213         * modules/freadseek: New file.
60214         * lib/freadseek.h: New file.
60215         * lib/freadseek.c: New file.
60216         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60217
60218 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60219
60220         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60221         wydawca.
60222
60223         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60224         program_invocation_name and program_invocation_short_name are
60225         present.
60226
60227 2008-02-28  Bruno Haible  <bruno@clisp.org>
60228
60229         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60230         * tests/test-freadptr.sh: Also test non-seekable stdin.
60231
60232 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60233
60234         * build-aux/bootstrap (source_base, m4_base)
60235         (doc_base, tests_base): New variables.
60236         (gnulib_tool_options): Do not hardcode base directories, use
60237         the above variables instead.
60238
60239 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60240
60241         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60242
60243 2008-02-28  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/freadptr-tests: New file.
60246         * tests/test-freadptr.sh: New file.
60247         * tests/test-freadptr.c: New file.
60248
60249         New module 'freadptr'.
60250         * modules/freadptr: New file.
60251         * lib/freadptr.h: New file.
60252         * lib/freadptr.c: New file.
60253         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60254
60255 2008-02-26  Karl Berry  <karl@freefriends.org>
60256
60257         Sync from Libtool:
60258         * libltdl/argz.c (argz_add, argz_count): New functions.
60259         * libltdl/argz.in.h: Declare them.
60260         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60261
60262 2008-02-22  Bruno Haible  <bruno@clisp.org>
60263
60264         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60265         is a pointer type.  Needed for HP-UX 10.
60266         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60267         * doc/posix-functions/gmtime_r.texi: Likewise.
60268         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60269
60270 2008-02-24  Bruno Haible  <bruno@clisp.org>
60271
60272         * modules/environ-tests: New file.
60273         * tests/test-environ.c: New file.
60274
60275         New module 'environ'.
60276         * modules/environ: New file.
60277         * lib/unistd.in.h (environ): New declaration.
60278         * m4/environ.m4: New file.
60279         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60280         after use.
60281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60282         HAVE_DECL_ENVIRON.
60283         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60284         HAVE_DECL_ENVIRON.
60285         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60286         wrong claim that 'environ' is missing on some systems.
60287         * modules/execute (Depends-on): Add environ.
60288         * lib/execute.c (environ): Remove fallback declaration.
60289         * modules/pipe (Depends-on): Add environ.
60290         * lib/pipe.c (environ): Remove fallback declaration.
60291         * modules/setenv (Depends-on): Add environ.
60292         * lib/setenv.c (environ): Remove fallback declaration.
60293         * modules/unsetenv (Depends-on): Add environ.
60294         * lib/unsetenv.c (environ): Remove fallback declaration.
60295         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60296         m4/environ.m4.
60297         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60298         (gl_PREREQ_UNSETENV): Likewise.
60299
60300 2008-02-24  Bruno Haible  <bruno@clisp.org>
60301
60302         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60303
60304 2008-02-20  Bob Proulx  <bob@proulx.com>
60305
60306         Enable use of older two part flavor 'git describe'.
60307         * build-aux/git-version-gen: If using the older two part flavor of
60308         git version then recreate the third part now present in the
60309         newer three part flavor of git describe.
60310
60311 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60312
60313         * lib/fts.c (fts_build): Typo correction to comment.
60314
60315 2008-02-17  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60318         generating no-op conflicts.
60319
60320 2008-02-17  Bruno Haible  <bruno@clisp.org>
60321
60322         Speed up by 10%.
60323         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60324         result_entries, rather than an index-based loop.
60325
60326 2008-02-17  Bruno Haible  <bruno@clisp.org>
60327
60328         Speed up by 25%.
60329         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60330         'hashcode_cached'.
60331         (entry_create): New function.
60332         (entry_hashcode): Use the cached hashcode if possible.
60333         (read_changelog_file, try_split_merged_entry): Use entry_create.
60334
60335 2008-02-17  Bruno Haible  <bruno@clisp.org>
60336
60337         Speed up from O(n^2) to O(n) for long ChangeLog files.
60338         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60339         (read_changelog_file): Change implementation of entries_reversed list
60340         to rbtreehash.
60341         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60342
60343 2008-02-17  Bruno Haible  <bruno@clisp.org>
60344
60345         New option --split-merged-entry.
60346         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60347         (find_paragraph_end, try_split_merged_entry): New functions.
60348         (long_options): Add option --split-merged-entry.
60349         (usage): Document option --split-merged-entry.
60350         (main): Implement option --split-merged-entry.
60351         Reported by Eric Blake.
60352
60353 2008-02-17  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/git-merge-changelog.c: Include c-strstr.h.
60356         (main): Support the "git pull --rebase" situation.
60357         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60358         Reported by Eric Blake.
60359
60360 2008-02-16  Eric Blake  <ebb9@byu.net>
60361
60362         Avoid doubling \ in common case of "c-maybe" quoting style.
60363         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60364         eliding outer quotes.
60365         * lib/quotearg.h: Document this.
60366         * tests/test-quotearg.c (result_strings, inputs, results_g)
60367         (flag_results, locale_results): Test it by adding a new string to
60368         each test group.
60369         (compare_strings): Test new string.
60370
60371 2008-02-13  Eric Blake  <ebb9@byu.net>
60372
60373         Avoid trigraph quoting in default output.
60374         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60375         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60376         unless explicitly requested.
60377         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60378
60379 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60380
60381         Don't rely on signed integer overflowing to negative value.
60382         * lib/getugroups.c (getugroups): Include <limits.h>.
60383         Instead, compare against INT_MAX, and increment only if the test passes.
60384
60385 2008-02-13  Jim Meyering  <meyering@redhat.com>
60386         and Eric Blake  <ebb9@byu.net>
60387
60388         Avoid shadowing warning and compile errors on Linux.
60389         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60390         forwarding macros on Linux.
60391         (dcgettext): Define a stub, for Linux.
60392         (results_g, main): Avoid warnings.
60393
60394 2008-02-12  Eric Blake  <ebb9@byu.net>
60395
60396         Silence warning in last patch.
60397         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60398
60399         Quotearg part 4: add tests, fix c-maybe colon quoting.
60400         * lib/quotearg.h: Improve documentation.
60401         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60402         escapes when adding outer quotes.  When quoting trigraphs, use
60403         valid C notation.  When quoting NUL, omit extra characters if next
60404         character is not digit.  Alter prototype.
60405         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60406         callers.
60407         * modules/quotearg-tests: New module.
60408         * tests/test-quotearg.c: New test.
60409
60410 2008-02-07  Eric Blake  <ebb9@byu.net>
60411
60412         Quotearg part 3: add flag to control outer quote elision.
60413         * lib/quotearg.h (c_maybe_quoting_style): New style.
60414         (enum quoting_flags): Better documentation of flags.
60415         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60416         c-maybe style.
60417         (quotearg_buffer_restyled): Handle new flag to elide outer
60418         quotes.
60419
60420         Quotearg part 2: add flag that can control NUL elision.
60421         * lib/quotearg.h (set_quoting_flags): New prototype.
60422         * lib/quotearg.c (struct quoting_options): Add flag field.
60423         (set_quoting_flags): New function.
60424         (quotearg_buffer_restyled): Add flags parameter.
60425         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60426         (quotearg_n_options): Set the flag, since length cannot be
60427         returned.
60428         (quoting_options_from_style): Default flags correctly.
60429
60430         Quotearg part 1: more wrappers, restore quotearg_char state.
60431         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60432         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60433         (quotearg_colon_mem): New wrappers.
60434         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60435         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60436         functions.
60437         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60438         (quotearg_colon_mem): New functions.
60439
60440 2008-02-11  Bruno Haible  <bruno@clisp.org>
60441
60442         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60443         library in the current directory: it does not work with parallel make.
60444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60445
60446 2008-02-11  Bruno Haible  <bruno@clisp.org>
60447
60448         * .gitattributes: New file.
60449
60450 2008-02-11  Jim Meyering  <meyering@redhat.com>
60451
60452         useless-if-before-free: Fix reversed exit values.
60453         * build-aux/useless-if-before-free: Use correct values
60454         for EXIT_MATCH and EXIT_NO_MATCH.
60455
60456         * build-aux/useless-if-before-free: Close stdout carefully.
60457
60458 2008-02-10  Bruno Haible  <bruno@clisp.org>
60459
60460         New module 'git-merge-changelog'.
60461         * modules/git-merge-changelog: New file.
60462         * lib/git-merge-changelog.c: New file.
60463
60464 2008-02-10  Jim Meyering  <meyering@redhat.com>
60465
60466         useless-if-before-free: New option: --list (-l).
60467
60468         useless-if-before-free: Don't exit immediately upon open failure.
60469         * build-aux/useless-if-before-free: Exit 2 for errors.
60470         Upon failure to open a file, don't exit immediately.
60471         Rather, just warn and continue with any remaining files.
60472
60473 2008-02-10  Bruno Haible  <bruno@clisp.org>
60474
60475         New abstract list operation 'node_set_value'.
60476         * lib/gl_list.h (gl_list_node_set_value): New function.
60477         (struct gl_list_implementation): New field node_set_value.
60478         * lib/gl_list.c (gl_list_node_set_value): New function.
60479         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60480         (gl_array_list_implementation): Update.
60481         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60482         (gl_carray_list_implementation): Update.
60483         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60484         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60485         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60486         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60487         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60488         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60490         Update.
60491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60492         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60493         (gl_sublist_list_implementation): Update.
60494
60495 2008-02-10  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60498         Needed when ELEMENT is #defined to 'some_type *'.
60499
60500 2008-02-10  Jim Meyering  <meyering@redhat.com>
60501
60502         New script and module: useless-if-before-free
60503         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60504         * build-aux/useless-if-before-free: New file.
60505         * modules/useless-if-before-free: New file.
60506
60507         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60508
60509         xstrtol_error: Fix typo.
60510         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60511         s/exit_failure/exit_status/.
60512
60513 2008-02-09  Jim Meyering  <meyering@redhat.com>
60514
60515         New script and module: gitlog-to-changelog
60516         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60517         * modules/gitlog-to-changelog: New file.
60518         * build-aux/gitlog-to-changelog: New file.
60519
60520 2008-02-08  Jim Meyering  <meyering@redhat.com>
60521
60522         Avoid two "parameter unused" warnings.
60523         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60524         Mark "st" as used.
60525
60526         Use "git COMMAND", not "git-COMMAND".
60527         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60528         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60529         * build-aux/git-version-gen: Use "git status", not "git-status".
60530
60531 2008-02-07  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60534         Avoids a crash on Windows Vista.
60535         Reported by Adam Strzelecki <ono@java.pl> via
60536         Simon Josefsson <simon@josefsson.org>.
60537
60538 2008-02-06  Bruno Haible  <bruno@clisp.org>
60539
60540         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60541         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60542         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60544         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60546         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60547         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60555         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60556         left-adjust flag.
60557         * tests/test-snprintf-posix.h (test_function): Likewise.
60558         * tests/test-sprintf-posix.h (test_function): Likewise.
60559         * tests/test-vasprintf-posix.c (test_function): Likewise.
60560         * doc/posix-functions/fprintf.texi: Update.
60561         * doc/posix-functions/printf.texi: Update.
60562         * doc/posix-functions/snprintf.texi: Update.
60563         * doc/posix-functions/sprintf.texi: Update.
60564         * doc/posix-functions/vfprintf.texi: Update.
60565         * doc/posix-functions/vprintf.texi: Update.
60566         * doc/posix-functions/vsnprintf.texi: Update.
60567         * doc/posix-functions/vsprintf.texi: Update.
60568         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60569
60570 2008-02-06  Bruno Haible  <bruno@clisp.org>
60571
60572         Fix bug introduced on 2008-01-26.
60573         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60574
60575 2008-02-06  Bruno Haible  <bruno@clisp.org>
60576
60577         Fix bug introduced on 2007-06-10.
60578         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60579         !NEED_PRINTF_FLAG_ZERO.
60580
60581 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60582
60583         getloadavg: use libperfstat on AIX5
60584         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60585
60586 2008-02-03  Bruno Haible  <bruno@clisp.org>
60587
60588         * lib/diffseq.h: Add comments about required #includes.
60589         Reported by Michael Biggs <gnulib@doubleplum.net>.
60590
60591 2008-02-01  Bruno Haible  <bruno@clisp.org>
60592
60593         * users.txt: Add gnuit.
60594
60595 2008-01-31  Bruno Haible  <bruno@clisp.org>
60596
60597         * lib/md4.c (set_uint32): Mark as inline.
60598         * lib/md5.c (set_uint32): Likewise.
60599         * lib/sha1.c (set_uint32): Likewise.
60600         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60601         * m4/md5.m4 (gl_MD5): Likewise.
60602         * m4/sha1.m4 (gl_SHA1): Likewise.
60603
60604 2008-01-31  Jim Meyering  <meyering@redhat.com>
60605
60606         Use "sizeof VAR", rather than a literal "4".
60607         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60608         * lib/md4.c (md4_read_ctx): Likewise.
60609         * lib/sha1.c (sha1_read_ctx): Likewise.
60610
60611 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60612
60613         * tests/test-sha1.c: New file, based on test-md5.c.
60614
60615         * modules/crypto/sha1-tests: New file.
60616
60617 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60618
60619         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60620
60621 2008-01-31  Jim Meyering  <meyering@redhat.com>
60622
60623         Prefer "sizeof v" over the equivalent "4".
60624         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60625         * lib/md5.c (set_uint32): Likewise.
60626         * lib/sha1.c (set_uint32): Likewise.
60627
60628 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60629
60630         * lib/sha1.c (set_uint32): Mark function as static.
60631
60632 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60633
60634         md2: clarify comments to say that alignment is not required.
60635         * lib/md2.h: Remove warning about alignment in comment.
60636         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60637         never been required.
60638
60639 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60640
60641         md4: adapt alignment constraint fix from sha1.
60642         * lib/md4.c (set_uint32): New function, from sha1.c
60643         (md4_read_ctx): Use it.
60644         (md4_finish_ctx): Doc fix.
60645         * lib/md4.h: Doc fix.
60646
60647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60648
60649         md5: adapt alignment constraint fix from sha1.
60650         * lib/md5.c (set_uint32): New function, from sha1.c
60651         (md5_read_ctx): Use it.
60652         (md5_finish_ctx): Doc fix.
60653         * lib/md5.h: Doc fix.
60654
60655 2008-01-30  Peter Palfrader  <weasel@debian.org>
60656
60657         sha1: remove the result buffer alignment constraint
60658         * lib/sha1.c (set_uint32): New function.
60659         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60660         constraint.
60661         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60662         * lib/sha1.h: Likewise.
60663
60664 2008-01-30  Andreas Schwab  <schwab@suse.de>
60665             Bruno Haible  <bruno@clisp.org>
60666
60667         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60668         correct definition of LDBL_MIN_EXP.
60669
60670 2008-01-30  Karl Berry  <karl@gnu.org>
60671
60672         * config/srclist-update: try to preserve x bit on updates.
60673         * config/srclistvars.sh: update for karl.
60674
60675 2008-01-29  Jim Meyering  <meyering@redhat.com>
60676
60677         vasnprintf.c: Avoid warning about unused label
60678         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60679         "overflow" label definition and associated code with the
60680         same cpp condition that guards the sole use of that label.
60681
60682 2008-01-26  Bruno Haible  <bruno@clisp.org>
60683
60684         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60685         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60686         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60687         * lib/isnanl-nolibm.h (isnanl): Likewise.
60688         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60689
60690 2008-01-26  Bruno Haible  <bruno@clisp.org>
60691
60692         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60693         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60694
60695 2008-01-26  Bruno Haible  <bruno@clisp.org>
60696
60697         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60698         GCC >= 4.0 built-in.
60699         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60700
60701 2008-01-26  Bruno Haible  <bruno@clisp.org>
60702
60703         Rename isnan, applicable to 'double' only, to isnand.
60704         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60705         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60706         (configure.ac): Update.
60707         (Include): Replace "isnan.h" with "isnand.h".
60708         * m4/isnand.m4: Renamed from m4/isnan.m4.
60709         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60710         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60711         instead of isnan.c.
60712         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60713         instead of HAVE_ISNAN_IN_LIBC.
60714         (isnand): Renamed from isnan.
60715         * lib/isnand.c: New file.
60716         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60717         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60718         (Makefile.am): Update.
60719         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60720         Include isnand.h instead of isnan.h.
60721         (main): Test isnand instead of isnan.
60722         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60723         isnan-nolibm.
60724         * modules/frexp (Depends-on): Likewise.
60725         * modules/frexp-tests (Depends-on): Likewise.
60726         * modules/frexp-nolibm (Depends-on): Likewise.
60727         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60728         * modules/isfinite (Depends-on): Likewise.
60729         * modules/round-tests (Depends-on): Likewise.
60730         * modules/signbit (Depends-on): Likewise.
60731         * modules/signbit-tests (Depends-on): Likewise.
60732         * modules/snprintf-posix (Depends-on): Likewise.
60733         * modules/sprintf-posix (Depends-on): Likewise.
60734         * modules/trunc-tests (Depends-on): Likewise.
60735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60742         * modules/vasnprintf-posix (Depends-on): Likewise.
60743         * modules/vasprintf-posix (Depends-on): Likewise.
60744         * modules/vfprintf-posix (Depends-on): Likewise.
60745         * modules/vsnprintf-posix (Depends-on): Likewise.
60746         * modules/vsprintf-posix (Depends-on): Likewise.
60747         * lib/frexp.c: Include isnand.h instead of isnan.h.
60748         (ISNAN): Set to isnand instead of isnan.
60749         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60750         (gl_isfinited): Use isnand instead of isnan.
60751         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60752         (gl_signbitd): Use isnand instead of isnan.
60753         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60754         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60755         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60756         (main): Use isnand instead of isnan.
60757         * tests/test-round1.c: Include isnand.h.
60758         (main): Use isnand instead of isnan.
60759         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60760         (ISNAN): Set to isnand instead of isnan.
60761         * tests/test-trunc1.c: Include isnand.h.
60762         (main): Use isnand instead of isnan.
60763         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60764         (equal): Use isnand instead of isnan.
60765         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60766         isnand-nolibm.
60767         * NEWS: Mention the change.
60768
60769 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60770             Bruno Haible  <bruno@clisp.org>
60771
60772         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60773         the GCC builtins for signbits are present and set
60774         REPLACE_SIGNBIT_USING_GCC if so.
60775         * lib/math.in.h (signbit): Define using GCC builtins if
60776         REPLACE_SIGNBIT_USING_GCC is set.
60777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60778         REPLACE_SIGNBIT_USING_GCC.
60779         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60780
60781 2008-01-25  Jim Meyering  <meyering@redhat.com>
60782
60783         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60784         * lib/poll.c: Include <config.h>, not "config.h".
60785         * tests/test-getaddrinfo.c: Likewise.
60786
60787 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60788
60789         * modules/sockets-tests: New file.
60790
60791 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60792
60793         * modules/sockets: New module, can be used to call WSA_Startup and
60794         WSA_Cleanup when needed.
60795
60796         * lib/sockets.h, lib/sockets.c: New files.
60797
60798         * m4/sockets.m4: New file.
60799
60800         * tests/test-sockets.c: New file.
60801
60802 2008-01-19  Bruno Haible  <bruno@clisp.org>
60803
60804         * doc/posix-headers: Renamed from doc/headers.
60805         * doc/posix-functions: Renamed from doc/functions.
60806         * doc/gnulib.texi: Update.
60807
60808 2008-01-19  Bruno Haible  <bruno@clisp.org>
60809
60810         * doc/glibc-functions/strcasestr.texi: Include contents of
60811         doc/functions/strcasestr.texi, fixing the list of platforms.
60812         * doc/functions/strcasestr.texi: Remove file.
60813
60814 2008-01-19  Bruno Haible  <bruno@clisp.org>
60815
60816         * doc/glibc-functions/memmem.texi: Include contents of
60817         doc/functions/memmem.texi.
60818         * doc/functions/memmem.texi: Remove file.
60819
60820 2008-01-18  Bruno Haible  <bruno@clisp.org>
60821
60822         * doc/glibc-functions/*.texi: New files.
60823         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60824         to use the new files.
60825
60826 2008-01-17  Bruno Haible  <bruno@clisp.org>
60827
60828         * tests/test-gethostname.c (main): Fix printf statement.
60829
60830 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60831
60832         * modules/gethostname-tests: New file.
60833
60834         * tests/test-gethostname.c: New file.
60835
60836 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60837
60838         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60839         used by the UNAME case.  Reported by Bruno Haible
60840         <bruno@clisp.org>.
60841
60842 2008-01-17  Eric Blake  <ebb9@byu.net>
60843
60844         Convert c-strcasestr to be more efficient.
60845         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60846         (Depends-on): Add c-strcase, remove malloca, strnlen.
60847         * tests/test-c-strcasestr.c (main): Enhance test.
60848         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60849
60850 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60851
60852         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60853         Use it in creating po/Makevars.
60854
60855 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60856
60857         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60858         Applications that requires it should initialize libgcrypt
60859         manually.
60860
60861 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60862
60863         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60864
60865 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         Fix problem with getdate on mingw32 reported by Simon Josefsson
60868         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60869         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60870         tzname", when deciding whether to declare tzname.
60871         * lib/strftime.c (tzname): Likewise.
60872
60873 2008-01-15  Bruno Haible  <bruno@clisp.org>
60874
60875         Work around a MacOS X 10.5 bug in frexpl().
60876         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60877         * doc/functions/frexpl.texi: Document the bug.
60878         Reported by Elias Pipping <pipping@gentoo.org>.
60879
60880 2008-01-14  Eric Blake  <ebb9@byu.net>
60881
60882         Touch up previous patch.
60883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60884         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60885
60886         Convert strcasestr module to use Two-Way algorithm.
60887         * modules/strcasestr-simple: New module, based on the old
60888         strcasestr, but with Two-Way rather than KMP.
60889         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60890         * lib/string.in.h (rpl_strcasestr): Declare.
60891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60892         performance.
60893         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60894         * modules/string (Makefile.am): Support strcasestr.
60895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60896         * modules/strcasestr-tests (Depends-on): Check for alarm.
60897         * tests/test-strcasestr.c: Augment test.
60898         * lib/str-two-way.h: Clean up stray macro.
60899         * NEWS: Document new module.
60900         * MODULES.html.sh (string handling): Likewise.
60901         * doc/functions/strcasestr.texi: New file.
60902         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60903         here, since it is not a POSIX function.
60904
60905 2008-01-14  Colin Watson  <cjwatson@debian.org>
60906             Bruno Haible  <bruno@clisp.org>
60907
60908         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60909         works fine; if not, set REPLACE_STRSIGNAL.
60910         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60912         REPLACE_STRSIGNAL.
60913         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60914         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60915         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60916
60917 2008-01-14  Bruno Haible  <bruno@clisp.org>
60918
60919         * modules/strsignal (Include): Change to <string.h>.
60920
60921 2008-01-14  Colin Watson  <cjwatson@debian.org>
60922
60923         * modules/argp (Notice): Add a notice recommending to change
60924         XGETTEXT_OPTIONS.
60925         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60926
60927 2008-01-13  Colin Watson  <cjwatson@debian.org>
60928
60929         * modules/strsignal-tests: New file.
60930         * tests/test-strsignal.c: New file.
60931
60932         * lib/strsignal.c: New file, from glibc with modifications.
60933         * lib/siglist.h: New file, from glibc with modifications.
60934         * lib/string.in.h (strsignal): New declaration.
60935         * m4/strsignal.m4: New file.
60936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60937         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60938         * modules/strsignal: New file.
60939         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60940         HAVE_DECL_STRSIGNAL.
60941
60942 2008-01-13  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60945         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60946         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60947         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60948
60949 2008-01-13  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60952         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60953         * lib/argp.h (__attribute__): Likewise.
60954         * lib/c-stack.c (__attribute__): Likewise.
60955         * lib/error.h (__attribute__): Likewise.
60956         * lib/fts.c (__attribute__): Likewise.
60957         * lib/openat.h (__attribute__): Likewise.
60958         * lib/stdio.in.h (__attribute__): Likewise.
60959         * lib/string.in.h (__attribute__): Likewise.
60960         * lib/utimens.c (__attribute__): Likewise.
60961         * lib/vasnprintf.h (__attribute__): Likewise.
60962         * lib/xalloc.h (__attribute__): Likewise.
60963         * lib/xprintf.h (__attribute__): Likewise.
60964         * lib/xstrtol.h (__attribute__): Likewise.
60965         * lib/xvasprintf.h (__attribute__): Likewise.
60966
60967 2008-01-12  Bruno Haible  <bruno@clisp.org>
60968
60969         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60970         * doc/glibc-headers/a.out.texi: New file.
60971         * doc/glibc-headers/aliases.texi: New file.
60972         * doc/glibc-headers/alloca.texi: New file.
60973         * doc/glibc-headers/ar.texi: New file.
60974         * doc/glibc-headers/argp.texi: New file.
60975         * doc/glibc-headers/argz.texi: New file.
60976         * doc/glibc-headers/byteswap.texi: New file.
60977         * doc/glibc-headers/crypt.texi: New file.
60978         * doc/glibc-headers/endian.texi: New file.
60979         * doc/glibc-headers/envz.texi: New file.
60980         * doc/glibc-headers/err.texi: New file.
60981         * doc/glibc-headers/error.texi: New file.
60982         * doc/glibc-headers/execinfo.texi: New file.
60983         * doc/glibc-headers/fpu_control.texi: New file.
60984         * doc/glibc-headers/fstab.texi: New file.
60985         * doc/glibc-headers/fts.texi: New file.
60986         * doc/glibc-headers/getopt.texi: New file.
60987         * doc/glibc-headers/ieee754.texi: New file.
60988         * doc/glibc-headers/ifaddrs.texi: New file.
60989         * doc/glibc-headers/libintl.texi: New file.
60990         * doc/glibc-headers/mcheck.texi: New file.
60991         * doc/glibc-headers/mntent.texi: New file.
60992         * doc/glibc-headers/obstack.texi: New file.
60993         * doc/glibc-headers/paths.texi: New file.
60994         * doc/glibc-headers/printf.texi: New file.
60995         * doc/glibc-headers/pty.texi: New file.
60996         * doc/glibc-headers/resolv.texi: New file.
60997         * doc/glibc-headers/shadow.texi: New file.
60998         * doc/glibc-headers/sysexits.texi: New file.
60999         * doc/glibc-headers/ttyent.texi: New file.
61000
61001 2008-01-12  Jim Meyering  <meyering@redhat.com>
61002
61003         announce-gen: emit Gnulib's git-based version string.
61004         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61005         New option --gnulib-version=V, where V is expected to be
61006         the output of running git describe in the gnulib directory.
61007         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61008         not useful, and plan to stop publishing an xdelta file with each
61009         coreutils release.
61010
61011         * build-aux/announce-gen: Also check for lzma-compressed files.
61012
61013 2008-01-11  Bruno Haible  <bruno@clisp.org>
61014
61015         * tests/test-memmem.c (main): Increase maximum allowed time.
61016         * tests/test-strstr.c (main): Likewise.
61017
61018 2008-01-11  Bruno Haible  <bruno@clisp.org>
61019
61020         * doc/functions/memmem.texi: Add more precisions about platforms.
61021         * doc/functions/strstr.texi: Likewise.
61022
61023 2008-01-10  Eric Blake  <ebb9@byu.net>
61024
61025         * m4/strstr.m4: Delete cruft from copy-n-paste.
61026         Reported by Bruno Haible.
61027
61028 2008-01-10  Bruno Haible  <bruno@clisp.org>
61029
61030         Make c-strstr rely on strstr.
61031         * lib/c-strstr.c: Don't include str-kmp.h.
61032         (c_strstr): Define in terms of strstr.
61033         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61034         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61035
61036 2008-01-10  Bruno Haible  <bruno@clisp.org>
61037
61038         * doc/gnulib.texi (String Functions in C Locale): New section.
61039         * doc/c-ctype.texi: New file.
61040         * doc/c-strcase.texi: New file.
61041         * doc/c-strcaseeq.texi: New file.
61042         * doc/c-strcasestr.texi: New file.
61043         * doc/c-strstr.texi: New file.
61044         * doc/c-strtod.texi: New file.
61045         * doc/c-strtold.texi: New file.
61046
61047 2008-01-10  Eric Blake  <ebb9@byu.net>
61048
61049         * lib/relocatable.h: Fix a comment.
61050
61051 2008-01-10  Eric Blake  <ebb9@byu.net>
61052
61053         Share two-way algorithm.
61054         * lib/str-two-way.h: New file, merged from...
61055         * lib/memmem.c: ...here...
61056         * lib/strstr.c: ...and here.
61057         * modules/memmem (Files): Use it.
61058         * modules/strstr (Files): Likewise.
61059
61060         Avoid quadratic strstr implementations.
61061         * lib/strstr.c: New file.
61062         * m4/strstr.m4: Likewise.
61063         * modules/strstr: Likewise.
61064         * modules/strstr-tests: Likewise.
61065         * tests/test-strstr.c: Likewise.
61066         * lib/string.in.h (rpl_strstr): Declare.
61067         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61069         * modules/string (Makefile.am): Likewise.
61070         * MODULES.html.sh (string handling): Mention new module.
61071         * doc/functions/strstr.texi (strstr): Document the bug.
61072
61073 2008-01-10  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/relocatable.h (relocate): State whether result is freshly
61076         allocated or not.
61077         * lib/relocatable.c (relocate): Return a freshly allocated string
61078         instead of a pointer to a privately held string.
61079         Reported by Sylvain Beucler <beuc@gnu.org>.
61080
61081 2008-01-10  Colin Watson  <cjwatson@debian.org>
61082
61083         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61084         s/S_ISNLK/S_ISLNK/.
61085
61086 2008-01-09  Bruno Haible  <bruno@clisp.org>
61087
61088         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61089         and other files.
61090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61091         if it's only a guess.
61092         * modules/memmem: Simplify by depending on memmem-simple.
61093
61094 2008-01-09  Bruno Haible  <bruno@clisp.org>
61095
61096         Work around OpenBSD 4.0 tdelete() bug.
61097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61098         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61099         macros and don't redefine the enum values.
61100         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61101         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61102         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61103
61104 2008-01-09  Bruno Haible  <bruno@clisp.org>
61105
61106         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61107         (main): Don't perform the tests if setlocale did not install a UTF-8
61108         locale. Needed on OpenBSD 4.0.
61109         * modules/wcwidth-tests (Depends-on): Add localcharset.
61110
61111 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61114         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61115         * NEWS: announce this.
61116         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61117
61118 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61119         and Eric Blake  <ebb9@byu.net>
61120
61121         Add memmem-simple module.
61122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61123         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61124         * modules/memmem-simple: New file.
61125         * modules/memmem (Description): Tweak.
61126         * MODULES.html.sh (string handling): Mention new module.
61127         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61128         addressed by memmem-simple.
61129         * NEWS: Document the difference.
61130
61131 2008-01-09  Eric Blake  <ebb9@byu.net>
61132
61133         Give gcc some memmem optimization hints.
61134         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61135         (strcasestr): Declare as pure.
61136         * modules/memmem (Maintainer): Claim my implementation.
61137
61138 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61139
61140         Support AIX 6.1 and higher.
61141         * build-aux/config.libpath: Likewise.
61142         * build-aux/config.rpath: Likewise.
61143
61144 2008-01-08  Jim Meyering  <meyering@redhat.com>
61145             Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61148         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61149         Reported by Peter Fales in
61150         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61151
61152 2008-01-08  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/unictype/category-of (Depends-on): Add
61155         unictype/category-none.
61156         * modules/unictype/category-and-tests (Depends-on): Add
61157         unictype/category-{L,N,Lu,Nd}.
61158         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61159         * modules/unictype/category-or-tests (Depends-on): Add
61160         unictype/category-{L,N}.
61161         * modules/unictype/category-name-tests (Depends-on): Add
61162         unictype/category-{Z,Nl}.
61163         Reported by Simon Josefsson.
61164
61165 2008-01-08  Bruno Haible  <bruno@clisp.org>
61166
61167         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61168         convention better.
61169         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61170         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61171         Reported by Peter Miller <millerp@canb.auug.org.au>.
61172
61173 2008-01-08  Eric Blake  <ebb9@byu.net>
61174
61175         Rewrite memmem to guarantee linear complexity without malloc.
61176         * lib/memmem.c (memmem): Use Two-Way rather than
61177         Knuth-Morris-Pratt, to allow O(1) space usage.
61178         (critical_factorization, two_way_short_needle)
61179         (two_way_long_needle): New functions.
61180         (knuth_morris_pratt): Delete.
61181         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61182         Add stdint.
61183         * tests/test-memmem.c (main): Add tests for periodic needle and
61184         sublinear performance.
61185         * doc/functions/memmem.texi (memmem): Document other deficiencies
61186         in cygwin and older glibc.
61187
61188 2008-01-08  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61191         augmentation.
61192
61193 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61194
61195         Add a configure time option: --disable-acl.
61196         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61197         AC_ARG_ENABLE(acl).
61198
61199 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61200
61201         * tests/test-localename.c: Don't include obsolete "setenv.h".
61202
61203         * modules/localename-tests (Depends-on): Need unsetenv.
61204
61205 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61206
61207         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61208
61209 2008-01-06  Colin Watson  <cjwatson@debian.org>
61210
61211         * users.txt: Add man-db.
61212
61213 2008-01-07  Bruno Haible  <bruno@clisp.org>
61214
61215         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61216         previous section name.
61217
61218 2008-01-07  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/progname.c (set_program_name): Don't strip off a leading
61221         "lt-" prefix outside a .libs directory.
61222         Suggested by Paul Eggert.
61223
61224 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61225             Bruno Haible  <bruno@clisp.org>
61226
61227         Improve memory cleanup in 'relocatable' module.
61228         * lib/relocatable.h (compute_curr_prefix): Change return type to
61229         'char *'.
61230         * lib/relocatable.c (compute_curr_prefix): Change return type to
61231         'char *'. Free curr_installdir after use.
61232         (relocate): Free curr_prefix_better after use.
61233         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61234
61235 2008-01-01  Bruno Haible  <bruno@clisp.org>
61236
61237         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61238         failure on older glibc systems.
61239         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61240
61241 2008-01-05  Eric Blake  <ebb9@byu.net>
61242
61243         Avoid quadratic system memmem.
61244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61245         Reported by Ralf Wildenhues.
61246
61247         Fix memmem test for mingw.
61248         * modules/memmem-tests (configure.ac): Check for alarm.
61249         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61250         it.
61251         * doc/functions/memmem.texi: New file.
61252         * doc/gnulib.texi (Function Substitutes): Add memmem.
61253         Reported by Bruno Haible.
61254
61255 2008-01-04  Bruno Haible  <bruno@clisp.org>
61256
61257         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61258         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61259         gl_HEADER_STRING_H_DEFAULTS.
61260
61261 2008-01-04  Eric Blake  <ebb9@byu.net>
61262
61263         Shorten duration of memmem test.
61264         * tests/test-memmem.c (main): Use alarm to declare failure if test
61265         is taking too long.
61266         Reported by Ralf Wildenhues.
61267
61268 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61269
61270         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61271         string, needed by strerror.
61272
61273 2008-01-03  Colin Watson  <cjwatson@debian.org>
61274             Bruno Haible  <bruno@clisp.org>
61275
61276         * doc/gnulib-tool.texi (Localization): New section.
61277
61278 2008-01-02  Bruno Haible  <bruno@clisp.org>
61279
61280         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61281         variables to 'unsigned char *' type.
61282         Reported by Paul Eggert.
61283
61284 2008-01-02  Jim Meyering  <jim@meyering.net>
61285
61286         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61287
61288 2007-12-31  Jim Meyering  <jim@meyering.net>
61289
61290         Avoid use of private FTS type name.
61291         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61292
61293 2007-12-30  Karl Berry  <karl@gnu.org>
61294
61295         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61296         work around defect in Texinfo and/or the standalone Info browser.
61297
61298 2007-12-30  Bruno Haible  <bruno@clisp.org>
61299
61300         Unify 5 copies of the KMP code.
61301         * lib/str-kmp.h: New file.
61302         * lib/c-strcasestr.c: Include str-kmp.h.
61303         (knuth_morris_pratt): Remove function.
61304         (c_strcasestr): Update.
61305         * lib/c-strstr.c: Include str-kmp.h.
61306         (knuth_morris_pratt): Remove function.
61307         (c_strcasestr): Update.
61308         * lib/mbscasestr.c: Include str-kmp.h.
61309         (knuth_morris_pratt_unibyte): Remove function.
61310         * lib/mbsstr.c: Include str-kmp.h.
61311         (knuth_morris_pratt_unibyte): Remove function.
61312         * lib/strcasestr.c: Include str-kmp.h.
61313         (knuth_morris_pratt): Remove function.
61314         (strcasestr): Update.
61315         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61316         * modules/c-strstr (Files): Likewise.
61317         * modules/mbscasestr (Files): Likewise.
61318         * modules/mbsstr (Files): Likewise.
61319         * modules/strcasestr (Files): Likewise.
61320         Suggested by Paul Eggert.
61321
61322 2007-12-30  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61325         defined.
61326
61327 2007-12-30  Bruno Haible  <bruno@clisp.org>
61328
61329         * lib/xmalloca.h: Include xalloc.h.
61330         (xnmalloca): New macro.
61331
61332 2007-12-30  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/malloca.h (nmalloca): New macro.
61335         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61336         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61337         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61338         knuth_morris_pratt_multibyte): Likewise.
61339         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61340         knuth_morris_pratt_multibyte): Likewise.
61341         * lib/memmem.c (knuth_morris_pratt): Likewise.
61342         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61343
61344 2007-12-25  Bruno Haible  <bruno@clisp.org>
61345
61346         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61347         * lib/glob.c: Don't include openat.h.
61348         (link_exists2_p): Add back the code that deals with the
61349         !GLOB_ALTDIRFUNC case.
61350         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61351         let it do the filename concatenation.
61352         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61353         * modules/glob (Depends-on): Remove openat.
61354
61355 2007-12-31  Bruno Haible  <bruno@clisp.org>
61356
61357         * modules/dirfd (License): Change to LGPLv2+.
61358         Approved by Jim Meyering.
61359
61360 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61361
61362         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61363         when multiplying M by sizeof (size_t).
61364
61365 2007-12-10  Martin Lambers  <marlam@marlam.de>
61366
61367         Override getpagesize on mingw.
61368         * lib/getpagesize.c: New file.
61369         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61370         * modules/getpagesize (Files): Add lib/getpagesize.c.
61371         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61373         REPLACE_GETPAGESIZE.
61374         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61375
61376 2007-12-25  Bruno Haible  <bruno@clisp.org>
61377
61378         * modules/localcharset (Notice): New field.
61379         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61380         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61381
61382 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61383             Bruno Haible  <bruno@clisp.org>
61384
61385         Avoid using the syntax symbol() in formatted documentation.
61386         * MODULES.html.sh (func_module): When replacing symbol() with a
61387         hyperlink, remove the parentheses. Show an error if some remain.
61388         Recognize and render the '...' syntax.
61389         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61390         Rework. Add paragraph about GCC's inlining.
61391         * doc/alloca.texi: Likewise.
61392         * doc/error.texi: Remove parentheses from symbol reference.
61393         * doc/gnulib-intro.texi: Likewise.
61394         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61395         * modules/fnmatch (Description): Reword to say "the ... function".
61396         * modules/full-read (Description): Likewise.
61397         * modules/full-write (Description): Likewise.
61398         * modules/safe-read (Description): Likewise.
61399         * modules/safe-write (Description): Likewise.
61400         * modules/strchrnul (Description): Likewise.
61401         * modules/trim (Description): Likewise.
61402         * modules/error (Description): Remove parentheses from symbol
61403         references.
61404         * modules/verror (Description): Likewise.
61405         Reported by Karl Berry.
61406
61407 2007-12-25  Bruno Haible  <bruno@clisp.org>
61408
61409         Fixup after 2007-10-16 commit.
61410         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61411
61412 2007-12-24  Bruno Haible  <bruno@clisp.org>
61413
61414         Make --enable-relocatable work with DESTDIR.
61415         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61416         to compute installdir from destprog.
61417         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61418         also set the RELOC_DESTDIR variable.
61419         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61420
61421 2007-12-24  Bruno Haible  <bruno@clisp.org>
61422
61423         Fix link error due to xalloc_die().
61424         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61425         of xreadlink.
61426         * lib/relocwrapper.c: Update comments.
61427         * build-aux/install-reloc: Remove xreadlink.c from file list.
61428         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61429         xreadlink.c.
61430         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61431
61432 2007-12-24  Bruno Haible  <bruno@clisp.org>
61433
61434         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61435         * lib/setenv.h: Remove file.
61436         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61437         lib/setenv.h.
61438         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61439         (Depends-on): Add stdlib.
61440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61441         gl_FUNC_UNSETENV.
61442         (Include): Replace setenv.h with <stdlib.h>.
61443         * modules/unsetenv: New file.
61444         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61445         * lib/unsetenv.c: Include <stdlib.h> first.
61446         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61447         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61448         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61449         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61450         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61451         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61453         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61454         * doc/functions/unsetenv.texi: Update.
61455         * modules/xsetenv (Depends-on): Add unsetenv.
61456         * modules/getdate (Depends-on): Likewise.
61457         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61458         * lib/xsetenv.c: Don't include setenv.h.
61459         * lib/getdate.y: Likewise.
61460         * lib/relocwrapper.c: Likewise.
61461         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61462         (Depends-on): Add stdlib.
61463         * NEWS: Mention the changes.
61464         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61465
61466 2007-12-23  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61469         indentation.
61470
61471 2007-12-23  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/c-strcasestr.c: Add more comments.
61474         * lib/c-strstr.c: Likewise.
61475         * lib/mbscasestr.c: Likewise.
61476         * lib/mbsstr.c: Likewise.
61477         * lib/strcasestr.c: Likewise.
61478         * lib/memmem.c: Likewise.
61479
61480 2007-12-23  Bruno Haible  <bruno@clisp.org>
61481
61482         * tests/test-memmem.c: Include <string.h> first.
61483
61484 2007-12-22  Bruno Haible  <bruno@clisp.org>
61485
61486         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61487         the contents of $testsbase.
61488         Reported by Ralf Wildenhues.
61489
61490 2007-12-22  Bruno Haible  <bruno@clisp.org>
61491
61492         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61493         two variables local_ldadd_before, local_ldadd_last.
61494
61495 2007-12-20  Eric Blake  <ebb9@byu.net>
61496
61497         Work around circular library issue when cross-compiling.
61498         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61499         that progname.o does not need to pull in rpl_memcmp.
61500
61501 2007-12-19  Eric Blake  <ebb9@byu.net>
61502
61503         Fix memmem to avoid O(n^2) worst-case complexity.
61504         * lib/memmem.c (knuth_morris_pratt): New function.
61505         (memmem): Use it if first few naive iterations fail.
61506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61507         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61508         * modules/memchr (License): Likewise.
61509         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61510         malloca.
61511         * tests/test-memmem.c: Rewrite, borrowing ideas from
61512         test-mbsstr1.c; the old version wouldn't even compile!
61513         * modules/memmem-tests: New file.
61514         * lib/string.in.h (rpl_memmem): Add declaration.
61515         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61517         REPLACE_MEMMEM.
61518
61519 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61522         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61523         before any system include files, and undef after them all.  This
61524         should fix a problem on VMS reported by John E. Malmberg in
61525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61526
61527 2007-12-17  Eric Blake  <ebb9@byu.net>
61528
61529         Revert addition of verify, for BSD/OS.
61530         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61531         can't handle large files, for the sake of obsolete platforms.
61532         * modules/fseeko (Depends-on): Remove verify.
61533         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61534         * doc/functions/ftello.texi (ftello): Likewise.
61535         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61536         Reported by Larry Jones.
61537
61538 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61539
61540         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61541         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61542
61543 2007-12-17  Jim Meyering  <meyering@redhat.com>
61544
61545         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61546         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61547         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61548         * modules/getcwd (Depends-on): Add openat.
61549         Reported by Petr Salinger.
61550
61551 2007-12-17  Bruno Haible  <bruno@clisp.org>
61552
61553         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61554         avoid a segmentation fault of the configure test on x86_64 systems.
61555
61556 2007-12-15  Jim Meyering  <meyering@redhat.com>
61557
61558         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61559
61560 2007-12-13  Eric Blake  <ebb9@byu.net>
61561
61562         Another fseek test.
61563         * tests/test-fseek.c (main): Also test ungetc handling.
61564         * tests/test-fseeko.c (main): Likewise.
61565         * modules/fseeko (Depends-on): Add verify.
61566         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61567         large.
61568         Reported by Larry Jones.
61569
61570         Fix fseeko on mingw.
61571         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61572         seek.
61573
61574         Beef up fseek tests.
61575         * tests/test-fseek.c (main): Also test eof handling.
61576         * tests/test-fseeko.c (main): Likewise.
61577         Reported by Larry Jones.
61578
61579 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61580
61581         Fix fseeko on BSD-based platforms.
61582         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61583         successful seek.
61584
61585 2007-12-12  Eric Blake  <ebb9@byu.net>
61586
61587         Allow circular dependency of separate libtests.a
61588         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61589         when use_libtests.
61590
61591 2007-12-11  Eric Blake  <ebb9@byu.net>
61592
61593         Fix bug with -0.0L in previous patch.
61594         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61595         * tests/test-isnan.c (main): Also test on zeroes.
61596         * tests/test-isnanf.c (main): Likewise.
61597         * tests/test-isnanl.h (main): Likewise.
61598
61599         Detect pseudo-denormals on x86 even when cross-compiling.
61600         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61601         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61602         invalid bit patterns that happen to satisfy ==.
61603
61604         Avoid link failures with separate libtests.a.
61605         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61606         last, to satisfy circular dependencies.
61607
61608 2007-12-11  Eric Blake  <ebb9@byu.net>
61609         and Bruno Haible  <bruno@clisp.org>
61610
61611         Fix OpenBSD 4.0 <float.h> handling of long double.
61612         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61613         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61614         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61615
61616 2007-12-11  Jim Meyering  <meyering@redhat.com>
61617
61618         * users.txt: Add libvirt.
61619
61620         Support versions of autoconf prior to 2.59c.
61621         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61622         if it is not already defined.
61623
61624 2007-12-09  Bruno Haible  <bruno@clisp.org>
61625
61626         Let 'gnulib-tool --import' collect sources needed for the tests in
61627         tests/ rather than in lib/.
61628         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61629         argument. If true, add rules to generate libtests.a, and put libtests.a
61630         into $(LDADD). Consider source files in subdirectories and set
61631         uses_subdirs.
61632         (func_emit_initmacro_start, func_emit_initmacro_end,
61633         func_emit_initmacro_done): Pass all arguments explicitly.
61634         (func_import): Determine two module lists main_modules,
61635         testsrelated_modules. Determine use_libtests. Determine two variables
61636         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61637         instead of just sed_transform_lib_file. Determine two variables
61638         main_files and testsrelated_files. Compute 'files' as the union of
61639         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61640         func_add_or_update. In the generated gnulib-comp.m4, collect the
61641         object files for tests/ in different variables than those for lib/.
61642         Substitute LIBTESTS_LIBDEPS.
61643         (func_create_testdir): Combine the uses_subdirs results from
61644         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61645
61646 2007-12-09  Bruno Haible  <bruno@clisp.org>
61647
61648         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61649         the build-aux directory.
61650
61651 2007-12-09  Bruno Haible  <bruno@clisp.org>
61652
61653         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61654         introduced on 2006-09-09.
61655
61656 2007-12-07  Jim Meyering  <meyering@redhat.com>
61657
61658         Let these macros work also with autoconf-2.59.
61659         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61660         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61661         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61662
61663 2007-12-06  Jim Meyering  <meyering@redhat.com>
61664
61665         Avoid a configure-time syntax error in gl_FUNC_ACL.
61666         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61667         function in each branch, before testing the cache variable.
61668
61669 2007-12-04  Eric Blake  <ebb9@byu.net>
61670
61671         Make scripts executable.
61672         * build-aux/config.guess: Add execute permissions.
61673         * build-aux/config.sub: Likewise.
61674         * build-aux/gendocs.sh: Likewise.
61675
61676         Fix frexp on mingw.
61677         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61678         cross-compiling.
61679         * doc/functions/frexp.texi (frexp): Document the bug.
61680
61681         Make cygwin fseeko check more reliable.
61682         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61683         version numbers, rather than unrelated feature check.
61684         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61685         * doc/functions/ftello.texi (ftello): Likewise.
61686         Reported by Bruno Haible.
61687
61688         * m4/strerror.m4: Bump version number.
61689
61690 2007-12-03  Bruno Haible  <bruno@clisp.org>
61691
61692         * doc/functions/mprotect.texi: Mention the mingw problem.
61693
61694 2007-12-03  Eric Blake  <ebb9@byu.net>
61695
61696         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61697         REPLACE_STRERROR is initialized before this macro.
61698
61699 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61700
61701         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61702         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61703         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61704         put -lsec in even for programs other than 'ls'.  This fixes a problem
61705         for gettext reported by Bruno Haible in
61706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61707         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61708         Add support for Solaris 10.  This isn't efficient, but should get the
61709         job done for now.
61710
61711 2007-12-03  James Youngman  <jay@gnu.org>
61712
61713         * doc/regexprops-generic.texi: change "an close-group" to "a
61714         close-group" and "illegal" to "not allowed".
61715
61716 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61717
61718         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61719         pr_byname.h. Needed for the rare case when the maintainer has done
61720         "make maintainer-clean" in the source directory and then attempts a
61721         build outside the source directory.
61722         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61723         scripts_byname.h.
61724
61725 2007-12-02  Martin Lambers <marlam@marlam.de>
61726             Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/getpagesize.h: Remove file.
61729         * lib/unistd.in.h: Include declaration of getpagesize here.
61730         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61731         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61732         HAVE_SYS_PARAM_H.
61733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61734         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61735         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61736         (Depends-on): Add unistd.
61737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61738         (Include): Use <unistd.h> instead of getpagesize.h.
61739         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61740         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61741         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61742         gl_GETPAGESIZE invocation, already handled by module dependency.
61743         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61744
61745 2007-12-02  Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/strings-tests: New file.
61748         * tests/test-strings.c: New file.
61749
61750         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61751         * lib/strings.in.h: New file.
61752         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61753         * m4/strings_h.m4: New file.
61754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61755         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61756         * modules/strings: New file.
61757         * modules/string (Makefile.am): Update.
61758         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61759         Reported by Karl Berry.
61760
61761 2007-12-01  Eric Blake  <ebb9@byu.net>
61762
61763         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61764         accommodate fix in cygwin 1.5.25.
61765
61766 2007-12-01  Jim Meyering  <meyering@redhat.com>
61767
61768         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61769         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61770         that would inhibit utf8-optimization of a regexp containing line-
61771         or buffer-anchors, e.g., `^', `$'.
61772
61773 2007-11-30  Bruno Haible  <bruno@clisp.org>
61774
61775         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61776         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61777         glthread_recursive_lock_init.
61778         * lib/lock.c (glthread_recursive_lock_init)
61779         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61780         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61781
61782 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61783
61784         New function qset_acl, like set_acl but with syscall semantics.
61785         * lib/acl.h (qset_acl): New decl.
61786         * lib/acl.c (qset_acl): New function.
61787         (set_acl): Use new function.  Use more-consistent diagnostics.
61788
61789 2007-11-28  Jim Meyering  <meyering@redhat.com>
61790
61791         * modules/physmem (License): Change from GPL to LGPLv2+.
61792
61793 2007-11-26  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61796         'long double' type has excess precision.
61797         Reported by Jim Meyering in
61798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61799
61800 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61801
61802         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61803         Sync from <http://gnu.org/licenses>.
61804         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61805         with license text from same location.
61806         * doc/maintain.texi, doc/standards.texi:  Sync from
61807         <http://savannah.gnu.org/projects/gnustandards>.
61808
61809 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61810         and Jim Meyering  <meyering@redhat.com>
61811
61812         Adjust getdate' grammar to accept a slightly more regular language.
61813         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61814         Before, the former was rejected.
61815         * lib/getdate.y (digits_to_date_time): New function, factored
61816         out of ...
61817         (number): ...here.  Just call digits_to_date_time.
61818         (hybrid): New non-terminal to handle an <unsigned number,
61819         signed relative offset> sequence consistently.
61820
61821 2007-11-18  Jim Meyering  <meyering@redhat.com>
61822
61823         Pull my changes from coreutils:
61824         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61825         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61826         use of $gnulib_tool_option_extras, so that it's separated from the
61827         preceding argument.
61828
61829         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61830         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61831         parent destination directories before copying a file into place.
61832
61833 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61834
61835         bootstrap: work also with 4-argument variant of AC_INIT
61836         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61837
61838 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61839
61840         Port test-getaddrinfo to Solaris.
61841         Problem reported by Bruno Haible in
61842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61843         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61844         explanation of setting 'hints'.
61845         Don't reject an implementation merely because it returns EAI_SERVICE.
61846         (EAI_SERVICE): Define to 0 if not defined.
61847
61848 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         The license of gnu-make and posix-shell is now "GPLed build tool".
61851         * modules/gnu-make (License): Likewise.
61852         * modules/posix-shell (License): Likewise.
61853
61854         New module posix-shell, for determining a POSIX shell
61855         or perhaps something that is close enough to a POSIX shell.
61856         * m4/posix-shell.m4: New file.
61857         * modules/posix-shell: New file.
61858
61859         * MODULES.html.sh: Mention new module.
61860
61861         New module gnu-make, for determining whether we're using GNU Make.
61862         * m4/gnu-make.m4: New file.
61863         * modules/gnu-make: New file.
61864         * MODULES.html.sh: Mention new module.
61865
61866 2007-11-14  Jim Meyering  <meyering@redhat.com>
61867
61868         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61869         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61870         use this macro to create a function _definition_.
61871         Remove useless "#undef ARGMATCH_DIE".
61872
61873 2007-11-14  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/config.charset: Update for OpenBSD 4.1.
61876         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61877
61878 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61879
61880         Document 64-bit #if problems in stdint.texi.
61881         * doc/headers/stdint.texi (stdint.h): Mention problems with
61882         64-bit-#if, and how to work around them.
61883
61884         Don't insist on 'long long int' support in the preprocessor.  It
61885         breaks too many things.  For example, PRIdMAX still uses a 'long
61886         long int' format with the latest Sun compiler, even though
61887         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61888         preprocessor problem.  This causes the latest coreutils to dump
61889         core on Solaris 10 sparc with the Sun C compiler.
61890         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61891         the troublesome expressions at configure-time, not at #if-time.
61892         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61893         preprocessor.
61894         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61895         compile-time C checks, done at 'configure'-time.
61896         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61897         * modules/inttypes (Makefile): Substitute the new symbols that
61898         gl_INTTYPES_H now generates.
61899         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61900
61901 2007-11-12  Bruno Haible  <bruno@clisp.org>
61902
61903         Tests for Unicode character classification functions.
61904
61905         * modules/unictype/bidicategory-byname-tests: New file.
61906         * modules/unictype/bidicategory-name-tests: New file.
61907         * modules/unictype/bidicategory-of-tests: New file.
61908         * modules/unictype/bidicategory-test-tests: New file.
61909         * modules/unictype/block-list-tests: New file.
61910         * modules/unictype/block-of-tests: New file.
61911         * modules/unictype/block-test-tests: New file.
61912         * modules/unictype/category-C-tests: New file.
61913         * modules/unictype/category-Cc-tests: New file.
61914         * modules/unictype/category-Cf-tests: New file.
61915         * modules/unictype/category-Cn-tests: New file.
61916         * modules/unictype/category-Co-tests: New file.
61917         * modules/unictype/category-Cs-tests: New file.
61918         * modules/unictype/category-L-tests: New file.
61919         * modules/unictype/category-Ll-tests: New file.
61920         * modules/unictype/category-Lm-tests: New file.
61921         * modules/unictype/category-Lo-tests: New file.
61922         * modules/unictype/category-Lt-tests: New file.
61923         * modules/unictype/category-Lu-tests: New file.
61924         * modules/unictype/category-M-tests: New file.
61925         * modules/unictype/category-Mc-tests: New file.
61926         * modules/unictype/category-Me-tests: New file.
61927         * modules/unictype/category-Mn-tests: New file.
61928         * modules/unictype/category-N-tests: New file.
61929         * modules/unictype/category-Nd-tests: New file.
61930         * modules/unictype/category-Nl-tests: New file.
61931         * modules/unictype/category-No-tests: New file.
61932         * modules/unictype/category-P-tests: New file.
61933         * modules/unictype/category-Pc-tests: New file.
61934         * modules/unictype/category-Pd-tests: New file.
61935         * modules/unictype/category-Pe-tests: New file.
61936         * modules/unictype/category-Pf-tests: New file.
61937         * modules/unictype/category-Pi-tests: New file.
61938         * modules/unictype/category-Po-tests: New file.
61939         * modules/unictype/category-Ps-tests: New file.
61940         * modules/unictype/category-S-tests: New file.
61941         * modules/unictype/category-Sc-tests: New file.
61942         * modules/unictype/category-Sk-tests: New file.
61943         * modules/unictype/category-Sm-tests: New file.
61944         * modules/unictype/category-So-tests: New file.
61945         * modules/unictype/category-Z-tests: New file.
61946         * modules/unictype/category-Zl-tests: New file.
61947         * modules/unictype/category-Zp-tests: New file.
61948         * modules/unictype/category-Zs-tests: New file.
61949         * modules/unictype/category-and-not-tests: New file.
61950         * modules/unictype/category-and-tests: New file.
61951         * modules/unictype/category-byname-tests: New file.
61952         * modules/unictype/category-name-tests: New file.
61953         * modules/unictype/category-none-tests: New file.
61954         * modules/unictype/category-of-tests: New file.
61955         * modules/unictype/category-or-tests: New file.
61956         * modules/unictype/category-test-withtable-tests: New file.
61957         * modules/unictype/combining-class-tests: New file.
61958         * modules/unictype/ctype-alnum-tests: New file.
61959         * modules/unictype/ctype-alpha-tests: New file.
61960         * modules/unictype/ctype-blank-tests: New file.
61961         * modules/unictype/ctype-cntrl-tests: New file.
61962         * modules/unictype/ctype-digit-tests: New file.
61963         * modules/unictype/ctype-graph-tests: New file.
61964         * modules/unictype/ctype-lower-tests: New file.
61965         * modules/unictype/ctype-print-tests: New file.
61966         * modules/unictype/ctype-punct-tests: New file.
61967         * modules/unictype/ctype-space-tests: New file.
61968         * modules/unictype/ctype-upper-tests: New file.
61969         * modules/unictype/ctype-xdigit-tests: New file.
61970         * modules/unictype/decimal-digit-tests: New file.
61971         * modules/unictype/digit-tests: New file.
61972         * modules/unictype/mirror-tests: New file.
61973         * modules/unictype/numeric-tests: New file.
61974         * modules/unictype/property-alphabetic-tests: New file.
61975         * modules/unictype/property-ascii-hex-digit-tests: New file.
61976         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61977         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61978         * modules/unictype/property-bidi-block-separator-tests: New file.
61979         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61980         * modules/unictype/property-bidi-common-separator-tests: New file.
61981         * modules/unictype/property-bidi-control-tests: New file.
61982         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61983         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61984         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61985         * modules/unictype/property-bidi-european-digit-tests: New file.
61986         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61987         * modules/unictype/property-bidi-left-to-right-tests: New file.
61988         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61989         * modules/unictype/property-bidi-other-neutral-tests: New file.
61990         * modules/unictype/property-bidi-pdf-tests: New file.
61991         * modules/unictype/property-bidi-segment-separator-tests: New file.
61992         * modules/unictype/property-bidi-whitespace-tests: New file.
61993         * modules/unictype/property-byname-tests: New file.
61994         * modules/unictype/property-combining-tests: New file.
61995         * modules/unictype/property-composite-tests: New file.
61996         * modules/unictype/property-currency-symbol-tests: New file.
61997         * modules/unictype/property-dash-tests: New file.
61998         * modules/unictype/property-decimal-digit-tests: New file.
61999         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62000         * modules/unictype/property-deprecated-tests: New file.
62001         * modules/unictype/property-diacritic-tests: New file.
62002         * modules/unictype/property-extender-tests: New file.
62003         * modules/unictype/property-format-control-tests: New file.
62004         * modules/unictype/property-grapheme-base-tests: New file.
62005         * modules/unictype/property-grapheme-extend-tests: New file.
62006         * modules/unictype/property-grapheme-link-tests: New file.
62007         * modules/unictype/property-hex-digit-tests: New file.
62008         * modules/unictype/property-hyphen-tests: New file.
62009         * modules/unictype/property-id-continue-tests: New file.
62010         * modules/unictype/property-id-start-tests: New file.
62011         * modules/unictype/property-ideographic-tests: New file.
62012         * modules/unictype/property-ids-binary-operator-tests: New file.
62013         * modules/unictype/property-ids-trinary-operator-tests: New file.
62014         * modules/unictype/property-ignorable-control-tests: New file.
62015         * modules/unictype/property-iso-control-tests: New file.
62016         * modules/unictype/property-join-control-tests: New file.
62017         * modules/unictype/property-left-of-pair-tests: New file.
62018         * modules/unictype/property-line-separator-tests: New file.
62019         * modules/unictype/property-logical-order-exception-tests: New file.
62020         * modules/unictype/property-lowercase-tests: New file.
62021         * modules/unictype/property-math-tests: New file.
62022         * modules/unictype/property-non-break-tests: New file.
62023         * modules/unictype/property-not-a-character-tests: New file.
62024         * modules/unictype/property-numeric-tests: New file.
62025         * modules/unictype/property-other-alphabetic-tests: New file.
62026         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62027         * modules/unictype/property-other-grapheme-extend-tests: New file.
62028         * modules/unictype/property-other-id-continue-tests: New file.
62029         * modules/unictype/property-other-id-start-tests: New file.
62030         * modules/unictype/property-other-lowercase-tests: New file.
62031         * modules/unictype/property-other-math-tests: New file.
62032         * modules/unictype/property-other-uppercase-tests: New file.
62033         * modules/unictype/property-paired-punctuation-tests: New file.
62034         * modules/unictype/property-paragraph-separator-tests: New file.
62035         * modules/unictype/property-pattern-syntax-tests: New file.
62036         * modules/unictype/property-pattern-white-space-tests: New file.
62037         * modules/unictype/property-private-use-tests: New file.
62038         * modules/unictype/property-punctuation-tests: New file.
62039         * modules/unictype/property-quotation-mark-tests: New file.
62040         * modules/unictype/property-radical-tests: New file.
62041         * modules/unictype/property-sentence-terminal-tests: New file.
62042         * modules/unictype/property-soft-dotted-tests: New file.
62043         * modules/unictype/property-space-tests: New file.
62044         * modules/unictype/property-terminal-punctuation-tests: New file.
62045         * modules/unictype/property-test-tests: New file.
62046         * modules/unictype/property-titlecase-tests: New file.
62047         * modules/unictype/property-unassigned-code-value-tests: New file.
62048         * modules/unictype/property-unified-ideograph-tests: New file.
62049         * modules/unictype/property-uppercase-tests: New file.
62050         * modules/unictype/property-variation-selector-tests: New file.
62051         * modules/unictype/property-white-space-tests: New file.
62052         * modules/unictype/property-xid-continue-tests: New file.
62053         * modules/unictype/property-xid-start-tests: New file.
62054         * modules/unictype/property-zero-width-tests: New file.
62055         * modules/unictype/scripts-tests: New file.
62056         * modules/unictype/syntax-c-ident-tests: New file.
62057         * modules/unictype/syntax-c-whitespace-tests: New file.
62058         * modules/unictype/syntax-java-ident-tests: New file.
62059         * modules/unictype/syntax-java-whitespace-tests: New file.
62060         * tests/unictype/test-bidi_byname.c: New file.
62061         * tests/unictype/test-bidi_name.c: New file.
62062         * tests/unictype/test-bidi_of.c: New file.
62063         * tests/unictype/test-bidi_test.c: New file.
62064         * tests/unictype/test-block_list.c: New file.
62065         * tests/unictype/test-block_of.c: New file.
62066         * tests/unictype/test-block_test.c: New file.
62067         * tests/unictype/test-categ_and.c: New file.
62068         * tests/unictype/test-categ_and_not.c: New file.
62069         * tests/unictype/test-categ_byname.c: New file.
62070         * tests/unictype/test-categ_name.c: New file.
62071         * tests/unictype/test-categ_none.c: New file.
62072         * tests/unictype/test-categ_of.c: New file.
62073         * tests/unictype/test-categ_or.c: New file.
62074         * tests/unictype/test-categ_test_withtable.c: New file.
62075         * tests/unictype/test-combining.c: New file.
62076         * tests/unictype/test-decdigit.c: New file.
62077         * tests/unictype/test-digit.c: New file.
62078         * tests/unictype/test-mirror.c: New file.
62079         * tests/unictype/test-numeric.c: New file.
62080         * tests/unictype/test-pr_byname.c: New file.
62081         * tests/unictype/test-pr_test.c: New file.
62082         * tests/unictype/test-predicate-part1.h: New file.
62083         * tests/unictype/test-predicate-part2.h: New file.
62084         * tests/unictype/test-scripts.c: New file.
62085         * tests/unictype/test-sy_c_ident.c: New file.
62086         * tests/unictype/test-sy_java_ident.c: New file.
62087
62088         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62089         for Unicode 5.0.0.
62090         * tests/unictype/test-categ_Cc.c: Likewise.
62091         * tests/unictype/test-categ_Cf.c: Likewise.
62092         * tests/unictype/test-categ_Cn.c: Likewise.
62093         * tests/unictype/test-categ_Co.c: Likewise.
62094         * tests/unictype/test-categ_Cs.c: Likewise.
62095         * tests/unictype/test-categ_L.c: Likewise.
62096         * tests/unictype/test-categ_Ll.c: Likewise.
62097         * tests/unictype/test-categ_Lm.c: Likewise.
62098         * tests/unictype/test-categ_Lo.c: Likewise.
62099         * tests/unictype/test-categ_Lt.c: Likewise.
62100         * tests/unictype/test-categ_Lu.c: Likewise.
62101         * tests/unictype/test-categ_M.c: Likewise.
62102         * tests/unictype/test-categ_Mc.c: Likewise.
62103         * tests/unictype/test-categ_Me.c: Likewise.
62104         * tests/unictype/test-categ_Mn.c: Likewise.
62105         * tests/unictype/test-categ_N.c: Likewise.
62106         * tests/unictype/test-categ_Nd.c: Likewise.
62107         * tests/unictype/test-categ_Nl.c: Likewise.
62108         * tests/unictype/test-categ_No.c: Likewise.
62109         * tests/unictype/test-categ_P.c: Likewise.
62110         * tests/unictype/test-categ_Pc.c: Likewise.
62111         * tests/unictype/test-categ_Pd.c: Likewise.
62112         * tests/unictype/test-categ_Pe.c: Likewise.
62113         * tests/unictype/test-categ_Pf.c: Likewise.
62114         * tests/unictype/test-categ_Pi.c: Likewise.
62115         * tests/unictype/test-categ_Po.c: Likewise.
62116         * tests/unictype/test-categ_Ps.c: Likewise.
62117         * tests/unictype/test-categ_S.c: Likewise.
62118         * tests/unictype/test-categ_Sc.c: Likewise.
62119         * tests/unictype/test-categ_Sk.c: Likewise.
62120         * tests/unictype/test-categ_Sm.c: Likewise.
62121         * tests/unictype/test-categ_So.c: Likewise.
62122         * tests/unictype/test-categ_Z.c: Likewise.
62123         * tests/unictype/test-categ_Zl.c: Likewise.
62124         * tests/unictype/test-categ_Zp.c: Likewise.
62125         * tests/unictype/test-categ_Zs.c: Likewise.
62126         * tests/unictype/test-ctype_alnum.c: Likewise.
62127         * tests/unictype/test-ctype_alpha.c: Likewise.
62128         * tests/unictype/test-ctype_blank.c: Likewise.
62129         * tests/unictype/test-ctype_cntrl.c: Likewise.
62130         * tests/unictype/test-ctype_digit.c: Likewise.
62131         * tests/unictype/test-ctype_graph.c: Likewise.
62132         * tests/unictype/test-ctype_lower.c: Likewise.
62133         * tests/unictype/test-ctype_print.c: Likewise.
62134         * tests/unictype/test-ctype_punct.c: Likewise.
62135         * tests/unictype/test-ctype_space.c: Likewise.
62136         * tests/unictype/test-ctype_upper.c: Likewise.
62137         * tests/unictype/test-ctype_xdigit.c: Likewise.
62138         * tests/unictype/test-decdigit.h: Likewise.
62139         * tests/unictype/test-digit.h: Likewise.
62140         * tests/unictype/test-numeric.h: Likewise.
62141         * tests/unictype/test-pr_alphabetic.c: Likewise.
62142         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62143         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62144         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62145         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62146         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62147         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62148         * tests/unictype/test-pr_bidi_control.c: Likewise.
62149         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62150         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62151         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62152         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62153         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62154         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62155         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62156         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62157         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62158         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62159         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62160         * tests/unictype/test-pr_combining.c: Likewise.
62161         * tests/unictype/test-pr_composite.c: Likewise.
62162         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62163         * tests/unictype/test-pr_dash.c: Likewise.
62164         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62165         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62166         * tests/unictype/test-pr_deprecated.c: Likewise.
62167         * tests/unictype/test-pr_diacritic.c: Likewise.
62168         * tests/unictype/test-pr_extender.c: Likewise.
62169         * tests/unictype/test-pr_format_control.c: Likewise.
62170         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62171         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62172         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62173         * tests/unictype/test-pr_hex_digit.c: Likewise.
62174         * tests/unictype/test-pr_hyphen.c: Likewise.
62175         * tests/unictype/test-pr_id_continue.c: Likewise.
62176         * tests/unictype/test-pr_id_start.c: Likewise.
62177         * tests/unictype/test-pr_ideographic.c: Likewise.
62178         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62179         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62180         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62181         * tests/unictype/test-pr_iso_control.c: Likewise.
62182         * tests/unictype/test-pr_join_control.c: Likewise.
62183         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62184         * tests/unictype/test-pr_line_separator.c: Likewise.
62185         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62186         * tests/unictype/test-pr_lowercase.c: Likewise.
62187         * tests/unictype/test-pr_math.c: Likewise.
62188         * tests/unictype/test-pr_non_break.c: Likewise.
62189         * tests/unictype/test-pr_not_a_character.c: Likewise.
62190         * tests/unictype/test-pr_numeric.c: Likewise.
62191         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62192         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62193         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62194         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62195         * tests/unictype/test-pr_other_id_start.c: Likewise.
62196         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62197         * tests/unictype/test-pr_other_math.c: Likewise.
62198         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62199         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62200         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62201         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62202         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62203         * tests/unictype/test-pr_private_use.c: Likewise.
62204         * tests/unictype/test-pr_punctuation.c: Likewise.
62205         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62206         * tests/unictype/test-pr_radical.c: Likewise.
62207         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62208         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62209         * tests/unictype/test-pr_space.c: Likewise.
62210         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62211         * tests/unictype/test-pr_titlecase.c: Likewise.
62212         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62213         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62214         * tests/unictype/test-pr_uppercase.c: Likewise.
62215         * tests/unictype/test-pr_variation_selector.c: Likewise.
62216         * tests/unictype/test-pr_white_space.c: Likewise.
62217         * tests/unictype/test-pr_xid_continue.c: Likewise.
62218         * tests/unictype/test-pr_xid_start.c: Likewise.
62219         * tests/unictype/test-pr_zero_width.c: Likewise.
62220         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62221         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62222
62223 2007-11-12  Bruno Haible  <bruno@clisp.org>
62224
62225         Unicode character classification functions.
62226         * lib/unictype.h: New file.
62227         * modules/unictype/base: New file.
62228         * modules/unictype/category-L: New file.
62229         * modules/unictype/category-Lu: New file.
62230         * modules/unictype/category-Ll: New file.
62231         * modules/unictype/category-Lt: New file.
62232         * modules/unictype/category-Lm: New file.
62233         * modules/unictype/category-Lo: New file.
62234         * modules/unictype/category-M: New file.
62235         * modules/unictype/category-Mn: New file.
62236         * modules/unictype/category-Mc: New file.
62237         * modules/unictype/category-Me: New file.
62238         * modules/unictype/category-N: New file.
62239         * modules/unictype/category-Nd: New file.
62240         * modules/unictype/category-Nl: New file.
62241         * modules/unictype/category-No: New file.
62242         * modules/unictype/category-P: New file.
62243         * modules/unictype/category-Pc: New file.
62244         * modules/unictype/category-Pd: New file.
62245         * modules/unictype/category-Ps: New file.
62246         * modules/unictype/category-Pe: New file.
62247         * modules/unictype/category-Pi: New file.
62248         * modules/unictype/category-Pf: New file.
62249         * modules/unictype/category-Po: New file.
62250         * modules/unictype/category-S: New file.
62251         * modules/unictype/category-Sm: New file.
62252         * modules/unictype/category-Sc: New file.
62253         * modules/unictype/category-Sk: New file.
62254         * modules/unictype/category-So: New file.
62255         * modules/unictype/category-Z: New file.
62256         * modules/unictype/category-Zs: New file.
62257         * modules/unictype/category-Zl: New file.
62258         * modules/unictype/category-Zp: New file.
62259         * modules/unictype/category-C: New file.
62260         * modules/unictype/category-Cc: New file.
62261         * modules/unictype/category-Cf: New file.
62262         * modules/unictype/category-Cs: New file.
62263         * modules/unictype/category-Co: New file.
62264         * modules/unictype/category-Cn: New file.
62265         * modules/unictype/category-or: New file.
62266         * modules/unictype/category-of: New file.
62267         * modules/unictype/category-test: New file.
62268         * modules/unictype/category-test-withtable: New file.
62269         * modules/unictype/category-byname: New file.
62270         * modules/unictype/category-none: New file.
62271         * modules/unictype/category-and: New file.
62272         * modules/unictype/category-and-not: New file.
62273         * modules/unictype/category-name: New file.
62274         * modules/unictype/combining-class: New file.
62275         * modules/unictype/category-all: New file.
62276         * modules/unictype/bidicategory-all: New file.
62277         * modules/unictype/bidicategory-byname: New file.
62278         * modules/unictype/bidicategory-name: New file.
62279         * modules/unictype/bidicategory-of: New file.
62280         * modules/unictype/bidicategory-test: New file.
62281         * modules/unictype/decimal-digit: New file.
62282         * modules/unictype/digit: New file.
62283         * modules/unictype/numeric: New file.
62284         * modules/unictype/mirror: New file.
62285         * modules/unictype/property-white-space: New file.
62286         * modules/unictype/property-alphabetic: New file.
62287         * modules/unictype/property-other-alphabetic: New file.
62288         * modules/unictype/property-not-a-character: New file.
62289         * modules/unictype/property-default-ignorable-code-point: New file.
62290         * modules/unictype/property-other-default-ignorable-code-point: New
62291         file.
62292         * modules/unictype/property-deprecated: New file.
62293         * modules/unictype/property-logical-order-exception: New file.
62294         * modules/unictype/property-variation-selector: New file.
62295         * modules/unictype/property-private-use: New file.
62296         * modules/unictype/property-unassigned-code-value: New file.
62297         * modules/unictype/property-uppercase: New file.
62298         * modules/unictype/property-other-uppercase: New file.
62299         * modules/unictype/property-lowercase: New file.
62300         * modules/unictype/property-other-lowercase: New file.
62301         * modules/unictype/property-titlecase: New file.
62302         * modules/unictype/property-soft-dotted: New file.
62303         * modules/unictype/property-id-start: New file.
62304         * modules/unictype/property-other-id-start: New file.
62305         * modules/unictype/property-id-continue: New file.
62306         * modules/unictype/property-other-id-continue: New file.
62307         * modules/unictype/property-xid-start: New file.
62308         * modules/unictype/property-xid-continue: New file.
62309         * modules/unictype/property-pattern-white-space: New file.
62310         * modules/unictype/property-pattern-syntax: New file.
62311         * modules/unictype/property-join-control: New file.
62312         * modules/unictype/property-grapheme-base: New file.
62313         * modules/unictype/property-grapheme-extend: New file.
62314         * modules/unictype/property-other-grapheme-extend: New file.
62315         * modules/unictype/property-grapheme-link: New file.
62316         * modules/unictype/property-bidi-control: New file.
62317         * modules/unictype/property-bidi-left-to-right: New file.
62318         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62319         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62320         * modules/unictype/property-bidi-european-digit: New file.
62321         * modules/unictype/property-bidi-eur-num-separator: New file.
62322         * modules/unictype/property-bidi-eur-num-terminator: New file.
62323         * modules/unictype/property-bidi-arabic-digit: New file.
62324         * modules/unictype/property-bidi-common-separator: New file.
62325         * modules/unictype/property-bidi-block-separator: New file.
62326         * modules/unictype/property-bidi-segment-separator: New file.
62327         * modules/unictype/property-bidi-whitespace: New file.
62328         * modules/unictype/property-bidi-non-spacing-mark: New file.
62329         * modules/unictype/property-bidi-boundary-neutral: New file.
62330         * modules/unictype/property-bidi-pdf: New file.
62331         * modules/unictype/property-bidi-embedding-or-override: New file.
62332         * modules/unictype/property-bidi-other-neutral: New file.
62333         * modules/unictype/property-hex-digit: New file.
62334         * modules/unictype/property-ascii-hex-digit: New file.
62335         * modules/unictype/property-ideographic: New file.
62336         * modules/unictype/property-unified-ideograph: New file.
62337         * modules/unictype/property-radical: New file.
62338         * modules/unictype/property-ids-binary-operator: New file.
62339         * modules/unictype/property-ids-trinary-operator: New file.
62340         * modules/unictype/property-zero-width: New file.
62341         * modules/unictype/property-space: New file.
62342         * modules/unictype/property-non-break: New file.
62343         * modules/unictype/property-iso-control: New file.
62344         * modules/unictype/property-format-control: New file.
62345         * modules/unictype/property-dash: New file.
62346         * modules/unictype/property-hyphen: New file.
62347         * modules/unictype/property-punctuation: New file.
62348         * modules/unictype/property-line-separator: New file.
62349         * modules/unictype/property-paragraph-separator: New file.
62350         * modules/unictype/property-quotation-mark: New file.
62351         * modules/unictype/property-sentence-terminal: New file.
62352         * modules/unictype/property-terminal-punctuation: New file.
62353         * modules/unictype/property-currency-symbol: New file.
62354         * modules/unictype/property-math: New file.
62355         * modules/unictype/property-other-math: New file.
62356         * modules/unictype/property-paired-punctuation: New file.
62357         * modules/unictype/property-left-of-pair: New file.
62358         * modules/unictype/property-combining: New file.
62359         * modules/unictype/property-composite: New file.
62360         * modules/unictype/property-decimal-digit: New file.
62361         * modules/unictype/property-numeric: New file.
62362         * modules/unictype/property-diacritic: New file.
62363         * modules/unictype/property-extender: New file.
62364         * modules/unictype/property-ignorable-control: New file.
62365         * modules/unictype/property-test: New file.
62366         * modules/unictype/property-byname: New file.
62367         * modules/unictype/property-all: New file.
62368         * modules/unictype/scripts: New file.
62369         * modules/unictype/scripts-all: New file.
62370         * modules/unictype/block-of: New file.
62371         * modules/unictype/block-test: New file.
62372         * modules/unictype/block-list: New file.
62373         * modules/unictype/block-all: New file.
62374         * modules/unictype/syntax-c-whitespace: New file.
62375         * modules/unictype/syntax-java-whitespace: New file.
62376         * modules/unictype/syntax-c-ident: New file.
62377         * modules/unictype/syntax-java-ident: New file.
62378         * modules/unictype/ctype-alnum: New file.
62379         * modules/unictype/ctype-alpha: New file.
62380         * modules/unictype/ctype-cntrl: New file.
62381         * modules/unictype/ctype-digit: New file.
62382         * modules/unictype/ctype-graph: New file.
62383         * modules/unictype/ctype-lower: New file.
62384         * modules/unictype/ctype-print: New file.
62385         * modules/unictype/ctype-punct: New file.
62386         * modules/unictype/ctype-space: New file.
62387         * modules/unictype/ctype-upper: New file.
62388         * modules/unictype/ctype-xdigit: New file.
62389         * modules/unictype/ctype-blank: New file.
62390         * lib/unictype/bidi_byname.c: New file.
62391         * lib/unictype/bidi_name.c: New file.
62392         * lib/unictype/bidi_of.c: New file.
62393         * lib/unictype/bidi_test.c: New file.
62394         * lib/unictype/bitmap.h: New file.
62395         * lib/unictype/block_test.c: New file.
62396         * lib/unictype/blocks.c: New file.
62397         * lib/unictype/categ_C.c: New file.
62398         * lib/unictype/categ_Cc.c: New file.
62399         * lib/unictype/categ_Cf.c: New file.
62400         * lib/unictype/categ_Cn.c: New file.
62401         * lib/unictype/categ_Co.c: New file.
62402         * lib/unictype/categ_Cs.c: New file.
62403         * lib/unictype/categ_L.c: New file.
62404         * lib/unictype/categ_Ll.c: New file.
62405         * lib/unictype/categ_Lm.c: New file.
62406         * lib/unictype/categ_Lo.c: New file.
62407         * lib/unictype/categ_Lt.c: New file.
62408         * lib/unictype/categ_Lu.c: New file.
62409         * lib/unictype/categ_M.c: New file.
62410         * lib/unictype/categ_Mc.c: New file.
62411         * lib/unictype/categ_Me.c: New file.
62412         * lib/unictype/categ_Mn.c: New file.
62413         * lib/unictype/categ_N.c: New file.
62414         * lib/unictype/categ_Nd.c: New file.
62415         * lib/unictype/categ_Nl.c: New file.
62416         * lib/unictype/categ_No.c: New file.
62417         * lib/unictype/categ_P.c: New file.
62418         * lib/unictype/categ_Pc.c: New file.
62419         * lib/unictype/categ_Pd.c: New file.
62420         * lib/unictype/categ_Pe.c: New file.
62421         * lib/unictype/categ_Pf.c: New file.
62422         * lib/unictype/categ_Pi.c: New file.
62423         * lib/unictype/categ_Po.c: New file.
62424         * lib/unictype/categ_Ps.c: New file.
62425         * lib/unictype/categ_S.c: New file.
62426         * lib/unictype/categ_Sc.c: New file.
62427         * lib/unictype/categ_Sk.c: New file.
62428         * lib/unictype/categ_Sm.c: New file.
62429         * lib/unictype/categ_So.c: New file.
62430         * lib/unictype/categ_Z.c: New file.
62431         * lib/unictype/categ_Zl.c: New file.
62432         * lib/unictype/categ_Zp.c: New file.
62433         * lib/unictype/categ_Zs.c: New file.
62434         * lib/unictype/categ_and.c: New file.
62435         * lib/unictype/categ_and_not.c: New file.
62436         * lib/unictype/categ_byname.c: New file.
62437         * lib/unictype/categ_name.c: New file.
62438         * lib/unictype/categ_none.c: New file.
62439         * lib/unictype/categ_of.c: New file.
62440         * lib/unictype/categ_or.c: New file.
62441         * lib/unictype/categ_test.c: New file.
62442         * lib/unictype/combining.c: New file.
62443         * lib/unictype/ctype_alnum.c: New file.
62444         * lib/unictype/ctype_alpha.c: New file.
62445         * lib/unictype/ctype_blank.c: New file.
62446         * lib/unictype/ctype_cntrl.c: New file.
62447         * lib/unictype/ctype_digit.c: New file.
62448         * lib/unictype/ctype_graph.c: New file.
62449         * lib/unictype/ctype_lower.c: New file.
62450         * lib/unictype/ctype_print.c: New file.
62451         * lib/unictype/ctype_punct.c: New file.
62452         * lib/unictype/ctype_space.c: New file.
62453         * lib/unictype/ctype_upper.c: New file.
62454         * lib/unictype/ctype_xdigit.c: New file.
62455         * lib/unictype/decdigit.c: New file.
62456         * lib/unictype/digit.c: New file.
62457         * lib/unictype/identsyntaxmap.h: New file.
62458         * lib/unictype/mirror.c: New file.
62459         * lib/unictype/numeric.c: New file.
62460         * lib/unictype/pr_alphabetic.c: New file.
62461         * lib/unictype/pr_ascii_hex_digit.c: New file.
62462         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62463         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62464         * lib/unictype/pr_bidi_block_separator.c: New file.
62465         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62466         * lib/unictype/pr_bidi_common_separator.c: New file.
62467         * lib/unictype/pr_bidi_control.c: New file.
62468         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62469         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62470         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62471         * lib/unictype/pr_bidi_european_digit.c: New file.
62472         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62473         * lib/unictype/pr_bidi_left_to_right.c: New file.
62474         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62475         * lib/unictype/pr_bidi_other_neutral.c: New file.
62476         * lib/unictype/pr_bidi_pdf.c: New file.
62477         * lib/unictype/pr_bidi_segment_separator.c: New file.
62478         * lib/unictype/pr_bidi_whitespace.c: New file.
62479         * lib/unictype/pr_byname.c: New file.
62480         * lib/unictype/pr_byname.gperf: New file.
62481         * lib/unictype/pr_combining.c: New file.
62482         * lib/unictype/pr_composite.c: New file.
62483         * lib/unictype/pr_currency_symbol.c: New file.
62484         * lib/unictype/pr_dash.c: New file.
62485         * lib/unictype/pr_decimal_digit.c: New file.
62486         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62487         * lib/unictype/pr_deprecated.c: New file.
62488         * lib/unictype/pr_diacritic.c: New file.
62489         * lib/unictype/pr_extender.c: New file.
62490         * lib/unictype/pr_format_control.c: New file.
62491         * lib/unictype/pr_grapheme_base.c: New file.
62492         * lib/unictype/pr_grapheme_extend.c: New file.
62493         * lib/unictype/pr_grapheme_link.c: New file.
62494         * lib/unictype/pr_hex_digit.c: New file.
62495         * lib/unictype/pr_hyphen.c: New file.
62496         * lib/unictype/pr_id_continue.c: New file.
62497         * lib/unictype/pr_id_start.c: New file.
62498         * lib/unictype/pr_ideographic.c: New file.
62499         * lib/unictype/pr_ids_binary_operator.c: New file.
62500         * lib/unictype/pr_ids_trinary_operator.c: New file.
62501         * lib/unictype/pr_ignorable_control.c: New file.
62502         * lib/unictype/pr_iso_control.c: New file.
62503         * lib/unictype/pr_join_control.c: New file.
62504         * lib/unictype/pr_left_of_pair.c: New file.
62505         * lib/unictype/pr_line_separator.c: New file.
62506         * lib/unictype/pr_logical_order_exception.c: New file.
62507         * lib/unictype/pr_lowercase.c: New file.
62508         * lib/unictype/pr_math.c: New file.
62509         * lib/unictype/pr_non_break.c: New file.
62510         * lib/unictype/pr_not_a_character.c: New file.
62511         * lib/unictype/pr_numeric.c: New file.
62512         * lib/unictype/pr_other_alphabetic.c: New file.
62513         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62514         * lib/unictype/pr_other_grapheme_extend.c: New file.
62515         * lib/unictype/pr_other_id_continue.c: New file.
62516         * lib/unictype/pr_other_id_start.c: New file.
62517         * lib/unictype/pr_other_lowercase.c: New file.
62518         * lib/unictype/pr_other_math.c: New file.
62519         * lib/unictype/pr_other_uppercase.c: New file.
62520         * lib/unictype/pr_paired_punctuation.c: New file.
62521         * lib/unictype/pr_paragraph_separator.c: New file.
62522         * lib/unictype/pr_pattern_syntax.c: New file.
62523         * lib/unictype/pr_pattern_white_space.c: New file.
62524         * lib/unictype/pr_private_use.c: New file.
62525         * lib/unictype/pr_punctuation.c: New file.
62526         * lib/unictype/pr_quotation_mark.c: New file.
62527         * lib/unictype/pr_radical.c: New file.
62528         * lib/unictype/pr_sentence_terminal.c: New file.
62529         * lib/unictype/pr_soft_dotted.c: New file.
62530         * lib/unictype/pr_space.c: New file.
62531         * lib/unictype/pr_terminal_punctuation.c: New file.
62532         * lib/unictype/pr_test.c: New file.
62533         * lib/unictype/pr_titlecase.c: New file.
62534         * lib/unictype/pr_unassigned_code_value.c: New file.
62535         * lib/unictype/pr_unified_ideograph.c: New file.
62536         * lib/unictype/pr_uppercase.c: New file.
62537         * lib/unictype/pr_variation_selector.c: New file.
62538         * lib/unictype/pr_white_space.c: New file.
62539         * lib/unictype/pr_xid_continue.c: New file.
62540         * lib/unictype/pr_xid_start.c: New file.
62541         * lib/unictype/pr_zero_width.c: New file.
62542         * lib/unictype/scripts.c: New file.
62543         * lib/unictype/sy_c_ident.c: New file.
62544         * lib/unictype/sy_c_whitespace.c: New file.
62545         * lib/unictype/sy_java_ident.c: New file.
62546         * lib/unictype/sy_java_whitespace.c: New file.
62547
62548         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62549         Unicode 5.0.0.
62550         * lib/unictype/blocks.h: Likewise.
62551         * lib/unictype/categ_C.h: Likewise.
62552         * lib/unictype/categ_Cc.h: Likewise.
62553         * lib/unictype/categ_Cf.h: Likewise.
62554         * lib/unictype/categ_Cn.h: Likewise.
62555         * lib/unictype/categ_Co.h: Likewise.
62556         * lib/unictype/categ_Cs.h: Likewise.
62557         * lib/unictype/categ_L.h: Likewise.
62558         * lib/unictype/categ_Ll.h: Likewise.
62559         * lib/unictype/categ_Lm.h: Likewise.
62560         * lib/unictype/categ_Lo.h: Likewise.
62561         * lib/unictype/categ_Lt.h: Likewise.
62562         * lib/unictype/categ_Lu.h: Likewise.
62563         * lib/unictype/categ_M.h: Likewise.
62564         * lib/unictype/categ_Mc.h: Likewise.
62565         * lib/unictype/categ_Me.h: Likewise.
62566         * lib/unictype/categ_Mn.h: Likewise.
62567         * lib/unictype/categ_N.h: Likewise.
62568         * lib/unictype/categ_Nd.h: Likewise.
62569         * lib/unictype/categ_Nl.h: Likewise.
62570         * lib/unictype/categ_No.h: Likewise.
62571         * lib/unictype/categ_P.h: Likewise.
62572         * lib/unictype/categ_Pc.h: Likewise.
62573         * lib/unictype/categ_Pd.h: Likewise.
62574         * lib/unictype/categ_Pe.h: Likewise.
62575         * lib/unictype/categ_Pf.h: Likewise.
62576         * lib/unictype/categ_Pi.h: Likewise.
62577         * lib/unictype/categ_Po.h: Likewise.
62578         * lib/unictype/categ_Ps.h: Likewise.
62579         * lib/unictype/categ_S.h: Likewise.
62580         * lib/unictype/categ_Sc.h: Likewise.
62581         * lib/unictype/categ_Sk.h: Likewise.
62582         * lib/unictype/categ_Sm.h: Likewise.
62583         * lib/unictype/categ_So.h: Likewise.
62584         * lib/unictype/categ_Z.h: Likewise.
62585         * lib/unictype/categ_Zl.h: Likewise.
62586         * lib/unictype/categ_Zp.h: Likewise.
62587         * lib/unictype/categ_Zs.h: Likewise.
62588         * lib/unictype/categ_of.h: Likewise.
62589         * lib/unictype/combining.h: Likewise.
62590         * lib/unictype/ctype_alnum.h: Likewise.
62591         * lib/unictype/ctype_alpha.h: Likewise.
62592         * lib/unictype/ctype_blank.h: Likewise.
62593         * lib/unictype/ctype_cntrl.h: Likewise.
62594         * lib/unictype/ctype_digit.h: Likewise.
62595         * lib/unictype/ctype_graph.h: Likewise.
62596         * lib/unictype/ctype_lower.h: Likewise.
62597         * lib/unictype/ctype_print.h: Likewise.
62598         * lib/unictype/ctype_punct.h: Likewise.
62599         * lib/unictype/ctype_space.h: Likewise.
62600         * lib/unictype/ctype_upper.h: Likewise.
62601         * lib/unictype/ctype_xdigit.h: Likewise.
62602         * lib/unictype/decdigit.h: Likewise.
62603         * lib/unictype/digit.h: Likewise.
62604         * lib/unictype/mirror.h: Likewise.
62605         * lib/unictype/numeric.h: Likewise.
62606         * lib/unictype/pr_alphabetic.h: Likewise.
62607         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62608         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62609         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62610         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62611         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62612         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62613         * lib/unictype/pr_bidi_control.h: Likewise.
62614         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62615         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62616         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62617         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62618         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62619         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62620         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62621         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62622         * lib/unictype/pr_bidi_pdf.h: Likewise.
62623         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62624         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62625         * lib/unictype/pr_combining.h: Likewise.
62626         * lib/unictype/pr_composite.h: Likewise.
62627         * lib/unictype/pr_currency_symbol.h: Likewise.
62628         * lib/unictype/pr_dash.h: Likewise.
62629         * lib/unictype/pr_decimal_digit.h: Likewise.
62630         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62631         * lib/unictype/pr_deprecated.h: Likewise.
62632         * lib/unictype/pr_diacritic.h: Likewise.
62633         * lib/unictype/pr_extender.h: Likewise.
62634         * lib/unictype/pr_format_control.h: Likewise.
62635         * lib/unictype/pr_grapheme_base.h: Likewise.
62636         * lib/unictype/pr_grapheme_extend.h: Likewise.
62637         * lib/unictype/pr_grapheme_link.h: Likewise.
62638         * lib/unictype/pr_hex_digit.h: Likewise.
62639         * lib/unictype/pr_hyphen.h: Likewise.
62640         * lib/unictype/pr_id_continue.h: Likewise.
62641         * lib/unictype/pr_id_start.h: Likewise.
62642         * lib/unictype/pr_ideographic.h: Likewise.
62643         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62644         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62645         * lib/unictype/pr_ignorable_control.h: Likewise.
62646         * lib/unictype/pr_iso_control.h: Likewise.
62647         * lib/unictype/pr_join_control.h: Likewise.
62648         * lib/unictype/pr_left_of_pair.h: Likewise.
62649         * lib/unictype/pr_line_separator.h: Likewise.
62650         * lib/unictype/pr_logical_order_exception.h: Likewise.
62651         * lib/unictype/pr_lowercase.h: Likewise.
62652         * lib/unictype/pr_math.h: Likewise.
62653         * lib/unictype/pr_non_break.h: Likewise.
62654         * lib/unictype/pr_not_a_character.h: Likewise.
62655         * lib/unictype/pr_numeric.h: Likewise.
62656         * lib/unictype/pr_other_alphabetic.h: Likewise.
62657         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62658         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62659         * lib/unictype/pr_other_id_continue.h: Likewise.
62660         * lib/unictype/pr_other_id_start.h: Likewise.
62661         * lib/unictype/pr_other_lowercase.h: Likewise.
62662         * lib/unictype/pr_other_math.h: Likewise.
62663         * lib/unictype/pr_other_uppercase.h: Likewise.
62664         * lib/unictype/pr_paired_punctuation.h: Likewise.
62665         * lib/unictype/pr_paragraph_separator.h: Likewise.
62666         * lib/unictype/pr_pattern_syntax.h: Likewise.
62667         * lib/unictype/pr_pattern_white_space.h: Likewise.
62668         * lib/unictype/pr_private_use.h: Likewise.
62669         * lib/unictype/pr_punctuation.h: Likewise.
62670         * lib/unictype/pr_quotation_mark.h: Likewise.
62671         * lib/unictype/pr_radical.h: Likewise.
62672         * lib/unictype/pr_sentence_terminal.h: Likewise.
62673         * lib/unictype/pr_soft_dotted.h: Likewise.
62674         * lib/unictype/pr_space.h: Likewise.
62675         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62676         * lib/unictype/pr_titlecase.h: Likewise.
62677         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62678         * lib/unictype/pr_unified_ideograph.h: Likewise.
62679         * lib/unictype/pr_uppercase.h: Likewise.
62680         * lib/unictype/pr_variation_selector.h: Likewise.
62681         * lib/unictype/pr_white_space.h: Likewise.
62682         * lib/unictype/pr_xid_continue.h: Likewise.
62683         * lib/unictype/pr_xid_start.h: Likewise.
62684         * lib/unictype/pr_zero_width.h: Likewise.
62685         * lib/unictype/scripts.h: Likewise.
62686         * lib/unictype/scripts_byname.gperf: Likewise.
62687         * lib/unictype/sy_c_ident.h: Likewise.
62688         * lib/unictype/sy_c_whitespace.h: Likewise.
62689         * lib/unictype/sy_java_ident.h: Likewise.
62690         * lib/unictype/sy_java_whitespace.h: Likewise.
62691
62692         * lib/unictype/Makefile: New file.
62693         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62694         glibc.
62695         * lib/unictype/3level.h: New file, copied from glibc.
62696         * lib/unictype/3levelbit.h: New file.
62697
62698 2007-11-11  Bruno Haible  <bruno@clisp.org>
62699
62700         * modules/gperf: New file.
62701         * modules/iconv_open (Depends-on): Add it.
62702         (Makefile.am): Remove the GPERF definition.
62703
62704 2007-11-11  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62707         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62708
62709 2007-11-11  Bruno Haible  <bruno@clisp.org>
62710
62711         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62712         (usage): Remove function.
62713
62714 2007-11-11  Bruno Haible  <bruno@clisp.org>
62715
62716         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62717         gl_FUNC_CEILF_LIBS.
62718         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62719         gl_FUNC_CEIL_LIBS.
62720         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62721         gl_FUNC_CEILL_LIBS.
62722         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62723         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62724         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62725
62726 2007-11-11  Bruno Haible  <bruno@clisp.org>
62727
62728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62729         roundf were declared but do not exist on functions.
62730         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62731         roundl were declared but do not exist on functions.
62732         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62733         HAVE_FLOORL_AND_CEILL, respectively.
62734         Needed for Sun C on Solaris 10.
62735
62736 2007-11-11  Bruno Haible  <bruno@clisp.org>
62737
62738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62739         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62740         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62741         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62742         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62743         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62744         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62745         HAVE_DECL_ROUNDF.
62746         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62747         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62749         of HAVE_DECL_ROUND*.
62750         * modules/math (Makefile.am): Update.
62751
62752 2007-11-10  Bruno Haible  <bruno@clisp.org>
62753
62754         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62755         ptrdiff_t as m4/intl.m4.
62756
62757 2007-11-10  Jim Meyering  <meyering@redhat.com>
62758
62759         Avoid link failure for the argmatch test.
62760         * tests/test-argmatch.c (usage): Define function to avoid a link
62761         failure: argmatch_die requires a usage function.
62762
62763 2007-11-09  Bruno Haible  <bruno@clisp.org>
62764
62765         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62766         * doc/functions/vsnprintf.texi: Likewise.
62767         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62768         with a size argument < 2.
62769
62770 2007-11-09  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62773         buffer. Fixes an inefficiency introduced on 2007-11-03.
62774
62775 2007-11-09  Bruno Haible  <bruno@clisp.org>
62776
62777         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62778         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62779
62780 2007-11-08  Jim Meyering  <meyering@redhat.com>
62781
62782         Change cache variable name prefix "jm_" to "gl_" everywhere.
62783         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62784         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62785         * m4/uptime.m4: s/gl_/jm_/
62786
62787 2007-11-07  Bruno Haible  <bruno@clisp.org>
62788
62789         Update to GNU gettext 0.17.
62790         * m4/intl.m4: Update to GNU gettext 0.17.
62791         * m4/po.m4: Likewise.
62792         * modules/gettext (Files): Remove m4/ulonglong.m4.
62793         (configure.ac): Require gettext infrastructure from version 0.17.
62794
62795 2007-11-06  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62798         symbolic values are not defined in a public header.
62799         * lib/freadable.c (freadable) [QNX]: Likewise.
62800         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62801         * lib/freading.c (freading) [QNX]: Likewise.
62802         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62803         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62804         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62805         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62806         Reported by Alain Magloire.
62807
62808         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62809
62810 2007-11-05  Bruno Haible  <bruno@clisp.org>
62811
62812         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62813         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62814         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62815         Reported by Eric Blake.
62816
62817 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62818             Bruno Haible  <bruno@clisp.org>
62819
62820         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62821         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62822         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62823         (malloc): Undefine also before including <stdlib.h>.
62824         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62825         Needed on OSF/1 4.0.
62826
62827 2007-11-05  Jim Meyering  <meyering@redhat.com>
62828
62829         git-version-gen: sync from coreutils.
62830         * build-aux/git-version-gen: Add comments.
62831         Change the first '-' to '.' in the snapshot version string,
62832         e.g., 6.9-377-08144 -> 6.9.377-08144
62833         Remove first parameter.
62834         Don't declare a version "-dirty" merely because a time
62835         stamp has changed.
62836
62837 2007-11-04  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/lock.h: Protect all macro definitions containing an 'if'
62840         statement through a "do { ... } while (0)".
62841         * lib/tls.h: Likewise.
62842
62843 2007-11-04  Bruno Haible  <bruno@clisp.org>
62844
62845         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62846
62847 2007-11-04  Bruno Haible  <bruno@clisp.org>
62848
62849         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62850         * modules/fprintf-posix (Depends-on): Add nocrash.
62851         * modules/snprintf-posix (Depends-on): Likewise.
62852         * modules/sprintf-posix (Depends-on): Likewise.
62853         * modules/vasnprintf-posix (Depends-on): Likewise.
62854         * modules/vasprintf-posix (Depends-on): Likewise.
62855         * modules/vfprintf-posix (Depends-on): Likewise.
62856         * modules/vsnprintf-posix (Depends-on): Likewise.
62857         * modules/vsprintf-posix (Depends-on): Likewise.
62858         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62859         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62860         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62861         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62862         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62863         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62864         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62865
62866 2007-11-04  Bruno Haible  <bruno@clisp.org>
62867
62868         * modules/nocrash: New file.
62869         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62870         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62871
62872 2007-11-04  Bruno Haible  <bruno@clisp.org>
62873
62874         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62875         precision handling.
62876         * tests/test-vasprintf-posix.c (test_function): Likewise.
62877         * tests/test-snprintf-posix.h (test_function): Likewise.
62878         * tests/test-sprintf-posix.h (test_function): Likewise.
62879
62880         Fix *printf behaviour for large precisions on mingw and BeOS.
62881         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62882         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62884         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62886         gl_PRINTF_PRECISION and test its result. Invoke
62887         gl_PREREQ_VASNPRINTF_PRECISION.
62888         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62889         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62895         * doc/functions/fprintf.texi: Update.
62896         * doc/functions/printf.texi: Update.
62897         * doc/functions/snprintf.texi: Update.
62898         * doc/functions/sprintf.texi: Update.
62899         * doc/functions/vfprintf.texi: Update.
62900         * doc/functions/vprintf.texi: Update.
62901         * doc/functions/vsnprintf.texi: Update.
62902         * doc/functions/vsprintf.texi: Update.
62903
62904 2007-11-04  Bruno Haible  <bruno@clisp.org>
62905
62906         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62907
62908 2007-11-04  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62911         Reported by Sylvain Beucler <beuc@gnu.org>.
62912
62913 2007-11-03  Bruno Haible  <bruno@clisp.org>
62914
62915         * tests/test-fprintf-posix2.sh: New file.
62916         * tests/test-fprintf-posix2.c: New file.
62917         * modules/fprintf-posix-tests (Files): Add them.
62918         (TESTS): Add test-fprintf-posix2.sh.
62919         (configure.ac): Check for getrlimit and setrlimit.
62920         (check_PROGRAMS): Add test-fprintf-posix2.
62921
62922         * tests/test-printf-posix2.sh: New file.
62923         * tests/test-printf-posix2.c: New file.
62924         * modules/printf-posix-tests (Files): Add them.
62925         (TESTS): Add test-printf-posix2.sh.
62926         (configure.ac): Check for getrlimit and setrlimit.
62927         (check_PROGRAMS): Add test-printf-posix2.
62928
62929         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62930         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62931         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62932         (decode_double): New function, copied from decode_long_double.
62933         (scale10_round_decimal_decoded): New function, extracted from
62934         scale10_round_decimal_long_double.
62935         (scale10_round_decimal_long_double): Use it.
62936         (scale10_round_decimal_double): New function.
62937         (floorlog10): New function.
62938         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62940         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62942         gl_PRINTF_ENOMEM and test its result. Invoke
62943         gl_PREREQ_VASNPRINTF_ENOMEM.
62944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62945         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62948         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62950         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62951         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62952         * modules/snprintf-posix (Depends-on): Likewise.
62953         * modules/sprintf-posix (Depends-on): Likewise.
62954         * modules/vasnprintf-posix (Depends-on): Likewise.
62955         * modules/vasprintf-posix (Depends-on): Likewise.
62956         * modules/vfprintf-posix (Depends-on): Likewise.
62957         * modules/vsnprintf-posix (Depends-on): Likewise.
62958         * modules/vsprintf-posix (Depends-on): Likewise.
62959         * doc/functions/fprintf.texi: Update.
62960         * doc/functions/printf.texi: Update.
62961         * doc/functions/snprintf.texi: Update.
62962         * doc/functions/sprintf.texi: Update.
62963         * doc/functions/vfprintf.texi: Update.
62964         * doc/functions/vprintf.texi: Update.
62965         * doc/functions/vsnprintf.texi: Update.
62966         * doc/functions/vsprintf.texi: Update.
62967
62968 2007-11-03  Bruno Haible  <bruno@clisp.org>
62969
62970         * modules/frexp-nolibm-tests: New file.
62971
62972         * modules/frexp-nolibm: New file.
62973         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62974
62975 2007-11-03  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62978         value is C99 compliant.
62979         Needed for OSF/1 5.1.
62980
62981 2007-11-03  Bruno Haible  <bruno@clisp.org>
62982
62983         Fix out-of-memory handling of vasnprintf.
62984         * lib/printf-parse.c: Include <errno.h>.
62985         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62986         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62987         is already set.
62988
62989 2007-11-02  Eric Blake  <ebb9@byu.net>
62990
62991         Fix tests on cygwin.
62992         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62993
62994 2007-11-01  Bruno Haible  <bruno@clisp.org>
62995
62996         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62997         warning.
62998         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62999         needed for POSIX compatibility.
63000
63001 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63002
63003         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63004         for compatibility with GNU.
63005
63006 2007-11-01  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63009         (putenv): Renamed from rpl_putenv. Change argument type from
63010         'const char *' to 'char *'.
63011         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63012         of defining putenv in config.h, just set REPLACE_PUTENV.
63013         * modules/putenv (Depends-on): Add stdlib.
63014         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63015         (Include): Use <stdlib.h>.
63016         * lib/stdlib.in.h (putenv): New declaration.
63017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63018         REPLACE_PUTENV.
63019         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63020         REPLACE_PUTENV.
63021         Needed for MacOS X 10.5.0.
63022         Reported by Peter O'Gorman <peter@pogma.com>.
63023
63024 2007-11-01  Jim Meyering  <meyering@redhat.com>
63025
63026         Treat an empty date string exactly like "0".
63027         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63028         if the remaining date string (to be parsed) is empty, use "0".
63029         Reported by Mischa Molhoek and discussed in this thread:
63030         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63031
63032 2007-10-31  Bruno Haible  <bruno@clisp.org>
63033
63034         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63035         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63036         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63037         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63038         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63039         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63040
63041 2007-10-31  Bruno Haible  <bruno@clisp.org>
63042
63043         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63044         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63045         (AC_TYPE_LONG_LONG_INT): Use it.
63046         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63047         it as well.
63048         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63049         to m4/longlong.m4.
63050         * modules/stdint (Files): Remove m4/ulonglong.m4.
63051         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63052         m4/ulonglong.m4.
63053         * modules/strtoumax (Files): Likewise.
63054
63055 2007-10-30  Bruno Haible  <bruno@clisp.org>
63056
63057         * modules/xvasprintf-posix: New file.
63058         Suggested by Eric Blake.
63059
63060 2007-10-30  Bruno Haible  <bruno@clisp.org>
63061
63062         * modules/xprintf-posix-tests: New file.
63063         * tests/test-xprintf-posix.sh: New file.
63064         * tests/test-xprintf-posix.c: New file.
63065         * tests/test-xfprintf-posix.c: New file.
63066
63067         * modules/xprintf-posix: New file.
63068
63069 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63070
63071         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63072         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63073         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63074
63075 2007-10-29  Bruno Haible  <bruno@clisp.org>
63076
63077         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63078         contain the special marker '_cv_'.
63079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63080         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63081         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63082         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63083         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63084         Reported by Ralf Wildenhues.
63085
63086 2007-10-29  Bruno Haible  <bruno@clisp.org>
63087
63088         * gnulib-tool (func_import): When --lgpl is not specified, set
63089         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63090         GPLv3.
63091         Reported by Simon Josefsson.
63092
63093 2007-10-28  Bruno Haible  <bruno@clisp.org>
63094
63095         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63096         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63097         HAVE_DECL_ISFINITE.
63098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63099         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63100         HAVE_DECL_ISFINITE.
63101
63102 2007-10-28  Bruno Haible  <bruno@clisp.org>
63103
63104         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63105         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63106
63107 2007-10-28  Bruno Haible  <bruno@clisp.org>
63108
63109         Fix link errors with Sun C 5.0 on Solaris 10.
63110         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63111         function is declared but not present in the compiler's libm.
63112         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63113         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63114         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63115         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63116         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63117         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63118         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63120         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63121         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63122         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63123         HAVE_DECL_FLOORL.
63124
63125 2007-10-28  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63128         gl_FUNC_FLOORL. Cache the result.
63129         (gl_FUNC_FLOORL): Use it.
63130         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63131         gl_FUNC_CEILL. Cache the result.
63132         (gl_FUNC_CEILL): Use it.
63133
63134         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63135         gl_FUNC_FLOOR. Cache the result.
63136         (gl_FUNC_FLOOR): Use it.
63137         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63138         gl_FUNC_CEIL. Cache the result.
63139         (gl_FUNC_CEIL): Use it.
63140
63141         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63142         gl_FUNC_FLOORF. Cache the result.
63143         (gl_FUNC_FLOORF): Use it.
63144         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63145         gl_FUNC_CEILF. Cache the result.
63146         (gl_FUNC_CEILF): Use it.
63147
63148 2007-10-28  Bruno Haible  <bruno@clisp.org>
63149
63150         * gnulib-tool: Allow specifying the LGPL version number through
63151         --lgpl=2 or --lgpl=3.
63152         (func_usage): Document --lgpl with argument.
63153         Handle --lgpl=... arguments.
63154         (func_import): Recognize also gl_LGPL calls with an argument. When
63155         --lgpl=2 is used and the module's license is just LGPL, report an
63156         error. Set sed_transform_lib_file according to the lgpl variable. In
63157         the generated files, use --lgpl or gl_LGPL invocations with argument,
63158         if necessary.
63159         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63160         an LGPv2+ license.
63161         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63162         gl_LGPL macro.
63163
63164 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63165             Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63168         (u16_uctomb_aux): Likewise.
63169         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63170         !HAVE_INLINE.
63171         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63172
63173 2007-10-28  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63176         Invoke AM_GETTEXT_OPTION if it exists.
63177         * modules/vasprintf: Likewise.
63178         * modules/verror: Likewise.
63179         * modules/xprintf: Likewise.
63180         * modules/xvasprintf: Likewise.
63181
63182 2007-10-27  Ben Pfaff  <blp@gnu.org>
63183
63184         * lib/math.in.h: Define isfinite macro and prototypes for
63185         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63186         implementations.
63187         * m4/math_h.m4: New substitutions for isfinite module.
63188         * lib/isfinite.c: New file.
63189         * m4/isfinite.m4: New file.
63190         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63191         * modules/isfinite: New file.
63192         * modules/isfinite-tests: New file.
63193         * tests/tests-isfinite.c: New file.
63194         * doc/functions/isfinite.texi: Mention isfinite module.
63195         * MODULES.html.sh: Mention new module.
63196
63197 2007-10-27  Ben Pfaff  <blp@gnu.org>
63198
63199         Ralf Wildenhues reported that Tru64 4.0D declares the round
63200         functions but does not have definitions.
63201         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63202         cannot be found in any library, set the output variable to
63203         "missing" instead of "".
63204         * m4/round.m4: Also use our substitute if we cannot find round in
63205         any library, even if it is declared.
63206         * m4/roundf.m4: Likewise for roundf.
63207         * m4/roundl.m4: Likewise for roundl.
63208         * lib/math.in.h: Undefine roundf, round, roundl before defining
63209         their replacements, to allow for hypothetical systems where these
63210         may be defined as macros but not available in libraries.
63211
63212 2007-10-27  Bruno Haible  <bruno@clisp.org>
63213
63214         * doc/gnulib.texi: Invoke @firstparagraphindent.
63215         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63216         changes in gnulib.
63217         (Source changes): New section.
63218
63219 2007-10-26  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63222         borrowed from autoconf.
63223
63224 2007-10-26  Bruno Haible  <bruno@clisp.org>
63225
63226         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63227         strerror returned the empty string. Needed on HP-UX 11.00.
63228
63229 2007-10-24  Micah Cowan  <micah@cowan.name>
63230
63231         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63232         * build-aux/bootstrap: Remove support for now-unnecessary option,
63233         --cvs-user, and envvars CVS_USER, CVS_RSH.
63234
63235 2007-10-24  Jim Meyering  <meyering@redhat.com>
63236
63237         Avoid diagnostics from sha1sum when there is no cached checksum.
63238         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63239         if the po.s1 file hasn't been created yet.
63240
63241         * build-aux/bootstrap: Sync from coreutils:
63242         2007-10-24  Jim Meyering  <meyering@redhat.com>
63243         Get gnulib from the git repository, not from an obsolete cvs one.
63244         * build-aux/bootstrap: Suggestion from Micah Cowan.
63245         2007-10-04  Jim Meyering  <jim@meyering.net>
63246         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63247         (update_po_files): Work also when there are no .po files in po/.
63248
63249 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63250
63251         * README: Append ".git" to git and cg examples.
63252         Problem reported by Benoit Sigoure.
63253
63254 2007-10-23  Micah Cowan  <micah@cowan.name>
63255
63256         * users.txt: Add wget.
63257
63258 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63259
63260         Fix linking of some unistdio tests on FreeBSD.
63261         * modules/unistdio/u16-vsnprintf-tests
63262         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63263         * modules/unistdio/u16-vsprintf-tests
63264         (test_u16_vsnprintf1_LDADD): Likewise.
63265         * modules/unistdio/u32-vsnprintf-tests
63266         (test_u32_vsnprintf1_LDADD): Likewise.
63267         * modules/unistdio/u32-vsprintf-tests
63268         (test_u32_vsprintf1_LDADD): Likewise.
63269         * modules/unistdio/u8-vsnprintf-tests
63270         (test_u8_vsnprintf1_LDADD): Likewise.
63271         * modules/unistdio/u8-vsprintf-tests
63272         (test_u8_vsprintf1_LDADD): Likewise.
63273         * modules/unistdio/ulc-vsnprintf-tests
63274         (test_ulc_vsnprintf1_LDADD): Likewise.
63275         * modules/unistdio/ulc-vsprintf-tests
63276         (test_ulc_vsprintf1_LDADD): Likewise.
63277
63278         Fix linking of some uniconv tests on FreeBSD.
63279         * modules/uniconv/u16-conv-from-enc-tests
63280         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63281         * modules/uniconv/u16-conv-to-enc-tests
63282         (test_u16_conv_to_enc_LDADD): Likewise.
63283         * modules/uniconv/u16-strconv-from-enc-tests
63284         (test_u16_strconv_from_enc_LDADD): Likewise.
63285         * modules/uniconv/u16-strconv-to-enc-tests
63286         (test_u16_strconv_to_enc_LDADD): Likewise.
63287         * modules/uniconv/u32-conv-from-enc-tests
63288         (test_u32_conv_from_enc_LDADD): Likewise.
63289         * modules/uniconv/u32-conv-to-enc-tests
63290         (test_u32_conv_to_enc_LDADD): Likewise.
63291         * modules/uniconv/u32-strconv-from-enc-tests
63292         (test_u32_strconv_from_enc_LDADD): Likewise.
63293         * modules/uniconv/u32-strconv-to-enc-tests
63294         (test_u32_strconv_to_enc_LDADD): Likewise.
63295         * modules/uniconv/u8-conv-from-enc-tests
63296         (test_u8_conv_from_enc_LDADD): Likewise.
63297         * modules/uniconv/u8-conv-to-enc-tests
63298         (test_u8_conv_to_enc_LDADD): Likewise.
63299         * modules/uniconv/u8-strconv-from-enc-tests
63300         (test_u8_strconv_from_enc_LDADD): Likewise.
63301         * modules/uniconv/u8-strconv-to-enc-tests
63302         (test_u8_strconv_to_enc_LDADD): Likewise.
63303
63304 2007-10-22  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63307         size.
63308
63309 2007-10-22  Eric Blake  <ebb9@byu.net>
63310
63311         Tweak x*printf documentation.
63312         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63313         variable name and comments.
63314         Suggested by Bruno Haible.
63315
63316 2007-10-22  Bruno Haible  <bruno@clisp.org>
63317
63318         * lib/acl.c (copy_acl): Fix file name in comment.
63319
63320 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         Fix Tru64 problem with stdbool.h.
63323         * lib/stdbool.in.h (false, true):
63324         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63325         Don't declare as an enum in this situation; it runs afoul of Tru64.
63326         Problem reported by Steven M. Schweda in
63327         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63328
63329 2007-10-22  Eric Blake  <ebb9@byu.net>
63330
63331         Also wrap vf?printf.
63332         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63333         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63334         (xvprintf, xvfprintf): New functions.
63335
63336 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63337
63338         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63339         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63340
63341         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63342         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63343
63344 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63345
63346         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63347         by Bruno Haible.
63348
63349 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63350
63351         * lib/getloadavg.c
63352         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63353         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63354
63355         * tests/test-i-ring.c: Work for C89.
63356
63357 2007-10-22  Bruno Haible  <bruno@clisp.org>
63358
63359         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63360         -1u, in preprocessor expression, so that we don't test for the bug
63361         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63363
63364 2007-10-22  Eric Blake  <ebb9@byu.net>
63365
63366         * tests/test-yesno.sh: Silence stderr during test.
63367
63368 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63369
63370         * modules/crypto/gc-camellia: New file.
63371
63372         * m4/gc-camellia.m4: New file.
63373
63374         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63375
63376         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63377
63378 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63379
63380         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63381         --help to stdout.  Reported by sms@antinode.org (Steven
63382         M. Schweda).
63383
63384 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63385
63386         * users.txt: Fix link to libksba.
63387
63388 2007-10-21  Ben Pfaff  <blp@gnu.org>
63389
63390         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63391         round.c roundf implementation that depends on floorf and ceilf to
63392         be tested unconditionally.
63393
63394 2007-10-21  Ben Pfaff  <blp@gnu.org>
63395
63396         * m4/check-libm-func.m4: Removed.
63397         * m4/check-math-lib.m4: New file.
63398         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63399         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63400         definition and lack of AC_LIBOBJ([roundf]).
63401         * m4/roundl.m4: Ditto, and similarly for roundl.
63402         * modules/round: Reference new m4 file.
63403         * modules/roundf: Ditto.
63404         * modules/roundl: Ditto.
63405         * tests/test-round2.c (main): Use ROUND instead of round.
63406         Bug report from Bruno Haible.
63407
63408 2007-10-21  Bruno Haible  <bruno@clisp.org>
63409
63410         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63411         context.
63412
63413 2007-10-21  Bruno Haible  <bruno@clisp.org>
63414
63415         * tests/test-wcwidth.c (main): Allow negative result for some control
63416         characters.
63417
63418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63419         Needed on OSF/1 5.1.
63420
63421 2007-10-21  Bruno Haible  <bruno@clisp.org>
63422
63423         * tests/test-floorf1.c: Include isnanf.h.
63424         (main): Use isnanf() instead of isnan().
63425         * tests/test-ceilf1.c: Include isnanf.h.
63426         (main): Use isnanf() instead of isnan().
63427         * tests/test-truncf1.c: Include isnanf.h.
63428         (main): Use isnanf() instead of isnan().
63429         * tests/test-roundf1.c: Include isnanf.h.
63430         (main): Use isnanf() instead of isnan().
63431
63432 2007-10-21  Eric Blake  <ebb9@byu.net>
63433
63434         * users.txt: Update URL for m4.
63435
63436 2007-10-21  Bruno Haible  <bruno@clisp.org>
63437
63438         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63439
63440 2007-10-21  Bruno Haible  <bruno@clisp.org>
63441
63442         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63443         Git's management files if the CVS files are not present.
63444
63445 2007-10-20  Bruno Haible  <bruno@clisp.org>
63446
63447         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63448         gcc-3.4.x.
63449
63450 2007-10-20  Ben Pfaff  <blp@gnu.org>
63451
63452         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63453         implementations.
63454         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63455         * lib/round.c: New file.
63456         * lib/roundf.c: New file.
63457         * lib/roundl.c: New file.
63458         * m4/round.m4: New file.
63459         * m4/roundf.m4: New file.
63460         * m4/roundl.m4: New file.
63461         * m4/check-libm-func-m4: New file.
63462         * modules/math: Replace round, roundf, roundl related @VARS@ in
63463         math.in.h.
63464         * modules/round: New file.
63465         * modules/round-tests: New file.
63466         * modules/roundf: New file.
63467         * modules/roundf-tests: New file.
63468         * modules/roundl: New file.
63469         * modules/roundl-tests: New file.
63470         * tests/test-round1.c: New file.
63471         * tests/test-round2.c: New file.
63472         * tests/test-roundf1.c: New file.
63473         * tests/test-roundf2.c: New file.
63474         * tests/test-roundl.c: New file.
63475         * doc/functions/round.texi: Mention round module.
63476         * doc/functions/roundf.texi: Mention roundf module.
63477         * doc/functions/roundl.texi: Mention roundl module.
63478         * MODULES.html.sh: Mention new modules.
63479         Thanks to Bruno Haible for suggestions.
63480
63481 2007-10-20  Jim Meyering  <meyering@redhat.com>
63482
63483         * lib/xprintf.c: Include <config.h> unconditionally.
63484
63485         Change xprintf's license to GPL.
63486         * modules/xprintf (License): s/LGPL/GPL/, since this module
63487         depends on modules (exit and exitfail) which are GPL.
63488         Suggestion from Bruno Haible.
63489
63490         xprintf fixes.
63491         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63492         Use a clearer diagnostic.
63493         Patch from Bruno Haible.
63494
63495 2007-10-20  Bruno Haible  <bruno@clisp.org>
63496
63497         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63498         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63500
63501 2007-10-20  Bruno Haible  <bruno@clisp.org>
63502
63503         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63504         precision in the comparison result > x - 1 or similar.
63505         * tests/test-ceilf2.c (correct_result_p): Likewise.
63506         * tests/test-truncf2.c (correct_result_p): Likewise.
63507         * tests/test-trunc2.c (correct_result_p): Likewise.
63508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63509
63510 2007-10-20  Bruno Haible  <bruno@clisp.org>
63511
63512         * modules/ceil: New file.
63513         * m4/ceil.m4: New file.
63514         * doc/functions/ceil.texi: Mention the 'ceil' module.
63515
63516 2007-10-20  Bruno Haible  <bruno@clisp.org>
63517
63518         * modules/floor: New file.
63519         * m4/floor.m4: New file.
63520         * doc/functions/floor.texi: Mention the 'floor' module.
63521
63522 2007-10-20  Bruno Haible  <bruno@clisp.org>
63523
63524         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63525         of %a.
63526         * modules/floorf-tests (Depends-on): Likewise.
63527         * modules/truncf-tests (Depends-on): Likewise.
63528         * modules/trunc-tests (Depends-on): Likewise.
63529         Reported by Ben Pfaff.
63530
63531 2007-10-19  Jim Meyering  <meyering@redhat.com>
63532
63533         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63534         Don't bother testing specific errno values.  Just test ferror.
63535
63536         New module: xprintf
63537         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63538
63539 2007-10-19  Bruno Haible  <bruno@clisp.org>
63540
63541         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63542         syntax.
63543         * modules/javaexec (Makefile.am): Likewise.
63544         * modules/relocatable-prog (Makefile.am): Likewise.
63545         Suggested by Jim Meyering.
63546
63547 2007-10-18  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63550         Reported by Jim Meyering.
63551
63552 2007-10-18  Eric Blake  <ebb9@byu.net>
63553
63554         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63555
63556 2007-10-18  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63559         the format string into writable memory. Needed in Fortify conditions.
63560
63561 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63562             Bruno Haible  <bruno@clisp.org>
63563
63564         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63565         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63566         * modules/trim (Depends-on): Add mbchar.
63567         (configure.ac): Add gl_FUNC_MBRTOWC.
63568         (Makefile.am): Augment lib_SOURCES.
63569
63570 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         Modify glob.c to use fstatat and dirfd, to simplify it.
63573         Suggested by Eric Blake.
63574         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63575         Don't include <stdbool.h>; not used.
63576         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63577         (link_exists_p): Simplify implementation, since we can now assume
63578         dirfd and fstatat.
63579         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63580
63581 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63582
63583         * gnulib-tool (func_get_dependencies): Fix sed script to
63584         match only tests.
63585
63586 2007-10-17  Bruno Haible  <bruno@clisp.org>
63587
63588         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63589         allow locale names without encoding suffix.
63590         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63591         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63592
63593 2007-10-16  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63596         * lib/getgroups.c (getgroups): Likewise.
63597         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63598
63599 2007-10-16  Bruno Haible  <bruno@clisp.org>
63600
63601         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63602         * modules/malloc-posix (License): Likewise.
63603         * modules/realloc-posix (License): Likewise.
63604         * modules/calloc-posix (License): Likewise.
63605         * modules/intprops (License): Change from GPL to LGPL, with
63606         Paul Eggert's approval.
63607
63608 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         Merge glibc changes into lib/glob.c.
63611
63612         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63613         2007-10-15 04:59:03 UTC.  Here are the changes:
63614
63615         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63616
63617         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63618
63619         * lib/glob.c: Add some branch prediction throughout.
63620
63621         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63622
63623         [BZ #5103]
63624         * lib/glob.c (glob): Recognize patterns starting \/.
63625
63626         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63627
63628         [BZ #3996]
63629         * lib/glob.c (attribute_hidden): Define if not defined.
63630         (glob): Unescape dirname, filename or username when needed and not
63631         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63632         is NULL.  Handle unescaped [ in pattern without closing ].
63633         Don't pass GLOB_CHECK down to recursive glob for directories.
63634         (__glob_pattern_type): New function.
63635         (__glob_pattern_p): Implement using __glob_pattern_type.
63636         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63637         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63638         Remove unreachable code.
63639
63640         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63641
63642         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63643         explain why there are no leaks.
63644
63645         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63646
63647         [BZ #3253]
63648         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63649         time, rather allocate increasingly bigger arrays of pointers, if
63650         possible with alloca, if too large with malloc.
63651
63652 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63655         Problem reported by H.Merijn Brand in
63656         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63658         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63659
63660 2007-10-15  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63663         with explicit rpl_ prefix.
63664         * lib/fopen.c (fopen): Likewise.
63665         * lib/freopen.c (freopen): Likewise.
63666         * lib/iconv.c (iconv): Likewise.
63667         * lib/iconv_close.c (iconv_close): Likewise.
63668
63669 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63670
63671         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63672
63673 2007-10-15  Bruno Haible  <bruno@clisp.org>
63674
63675         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63676         <stddef.h> instead of <stdlib.h> since we only need NULL.
63677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63678
63679 2007-10-15  Bruno Haible  <bruno@clisp.org>
63680
63681         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63682         Replace paragraph talking about LIBOBJS.
63683         Reported by Colin Watson <cjwatson@debian.org>.
63684
63685 2007-10-15  Bruno Haible  <bruno@clisp.org>
63686
63687         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63688         <stdlib.h> before using NULL.
63689
63690 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63691
63692         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63693         Reported by Albert Chin <china@thewrittenword.com>.
63694
63695 2007-10-14  Bruno Haible  <bruno@clisp.org>
63696
63697         * modules/iconv_open-utf-tests: New file.
63698         * tests/test-iconv-utf.c: New file.
63699
63700         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63701         * modules/iconv_open-utf: New file.
63702         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63703         (iconv, iconv_close): New declarations.
63704         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63705         be defined.
63706         (iconv_open): Add special handling of conversion between UTF-8 and
63707         UTF-{16,32}{BE,LE}.
63708         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63709         * lib/iconv_close.c: New file.
63710         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63711         gl_FUNC_ICONV_OPEN.
63712         (gl_FUNC_ICONV_OPEN): Use it.
63713         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63714         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63715         and REPLACE_ICONV_UTF.
63716         * modules/iconv_open (Depends-on): Add c-strcase.
63717         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63718         ICONV_CONST.
63719         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63720
63721 2007-10-13  Albert Chin  <china@thewrittenword.com>
63722             Bruno Haible  <bruno@clisp.org>
63723
63724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63725         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63726
63727 2007-10-13  Bruno Haible  <bruno@clisp.org>
63728
63729         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63730         defined, use the ISO C99 inline semantics.
63731         * lib/argp.h (ARGP_EI): Likewise.
63732
63733 2007-10-13  Bruno Haible  <bruno@clisp.org>
63734
63735         Handle 'inline' change in gcc 4.3.0.
63736         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63737         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63738         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63739         argp_fmtstream_point): Disable 'extern' declaration if the function
63740         definition is going to be provided inline.
63741         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63742         semantics, not the ISO C99 inline semantics.
63743         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63744         'extern' declaration if the function definition is going to be provided
63745         inline.
63746         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63747         the GNU C inline semantics, not the ISO C99 inline semantics. With
63748         GCC 4.2, avoid a warning.
63749
63750 2007-10-13  Bruno Haible  <bruno@clisp.org>
63751
63752         * lib/freading.h (freading): Enable the use of __freading for
63753         glibc >= 2.7.
63754         * lib/freading.c (freading): Likewise.
63755
63756 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63759         "warning: C99 inline functions are not supported; using GNU89".
63760
63761 2007-10-12  Bruno Haible  <bruno@clisp.org>
63762
63763         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63764         of 2.
63765         * tests/test-ceilf2.c: New file.
63766         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63767
63768         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63769         * modules/ceilf-tests: Update.
63770
63771 2007-10-12  Bruno Haible  <bruno@clisp.org>
63772
63773         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63774         of 2.
63775         * tests/test-floorf2.c: New file.
63776         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63777
63778         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63779         * modules/floorf-tests: Update.
63780
63781 2007-10-12  Bruno Haible  <bruno@clisp.org>
63782
63783         * tests/test-trunc2.c: New file.
63784         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63785
63786         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63787         * modules/trunc-tests: Update.
63788
63789 2007-10-12  Bruno Haible  <bruno@clisp.org>
63790
63791         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63792         of 2.
63793         * tests/test-truncf2.c: New file.
63794         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63795
63796         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63797         * modules/truncf-tests: Update.
63798
63799 2007-10-11  Eric Blake  <ebb9@byu.net>
63800
63801         Don't claim strerror is broken on Interix.
63802         * doc/functions/strerror.texi (strerror): Known broken systems are
63803         now Solaris 8, and not Interix.
63804         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63805         Interix on cross-compile.
63806         Reported by Martin Koeppe in
63807         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63808
63809 2007-10-11  Bruno Haible  <bruno@clisp.org>
63810
63811         * modules/i-ring-tests: New file.
63812         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63813         instead of assert.
63814
63815 2007-10-11  Bruno Haible  <bruno@clisp.org>
63816
63817         * modules/filenamecat-tests: New file.
63818         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63819         * lib/filenamecat.c: Remove test code.
63820
63821 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63824
63825         * lib/strerror.c: Include <string.h> always, to test interface,
63826         and to remove the need for the dummy.
63827         Include intprops.h to compute width instead of doing it ourselves
63828         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63829         (strerror): Define it to return NULL if there's no system strerror.
63830         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63831         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63832         ancient pre-strerror Unix systems well any more.  Saying "unknown
63833         system error" is enough.
63834         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63835         simpler strerror.c implementation.
63836         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63837         Simplify the tests to reflect the simpler strerror implementation.
63838         * modules/strerror (Depends-on): Add intprops.
63839
63840 2007-10-09  Eric Blake  <ebb9@byu.net>
63841
63842         Silence test-fpending.
63843         * modules/fpending-tests (Files): Add wrapper script.
63844         * tests/test-fpending.sh: New file.
63845
63846 2007-10-09  Bruno Haible  <bruno@clisp.org>
63847
63848         * MODULES.html.sh (func_module): Don't create a hyperlink for
63849         function names like 'printf_frexp'.
63850         (Misc): Add crc, memxor.
63851         (Characteristics of floating types): New section.
63852         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63853         isnanf-nolibm, signbit, trunc, truncf, truncl.
63854         (Enhancements for ISO C 99 functions): New subsection Input/output.
63855         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63856         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63857         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63858         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63859         (Enhancements for POSIX:2001 functions): Add chdir-long.
63860         (File system functions): Add areadlink, chdir-safer, read-file.
63861         Remove cycle-check.
63862         (File system as inode set): New section.
63863         (Date and time): Add gethrxtime.
63864         (Multithreading): Add openmp.
63865         (Internationalization functions): Add localename.
63866         (Unicode string functions): Add unistr/u*-mbsnlen.
63867         (Support for maintaining and releasing projects): Add git-version-gen.
63868         (Lone files): Remove directories.
63869
63870 2007-10-08  Ben Pfaff  <blp@gnu.org>
63871
63872         * lib/xmalloca.h: Fix typo in comment.
63873
63874 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63877         when avoiding problems with integer overflow.  Use a portable test
63878         instead.
63879
63880 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63881
63882         * modules/dummy (License): Change to LGPLv2+.
63883         * modules/float (License): Likewise
63884         * modules/realloc (License): Likewise
63885         * modules/stdlib (License): Likewise
63886
63887 2007-10-07  Bruno Haible  <bruno@clisp.org>
63888
63889         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63890         * floor.c (TWO_MANT_DIG): Likewise.
63891         * ceil.c (TWO_MANT_DIG): Likewise.
63892         Reported by Ben Pfaff.
63893
63894 2007-10-07  Bruno Haible  <bruno@clisp.org>
63895
63896         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63897         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63898         * lib/frexp.c (FUNC): Likewise.
63899         * lib/printf-frexp.h (printf_frexp): Likewise.
63900         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63901         * lib/printf-frexp.c (FUNC): Likewise.
63902         Suggested by Jim Meyering.
63903
63904 2007-10-07  Jim Meyering  <meyering@redhat.com>
63905
63906         Make xnanosleep's integer overflow test more robust.
63907         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63908         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63909
63910 2007-10-07  Bruno Haible  <bruno@clisp.org>
63911
63912         * NEWS: Mention the license change.
63913
63914         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63915         abbreviations in the modules files.
63916
63917         Change copyright notice from GPLv2+ to GPLv3+.
63918         * README: Change copyright notice.
63919         * MODULES.html.sh: Likewise.
63920         * build-aux/bootstrap.conf: Likewise.
63921         * build-aux/config.libpath: Likewise.
63922         * build-aux/csharpcomp.sh.in: Likewise.
63923         * build-aux/csharpexec.sh.in: Likewise.
63924         * build-aux/install-reloc: Likewise.
63925         * build-aux/javacomp.sh.in: Likewise.
63926         * build-aux/javaexec.sh.in: Likewise.
63927         * build-aux/ldd.sh.in: Likewise.
63928         * build-aux/reloc-ldflags: Likewise.
63929         * build-aux/relocatable.sh.in: Likewise.
63930         * build-aux/x-to-1.in: Likewise.
63931         * check-module: Likewise.
63932         * config/srclistvars.sh: Likewise.
63933         * gnulib-tool: Likewise.
63934         * lib/acl-internal.h: Likewise.
63935         * lib/acl.c: Likewise.
63936         * lib/acl.h: Likewise.
63937         * lib/acl_entries.c: Likewise.
63938         * lib/areadlink-with-size.c: Likewise.
63939         * lib/areadlink.c: Likewise.
63940         * lib/areadlink.h: Likewise.
63941         * lib/argmatch.c: Likewise.
63942         * lib/argmatch.h: Likewise.
63943         * lib/argp-ba.c: Likewise.
63944         * lib/argp-eexst.c: Likewise.
63945         * lib/argp-fmtstream.c: Likewise.
63946         * lib/argp-fmtstream.h: Likewise.
63947         * lib/argp-fs-xinl.c: Likewise.
63948         * lib/argp-help.c: Likewise.
63949         * lib/argp-namefrob.h: Likewise.
63950         * lib/argp-parse.c: Likewise.
63951         * lib/argp-pin.c: Likewise.
63952         * lib/argp-pv.c: Likewise.
63953         * lib/argp-pvh.c: Likewise.
63954         * lib/argp-xinl.c: Likewise.
63955         * lib/argp.h: Likewise.
63956         * lib/at-func.c: Likewise.
63957         * lib/atanl.c: Likewise.
63958         * lib/backupfile.c: Likewise.
63959         * lib/backupfile.h: Likewise.
63960         * lib/basename.c: Likewise.
63961         * lib/binary-io.h: Likewise.
63962         * lib/byteswap.in.h: Likewise.
63963         * lib/c-stack.c: Likewise.
63964         * lib/c-stack.h: Likewise.
63965         * lib/c-strcasestr.c: Likewise.
63966         * lib/c-strcasestr.h: Likewise.
63967         * lib/c-strstr.c: Likewise.
63968         * lib/c-strstr.h: Likewise.
63969         * lib/c-strtod.c: Likewise.
63970         * lib/calloc.c: Likewise.
63971         * lib/canon-host.c: Likewise.
63972         * lib/canon-host.h: Likewise.
63973         * lib/canonicalize-lgpl.c: Likewise.
63974         * lib/canonicalize.c: Likewise.
63975         * lib/canonicalize.h: Likewise.
63976         * lib/ceil.c: Likewise.
63977         * lib/ceilf.c: Likewise.
63978         * lib/ceill.c: Likewise.
63979         * lib/chdir-long.c: Likewise.
63980         * lib/chdir-long.h: Likewise.
63981         * lib/chdir-safer.c: Likewise.
63982         * lib/chdir-safer.h: Likewise.
63983         * lib/chown.c: Likewise.
63984         * lib/classpath.c: Likewise.
63985         * lib/classpath.h: Likewise.
63986         * lib/clean-temp.c: Likewise.
63987         * lib/clean-temp.h: Likewise.
63988         * lib/cloexec.c: Likewise.
63989         * lib/close-stream.c: Likewise.
63990         * lib/closein.c: Likewise.
63991         * lib/closein.h: Likewise.
63992         * lib/closeout.c: Likewise.
63993         * lib/closeout.h: Likewise.
63994         * lib/concat-filename.c: Likewise.
63995         * lib/copy-file.c: Likewise.
63996         * lib/copy-file.h: Likewise.
63997         * lib/count-one-bits.h: Likewise.
63998         * lib/crc.c: Likewise.
63999         * lib/crc.h: Likewise.
64000         * lib/creat-safer.c: Likewise.
64001         * lib/csharpcomp.c: Likewise.
64002         * lib/csharpcomp.h: Likewise.
64003         * lib/csharpexec.c: Likewise.
64004         * lib/csharpexec.h: Likewise.
64005         * lib/cycle-check.c: Likewise.
64006         * lib/cycle-check.h: Likewise.
64007         * lib/diacrit.c: Likewise.
64008         * lib/diacrit.h: Likewise.
64009         * lib/diffseq.h: Likewise.
64010         * lib/dirchownmod.c: Likewise.
64011         * lib/dirent.in.h: Likewise.
64012         * lib/dirfd.c: Likewise.
64013         * lib/dirfd.h: Likewise.
64014         * lib/dirname.c: Likewise.
64015         * lib/dirname.h: Likewise.
64016         * lib/dummy.c: Likewise.
64017         * lib/dup-safer.c: Likewise.
64018         * lib/dup2.c: Likewise.
64019         * lib/eealloc.h: Likewise.
64020         * lib/error.c: Likewise.
64021         * lib/error.h: Likewise.
64022         * lib/euidaccess.c: Likewise.
64023         * lib/exclude.c: Likewise.
64024         * lib/exclude.h: Likewise.
64025         * lib/execute.c: Likewise.
64026         * lib/execute.h: Likewise.
64027         * lib/exitfail.c: Likewise.
64028         * lib/exitfail.h: Likewise.
64029         * lib/expl.c: Likewise.
64030         * lib/fatal-signal.c: Likewise.
64031         * lib/fatal-signal.h: Likewise.
64032         * lib/fbufmode.c: Likewise.
64033         * lib/fbufmode.h: Likewise.
64034         * lib/fchdir.c: Likewise.
64035         * lib/fchmodat.c: Likewise.
64036         * lib/fchownat.c: Likewise.
64037         * lib/fcntl--.h: Likewise.
64038         * lib/fcntl-safer.h: Likewise.
64039         * lib/fcntl.in.h: Likewise.
64040         * lib/fd-safer.c: Likewise.
64041         * lib/fflush.c: Likewise.
64042         * lib/file-has-acl.c: Likewise.
64043         * lib/file-set.c: Likewise.
64044         * lib/file-type.c: Likewise.
64045         * lib/file-type.h: Likewise.
64046         * lib/fileblocks.c: Likewise.
64047         * lib/filemode.c: Likewise.
64048         * lib/filemode.h: Likewise.
64049         * lib/filename.h: Likewise.
64050         * lib/filenamecat.c: Likewise.
64051         * lib/filenamecat.h: Likewise.
64052         * lib/findprog.c: Likewise.
64053         * lib/findprog.h: Likewise.
64054         * lib/float.in.h: Likewise.
64055         * lib/floor.c: Likewise.
64056         * lib/floorf.c: Likewise.
64057         * lib/floorl.c: Likewise.
64058         * lib/fopen-safer.c: Likewise.
64059         * lib/fopen.c: Likewise.
64060         * lib/fpending.c: Likewise.
64061         * lib/fpending.h: Likewise.
64062         * lib/fprintf.c: Likewise.
64063         * lib/fprintftime.h: Likewise.
64064         * lib/fpucw.h: Likewise.
64065         * lib/fpurge.c: Likewise.
64066         * lib/fpurge.h: Likewise.
64067         * lib/freadable.c: Likewise.
64068         * lib/freadable.h: Likewise.
64069         * lib/freadahead.c: Likewise.
64070         * lib/freadahead.h: Likewise.
64071         * lib/freading.c: Likewise.
64072         * lib/freading.h: Likewise.
64073         * lib/free.c: Likewise.
64074         * lib/freopen.c: Likewise.
64075         * lib/frexp.c: Likewise.
64076         * lib/frexpl.c: Likewise.
64077         * lib/fseek.c: Likewise.
64078         * lib/fseterr.c: Likewise.
64079         * lib/fseterr.h: Likewise.
64080         * lib/fstatat.c: Likewise.
64081         * lib/fstrcmp.c: Likewise.
64082         * lib/fstrcmp.h: Likewise.
64083         * lib/fsusage.c: Likewise.
64084         * lib/fsusage.h: Likewise.
64085         * lib/ftell.c: Likewise.
64086         * lib/ftello.c: Likewise.
64087         * lib/fts-cycle.c: Likewise.
64088         * lib/fts.c: Likewise.
64089         * lib/fts_.h: Likewise.
64090         * lib/full-read.c: Likewise.
64091         * lib/full-read.h: Likewise.
64092         * lib/full-write.c: Likewise.
64093         * lib/full-write.h: Likewise.
64094         * lib/fwritable.c: Likewise.
64095         * lib/fwritable.h: Likewise.
64096         * lib/fwriteerror.c: Likewise.
64097         * lib/fwriteerror.h: Likewise.
64098         * lib/fwriting.c: Likewise.
64099         * lib/fwriting.h: Likewise.
64100         * lib/gcd.c: Likewise.
64101         * lib/gcd.h: Likewise.
64102         * lib/getcwd.c: Likewise.
64103         * lib/getdate.h: Likewise.
64104         * lib/getdate.y: Likewise.
64105         * lib/getdomainname.c: Likewise.
64106         * lib/getdomainname.h: Likewise.
64107         * lib/getgroups.c: Likewise.
64108         * lib/gethostname.c: Likewise.
64109         * lib/gethrxtime.c: Likewise.
64110         * lib/gethrxtime.h: Likewise.
64111         * lib/getloadavg.c: Likewise.
64112         * lib/getndelim2.c: Likewise.
64113         * lib/getndelim2.h: Likewise.
64114         * lib/getnline.c: Likewise.
64115         * lib/getnline.h: Likewise.
64116         * lib/getopt.c: Likewise.
64117         * lib/getopt.in.h: Likewise.
64118         * lib/getopt1.c: Likewise.
64119         * lib/getopt_int.h: Likewise.
64120         * lib/getpagesize.h: Likewise.
64121         * lib/getsubopt.c: Likewise.
64122         * lib/gettime.c: Likewise.
64123         * lib/getugroups.c: Likewise.
64124         * lib/getugroups.h: Likewise.
64125         * lib/getusershell.c: Likewise.
64126         * lib/gl_anyavltree_list1.h: Likewise.
64127         * lib/gl_anyavltree_list2.h: Likewise.
64128         * lib/gl_anyhash_list1.h: Likewise.
64129         * lib/gl_anyhash_list2.h: Likewise.
64130         * lib/gl_anylinked_list1.h: Likewise.
64131         * lib/gl_anylinked_list2.h: Likewise.
64132         * lib/gl_anyrbtree_list1.h: Likewise.
64133         * lib/gl_anyrbtree_list2.h: Likewise.
64134         * lib/gl_anytree_list1.h: Likewise.
64135         * lib/gl_anytree_list2.h: Likewise.
64136         * lib/gl_anytree_oset.h: Likewise.
64137         * lib/gl_anytreehash_list1.h: Likewise.
64138         * lib/gl_anytreehash_list2.h: Likewise.
64139         * lib/gl_array_list.c: Likewise.
64140         * lib/gl_array_list.h: Likewise.
64141         * lib/gl_array_oset.c: Likewise.
64142         * lib/gl_array_oset.h: Likewise.
64143         * lib/gl_avltree_list.c: Likewise.
64144         * lib/gl_avltree_list.h: Likewise.
64145         * lib/gl_avltree_oset.c: Likewise.
64146         * lib/gl_avltree_oset.h: Likewise.
64147         * lib/gl_avltreehash_list.c: Likewise.
64148         * lib/gl_avltreehash_list.h: Likewise.
64149         * lib/gl_carray_list.c: Likewise.
64150         * lib/gl_carray_list.h: Likewise.
64151         * lib/gl_linked_list.c: Likewise.
64152         * lib/gl_linked_list.h: Likewise.
64153         * lib/gl_linkedhash_list.c: Likewise.
64154         * lib/gl_linkedhash_list.h: Likewise.
64155         * lib/gl_list.c: Likewise.
64156         * lib/gl_list.h: Likewise.
64157         * lib/gl_oset.c: Likewise.
64158         * lib/gl_oset.h: Likewise.
64159         * lib/gl_rbtree_list.c: Likewise.
64160         * lib/gl_rbtree_list.h: Likewise.
64161         * lib/gl_rbtree_oset.c: Likewise.
64162         * lib/gl_rbtree_oset.h: Likewise.
64163         * lib/gl_rbtreehash_list.c: Likewise.
64164         * lib/gl_rbtreehash_list.h: Likewise.
64165         * lib/gl_sublist.c: Likewise.
64166         * lib/gl_sublist.h: Likewise.
64167         * lib/group-member.c: Likewise.
64168         * lib/group-member.h: Likewise.
64169         * lib/hard-locale.c: Likewise.
64170         * lib/hard-locale.h: Likewise.
64171         * lib/hash-pjw.c: Likewise.
64172         * lib/hash-pjw.h: Likewise.
64173         * lib/hash-triple.c: Likewise.
64174         * lib/hash.c: Likewise.
64175         * lib/hash.h: Likewise.
64176         * lib/human.c: Likewise.
64177         * lib/human.h: Likewise.
64178         * lib/i-ring.c: Likewise.
64179         * lib/i-ring.h: Likewise.
64180         * lib/idcache.c: Likewise.
64181         * lib/imaxabs.c: Likewise.
64182         * lib/imaxdiv.c: Likewise.
64183         * lib/inet_pton.c: Likewise.
64184         * lib/inet_pton.h: Likewise.
64185         * lib/intprops.h: Likewise.
64186         * lib/inttostr.c: Likewise.
64187         * lib/inttostr.h: Likewise.
64188         * lib/inttypes.in.h: Likewise.
64189         * lib/isapipe.c: Likewise.
64190         * lib/isdir.c: Likewise.
64191         * lib/isnan.c: Likewise.
64192         * lib/isnan.h: Likewise.
64193         * lib/isnanf.c: Likewise.
64194         * lib/isnanf.h: Likewise.
64195         * lib/isnanl-nolibm.h: Likewise.
64196         * lib/isnanl.c: Likewise.
64197         * lib/isnanl.h: Likewise.
64198         * lib/javacomp.c: Likewise.
64199         * lib/javacomp.h: Likewise.
64200         * lib/javaexec.c: Likewise.
64201         * lib/javaexec.h: Likewise.
64202         * lib/javaversion.c: Likewise.
64203         * lib/javaversion.h: Likewise.
64204         * lib/javaversion.java: Likewise.
64205         * lib/lbrkprop.h: Likewise.
64206         * lib/lchmod.h: Likewise.
64207         * lib/lchown.c: Likewise.
64208         * lib/ldexpl.c: Likewise.
64209         * lib/linebreak.c: Likewise.
64210         * lib/linebreak.h: Likewise.
64211         * lib/linebuffer.c: Likewise.
64212         * lib/linebuffer.h: Likewise.
64213         * lib/locale.in.h: Likewise.
64214         * lib/logl.c: Likewise.
64215         * lib/long-options.c: Likewise.
64216         * lib/long-options.h: Likewise.
64217         * lib/lstat.c: Likewise.
64218         * lib/lstat.h: Likewise.
64219         * lib/math.in.h: Likewise.
64220         * lib/mbchar.c: Likewise.
64221         * lib/mbchar.h: Likewise.
64222         * lib/mbfile.h: Likewise.
64223         * lib/mbiter.h: Likewise.
64224         * lib/mbscasecmp.c: Likewise.
64225         * lib/mbscasestr.c: Likewise.
64226         * lib/mbschr.c: Likewise.
64227         * lib/mbscspn.c: Likewise.
64228         * lib/mbslen.c: Likewise.
64229         * lib/mbsncasecmp.c: Likewise.
64230         * lib/mbsnlen.c: Likewise.
64231         * lib/mbspbrk.c: Likewise.
64232         * lib/mbspcasecmp.c: Likewise.
64233         * lib/mbsrchr.c: Likewise.
64234         * lib/mbssep.c: Likewise.
64235         * lib/mbsspn.c: Likewise.
64236         * lib/mbsstr.c: Likewise.
64237         * lib/mbstok_r.c: Likewise.
64238         * lib/mbswidth.c: Likewise.
64239         * lib/mbswidth.h: Likewise.
64240         * lib/mbuiter.h: Likewise.
64241         * lib/memcasecmp.c: Likewise.
64242         * lib/memcasecmp.h: Likewise.
64243         * lib/memchr.c: Likewise.
64244         * lib/memcmp.c: Likewise.
64245         * lib/memcoll.c: Likewise.
64246         * lib/memcoll.h: Likewise.
64247         * lib/memcpy.c: Likewise.
64248         * lib/memrchr.c: Likewise.
64249         * lib/mkancesdirs.c: Likewise.
64250         * lib/mkdir-p.c: Likewise.
64251         * lib/mkdir-p.h: Likewise.
64252         * lib/mkdir.c: Likewise.
64253         * lib/mkdirat.c: Likewise.
64254         * lib/mkdtemp.c: Likewise.
64255         * lib/mkstemp-safer.c: Likewise.
64256         * lib/mkstemp.c: Likewise.
64257         * lib/modechange.c: Likewise.
64258         * lib/modechange.h: Likewise.
64259         * lib/mountlist.c: Likewise.
64260         * lib/mountlist.h: Likewise.
64261         * lib/mpsort.c: Likewise.
64262         * lib/nanosleep.c: Likewise.
64263         * lib/obstack.c: Likewise.
64264         * lib/obstack.h: Likewise.
64265         * lib/open-safer.c: Likewise.
64266         * lib/open.c: Likewise.
64267         * lib/openat-die.c: Likewise.
64268         * lib/openat-priv.h: Likewise.
64269         * lib/openat-proc.c: Likewise.
64270         * lib/openat.c: Likewise.
64271         * lib/openat.h: Likewise.
64272         * lib/pagealign_alloc.c: Likewise.
64273         * lib/pagealign_alloc.h: Likewise.
64274         * lib/physmem.c: Likewise.
64275         * lib/physmem.h: Likewise.
64276         * lib/pipe-safer.c: Likewise.
64277         * lib/pipe.c: Likewise.
64278         * lib/pipe.h: Likewise.
64279         * lib/posixtm.c: Likewise.
64280         * lib/posixtm.h: Likewise.
64281         * lib/posixver.c: Likewise.
64282         * lib/printf-frexp.c: Likewise.
64283         * lib/printf-frexp.h: Likewise.
64284         * lib/printf-frexpl.c: Likewise.
64285         * lib/printf-frexpl.h: Likewise.
64286         * lib/printf.c: Likewise.
64287         * lib/progname.c: Likewise.
64288         * lib/progname.h: Likewise.
64289         * lib/progreloc.c: Likewise.
64290         * lib/putenv.c: Likewise.
64291         * lib/quote.c: Likewise.
64292         * lib/quote.h: Likewise.
64293         * lib/quotearg.c: Likewise.
64294         * lib/quotearg.h: Likewise.
64295         * lib/raise.c: Likewise.
64296         * lib/readline.c: Likewise.
64297         * lib/readline.h: Likewise.
64298         * lib/readlink.c: Likewise.
64299         * lib/readtokens.c: Likewise.
64300         * lib/readtokens.h: Likewise.
64301         * lib/readtokens0.c: Likewise.
64302         * lib/readtokens0.h: Likewise.
64303         * lib/readutmp.c: Likewise.
64304         * lib/readutmp.h: Likewise.
64305         * lib/realloc.c: Likewise.
64306         * lib/relocwrapper.c: Likewise.
64307         * lib/rename-dest-slash.c: Likewise.
64308         * lib/rename.c: Likewise.
64309         * lib/rmdir.c: Likewise.
64310         * lib/rpmatch.c: Likewise.
64311         * lib/safe-read.c: Likewise.
64312         * lib/safe-read.h: Likewise.
64313         * lib/safe-write.c: Likewise.
64314         * lib/safe-write.h: Likewise.
64315         * lib/same-inode.h: Likewise.
64316         * lib/same.c: Likewise.
64317         * lib/same.h: Likewise.
64318         * lib/save-cwd.c: Likewise.
64319         * lib/save-cwd.h: Likewise.
64320         * lib/savedir.c: Likewise.
64321         * lib/savedir.h: Likewise.
64322         * lib/savewd.c: Likewise.
64323         * lib/savewd.h: Likewise.
64324         * lib/search.in.h: Likewise.
64325         * lib/setenv.c: Likewise.
64326         * lib/setenv.h: Likewise.
64327         * lib/settime.c: Likewise.
64328         * lib/sh-quote.c: Likewise.
64329         * lib/sh-quote.h: Likewise.
64330         * lib/sig2str.c: Likewise.
64331         * lib/sig2str.h: Likewise.
64332         * lib/signal.in.h: Likewise.
64333         * lib/signbitd.c: Likewise.
64334         * lib/signbitf.c: Likewise.
64335         * lib/signbitl.c: Likewise.
64336         * lib/sigprocmask.c: Likewise.
64337         * lib/sincosl.c: Likewise.
64338         * lib/sleep.c: Likewise.
64339         * lib/sprintf.c: Likewise.
64340         * lib/sqrtl.c: Likewise.
64341         * lib/stat-time.h: Likewise.
64342         * lib/stdio--.h: Likewise.
64343         * lib/stdio-safer.h: Likewise.
64344         * lib/stdlib--.h: Likewise.
64345         * lib/stdlib-safer.h: Likewise.
64346         * lib/stdlib.in.h: Likewise.
64347         * lib/stpcpy.c: Likewise.
64348         * lib/stpncpy.c: Likewise.
64349         * lib/strchrnul.c: Likewise.
64350         * lib/strcspn.c: Likewise.
64351         * lib/strerror.c: Likewise.
64352         * lib/strftime.c: Likewise.
64353         * lib/strftime.h: Likewise.
64354         * lib/striconveh.c: Likewise.
64355         * lib/striconveh.h: Likewise.
64356         * lib/striconveha.c: Likewise.
64357         * lib/striconveha.h: Likewise.
64358         * lib/stripslash.c: Likewise.
64359         * lib/strnlen1.c: Likewise.
64360         * lib/strnlen1.h: Likewise.
64361         * lib/strtod.c: Likewise.
64362         * lib/strtoimax.c: Likewise.
64363         * lib/strtok_r.c: Likewise.
64364         * lib/strtol.c: Likewise.
64365         * lib/strtoll.c: Likewise.
64366         * lib/strtoul.c: Likewise.
64367         * lib/strtoull.c: Likewise.
64368         * lib/sysexits.in.h: Likewise.
64369         * lib/tempname.c: Likewise.
64370         * lib/tempname.h: Likewise.
64371         * lib/timespec.h: Likewise.
64372         * lib/tls.c: Likewise.
64373         * lib/tls.h: Likewise.
64374         * lib/tmpdir.c: Likewise.
64375         * lib/tmpdir.h: Likewise.
64376         * lib/tmpfile-safer.c: Likewise.
64377         * lib/tmpfile.c: Likewise.
64378         * lib/trigl.c: Likewise.
64379         * lib/trigl.h: Likewise.
64380         * lib/trim.c: Likewise.
64381         * lib/trim.h: Likewise.
64382         * lib/trunc.c: Likewise.
64383         * lib/truncf.c: Likewise.
64384         * lib/truncl.c: Likewise.
64385         * lib/tsearch.c: Likewise.
64386         * lib/unicodeio.c: Likewise.
64387         * lib/unicodeio.h: Likewise.
64388         * lib/unistd--.h: Likewise.
64389         * lib/unistd-safer.h: Likewise.
64390         * lib/unistdio/ulc-fprintf.c: Likewise.
64391         * lib/unistdio/ulc-vfprintf.c: Likewise.
64392         * lib/unlinkdir.c: Likewise.
64393         * lib/unlinkdir.h: Likewise.
64394         * lib/unlocked-io.h: Likewise.
64395         * lib/unsetenv.c: Likewise.
64396         * lib/userspec.c: Likewise.
64397         * lib/utime.c: Likewise.
64398         * lib/utimecmp.c: Likewise.
64399         * lib/utimecmp.h: Likewise.
64400         * lib/utimens.c: Likewise.
64401         * lib/verify.h: Likewise.
64402         * lib/verror.c: Likewise.
64403         * lib/verror.h: Likewise.
64404         * lib/version-etc-fsf.c: Likewise.
64405         * lib/version-etc.c: Likewise.
64406         * lib/version-etc.h: Likewise.
64407         * lib/vfprintf.c: Likewise.
64408         * lib/vprintf.c: Likewise.
64409         * lib/vsprintf.c: Likewise.
64410         * lib/w32spawn.h: Likewise.
64411         * lib/wait-process.c: Likewise.
64412         * lib/wait-process.h: Likewise.
64413         * lib/wcwidth.c: Likewise.
64414         * lib/write-any-file.c: Likewise.
64415         * lib/xalloc-die.c: Likewise.
64416         * lib/xalloc.h: Likewise.
64417         * lib/xasprintf.c: Likewise.
64418         * lib/xgetcwd.c: Likewise.
64419         * lib/xgetcwd.h: Likewise.
64420         * lib/xgetdomainname.c: Likewise.
64421         * lib/xgetdomainname.h: Likewise.
64422         * lib/xgethostname.c: Likewise.
64423         * lib/xmalloc.c: Likewise.
64424         * lib/xmalloca.c: Likewise.
64425         * lib/xmalloca.h: Likewise.
64426         * lib/xmemcoll.c: Likewise.
64427         * lib/xnanosleep.c: Likewise.
64428         * lib/xreadlink.c: Likewise.
64429         * lib/xreadlink.h: Likewise.
64430         * lib/xsetenv.c: Likewise.
64431         * lib/xsetenv.h: Likewise.
64432         * lib/xstriconv.c: Likewise.
64433         * lib/xstriconv.h: Likewise.
64434         * lib/xstrndup.c: Likewise.
64435         * lib/xstrndup.h: Likewise.
64436         * lib/xstrtod.c: Likewise.
64437         * lib/xstrtod.h: Likewise.
64438         * lib/xstrtol-error.c: Likewise.
64439         * lib/xstrtol.c: Likewise.
64440         * lib/xstrtol.h: Likewise.
64441         * lib/xtime.h: Likewise.
64442         * lib/xvasprintf.c: Likewise.
64443         * lib/xvasprintf.h: Likewise.
64444         * lib/yesno.c: Likewise.
64445         * lib/yesno.h: Likewise.
64446         * posix-modules: Likewise.
64447         * tests/test-alloca-opt.c: Likewise.
64448         * tests/test-arcfour.c: Likewise.
64449         * tests/test-arctwo.c: Likewise.
64450         * tests/test-argmatch.c: Likewise.
64451         * tests/test-argp-2.sh: Likewise.
64452         * tests/test-argp.c: Likewise.
64453         * tests/test-arpa_inet.c: Likewise.
64454         * tests/test-array_list.c: Likewise.
64455         * tests/test-array_oset.c: Likewise.
64456         * tests/test-atexit.c: Likewise.
64457         * tests/test-avltree_list.c: Likewise.
64458         * tests/test-avltree_oset.c: Likewise.
64459         * tests/test-avltreehash_list.c: Likewise.
64460         * tests/test-base64.c: Likewise.
64461         * tests/test-binary-io.c: Likewise.
64462         * tests/test-byteswap.c: Likewise.
64463         * tests/test-c-ctype.c: Likewise.
64464         * tests/test-c-strcasecmp.c: Likewise.
64465         * tests/test-c-strcasestr.c: Likewise.
64466         * tests/test-c-strncasecmp.c: Likewise.
64467         * tests/test-c-strstr.c: Likewise.
64468         * tests/test-canonicalize-lgpl.c: Likewise.
64469         * tests/test-canonicalize.c: Likewise.
64470         * tests/test-carray_list.c: Likewise.
64471         * tests/test-ceilf.c: Likewise.
64472         * tests/test-ceill.c: Likewise.
64473         * tests/test-count-one-bits.c: Likewise.
64474         * tests/test-crc.c: Likewise.
64475         * tests/test-dirname.c: Likewise.
64476         * tests/test-fbufmode.c: Likewise.
64477         * tests/test-fcntl.c: Likewise.
64478         * tests/test-fflush.c: Likewise.
64479         * tests/test-floorf.c: Likewise.
64480         * tests/test-floorl.c: Likewise.
64481         * tests/test-fopen.c: Likewise.
64482         * tests/test-fprintf-posix.c: Likewise.
64483         * tests/test-fprintf-posix.h: Likewise.
64484         * tests/test-fpurge.c: Likewise.
64485         * tests/test-freadable.c: Likewise.
64486         * tests/test-freadahead.c: Likewise.
64487         * tests/test-freading.c: Likewise.
64488         * tests/test-freopen.c: Likewise.
64489         * tests/test-frexp.c: Likewise.
64490         * tests/test-frexpl.c: Likewise.
64491         * tests/test-fseek.c: Likewise.
64492         * tests/test-fseeko.c: Likewise.
64493         * tests/test-fseterr.c: Likewise.
64494         * tests/test-fstrcmp.c: Likewise.
64495         * tests/test-ftell.c: Likewise.
64496         * tests/test-ftello.c: Likewise.
64497         * tests/test-fwritable.c: Likewise.
64498         * tests/test-fwriting.c: Likewise.
64499         * tests/test-getaddrinfo.c: Likewise.
64500         * tests/test-getpass.c: Likewise.
64501         * tests/test-gettimeofday.c: Likewise.
64502         * tests/test-hmac-md5.c: Likewise.
64503         * tests/test-hmac-sha1.c: Likewise.
64504         * tests/test-iconv.c: Likewise.
64505         * tests/test-iconvme.c: Likewise.
64506         * tests/test-inttypes.c: Likewise.
64507         * tests/test-isnan.c: Likewise.
64508         * tests/test-isnanf.c: Likewise.
64509         * tests/test-isnanl-nolibm.c: Likewise.
64510         * tests/test-isnanl.c: Likewise.
64511         * tests/test-isnanl.h: Likewise.
64512         * tests/test-ldexpl.c: Likewise.
64513         * tests/test-linked_list.c: Likewise.
64514         * tests/test-linkedhash_list.c: Likewise.
64515         * tests/test-locale.c: Likewise.
64516         * tests/test-localename.c: Likewise.
64517         * tests/test-lock.c: Likewise.
64518         * tests/test-lseek.c: Likewise.
64519         * tests/test-malloca.c: Likewise.
64520         * tests/test-math.c: Likewise.
64521         * tests/test-mbscasecmp.c: Likewise.
64522         * tests/test-mbscasestr1.c: Likewise.
64523         * tests/test-mbscasestr2.c: Likewise.
64524         * tests/test-mbscasestr3.c: Likewise.
64525         * tests/test-mbscasestr4.c: Likewise.
64526         * tests/test-mbschr.c: Likewise.
64527         * tests/test-mbscspn.c: Likewise.
64528         * tests/test-mbsncasecmp.c: Likewise.
64529         * tests/test-mbspbrk.c: Likewise.
64530         * tests/test-mbspcasecmp.c: Likewise.
64531         * tests/test-mbsrchr.c: Likewise.
64532         * tests/test-mbsspn.c: Likewise.
64533         * tests/test-mbsstr1.c: Likewise.
64534         * tests/test-mbsstr2.c: Likewise.
64535         * tests/test-mbsstr3.c: Likewise.
64536         * tests/test-md5.c: Likewise.
64537         * tests/test-memmem.c: Likewise.
64538         * tests/test-netinet_in.c: Likewise.
64539         * tests/test-open.c: Likewise.
64540         * tests/test-printf-frexp.c: Likewise.
64541         * tests/test-printf-frexpl.c: Likewise.
64542         * tests/test-printf-posix.c: Likewise.
64543         * tests/test-printf-posix.h: Likewise.
64544         * tests/test-rbtree_list.c: Likewise.
64545         * tests/test-rbtree_oset.c: Likewise.
64546         * tests/test-rbtreehash_list.c: Likewise.
64547         * tests/test-read-file.c: Likewise.
64548         * tests/test-rijndael.c: Likewise.
64549         * tests/test-search.c: Likewise.
64550         * tests/test-signbit.c: Likewise.
64551         * tests/test-sleep.c: Likewise.
64552         * tests/test-snprintf-posix.c: Likewise.
64553         * tests/test-snprintf-posix.h: Likewise.
64554         * tests/test-snprintf.c: Likewise.
64555         * tests/test-sprintf-posix.c: Likewise.
64556         * tests/test-sprintf-posix.h: Likewise.
64557         * tests/test-stat-time.c: Likewise.
64558         * tests/test-stdbool.c: Likewise.
64559         * tests/test-stdint.c: Likewise.
64560         * tests/test-stdio.c: Likewise.
64561         * tests/test-stdlib.c: Likewise.
64562         * tests/test-stpncpy.c: Likewise.
64563         * tests/test-strcasestr.c: Likewise.
64564         * tests/test-striconv.c: Likewise.
64565         * tests/test-striconveh.c: Likewise.
64566         * tests/test-striconveha.c: Likewise.
64567         * tests/test-string.c: Likewise.
64568         * tests/test-sys_select.c: Likewise.
64569         * tests/test-sys_socket.c: Likewise.
64570         * tests/test-sys_stat.c: Likewise.
64571         * tests/test-sys_time.c: Likewise.
64572         * tests/test-sysexits.c: Likewise.
64573         * tests/test-time.c: Likewise.
64574         * tests/test-tls.c: Likewise.
64575         * tests/test-trunc.c: Likewise.
64576         * tests/test-truncf.c: Likewise.
64577         * tests/test-truncl.c: Likewise.
64578         * tests/test-unistd.c: Likewise.
64579         * tests/test-vasnprintf-posix.c: Likewise.
64580         * tests/test-vasnprintf-posix2.c: Likewise.
64581         * tests/test-vasnprintf.c: Likewise.
64582         * tests/test-vasprintf-posix.c: Likewise.
64583         * tests/test-vasprintf.c: Likewise.
64584         * tests/test-verify.c: Likewise.
64585         * tests/test-vfprintf-posix.c: Likewise.
64586         * tests/test-vprintf-posix.c: Likewise.
64587         * tests/test-vsnprintf-posix.c: Likewise.
64588         * tests/test-vsnprintf.c: Likewise.
64589         * tests/test-vsprintf-posix.c: Likewise.
64590         * tests/test-wchar.c: Likewise.
64591         * tests/test-wctype.c: Likewise.
64592         * tests/test-wcwidth.c: Likewise.
64593         * tests/test-xstrtol.c: Likewise.
64594         * tests/test-xvasprintf.c: Likewise.
64595         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64596         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64597         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64598         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64599         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64600         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64601         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64602         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64603         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64604         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64605         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64606         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64607         * tests/uniname/test-uninames.c: Likewise.
64608         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64609         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64610         * tests/unistdio/test-u16-printf1.h: Likewise.
64611         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64612         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64613         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64614         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64615         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64616         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64617         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64618         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64619         * tests/unistdio/test-u32-printf1.h: Likewise.
64620         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64621         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64622         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64623         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64624         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64625         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64626         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64627         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64628         * tests/unistdio/test-u8-printf1.h: Likewise.
64629         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64630         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64631         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64632         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64633         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64634         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64635         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64636         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64637         * tests/unistdio/test-ulc-printf1.h: Likewise.
64638         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64639         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64640         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64641         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64642         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64643         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64644         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64645         * tests/uniwidth/test-u16-width.c: Likewise.
64646         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64647         * tests/uniwidth/test-u32-width.c: Likewise.
64648         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64649         * tests/uniwidth/test-u8-width.c: Likewise.
64650         * tests/uniwidth/test-uc_width.c: Likewise.
64651         * config/srclist-update: Likewise.
64652         (fixlicense): Update to GPLv3+.
64653
64654         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64655         * tests/test-tsearch.c: Change copyright notice.
64656
64657         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64658         * lib/c-strcaseeq.h: Change copyright notice.
64659         * lib/streq.h: Likewise.
64660         * lib/uniconv.h: Likewise.
64661         * lib/uniconv/u-conv-from-enc.h: Likewise.
64662         * lib/uniconv/u-conv-to-enc.h: Likewise.
64663         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64664         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64665         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64666         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64667         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64668         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64669         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64670         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64671         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64672         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64673         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64674         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64675         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64676         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64677         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64678         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64679         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64680         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64681         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64682         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64683         * lib/uniname.h: Likewise.
64684         * lib/uniname/uniname.c: Likewise.
64685         * lib/unistdio.h: Likewise.
64686         * lib/unistdio/u-asnprintf.h: Likewise.
64687         * lib/unistdio/u-asprintf.h: Likewise.
64688         * lib/unistdio/u-printf-args.c: Likewise.
64689         * lib/unistdio/u-printf-args.h: Likewise.
64690         * lib/unistdio/u-printf-parse.h: Likewise.
64691         * lib/unistdio/u-snprintf.h: Likewise.
64692         * lib/unistdio/u-sprintf.h: Likewise.
64693         * lib/unistdio/u-vasprintf.h: Likewise.
64694         * lib/unistdio/u-vsnprintf.h: Likewise.
64695         * lib/unistdio/u-vsprintf.h: Likewise.
64696         * lib/unistdio/u16-asnprintf.c: Likewise.
64697         * lib/unistdio/u16-asprintf.c: Likewise.
64698         * lib/unistdio/u16-printf-parse.c: Likewise.
64699         * lib/unistdio/u16-snprintf.c: Likewise.
64700         * lib/unistdio/u16-sprintf.c: Likewise.
64701         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64702         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64703         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64704         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64705         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64706         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64707         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64708         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64709         * lib/unistdio/u16-vasnprintf.c: Likewise.
64710         * lib/unistdio/u16-vasprintf.c: Likewise.
64711         * lib/unistdio/u16-vsnprintf.c: Likewise.
64712         * lib/unistdio/u16-vsprintf.c: Likewise.
64713         * lib/unistdio/u32-asnprintf.c: Likewise.
64714         * lib/unistdio/u32-asprintf.c: Likewise.
64715         * lib/unistdio/u32-printf-parse.c: Likewise.
64716         * lib/unistdio/u32-snprintf.c: Likewise.
64717         * lib/unistdio/u32-sprintf.c: Likewise.
64718         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64719         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64720         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64721         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64722         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64723         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64724         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64725         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64726         * lib/unistdio/u32-vasnprintf.c: Likewise.
64727         * lib/unistdio/u32-vasprintf.c: Likewise.
64728         * lib/unistdio/u32-vsnprintf.c: Likewise.
64729         * lib/unistdio/u32-vsprintf.c: Likewise.
64730         * lib/unistdio/u8-asnprintf.c: Likewise.
64731         * lib/unistdio/u8-asprintf.c: Likewise.
64732         * lib/unistdio/u8-printf-parse.c: Likewise.
64733         * lib/unistdio/u8-snprintf.c: Likewise.
64734         * lib/unistdio/u8-sprintf.c: Likewise.
64735         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64736         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64737         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64738         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64739         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64740         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64741         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64742         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64743         * lib/unistdio/u8-vasnprintf.c: Likewise.
64744         * lib/unistdio/u8-vasprintf.c: Likewise.
64745         * lib/unistdio/u8-vsnprintf.c: Likewise.
64746         * lib/unistdio/u8-vsprintf.c: Likewise.
64747         * lib/unistdio/ulc-asnprintf.c: Likewise.
64748         * lib/unistdio/ulc-asprintf.c: Likewise.
64749         * lib/unistdio/ulc-printf-parse.c: Likewise.
64750         * lib/unistdio/ulc-snprintf.c: Likewise.
64751         * lib/unistdio/ulc-sprintf.c: Likewise.
64752         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64753         * lib/unistdio/ulc-vasprintf.c: Likewise.
64754         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64755         * lib/unistdio/ulc-vsprintf.c: Likewise.
64756         * lib/unistr.h: Likewise.
64757         * lib/unistr/u-cpy-alloc.h: Likewise.
64758         * lib/unistr/u-cpy.h: Likewise.
64759         * lib/unistr/u-endswith.h: Likewise.
64760         * lib/unistr/u-move.h: Likewise.
64761         * lib/unistr/u-set.h: Likewise.
64762         * lib/unistr/u-startswith.h: Likewise.
64763         * lib/unistr/u-stpcpy.h: Likewise.
64764         * lib/unistr/u-stpncpy.h: Likewise.
64765         * lib/unistr/u-strcat.h: Likewise.
64766         * lib/unistr/u-strcpy.h: Likewise.
64767         * lib/unistr/u-strcspn.h: Likewise.
64768         * lib/unistr/u-strdup.h: Likewise.
64769         * lib/unistr/u-strlen.h: Likewise.
64770         * lib/unistr/u-strncat.h: Likewise.
64771         * lib/unistr/u-strncpy.h: Likewise.
64772         * lib/unistr/u-strnlen.h: Likewise.
64773         * lib/unistr/u-strpbrk.h: Likewise.
64774         * lib/unistr/u-strspn.h: Likewise.
64775         * lib/unistr/u-strstr.h: Likewise.
64776         * lib/unistr/u-strtok.h: Likewise.
64777         * lib/unistr/u16-check.c: Likewise.
64778         * lib/unistr/u16-chr.c: Likewise.
64779         * lib/unistr/u16-cmp.c: Likewise.
64780         * lib/unistr/u16-cpy-alloc.c: Likewise.
64781         * lib/unistr/u16-cpy.c: Likewise.
64782         * lib/unistr/u16-endswith.c: Likewise.
64783         * lib/unistr/u16-mblen.c: Likewise.
64784         * lib/unistr/u16-mbsnlen.c: Likewise.
64785         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64786         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64787         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64788         * lib/unistr/u16-mbtouc.c: Likewise.
64789         * lib/unistr/u16-mbtoucr.c: Likewise.
64790         * lib/unistr/u16-move.c: Likewise.
64791         * lib/unistr/u16-next.c: Likewise.
64792         * lib/unistr/u16-prev.c: Likewise.
64793         * lib/unistr/u16-set.c: Likewise.
64794         * lib/unistr/u16-startswith.c: Likewise.
64795         * lib/unistr/u16-stpcpy.c: Likewise.
64796         * lib/unistr/u16-stpncpy.c: Likewise.
64797         * lib/unistr/u16-strcat.c: Likewise.
64798         * lib/unistr/u16-strchr.c: Likewise.
64799         * lib/unistr/u16-strcmp.c: Likewise.
64800         * lib/unistr/u16-strcpy.c: Likewise.
64801         * lib/unistr/u16-strcspn.c: Likewise.
64802         * lib/unistr/u16-strdup.c: Likewise.
64803         * lib/unistr/u16-strlen.c: Likewise.
64804         * lib/unistr/u16-strmblen.c: Likewise.
64805         * lib/unistr/u16-strmbtouc.c: Likewise.
64806         * lib/unistr/u16-strncat.c: Likewise.
64807         * lib/unistr/u16-strncmp.c: Likewise.
64808         * lib/unistr/u16-strncpy.c: Likewise.
64809         * lib/unistr/u16-strnlen.c: Likewise.
64810         * lib/unistr/u16-strpbrk.c: Likewise.
64811         * lib/unistr/u16-strrchr.c: Likewise.
64812         * lib/unistr/u16-strspn.c: Likewise.
64813         * lib/unistr/u16-strstr.c: Likewise.
64814         * lib/unistr/u16-strtok.c: Likewise.
64815         * lib/unistr/u16-to-u32.c: Likewise.
64816         * lib/unistr/u16-to-u8.c: Likewise.
64817         * lib/unistr/u16-uctomb-aux.c: Likewise.
64818         * lib/unistr/u16-uctomb.c: Likewise.
64819         * lib/unistr/u32-check.c: Likewise.
64820         * lib/unistr/u32-chr.c: Likewise.
64821         * lib/unistr/u32-cmp.c: Likewise.
64822         * lib/unistr/u32-cpy-alloc.c: Likewise.
64823         * lib/unistr/u32-cpy.c: Likewise.
64824         * lib/unistr/u32-endswith.c: Likewise.
64825         * lib/unistr/u32-mblen.c: Likewise.
64826         * lib/unistr/u32-mbsnlen.c: Likewise.
64827         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64828         * lib/unistr/u32-mbtouc.c: Likewise.
64829         * lib/unistr/u32-mbtoucr.c: Likewise.
64830         * lib/unistr/u32-move.c: Likewise.
64831         * lib/unistr/u32-next.c: Likewise.
64832         * lib/unistr/u32-prev.c: Likewise.
64833         * lib/unistr/u32-set.c: Likewise.
64834         * lib/unistr/u32-startswith.c: Likewise.
64835         * lib/unistr/u32-stpcpy.c: Likewise.
64836         * lib/unistr/u32-stpncpy.c: Likewise.
64837         * lib/unistr/u32-strcat.c: Likewise.
64838         * lib/unistr/u32-strchr.c: Likewise.
64839         * lib/unistr/u32-strcmp.c: Likewise.
64840         * lib/unistr/u32-strcpy.c: Likewise.
64841         * lib/unistr/u32-strcspn.c: Likewise.
64842         * lib/unistr/u32-strdup.c: Likewise.
64843         * lib/unistr/u32-strlen.c: Likewise.
64844         * lib/unistr/u32-strmblen.c: Likewise.
64845         * lib/unistr/u32-strmbtouc.c: Likewise.
64846         * lib/unistr/u32-strncat.c: Likewise.
64847         * lib/unistr/u32-strncmp.c: Likewise.
64848         * lib/unistr/u32-strncpy.c: Likewise.
64849         * lib/unistr/u32-strnlen.c: Likewise.
64850         * lib/unistr/u32-strpbrk.c: Likewise.
64851         * lib/unistr/u32-strrchr.c: Likewise.
64852         * lib/unistr/u32-strspn.c: Likewise.
64853         * lib/unistr/u32-strstr.c: Likewise.
64854         * lib/unistr/u32-strtok.c: Likewise.
64855         * lib/unistr/u32-to-u16.c: Likewise.
64856         * lib/unistr/u32-to-u8.c: Likewise.
64857         * lib/unistr/u32-uctomb.c: Likewise.
64858         * lib/unistr/u8-check.c: Likewise.
64859         * lib/unistr/u8-chr.c: Likewise.
64860         * lib/unistr/u8-cmp.c: Likewise.
64861         * lib/unistr/u8-cpy-alloc.c: Likewise.
64862         * lib/unistr/u8-cpy.c: Likewise.
64863         * lib/unistr/u8-endswith.c: Likewise.
64864         * lib/unistr/u8-mblen.c: Likewise.
64865         * lib/unistr/u8-mbsnlen.c: Likewise.
64866         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64867         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64868         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64869         * lib/unistr/u8-mbtouc.c: Likewise.
64870         * lib/unistr/u8-mbtoucr.c: Likewise.
64871         * lib/unistr/u8-move.c: Likewise.
64872         * lib/unistr/u8-next.c: Likewise.
64873         * lib/unistr/u8-prev.c: Likewise.
64874         * lib/unistr/u8-set.c: Likewise.
64875         * lib/unistr/u8-startswith.c: Likewise.
64876         * lib/unistr/u8-stpcpy.c: Likewise.
64877         * lib/unistr/u8-stpncpy.c: Likewise.
64878         * lib/unistr/u8-strcat.c: Likewise.
64879         * lib/unistr/u8-strchr.c: Likewise.
64880         * lib/unistr/u8-strcmp.c: Likewise.
64881         * lib/unistr/u8-strcpy.c: Likewise.
64882         * lib/unistr/u8-strcspn.c: Likewise.
64883         * lib/unistr/u8-strdup.c: Likewise.
64884         * lib/unistr/u8-strlen.c: Likewise.
64885         * lib/unistr/u8-strmblen.c: Likewise.
64886         * lib/unistr/u8-strmbtouc.c: Likewise.
64887         * lib/unistr/u8-strncat.c: Likewise.
64888         * lib/unistr/u8-strncmp.c: Likewise.
64889         * lib/unistr/u8-strncpy.c: Likewise.
64890         * lib/unistr/u8-strnlen.c: Likewise.
64891         * lib/unistr/u8-strpbrk.c: Likewise.
64892         * lib/unistr/u8-strrchr.c: Likewise.
64893         * lib/unistr/u8-strspn.c: Likewise.
64894         * lib/unistr/u8-strstr.c: Likewise.
64895         * lib/unistr/u8-strtok.c: Likewise.
64896         * lib/unistr/u8-to-u16.c: Likewise.
64897         * lib/unistr/u8-to-u32.c: Likewise.
64898         * lib/unistr/u8-uctomb-aux.c: Likewise.
64899         * lib/unistr/u8-uctomb.c: Likewise.
64900         * lib/unitypes.h: Likewise.
64901         * lib/uniwidth.h: Likewise.
64902         * lib/uniwidth/cjk.h: Likewise.
64903         * lib/uniwidth/u16-strwidth.c: Likewise.
64904         * lib/uniwidth/u16-width.c: Likewise.
64905         * lib/uniwidth/u32-strwidth.c: Likewise.
64906         * lib/uniwidth/u32-width.c: Likewise.
64907         * lib/uniwidth/u8-strwidth.c: Likewise.
64908         * lib/uniwidth/u8-width.c: Likewise.
64909         * lib/uniwidth/width.c: Likewise.
64910
64911 2007-10-07  Bruno Haible  <bruno@clisp.org>
64912
64913         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64914         The file is still under LGPL (see modules/inttypes).
64915
64916 2007-10-06  Bruno Haible  <bruno@clisp.org>
64917
64918         * modules/trunc (Dependencies): Add 'extensions'.
64919         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64920         Reported by Ben Pfaff <blp@gnu.org>.
64921
64922 2007-10-06  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/freopen-tests: New file.
64925         * tests/test-freopen.c: New file.
64926
64927         * modules/fopen-tests: New file.
64928         * tests/test-fopen.c: New file.
64929
64930         * modules/fopen: New file.
64931         * lib/fopen.c: New file.
64932         * m4/fopen.m4: New file.
64933         * modules/freopen: New file.
64934         * lib/freopen.c: New file.
64935         * m4/freopen.m4: New file.
64936         * lib/stdio.in.h (fopen, freopen): New declarations.
64937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64938         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64939         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64940         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64941         * doc/functions/fopen.texi: Mention the 'fopen' module.
64942         * doc/functions/freopen.texi: Mention the 'freopen' module.
64943
64944 2007-10-06  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/open-tests: New file.
64947         * tests/test-open.c: New file.
64948
64949         * modules/open: New file.
64950         * lib/open.c: New file.
64951         * m4/open.m4: New file.
64952         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64953         lib/open.c does.
64954         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64955         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64956         macros.
64957         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64958         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64959         REPLACE_OPEN.
64960         * doc/functions/open.texi: Mention the 'open' module.
64961
64962 2007-10-04  Bruno Haible  <bruno@clisp.org>
64963
64964         * modules/ceill-tests: New file.
64965         * tests/test-ceill.c: New file.
64966
64967         * modules/ceill: New file.
64968         * lib/ceill.c: Replace entire file.
64969         * m4/ceill.m4: New file.
64970         * lib/math.in.h (ceill): Replace declaration.
64971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64972         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64973         * doc/functions/ceill.texi: Mention the 'ceill' module.
64974         * modules/mathl (Files): Remove lib/ceill.c.
64975         (Depends-on): Add ceill.
64976
64977 2007-10-04  Bruno Haible  <bruno@clisp.org>
64978
64979         * modules/ceilf-tests: New file.
64980         * tests/test-ceilf.c: New file.
64981
64982         * modules/ceilf: New file.
64983         * lib/ceil.c: New file.
64984         * lib/ceilf.c: New file.
64985         * m4/ceilf.m4: New file.
64986         * lib/math.in.h (ceilf): New declaration.
64987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64988         HAVE_DECL_CEILF.
64989         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64990         HAVE_DECL_CEILF.
64991         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64992
64993 2007-10-04  Bruno Haible  <bruno@clisp.org>
64994
64995         * modules/floorl-tests: New file.
64996         * tests/test-floorl.c: New file.
64997
64998         * modules/floorl: New file.
64999         * lib/floorl.c: Replace entire file.
65000         * m4/floorl.m4: New file.
65001         * lib/math.in.h (floorl): Replace declaration.
65002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65003         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65004         * doc/functions/floorl.texi: Mention the 'floorl' module.
65005         * modules/mathl (Files): Remove lib/floorl.c.
65006         (Depends-on): Add floorl.
65007
65008 2007-10-04  Bruno Haible  <bruno@clisp.org>
65009
65010         * modules/floorf-tests: New file.
65011         * tests/test-floorf.c: New file.
65012
65013         * modules/floorf: New file.
65014         * lib/floor.c: New file.
65015         * lib/floorf.c: New file.
65016         * m4/floorf.m4: New file.
65017         * lib/math.in.h (floorf): New declaration.
65018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65019         HAVE_DECL_FLOORF.
65020         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65021         HAVE_DECL_FLOORF.
65022         * doc/functions/floorf.texi: Mention the 'floorf' module.
65023
65024 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65025             Bruno Haible  <bruno@clisp.org>
65026
65027         Advertise for the Git server instead of the CVS server.
65028         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65029         repository instead of the CVS one.
65030         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65031         about all VCS systems generically.
65032         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65033
65034 2007-10-04  Bruno Haible  <bruno@clisp.org>
65035
65036         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65037         means.
65038         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65039
65040 2007-10-04  Bruno Haible  <bruno@clisp.org>
65041
65042         * modules/truncl-tests: New file.
65043         * tests/test-truncl.c: New file.
65044
65045         * modules/truncl: New file.
65046         * lib/truncl.c: New file.
65047         * m4/truncl.m4: New file.
65048         * lib/math.in.h (truncl): New declaration.
65049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65050         HAVE_DECL_TRUNCL.
65051         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65052         HAVE_DECL_TRUNCL.
65053         * doc/functions/truncl.texi: Mention the 'truncl' module.
65054
65055 2007-10-04  Bruno Haible  <bruno@clisp.org>
65056
65057         * modules/truncf-tests: New file.
65058         * tests/test-truncf.c: New file.
65059
65060         * modules/truncf: New file.
65061         * lib/trunc.c: Make paramerizable through USE_* macros.
65062         * lib/truncf.c: New file.
65063         * m4/truncf.m4: New file.
65064         * lib/math.in.h (truncf): New declaration.
65065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65066         HAVE_DECL_TRUNCF.
65067         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65068         HAVE_DECL_TRUNCF.
65069         * doc/functions/truncf.texi: Mention the 'truncf' module.
65070
65071 2007-10-03  Bruno Haible  <bruno@clisp.org>
65072
65073         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65074         augmentation also for tests modules.
65075         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65076         * modules/atexit-tests (Makefile.am): Likewise.
65077         * modules/binary-io-tests (Makefile.am): Likewise.
65078         * modules/c-strcase-tests (Makefile.am): Likewise.
65079         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65080         * modules/canonicalize-tests (Makefile.am): Likewise.
65081         * modules/closein-tests (Makefile.am): Likewise.
65082         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65083         * modules/freadahead-tests (Makefile.am): Likewise.
65084         * modules/fseek-tests (Makefile.am): Likewise.
65085         * modules/fseeko-tests (Makefile.am): Likewise.
65086         * modules/ftell-tests (Makefile.am): Likewise.
65087         * modules/ftello-tests (Makefile.am): Likewise.
65088         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65089         * modules/isnanl-tests (Makefile.am): Likewise.
65090         * modules/lseek-tests (Makefile.am): Likewise.
65091         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65092         * modules/mbscasestr-tests (Makefile.am): Likewise.
65093         * modules/mbschr-tests (Makefile.am): Likewise.
65094         * modules/mbscspn-tests (Makefile.am): Likewise.
65095         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65096         * modules/mbspbrk-tests (Makefile.am): Likewise.
65097         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65098         * modules/mbsrchr-tests (Makefile.am): Likewise.
65099         * modules/mbsspn-tests (Makefile.am): Likewise.
65100         * modules/mbsstr-tests (Makefile.am): Likewise.
65101         * modules/printf-posix-tests (Makefile.am): Likewise.
65102         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65103         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65104         * modules/tsearch-tests (Makefile.am): Likewise.
65105         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65106         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65107         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65108         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65109         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65110         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65111         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65112         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65113         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65114         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65115         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65116         * modules/xstrtol-tests (Makefile.am): Likewise.
65117         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65118         * modules/yesno-tests (Makefile.am): Likewise.
65119
65120 2007-10-03  Bruno Haible  <bruno@clisp.org>
65121
65122         * modules/trunc-tests: New file.
65123         * tests/test-trunc.c: New file.
65124
65125         * modules/trunc: New file.
65126         * lib/trunc.c: New file.
65127         * m4/trunc.m4: New file.
65128         * lib/math.in.h (trunc): New declaration.
65129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65130         HAVE_DECL_TRUNC.
65131         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65132         HAVE_DECL_TRUNC.
65133         * doc/functions/trunc.texi: Mention the 'trunc' module.
65134
65135 2007-10-03  Bruno Haible  <bruno@clisp.org>
65136
65137         * tests/test-fpending.c: New file, mostly copied
65138         from coreutils/lib/t-fpending.c.
65139         * modules/fpending-tests: New file.
65140
65141 2007-10-03  Bruno Haible  <bruno@clisp.org>
65142
65143         Port the stdio extensions to QNX (untested).
65144         * lib/fseterr.c (fseterr): Add support for QNX.
65145         * lib/fbufmode.c (fbufmode): Likewise.
65146         * lib/freadable.c (freadable): Likewise.
65147         * lib/fwritable.c (fwritable): Likewise.
65148         * lib/freading.c (freading): Likewise.
65149         * lib/fwriting.c (fwriting): Likewise.
65150         * lib/freadahead.c (freadahed): Likewise.
65151         * lib/fpurge.c (fpurge): Likewise.
65152         * lib/fseeko.c (rpl_fseeko): Likewise.
65153
65154 2007-10-03  Bruno Haible  <bruno@clisp.org>
65155             Jim Meyering  <jim@meyering.net>
65156             Eric Blake  <ebb9@byu.net>
65157
65158         * doc/relocatable.texi: Use @command instead of @program.
65159
65160 2007-10-02  Jim Meyering  <jim@meyering.net>
65161
65162         Perform one more "_.h" -> ".in.h" substitution.
65163         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65164         instead of unistd_.h here, too.
65165
65166 2007-10-01  Bruno Haible  <bruno@clisp.org>
65167
65168         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65169         Needed for the alloca-opt module.
65170
65171 2007-09-30  Bruno Haible  <bruno@clisp.org>
65172
65173         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65174         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65175         alloca_.h.
65176         * lib/argz.in.h: Renamed from lib/argz_.h.
65177         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65178         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65179         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65180         byteswap_.h.
65181         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65182         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65183         dirent_.h.
65184         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65185         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65186         fcntl_.h.
65187         * lib/float.in.h: Renamed from lib/float_.h.
65188         * modules/float (Files, Makefile.am): Use float.in.h instead of
65189         float_.h.
65190         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65191         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65192         fnmatch_.h.
65193         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65194         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65195         getopt_.h.
65196         * lib/glob.in.h: Renamed from lib/glob_.h.
65197         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65198         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65199         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65200         iconv_.h.
65201         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65202         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65203         inttypes_.h.
65204         * lib/locale.in.h: Renamed from lib/locale_.h.
65205         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65206         locale_.h.
65207         * lib/math.in.h: Renamed from lib/math_.h.
65208         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65209         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65210         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65211         of netinet_in_.h. Add dependency.
65212         * lib/poll.in.h: Renamed from lib/poll_.h.
65213         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65214         * lib/search.in.h: Renamed from lib/search_.h.
65215         * modules/search (Files, Makefile.am): Use search.in.h instead of
65216         search_.h.
65217         * lib/signal.in.h: Renamed from lib/signal_.h.
65218         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65219         _signal.h.
65220         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65221         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65222         stdbool_.h.
65223         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65224         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65225         stdint_.h.
65226         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65227         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65228         stdio_.h.
65229         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65230         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65231         stdlib_.h.
65232         * lib/string.in.h: Renamed from lib/string_.h.
65233         * modules/string (Files, Makefile.am): Use string.in.h instead of
65234         string_.h.
65235         * doc/gnulib-tool.texi (Initial import): Update.
65236         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65237         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65238         of sys_select_.h. Add dependency.
65239         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65240         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65241         of sys_socket_.h.
65242         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65243         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65244         sys_stat_.h.
65245         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65246         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65247         sys_time_.h.
65248         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65249         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65250         sysexits_.h.
65251         * lib/time.in.h: Renamed from lib/time_.h.
65252         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65253         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65254         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65255         unistd_.h.
65256         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65257         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65258         wchar_.h.
65259         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65260         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65261         wctype_.h.
65262         * build-aux/bootstrap (slurp): Update.
65263         * lib/.cppi-disable: Update.
65264
65265 2007-09-30  Bruno Haible  <bruno@clisp.org>
65266
65267         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65268         Needed on BeOS.
65269
65270 2007-09-30  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65273
65274 2007-09-29  Bruno Haible  <bruno@clisp.org>
65275
65276         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65277
65278 2007-09-29  Bruno Haible  <bruno@clisp.org>
65279
65280         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65281         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65282         * build-aux/install-reloc: Compile also areadlink.c.
65283         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65284
65285 2007-09-29  Bruno Haible  <bruno@clisp.org>
65286
65287         * gnulib-tool (func_emit_initmacro_done): Indentation.
65288
65289 2007-09-29  Bruno Haible  <bruno@clisp.org>
65290
65291         * README: Add CVS checkout update instructions.
65292         Info from Bob Proulx <bob@proulx.com>.
65293
65294 2007-09-28  Eric Blake  <ebb9@byu.net>
65295
65296         Provide move-if-change.
65297         * build-aux/move-if-change: New file, based on best practice
65298         rather than any canonical upstream location.
65299
65300 2007-09-28  Jim Meyering  <jim@meyering.net>
65301
65302         Fix canonicalize loop-detection corner case.
65303         Do not attempt to stat the symlink values stored via seen_triple.
65304         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65305         on linux-2.6.18, (but not 2.6.22).
65306         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65307         triple_compare.  The former compares dev,ino,filename, while the latter
65308         would actually stat dirname(filename) when dev and ino were equal.
65309         * lib/hash-triple.c: Install <string.h>.
65310         (STREQ): Define.
65311         (triple_compare_ino_str): New function.
65312         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65313
65314 2007-09-28  Eric Blake  <ebb9@byu.net>
65315
65316         Enforce that AC_REPLACE_FUNCS files exist.
65317         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65318         override check for typos.
65319
65320         Fix test-closein on Solaris 10.
65321         * tests/test-closein.c (main): Don't assume stdin can be inherited
65322         closed on all systems.
65323         * tests/test-closein.sh: Likewise.
65324         Reported by Piotr Tarnowski.
65325
65326 2007-09-28  Jim Meyering  <jim@meyering.net>
65327
65328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65329
65330 2007-09-27  Jim Meyering  <jim@meyering.net>
65331
65332         canonicalize: Avoid a false-positive cycle failure.
65333         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65334         Sort.  Remove cycle-check.
65335         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65336         not cycle-check.h.
65337         (seen_triple): New function.
65338         (canonicalize_filename_mode): Use it instead of cycle-check.
65339         * tests/test-canonicalize.c: Add a test for this bug.
65340         * tests/test-canonicalize.sh: Set up and run the test.
65341
65342         New module, file-set, from coreutils.
65343         * modules/file-set: Define it.
65344         * lib/file-set.c, lib/file-set.h: Implement.
65345
65346         New module, hash-triple, from coreutils.
65347         * modules/hash-triple: Define it.
65348         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65349
65350 2007-09-25  Eric Blake  <ebb9@byu.net>
65351
65352         Fix strerror on Interix.
65353         * lib/string_.h (strerror): Declare replacement.
65354         * doc/functions/strerror.texi (strerror): Document the Interix
65355         shortcoming.
65356         * modules/string (Makefile.am): Support new hooks.
65357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65358         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65359         gl_FUNC_STRERROR_SEPARATE.
65360         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65361         * lib/strerror.c (rpl_strerror): Provide replacement.
65362         * modules/strerror (Depends-on): Add string.
65363         (configure.ac): Detect use of module.
65364         * tests/test-strerror.c: New file.
65365         * modules/strerror-tests: New test module.
65366         * modules/argp (Depends-on): Add strerror.
65367         * modules/error (Depends-on): Likewise.
65368         Reported by Martin Koeppe.
65369
65370 2007-09-24  Bruno Haible  <bruno@clisp.org>
65371
65372         * README: Update git instructions.
65373
65374 2007-09-24  Eric Blake  <ebb9@byu.net>
65375
65376         Revert fpending breakage from 2007-09-08.
65377         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65378         __fpending.c.
65379
65380 2007-09-24  Jim Meyering  <jim@meyering.net>
65381
65382         filenamecat.c: Add a test.
65383         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65384         showing how the function works when DIR is the empty string.
65385
65386 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65387
65388         * tests/test-canonicalize.sh: Turn on executable bit.
65389
65390 2007-09-19  Eric Blake  <ebb9@byu.net>
65391
65392         * README: Update CVS instructions.
65393
65394 2007-09-18  Bruno Haible  <bruno@clisp.org>
65395
65396         * modules/areadlink: New file.
65397         * lib/areadlink.h (areadlink): New declaration.
65398         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65399
65400 2007-09-17  Jim Meyering  <jim@meyering.net>
65401
65402         * lib/savewd.c (ESTALE) [!defined]: Define.
65403         Reported to be required on Interix by Martin Koeppe.
65404
65405 2007-09-17  Bruno Haible  <bruno@clisp.org>
65406
65407         * gnulib-tool (func_version): Use $version.
65408
65409 2007-09-16  Bruno Haible  <bruno@clisp.org>
65410
65411         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65412         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65413         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65414         Reported by Greg Schafer <gschafer@zip.com.au>.
65415
65416 2007-09-15  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool (sed): Try a little harder to make bash understand the
65419         alias.
65420         Reported by Bruce Korb <bruce.korb@gmail.com>.
65421
65422 2007-09-13  Eric Blake  <ebb9@byu.net>
65423
65424         * ChangeLog: Remove conflict markers.
65425
65426 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65427
65428         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65429         Reported by Bruno Haible <bruno@clisp.org>.
65430
65431 2007-09-12  Bruno Haible  <bruno@clisp.org>
65432
65433         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65434         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65435         is not defined.
65436
65437 2007-09-12  Eric Blake  <ebb9@byu.net>
65438
65439         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65440         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65441         Autoconf definition.
65442         * modules/euidaccess (Depends-on): Add extensions, for
65443         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65444         * modules/fnmatch (Depends-on): Likewise.
65445         * modules/getaddrinfo (Depends-on): Likewise.
65446         * modules/getdelim (Depends-on): Likewise.
65447         * modules/getline (Depends-on): Likewise.
65448         * modules/getsubopt (Depends-on): Likewise.
65449         * modules/gettext (Depends-on): Likewise.
65450         * modules/group-member (Depends-on): Likewise.
65451         * modules/mbchar (Depends-on): Likewise.
65452         * modules/memmem (Depends-on): Likewise.
65453         * modules/mempcpy (Depends-on): Likewise.
65454         * modules/memrchr (Depends-on): Likewise.
65455         * modules/pagealign_alloc (Depends-on): Likewise.
65456         * modules/readutmp (Depends-on): Likewise.
65457         * modules/stpcpy (Depends-on): Likewise.
65458         * modules/stpncpy (Depends-on): Likewise.
65459         * modules/strchrnul (Depends-on): Likewise.
65460         * modules/strndup (Depends-on): Likewise.
65461         * modules/strsep (Depends-on): Likewise.
65462         * modules/strverscmp (Depends-on): Likewise.
65463         * modules/vasprintf (Depends-on): Likewise.
65464         * modules/wcwidth (Depends-on): Likewise.
65465         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65466         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65467         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65469         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65470         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65471         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65472         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65473         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65474         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65475         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65477         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65478         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65479         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65480         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65481         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65482         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65483         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65484         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65485         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65487         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65488         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65489         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65491         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65492         so that lock.m4 can be used in gettext without extensions module.
65493
65494 2007-09-11  Bruno Haible  <bruno@clisp.org>
65495
65496         * m4/isc-posix.m4: Remove file.
65497         Suggested by Eric Blake.
65498
65499 2007-09-11  Eric Blake  <ebb9@byu.net>
65500
65501         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65502
65503 2007-09-10  Bruno Haible  <bruno@clisp.org>
65504
65505         * posix-modules: Fix typo in error message.
65506         Reported by Matt <mkraai@beckman.com>.
65507
65508 2007-09-09  Bruno Haible  <bruno@clisp.org>
65509
65510         * doc/functions/getdelim.texi: Update list of platforms lacking the
65511         function.
65512         * doc/functions/getline.texi: Likewise.
65513
65514 2007-09-09  Jim Meyering  <jim@meyering.net>
65515
65516         * lib/hash.c (hash_initialize): Detect calloc failure.
65517         Reported by Bruno Haible.
65518
65519 2007-09-09  Bruno Haible  <bruno@clisp.org>
65520
65521         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65522         malloc or realloc fails.
65523
65524 2007-09-09  Bruno Haible  <bruno@clisp.org>
65525
65526         * modules/getcwd (Depends-on): Add malloc-posix.
65527         * modules/glob (Depends-on): Likewise.
65528         * modules/putenv (Depends-on): Likewise.
65529         * modules/strdup (Depends-on): Likewise.
65530         * modules/getdelim (Depends-on): Add realloc-posix.
65531         * modules/read-file (Depends-on): Likewise.
65532
65533 2007-09-09  Bruno Haible  <bruno@clisp.org>
65534
65535         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65536         (gl_FUNC_MALLOC_POSIX): Require it.
65537         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65538         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65539         * modules/realloc (Files): Add m4/malloc.m4.
65540         * modules/calloc (Files): Likewise.
65541
65542 2007-09-09  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/malloc-posix: New file.
65545         * modules/malloc (Depends-on): Add malloc-posix.
65546         * lib/malloc.c: Include errno.h.
65547         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65548         and a POSIX-compatible malloc into a single function. Set ENOMEM
65549         when returning NULL.
65550         * m4/malloc.m4: New file.
65551         * doc/functions/malloc.texi: Mention the malloc-posix module.
65552         * lib/stdlib_.h (malloc): New declaration.
65553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65554         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65555         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65556         and HAVE_MALLOC_POSIX.
65557
65558 2007-09-09  Bruno Haible  <bruno@clisp.org>
65559
65560         * modules/realloc-posix: New file.
65561         * modules/realloc (Depends-on): Add realloc-posix.
65562         * lib/realloc.c: Include errno.h.
65563         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65564         and a POSIX-compatible realloc into a single function. Set ENOMEM
65565         when returning NULL.
65566         * m4/realloc.m4: New file.
65567         * doc/functions/realloc.texi: Mention the realloc-posix module.
65568         * lib/stdlib_.h (realloc): New declaration.
65569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65570         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65571         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65572         and HAVE_REALLOC_POSIX.
65573
65574 2007-09-09  Bruno Haible  <bruno@clisp.org>
65575
65576         * modules/calloc-posix: New file.
65577         * modules/calloc (Depends-on): Add calloc-posix.
65578         * lib/calloc.c: Include errno.h.
65579         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65580         and a POSIX-compatible calloc into a single function. Set ENOMEM
65581         when returning NULL.
65582         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65583         * doc/functions/calloc.texi: Mention the calloc-posix module.
65584         * lib/stdlib_.h (calloc): New declaration.
65585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65586         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65587         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65588         and HAVE_CALLOC_POSIX.
65589
65590 2007-09-09  Bruno Haible  <bruno@clisp.org>
65591
65592         Allow for modules to show an arbitrary notice.
65593         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65594         * gnulib-tool: New option --extract-notice.
65595         (func_usage): Document it.
65596         (sed_extract_prog): Update.
65597         (func_get_notice): New function.
65598         (func_modules_notice): New function.
65599         (func_import, func_create_testdir): Invoke it.
65600         Suggested by Jim Meyering.
65601
65602 2007-09-09  Bruno Haible  <bruno@clisp.org>
65603
65604         * gnulib-tool: New options --verbose, --quiet.
65605         (func_usage): Document them.
65606         (verbose): New variable.
65607         (func_execute_command): New function.
65608         (func_import): Don't show the module list and the file list if
65609         $verbose < 0.
65610         (func_create_testdir): Likewise. Use func_execute_command.
65611         (func_create_megatestdir): Use func_execute_command.
65612
65613 2007-09-08  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (func_import): Prefer rsync over wget when available,
65616         for fetching the PO files.
65617
65618 2007-09-08  Bruno Haible  <bruno@clisp.org>
65619
65620         * posix-modules: New file. Portions copied from gnulib-tool.
65621         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65622
65623 2007-09-08  Jim Meyering  <jim@meyering.net>
65624
65625         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65626         * lib/fpending.h: Rename from __fpending.h.
65627         * lib/fpending.c: Rename from __fpending.c.
65628         Include "fpending.h", not "__fpending.h".
65629         * lib/__fpending.h, lib/__fpending.c: Remove files.
65630         * modules/fpending (Files): Reflect new file names.
65631         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65632
65633 2007-09-08  Bruno Haible  <bruno@clisp.org>
65634
65635         * m4/inttypes-h.m4: Remove stub file.
65636
65637 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65638
65639         * doc/headers/stdint.texi: Discuss #include_next issue.
65640
65641 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65642
65643         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65644
65645 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65646
65647         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65648         in variable name.
65649
65650 2007-09-03  Jim Meyering  <jim@meyering.net>
65651
65652         New module: git-version-gen.
65653         * modules/git-version-gen: New file.
65654
65655         Import changes from coreutils for bootstrap script.
65656
65657         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65658
65659         bootstrap: uses rsync to download the .po files
65660         * build-aux/bootstrap (po_download_command_format): New global.
65661         (download_po_files): Use rsync.
65662         (update_po_files): Don't remove .po files after download,
65663         so future rsync runs can take advantage of the copies.
65664
65665         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65666
65667         Solve the unnecessary-.po-file-regeneration problem once and for all.
65668         * build-aux/bootstrap (download_po_files): New function, renamed from
65669         get_translations.  Now, downloads, but doesn't update LINGUAS.
65670         (update_po_files): New function.
65671
65672         bootstrap: Ignore more.
65673         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65674         uniwidth to e.g., lib/.gitignore.
65675         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65676
65677         * build-aux/bootstrap: New setting: vc_ignore.
65678         (insert_sorted_if_absent): Create $file if absent.
65679         Adapt to new, possibly empty, list: $vc_ignore.
65680
65681         bootstrap: generate more ignorable names
65682         * build-aux/bootstrap (slurp): When generating ignorable names,
65683         also map .sin to .sed, .gperf to .c, and .y to .c.
65684
65685 2007-09-03  Jim Meyering  <jim@meyering.net>
65686
65687         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65688         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65689
65690 2007-09-02  Bruno Haible  <bruno@clisp.org>
65691
65692         Fix mis-recognition of 'mcs' on QNX 6.
65693         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65694         output contains the string "Mono".
65695         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65696         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65697
65698 2007-09-01  Bruno Haible  <bruno@clisp.org>
65699
65700         Fix collision between uniwidth/* and linebreak modules.
65701         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65702         u32_width): Remove declarations.
65703         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65704         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65705         streq3, streq2, streq1, streq0): Remove functions.
65706         (STREQ): Remove macro.
65707         (is_cjk_encoding): Remove function.
65708         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65709         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65710         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65711         * NEWS: Document the change.
65712
65713 2007-09-01  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/streq.h: Add double-inclusion guard.
65716
65717 2007-09-01  Karl Berry  <karl@gnu.org>
65718
65719         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65720
65721 2007-08-28  Jim Meyering  <jim@meyering.net>
65722
65723         Rename mreadlink_with_size to areadlink_with_size.
65724         * NEWS: Document the change.
65725         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65726         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65727         * lib/mreadlink.h: Rename this to...
65728         * lib/areadlink.h: ...this.
65729         * modules/mreadlink-with-size: Rename this to...
65730         * modules/areadlink-with-size: ...this.
65731         * lib/canonicalize.c: Reflect the renaming.
65732         * modules/canonicalize: Likewise.
65733
65734 2007-08-26  Bruno Haible  <bruno@clisp.org>
65735
65736         * gnulib-tool (func_import): When deciding which files to remove,
65737         consider also dangling symbolic links.
65738         Reported by Eric Blake.
65739
65740 2007-08-26  Bruno Haible  <bruno@clisp.org>
65741
65742         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65743
65744 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65745
65746         * lib/readline.c: Don't include getline.h, the prototype is now
65747         found in stdio.h.
65748
65749 2007-08-23  Jim Meyering  <jim@meyering.net>
65750
65751         Getdelim touchup.
65752         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65753         around the funlockfile call, since funlockfile never sets errno.
65754         Don't set errno upon failed realloc.
65755
65756 2007-08-22  Eric Blake  <ebb9@byu.net>
65757
65758         Getline touchups.
65759         * lib/getdelim.c (getdelim): Revert regression that required *n to
65760         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65761         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65762         getdelim, rather than whether implementation is missing.
65763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65764         * lib/stdio_.h (getline): Also declare if replacement is
65765         required.
65766         * doc/functions/getdelim.texi: New file.
65767         * doc/functions/getline.texi: Likewise.
65768         * doc/gnulib.texi (Function Substitutes): Add new files.
65769         Reported by Bruno Haible.
65770
65771 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65772
65773         * users.txt: Add Guile.
65774
65775 2007-08-22  Eric Blake  <ebb9@byu.net>
65776
65777         * tests/test-getdelim.c (main): Use remove, not unlink.
65778         * tests/test-getline.c (main): Likewise.
65779
65780         Move getline and getdelim into stdio.h, per POSIX 200x.
65781         * modules/getline (Files): Remove getline.h.
65782         (Depends-on): Add stdio.
65783         (configure.ac): Add module indicator.
65784         * modules/getdelim (Files): Remove getdelim.h.
65785         (Depends-on): Add stdio.
65786         (configure.ac): Add module indicator.
65787         * modules/stdio (Makefile.am): Work with new indicators.
65788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65789         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65790         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65791         * lib/getdelim.h: Delete.
65792         * lib/getline.h: Delete.
65793         * lib/stdio_.h (getdelim, getline): Declare.
65794         * modules/getdelim-tests: New module.
65795         * modules/getline-tests: Likewise.
65796         * tests/test-getdelim.c: New file.
65797         * tests/test-getline.c: Likewise.
65798         * NEWS: Document the change.
65799         * lib/getline.c: Update choice of header.
65800         * lib/csharpcomp.c: Likewise.
65801         * lib/getpass.c: Likewise.
65802         * lib/javacomp.c: Likewise.
65803         * lib/javaversion.c: Likewise.
65804         * lib/yesno.c: Likewise.
65805         * lib/getdelim.c: Likewise.
65806         (getdelim): Set errno on failure, and avoid memory leak.
65807
65808 2007-08-19  Bruno Haible  <bruno@clisp.org>
65809
65810         * modules/closein (Depends-on): Add freadahead.
65811         * lib/closein.c: Include freadahead.h.
65812         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65813         is zero.
65814
65815 2007-08-19  Bruno Haible  <bruno@clisp.org>
65816
65817         * modules/freadahead-tests: New file.
65818         * tests/test-freadahead.sh: New file.
65819         * tests/test-freadahead.c: New file.
65820
65821         * modules/freadahead: New file.
65822         * lib/freadahead.h: New file.
65823         * lib/freadahead.c: New file.
65824         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65825         fbufmode, fpurge, freadable, fwritable.
65826
65827 2007-08-19  Eric Blake  <ebb9@byu.net>
65828
65829         Test yesno in combination with closein.
65830         * lib/yesno.c (yesno): Document use of stdin.
65831         * modules/yesno-tests (Files): New module.
65832         * tests/test-yesno.c (main): New file.
65833         * tests/test-yesno.sh: Likewise.
65834
65835 2007-08-19  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65838         * lib/fseeko.c (rpl_fseeko): Likewise.
65839         * lib/fseterr.c (fseterr): Likewise.
65840
65841 2007-08-19  Bruno Haible  <bruno@clisp.org>
65842
65843         * tests/test-lseek.c (main): Disable a test for BeOS.
65844         * doc/functions/lseek.texi: Document the BeOS bug.
65845
65846 2007-08-19  Bruno Haible  <bruno@clisp.org>
65847             Eric Blake  <ebb9@byu.net>
65848
65849         * lib/lseek.c: Include <sys/stat.h>.
65850         (rpl_lseek): Add workaround code also for Unix platforms.
65851         Needed for BeOS.
65852         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65853         * doc/functions/lseek.texi: Document BeOS definiency.
65854
65855 2007-08-18  Bruno Haible  <bruno@clisp.org>
65856
65857         * modules/fstrcmp-tests: New file.
65858         * tests/test-fstrcmp.c: New file.
65859
65860 2007-08-18  Bruno Haible  <bruno@clisp.org>
65861
65862         * modules/fstrcmp: New file, from GNU gettext with modifications.
65863         * lib/fstrcmp.h: New file, from GNU gettext.
65864         * lib/fstrcmp.c: New file, from GNU gettext.
65865         * MODULES.html.sh (String handling): Add fstrcmp.
65866
65867 2007-08-18  Bruno Haible  <bruno@clisp.org>
65868
65869         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65870         'bool'.
65871         (diag, compareseq): Remove const from the ctxt argument.
65872         (USE_HEURISTIC): Undefine at the end.
65873
65874 2007-08-18  Jim Meyering  <jim@meyering.net>
65875
65876         New file: lib/idcache.h
65877         * NEWS: Mention the addition.
65878         * modules/idcache (Files): Add lib/idcache.h
65879         * lib/idcache.c: Include "idcache.h".
65880         Don't include <sys/types.h>.
65881         Add a FIXME comment.
65882         Move file-scoped "static" declarations to the top.
65883         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65884
65885 2007-08-17  Bruno Haible  <bruno@clisp.org>
65886         and Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         * MODULES.html.sh: Add diffseq.
65889         * modules/diffseq: New file.
65890         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65891         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65892
65893 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         Import changes from coreutils for bootstrap script.
65896
65897         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65898
65899         * build-aux/bootstrap (slurp): Work even in environments where
65900         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65901         current code does not slurp files whose names start with ".", and
65902         this looks like it might be a troublesome area.
65903
65904         2007-07-11  Jim Meyering  <jim@meyering.net>
65905
65906         If there's a GPL vN copyright comment, require that N == 3.
65907
65908         2007-07-08  Jim Meyering  <jim@meyering.net>
65909
65910         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65911         * build-aux/bootstrap (mam_template): Move definition out of loop.
65912
65913         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65914
65915         * build-aux/bootstrap (symlink_to_dir): Rename function from
65916         symlink_to_gnulib.  Add a directory parameter.  Update all
65917         callers.
65918         (cp_mark_as_generated): Also check for -- and link to -- files in
65919         gl/.
65920
65921         2007-07-08  Jim Meyering  <jim@meyering.net>
65922
65923         Adapt to deeper hierarchy in gnulib.
65924         * build-aux/bootstrap (symlink_to_dir): If the destination
65925         directory doesn't exist, create it. This is required at least for
65926         "lib/uniwidth/cjk.h".
65927
65928         2007-05-15  Jim Meyering  <jim@meyering.net>
65929
65930         * build-aux/bootstrap: Now that generated Makefile.am files
65931         are no longer under version control, they must be created at
65932         bootstrap time.
65933
65934 2007-08-14  Ben Pfaff  <blp@gnu.org>
65935
65936         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65937
65938 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65941         given the changes below.
65942         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65943         even on hosts that have padding bits beyond the supported 64.
65944
65945 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65948         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65949         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65950         depends on it.
65951         (xstrtol_error): Remove.
65952         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65953         but with a different signature.
65954         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65955         * lib/xstrtol-error.c: Include exitfail.h.
65956         (xstrtol_fatal): New function, with a different signature from the
65957         old xstrtol_error, so that the caller need not worry about passing
65958         in an exit status, or about storage management of the option argument.
65959         (xstrtol_error): Now a static function.  Redo signature to
65960         implement xstrtol_fatal.  Output the correct number of hyphens in
65961         front of the option so that the caller need not worry about
65962         storage management.
65963         (N_): New macro.
65964         (_): Remove; not used now.
65965         * modules/xstrtol: Depend on getopt.
65966         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65967         of old STRTOL_FATAL_ERROR macro.
65968         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65969         of test program.
65970         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65971         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65972
65973 2007-08-08  Eric Blake  <ebb9@byu.net>
65974
65975         * lib/xstrtol-error.c: Add missing include.
65976
65977         Move xstrtol messages into gnulib domain, when --pobase is used.
65978         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65979         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65980         * modules/xstrtol (Files): Distribute new file.
65981         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65982         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65983         * tests/test-xstrtol.c: ...into new file.
65984         * tests/test-xstrtoul.c: Also test xstrtoul.
65985         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65986         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65987         * tests/test-xstrtol.sh: Drive the tests.
65988         * tests/test-xstrtoimax.sh: Likewise.
65989         * tests/test-xstrtoumax.sh: Likewise.
65990         * modules/xstrtol-tests: New module.
65991         * modules/xstrtoimax-tests: Likewise.
65992         * modules/xstrtoumax-tests: Likewise.
65993
65994 2007-08-08  Jim Meyering  <jim@meyering.net>
65995
65996         New function: mfile_name_concat.
65997         * lib/filenamecat.c (mfile_name_concat): New function, just like
65998         file_name_concat, but return NULL upon failure rather than exiting
65999         with a diagnostic.
66000         * lib/filenamecat.h: Declare it.
66001
66002 2007-08-07  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66005         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66006         warning from gcc.
66007         Reported by Eric Blake.
66008
66009 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66010
66011         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66012         * modules/crypto/arcfour (License): Likewise.
66013         * modules/crypto/des-tests (License): Likewise.
66014         * modules/crypto/gc-arctwo-tests (License): Likewise.
66015         * modules/crypto/gc-des-tests (License): Likewise.
66016         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66017         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66018         * modules/crypto/gc-md2-tests (License): Likewise.
66019         * modules/crypto/gc-md4-tests (License): Likewise.
66020         * modules/crypto/gc-md5-tests (License): Likewise.
66021         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66022         * modules/crypto/gc-rijndael-tests (License): Likewise.
66023         * modules/crypto/gc-sha1-tests (License): Likewise.
66024         * modules/crypto/gc-tests (License): Likewise.
66025         * modules/crypto/hmac-md5 (License): Likewise.
66026         * modules/crypto/hmac-sha1 (License): Likewise.
66027         * modules/crypto/md2-tests (License): Likewise.
66028         * modules/crypto/md4-tests (License): Likewise.
66029         * modules/crypto/md5 (License): Likewise.
66030         * modules/crypto/rijndael (License): Likewise.
66031         * modules/crypto/sha1 (License): Likewise.
66032         * modules/memxor (License): Likewise.
66033
66034 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66035         and Bruno Haible  <bruno@clisp.org>
66036
66037         * NEWS: Describe interface changes to human, xstrtol.
66038         * lib/human.h: Include <xstrtol.h>.
66039         (human_options): Return enum strtol_error, not int.  Remove
66040         bool arg; take int * instead.
66041         * lib/human.c: Don't include "gettext.h".
66042         (_): Remove; no longer used.
66043         Don't include <xstrtol.h>, since human.h does it.
66044         (human_options): Adjust to abovementioned interface changes.
66045         Do not report error to stderr; that's now the caller's
66046         responsibility.
66047         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66048         interface change.
66049         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66050         Str, Argument_type_string.  All uses changed.  Put " argument"
66051         in diagnostics to make them clearer.  Change wording of suffix
66052         message for clarity.
66053         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66054         Argument_type_string.
66055         (STRTOL_FATAL_WARN): Remove; no longer used.
66056         * modules/human (Depends-on): Remove gettext-h.
66057
66058 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66059
66060         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66061
66062 2007-07-31  Bruno Haible  <bruno@clisp.org>
66063
66064         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66065         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66066         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66067
66068 2007-07-31  Bruno Haible  <bruno@clisp.org>
66069
66070         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66071         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66072
66073 2007-07-30  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66076         * modules/c-ctype (License): Likewise.
66077         * modules/c-strcase (License): Likewise.
66078         * modules/check-version (License): Likewise.
66079         * modules/iconv (License): Likewise.
66080         * modules/iconv_open (License): Likewise.
66081         * modules/read-file (License): Likewise.
66082         * modules/striconv (License): Likewise.
66083         * modules/strverscmp (License): Likewise.
66084         * modules/vasprintf (License): Likewise.
66085         * modules/crypto/des (License): Likewise.
66086         * modules/crypto/gc (License): Likewise.
66087         * modules/crypto/gc-arcfour (License): Likewise.
66088         * modules/crypto/gc-arctwo (License): Likewise.
66089         * modules/crypto/gc-des (License): Likewise.
66090         * modules/crypto/gc-hmac-md5 (License): Likewise.
66091         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66092         * modules/crypto/gc-md2 (License): Likewise.
66093         * modules/crypto/gc-md4 (License): Likewise.
66094         * modules/crypto/gc-md5 (License): Likewise.
66095         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66096         * modules/crypto/gc-random (License): Likewise.
66097         * modules/crypto/gc-rijndael (License): Likewise.
66098         * modules/crypto/gc-sha1 (License): Likewise.
66099         * modules/crypto/md2 (License): Likewise.
66100         * modules/crypto/md4 (License): Likewise.
66101
66102 2007-07-30  Jim Meyering  <jim@meyering.net>
66103
66104         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66105         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66106         it has valid stat data.  This bug would cause du not to count the
66107         sizes of inaccessible directories.
66108         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66109         in <http://bugzilla.redhat.com/250077>.
66110
66111 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66112             Bruno Haible  <bruno@clisp.org>
66113
66114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66115         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66116         #include_next, gives a diagnostic about it, but reports no error in
66117         the exit code.
66118         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66119
66120 2007-07-24  Ben Pfaff  <blp@gnu.org>
66121
66122         Improve name: "count-one-bits" is better than "popcount".
66123         * MODULES.html.sh: Update name.
66124         * lib/popcount.h: Renamed lib/count-one-bits.h.
66125         (popcount): Renamed count_one_bits.
66126         (popcountl): Renamed count_one_bits_l.
66127         (popcountll): Renamed count_one_bits_ll.
66128         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66129         * modules/popcount: Renamed module/count-one-bits.
66130         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66131         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66132
66133 2007-07-23  Ben Pfaff  <blp@gnu.org>
66134
66135         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66136         better code generation, and add U to large constants to avoid
66137         warnings, in non-GCC case.
66138         Suggested by Bruno Haible.
66139
66140 2007-07-23  Ben Pfaff  <blp@gnu.org>
66141
66142         * lib/popcount.h: Use verify_true instead of if...abort.
66143         * modules/popcount: Depend on verify module.
66144         Suggested by Jim Meyering.
66145
66146 2007-07-23  Bruno Haible  <bruno@clisp.org>
66147
66148         * gnulib-tool (func_import): Create a .cvsignore file also when the
66149         directory is not yet in CVS but the toplevel directory is. When
66150         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66151         Reported by Karl Berry.
66152
66153 2007-07-22  Ben Pfaff  <blp@gnu.org>
66154
66155         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66156         case.
66157         Suggested by Eric Blake.
66158
66159 2007-07-22  Ben Pfaff  <blp@gnu.org>
66160
66161         New module: popcount.
66162         * MODULES.html.sh: Add popcount.
66163         * modules/popcount: New file.
66164         * modules/popcount-tests: New file.
66165         * tests/test-popcount.c: New file.
66166         * lib/popcount.h: New file.
66167         * m4/popcount.m4: New file.
66168
66169 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         * build-aux/announce-gen: Update to GPLv3.
66172
66173         * build-aux/config.guess: Update from config.
66174
66175 2007-07-21  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66178         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66179
66180 2007-07-20  Jim Meyering  <jim@meyering.net>
66181
66182         * check-module: Diagnose a self-dependency.
66183
66184 2007-07-19  Bruno Haible  <bruno@clisp.org>
66185
66186         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66187         empty.
66188         Reported by Eric Blake.
66189
66190 2007-07-18  Bruno Haible  <bruno@clisp.org>
66191
66192         * gnulib-tool: New options --po-base, --po-domain.
66193         (func_usage): Document them.
66194         (pobase, po_domain): New variables.
66195         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66196         DEFAULT_TEXT_DOMAIN.
66197         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66198         (func_import): Consider pobase and po_domain. Create a po/ directory.
66199         (func_create_testdir): Set pobase and po_domain to empty.
66200         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66201         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66202
66203 2007-07-18  Bruno Haible  <bruno@clisp.org>
66204
66205         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66206         EXTRA_DIST augmentation for files in build-aux/.
66207
66208 2007-07-16  Bruno Haible  <bruno@clisp.org>
66209
66210         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66211         * modules/getdelim (License): Likewise.
66212
66213 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66214
66215         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66216         * modules/d-type (License): Likewise.
66217         * modules/extensions (License): Likewise.
66218         * modules/fnmatch (License): Likewise.
66219         * modules/fseeko (License): Likewise.
66220         * modules/getaddrinfo (License): Likewise.
66221         * modules/getline (License): Likewise.
66222         * modules/getlogin_r (License): Likewise.
66223         * modules/getpass (License): Likewise.
66224         * modules/gettimeofday (License): Likewise.
66225         * modules/glob (License): Likewise.
66226         * modules/inet_ntop (License): Likewise.
66227         * modules/malloc (License): Likewise.
66228         * modules/malloca (License): Likewise.
66229         * modules/memmem (License): Likewise.
66230         * modules/mempcpy (License): Likewise.
66231         * modules/memset (License): Likewise.
66232         * modules/minmax (License): Likewise.
66233         * modules/mktime (License): Likewise.
66234         * modules/netinet_in (License): Likewise.
66235         * modules/pathmax (License): Likewise.
66236         * modules/poll (License): Likewise.
66237         * modules/regex (License): Likewise.
66238         * modules/snprintf (License): Likewise.
66239         * modules/stdbool (License): Likewise.
66240         * modules/stdint (License): Likewise.
66241         * modules/stdio (License): Likewise.
66242         * modules/strcase (License): Likewise.
66243         * modules/strcasestr (License): Likewise.
66244         * modules/strdup (License): Likewise.
66245         * modules/string (License): Likewise.
66246         * modules/strndup (License): Likewise.
66247         * modules/strnlen (License): Likewise.
66248         * modules/strpbrk (License): Likewise.
66249         * modules/strptime (License): Likewise.
66250         * modules/strsep (License): Likewise.
66251         * modules/sys_select (License): Likewise.
66252         * modules/sys_socket (License): Likewise.
66253         * modules/sys_stat (License): Likewise.
66254         * modules/sys_time (License): Likewise.
66255         * modules/time (License): Likewise.
66256         * modules/time_r (License): Likewise.
66257         * modules/timegm (License): Likewise.
66258         * modules/unistd (License): Likewise.
66259         * modules/vsnprintf (License): Likewise.
66260         * modules/wctype (License): Likewise.
66261
66262 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66263
66264         * modules/argz (License): LGPLv2+.
66265
66266 2007-07-15  Karl Berry  <karl@gnu.org>
66267
66268         * doc/gnulib.texi: revise node structure per new fdl.texi.
66269
66270 2007-07-14  Bruno Haible  <bruno@clisp.org>
66271
66272         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66273         the output file.
66274         * lib/uniname/uninames.h: Regenerated.
66275
66276 2007-07-14  Karl Berry  <karl@gnu.org>
66277
66278         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66279         omitting sectioning and index commands.
66280
66281 2007-07-13  Bruno Haible  <bruno@clisp.org>
66282
66283         New gnulib-tool option --more-symlinks.
66284         * gnulib-tool (func_usage): Document --more-symlinks.
66285         (do_copyrights): New variable.
66286         Recognize option --more-symlinks.
66287         (func_import): Don't add a copyright notice transform to
66288         sed_transform_lib_file if do_copyrights is empty.
66289
66290 2007-07-13  Bruno Haible  <bruno@clisp.org>
66291
66292         * lib/vasnprintf.c (decimal_point_char): Define also if
66293         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66294         && !NEED_PRINTF_DIRECTIVE_A.
66295         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66296         Gary V. Vaughan <gary@gnu.org>.
66297
66298 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66299
66300         * lib/inttypes_.h: Undo previous change, since it was fixed
66301         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66302
66303 2007-07-13  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66306         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66307
66308 2007-07-13  Jim Meyering  <jim@meyering.net>
66309
66310         df: Don't fail for Tru64's "file-on-file mount".
66311         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66312         so we fall through and use statfs instead.  Details here:
66313         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66314         Reported by Albert Chin.
66315
66316 2007-07-13  Bruno Haible  <bruno@clisp.org>
66317
66318         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66319         * modules/configmake (License): Likewise.
66320         * modules/gettext (License): Likewise.
66321         * modules/gettext-h (License): Likewise.
66322         * modules/include_next (License): Likewise.
66323         * modules/link-warning (License): Likewise.
66324         * modules/localcharset (License): Likewise.
66325         * modules/localename (License): Likewise.
66326         * modules/lock (License): Likewise.
66327         * modules/relocatable-lib-lgpl (License): Likewise.
66328         * modules/size_max (License): Likewise.
66329         * modules/vasnprintf (License): Likewise.
66330         * modules/wchar (License): Likewise.
66331         * modules/xsize (License): Likewise.
66332
66333 2007-07-13  Bruno Haible  <bruno@clisp.org>
66334
66335         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66336         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66337
66338 2007-07-12  Bruno Haible  <bruno@clisp.org>
66339
66340         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66341         in the modules files.
66342
66343 2007-07-11  Karl Berry  <karl@gnu.org>
66344
66345         * MODULES.html.sh (func_module): use
66346          sed -e '\|^'"${includefile}"'$|d'
66347          instead of /.../d, to avoid errors on $includefile's containing /.
66348
66349 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66350
66351         * gnulib-tool (func_import): Avoid duplication of --avoid
66352         statements
66353         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66354         names to `_' in variable names.
66355
66356 2007-07-10  Eric Blake  <ebb9@byu.net>
66357
66358         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66359         * NEWS: Document this change.
66360
66361 2007-07-08  Bruno Haible  <bruno@clisp.org>
66362
66363         Update to Unicode 5.0.
66364         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66365         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66366         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66367         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66368         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66369         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66370         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66371         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66372         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66373         U+10A3F, U+1D242..U+1D244.
66374         (nonspacing_table_ind): Update.
66375         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66376         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66377
66378 2007-07-08  Bruno Haible  <bruno@clisp.org>
66379
66380         Update to Unicode 5.0.
66381         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66382         code transform. Extend the name index field of unicode_name_to_code and
66383         unicode_code_to_name from 16 to 24 bits.
66384         * lib/uniname/uniname.c (unicode_character_name,
66385         unicode_name_character): Add the range 0x12xxx to the code transform.
66386         * lib/uniname/uninames.h: Regenerated.
66387         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66388
66389 2007-07-07  Bruno Haible  <bruno@clisp.org>
66390
66391         * modules/wcwidth-tests: New file.
66392         * tests/test-wcwidth.c: New file.
66393
66394         Work around MacOS X wcwidth() bug.
66395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66396         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66397         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66398         original wcwidth in non-UTF-8 locales.
66399         * modules/wcwidth (Depends-on): Add localcharset, streq,
66400         uniwidth/width.
66401         * doc/functions/wcwidth.texi: Update.
66402
66403 2007-07-07  Bruno Haible  <bruno@clisp.org>
66404
66405         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66406         (wcwidth): New declaration.
66407         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66408         macros.
66409         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66410         here. Prepare for creating <wchar.h> unconditionally.
66411         * modules/wchar (Depends-on): Add link-warning.
66412         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66413         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66414         * lib/wcwidth.h: Remove file.
66415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66416         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66417         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66418         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66419         (Include): Replace wcwidth.h with <wchar.h>.
66420         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66421         * lib/mbchar.h: Don't include wcwidth.h.
66422         * lib/mbswidth.c: Likewise.
66423         * NEWS: Mention the change.
66424
66425 2007-07-07  Bruno Haible  <bruno@clisp.org>
66426
66427         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66428         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66429         definition with an external declaration.
66430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66431         defined as a function. Remove AC_C_INLINE requirement.
66432         * modules/wcwidth (Files): Add lib/wcwidth.c.
66433         (Makefile.am): Remove redundant statement.
66434
66435 2007-07-07  Bruno Haible  <bruno@clisp.org>
66436
66437         * MODULES.html.sh (Unicode string functions): Add the new modules.
66438
66439         * tests/uniwidth/test-u32-strwidth.c: New file.
66440         * modules/uniwidth/u32-strwidth-tests: New file.
66441
66442         * lib/uniwidth/u32-strwidth.c: New file.
66443         * modules/uniwidth/u32-strwidth: New file.
66444
66445         * tests/uniwidth/test-u16-strwidth.c: New file.
66446         * modules/uniwidth/u16-strwidth-tests: New file.
66447
66448         * lib/uniwidth/u16-strwidth.c: New file.
66449         * modules/uniwidth/u16-strwidth: New file.
66450
66451         * tests/uniwidth/test-u8-strwidth.c: New file.
66452         * modules/uniwidth/u8-strwidth-tests: New file.
66453
66454         * lib/uniwidth/u8-strwidth.c: New file.
66455         * modules/uniwidth/u8-strwidth: New file.
66456
66457         * tests/uniwidth/test-u32-width.c: New file.
66458         * modules/uniwidth/u32-width-tests: New file.
66459
66460         * lib/uniwidth/u32-width.c: New file.
66461         * modules/uniwidth/u32-width: New file.
66462
66463         * tests/uniwidth/test-u16-width.c: New file.
66464         * modules/uniwidth/u16-width-tests: New file.
66465
66466         * lib/uniwidth/u16-width.c: New file.
66467         * modules/uniwidth/u16-width: New file.
66468
66469         * tests/uniwidth/test-u8-width.c: New file.
66470         * modules/uniwidth/u8-width-tests: New file.
66471
66472         * lib/uniwidth/u8-width.c: New file.
66473         * modules/uniwidth/u8-width: New file.
66474
66475         * tests/uniwidth/test-uc_width.c: New file.
66476         * modules/uniwidth/width-tests: New file.
66477
66478         * lib/uniwidth/width.c: New file, from GNU libiconv.
66479         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66480         * modules/uniwidth/width: New file.
66481
66482         * lib/uniwidth.h: New file, from GNU libiconv.
66483         * modules/uniwidth/base: New file.
66484
66485 2007-07-07  Bruno Haible  <bruno@clisp.org>
66486
66487         * lib/uniname.h: New file, from GNU gettext.
66488         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66489         * lib/uniname/uninames.h: New file, from GNU gettext.
66490         * lib/uniname/uniname.c: New file, from GNU gettext.
66491         * tests/uniname/test-uninames.sh: New file.
66492         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66493         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66494         * modules/uniname/base: New file.
66495         * modules/uniname/uniname: New file.
66496         * modules/uniname/uniname-tests: New file.
66497         * MODULES.html.sh (Unicode string functions): Add the new modules.
66498
66499 2007-07-06  Bruno Haible  <bruno@clisp.org>
66500
66501         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66502
66503 2007-07-06  Bruno Haible  <bruno@clisp.org>
66504
66505         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66506         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66507         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66508         include <sys/time.h>.
66509         Reported by Eric Blake.
66510
66511 2007-07-06  Eric Blake  <ebb9@byu.net>
66512
66513         Fix testing canonicalize on cygwin.
66514         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66515         Revert patch from 2007-06-19.
66516         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66517         canonicalize module is also in use.
66518         * tests/test-canonicalize.c: New file.
66519         * tests/test-canonicalize.sh: Likewise.
66520         * modules/canonicalize-tests: Likewise.
66521
66522 2007-07-06  Jim Meyering  <jim@meyering.net>
66523
66524         * lib/getugroups.c (getugroups): Detect getgrent failure.
66525         Adjust comment to reflect reality: this function may return -1.
66526
66527 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66528
66529         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66530         the new TP address.
66531         (usage): Fix typo
66532         (gnulib_mk): New variable.
66533
66534 2007-07-05  Jim Meyering  <jim@meyering.net>
66535
66536         Don't let endgrent clobber errno, no matter how improbable.
66537         * lib/getugroups.c (getugroups): Save and restore errno around
66538         endgrent call.
66539
66540         Close the group DB even when failing with 2^31 or more members.
66541         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66542
66543 2007-07-04  Jim Meyering  <jim@meyering.net>
66544
66545         * lib/getugroups.h: New file.
66546         * lib/getugroups.c: Include "getugroups.h".
66547         Remove uses of "register" keyword.
66548         Move local variable, "cp", down into scope where used.
66549         Give "username" parameter the "const" attribute.
66550         * modules/getugroups (Files): Add lib/getugroups.h
66551
66552 2007-07-04  Karl Berry  <karl@gnu.org>
66553
66554         * MODULES.html.sh (func_all_modules): Complete rename of
66555         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66556
66557 2007-07-02  Bruno Haible  <bruno@clisp.org>
66558
66559         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66560         mode, when inttypes.h comes from gnulib.
66561         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66562
66563 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66564
66565         * NEWS: Mention lgpl module name change.
66566
66567         * modules/lgpl-2.1: Renamed from lgpl.
66568
66569         * NEWS: Mention gpl module name change.
66570
66571         * modules/gpl-3.0: New file, based on gpl-2.0.
66572
66573         * modules/gpl-2.0: Renamed from gpl.
66574
66575         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66576         doc/gpl-2.0.texi.
66577
66578 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66581         #define __STDC_LIMIT_MACROS temporarily while including
66582         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66583         Problem reported by Joel E. Denny in
66584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66585
66586 2007-07-01  Bruno Haible  <bruno@clisp.org>
66587
66588         * lib/unistdio.h: New file.
66589         * lib/unistdio/u-asnprintf.h: New file.
66590         * lib/unistdio/u-asprintf.h: New file.
66591         * lib/unistdio/u-printf-args.c: New file.
66592         * lib/unistdio/u-printf-args.h: New file.
66593         * lib/unistdio/u-printf-parse.h: New file.
66594         * lib/unistdio/u-snprintf.h: New file.
66595         * lib/unistdio/u-sprintf.h: New file.
66596         * lib/unistdio/u-vasprintf.h: New file.
66597         * lib/unistdio/u-vsnprintf.h: New file.
66598         * lib/unistdio/u-vsprintf.h: New file.
66599         * lib/unistdio/ulc-asnprintf.c: New file.
66600         * lib/unistdio/ulc-asprintf.c: New file.
66601         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66602         * lib/unistdio/ulc-printf-parse.c: New file.
66603         * lib/unistdio/ulc-snprintf.c: New file.
66604         * lib/unistdio/ulc-sprintf.c: New file.
66605         * lib/unistdio/ulc-vasnprintf.c: New file.
66606         * lib/unistdio/ulc-vasprintf.c: New file.
66607         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66608         * lib/unistdio/ulc-vsnprintf.c: New file.
66609         * lib/unistdio/ulc-vsprintf.c: New file.
66610         * lib/unistdio/u8-asnprintf.c: New file.
66611         * lib/unistdio/u8-asprintf.c: New file.
66612         * lib/unistdio/u8-printf-parse.c: New file.
66613         * lib/unistdio/u8-snprintf.c: New file.
66614         * lib/unistdio/u8-sprintf.c: New file.
66615         * lib/unistdio/u8-vasnprintf.c: New file.
66616         * lib/unistdio/u8-vasprintf.c: New file.
66617         * lib/unistdio/u8-vsnprintf.c: New file.
66618         * lib/unistdio/u8-vsprintf.c: New file.
66619         * lib/unistdio/u8-u8-asnprintf.c: New file.
66620         * lib/unistdio/u8-u8-asprintf.c: New file.
66621         * lib/unistdio/u8-u8-snprintf.c: New file.
66622         * lib/unistdio/u8-u8-sprintf.c: New file.
66623         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66624         * lib/unistdio/u8-u8-vasprintf.c: New file.
66625         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66626         * lib/unistdio/u8-u8-vsprintf.c: New file.
66627         * lib/unistdio/u16-asnprintf.c: New file.
66628         * lib/unistdio/u16-asprintf.c: New file.
66629         * lib/unistdio/u16-printf-parse.c: New file.
66630         * lib/unistdio/u16-snprintf.c: New file.
66631         * lib/unistdio/u16-sprintf.c: New file.
66632         * lib/unistdio/u16-vasnprintf.c: New file.
66633         * lib/unistdio/u16-vasprintf.c: New file.
66634         * lib/unistdio/u16-vsnprintf.c: New file.
66635         * lib/unistdio/u16-vsprintf.c: New file.
66636         * lib/unistdio/u16-u16-asnprintf.c: New file.
66637         * lib/unistdio/u16-u16-asprintf.c: New file.
66638         * lib/unistdio/u16-u16-snprintf.c: New file.
66639         * lib/unistdio/u16-u16-sprintf.c: New file.
66640         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66641         * lib/unistdio/u16-u16-vasprintf.c: New file.
66642         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66643         * lib/unistdio/u16-u16-vsprintf.c: New file.
66644         * lib/unistdio/u32-asnprintf.c: New file.
66645         * lib/unistdio/u32-asprintf.c: New file.
66646         * lib/unistdio/u32-printf-parse.c: New file.
66647         * lib/unistdio/u32-snprintf.c: New file.
66648         * lib/unistdio/u32-sprintf.c: New file.
66649         * lib/unistdio/u32-vasnprintf.c: New file.
66650         * lib/unistdio/u32-vasprintf.c: New file.
66651         * lib/unistdio/u32-vsnprintf.c: New file.
66652         * lib/unistdio/u32-vsprintf.c: New file.
66653         * lib/unistdio/u32-u32-asnprintf.c: New file.
66654         * lib/unistdio/u32-u32-asprintf.c: New file.
66655         * lib/unistdio/u32-u32-snprintf.c: New file.
66656         * lib/unistdio/u32-u32-sprintf.c: New file.
66657         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66658         * lib/unistdio/u32-u32-vasprintf.c: New file.
66659         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66660         * lib/unistdio/u32-u32-vsprintf.c: New file.
66661         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66662         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66663         * tests/unistdio/test-ulc-printf1.h: New file.
66664         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66665         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66666         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66667         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66668         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66669         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66670         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66671         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66672         * tests/unistdio/test-u8-asnprintf1.c: New file.
66673         * tests/unistdio/test-u8-asnprintf1.h: New file.
66674         * tests/unistdio/test-u8-printf1.h: New file.
66675         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66676         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66677         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66678         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66679         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66680         * tests/unistdio/test-u8-vasprintf1.c: New file.
66681         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66682         * tests/unistdio/test-u8-vsprintf1.c: New file.
66683         * tests/unistdio/test-u16-asnprintf1.c: New file.
66684         * tests/unistdio/test-u16-asnprintf1.h: New file.
66685         * tests/unistdio/test-u16-printf1.h: New file.
66686         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66687         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66688         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66689         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66690         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66691         * tests/unistdio/test-u16-vasprintf1.c: New file.
66692         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66693         * tests/unistdio/test-u16-vsprintf1.c: New file.
66694         * tests/unistdio/test-u32-asnprintf1.c: New file.
66695         * tests/unistdio/test-u32-asnprintf1.h: New file.
66696         * tests/unistdio/test-u32-printf1.h: New file.
66697         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66698         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66699         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66700         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66701         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66702         * tests/unistdio/test-u32-vasprintf1.c: New file.
66703         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66704         * tests/unistdio/test-u32-vsprintf1.c: New file.
66705         * modules/unistdio/base: New file.
66706         * modules/unistdio/u-printf-args: New file.
66707         * modules/unistdio/ulc-asnprintf: New file.
66708         * modules/unistdio/ulc-asprintf: New file.
66709         * modules/unistdio/ulc-fprintf: New file.
66710         * modules/unistdio/ulc-printf-parse: New file.
66711         * modules/unistdio/ulc-snprintf: New file.
66712         * modules/unistdio/ulc-sprintf: New file.
66713         * modules/unistdio/ulc-vasnprintf: New file.
66714         * modules/unistdio/ulc-vasprintf: New file.
66715         * modules/unistdio/ulc-vfprintf: New file.
66716         * modules/unistdio/ulc-vsnprintf: New file.
66717         * modules/unistdio/ulc-vsprintf: New file.
66718         * modules/unistdio/u8-asnprintf: New file.
66719         * modules/unistdio/u8-asprintf: New file.
66720         * modules/unistdio/u8-printf-parse: New file.
66721         * modules/unistdio/u8-snprintf: New file.
66722         * modules/unistdio/u8-sprintf: New file.
66723         * modules/unistdio/u8-vasnprintf: New file.
66724         * modules/unistdio/u8-vasprintf: New file.
66725         * modules/unistdio/u8-vsnprintf: New file.
66726         * modules/unistdio/u8-vsprintf: New file.
66727         * modules/unistdio/u8-u8-asnprintf: New file.
66728         * modules/unistdio/u8-u8-asprintf: New file.
66729         * modules/unistdio/u8-u8-snprintf: New file.
66730         * modules/unistdio/u8-u8-sprintf: New file.
66731         * modules/unistdio/u8-u8-vasnprintf: New file.
66732         * modules/unistdio/u8-u8-vasprintf: New file.
66733         * modules/unistdio/u8-u8-vsnprintf: New file.
66734         * modules/unistdio/u8-u8-vsprintf: New file.
66735         * modules/unistdio/u16-asnprintf: New file.
66736         * modules/unistdio/u16-asprintf: New file.
66737         * modules/unistdio/u16-printf-parse: New file.
66738         * modules/unistdio/u16-snprintf: New file.
66739         * modules/unistdio/u16-sprintf: New file.
66740         * modules/unistdio/u16-vasnprintf: New file.
66741         * modules/unistdio/u16-vasprintf: New file.
66742         * modules/unistdio/u16-vsnprintf: New file.
66743         * modules/unistdio/u16-vsprintf: New file.
66744         * modules/unistdio/u16-u16-asnprintf: New file.
66745         * modules/unistdio/u16-u16-asprintf: New file.
66746         * modules/unistdio/u16-u16-snprintf: New file.
66747         * modules/unistdio/u16-u16-sprintf: New file.
66748         * modules/unistdio/u16-u16-vasnprintf: New file.
66749         * modules/unistdio/u16-u16-vasprintf: New file.
66750         * modules/unistdio/u16-u16-vsnprintf: New file.
66751         * modules/unistdio/u16-u16-vsprintf: New file.
66752         * modules/unistdio/u32-asnprintf: New file.
66753         * modules/unistdio/u32-asprintf: New file.
66754         * modules/unistdio/u32-printf-parse: New file.
66755         * modules/unistdio/u32-snprintf: New file.
66756         * modules/unistdio/u32-sprintf: New file.
66757         * modules/unistdio/u32-vasnprintf: New file.
66758         * modules/unistdio/u32-vasprintf: New file.
66759         * modules/unistdio/u32-vsnprintf: New file.
66760         * modules/unistdio/u32-vsprintf: New file.
66761         * modules/unistdio/u32-u32-asnprintf: New file.
66762         * modules/unistdio/u32-u32-asprintf: New file.
66763         * modules/unistdio/u32-u32-snprintf: New file.
66764         * modules/unistdio/u32-u32-sprintf: New file.
66765         * modules/unistdio/u32-u32-vasnprintf: New file.
66766         * modules/unistdio/u32-u32-vasprintf: New file.
66767         * modules/unistdio/u32-u32-vsnprintf: New file.
66768         * modules/unistdio/u32-u32-vsprintf: New file.
66769         * modules/unistdio/ulc-asnprintf-tests: New file.
66770         * modules/unistdio/ulc-vasnprintf-tests: New file.
66771         * modules/unistdio/ulc-vasprintf-tests: New file.
66772         * modules/unistdio/ulc-vsnprintf-tests: New file.
66773         * modules/unistdio/ulc-vsprintf-tests: New file.
66774         * modules/unistdio/u8-asnprintf-tests: New file.
66775         * modules/unistdio/u8-vasnprintf-tests: New file.
66776         * modules/unistdio/u8-vasprintf-tests: New file.
66777         * modules/unistdio/u8-vsnprintf-tests: New file.
66778         * modules/unistdio/u8-vsprintf-tests: New file.
66779         * modules/unistdio/u16-asnprintf-tests: New file.
66780         * modules/unistdio/u16-vasnprintf-tests: New file.
66781         * modules/unistdio/u16-vasprintf-tests: New file.
66782         * modules/unistdio/u16-vsnprintf-tests: New file.
66783         * modules/unistdio/u16-vsprintf-tests: New file.
66784         * modules/unistdio/u32-asnprintf-tests: New file.
66785         * modules/unistdio/u32-vasnprintf-tests: New file.
66786         * modules/unistdio/u32-vasprintf-tests: New file.
66787         * modules/unistdio/u32-vsnprintf-tests: New file.
66788         * modules/unistdio/u32-vsprintf-tests: New file.
66789         * MODULES.html.sh (Unicode string functions): Add the new modules.
66790
66791 2007-07-01  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/sprintf.c (sprintf): Limit the available length estimation,
66794         to avoid address wraparound.
66795         * lib/vsprintf.c (vsprintf): Likewise.
66796         * modules/sprintf-posix (Dependencies): Add stdint.
66797         * modules/vsprintf-posix (Dependencies): Likewise.
66798
66799 2007-07-01  Bruno Haible  <bruno@clisp.org>
66800
66801         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66802         Windows PATH as well. Conservative double-quoting. Comments.
66803
66804 2007-07-01  Bruno Haible  <bruno@clisp.org>
66805             Eric Blake  <ebb9@byu.net>
66806             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66807
66808         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66809         empty components in $PATH, denoting '.'.
66810
66811 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66812
66813         * gnulib-tool: Fix indentation.
66814         (func_create_megatestdir): Likewise.
66815         Report by Bruno Haible.
66816
66817 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66818
66819         Sync from Automake.
66820         * build-aux/gnupload: Fix shell portability issues with for loops.
66821         Report by Karl Berry.
66822
66823 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66824
66825         * build-aux/maint.mk (POURL): Use translationproject.org.
66826
66827 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66828             Bruno Haible  <bruno@clisp.org>
66829
66830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66831         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66832         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66833         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66834         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66835
66836 2007-06-27  Bruno Haible  <bruno@clisp.org>
66837
66838         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66839         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66840
66841 2007-06-26  Karl Berry  <karl@gnu.org>
66842
66843         * MODULES.html.sh: remove xreadlink-with-size.
66844
66845 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66848         method that I hope also handles the double-include problem noted
66849         by Bruno Haible in
66850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66851
66852 2007-06-23  Bruno Haible  <bruno@clisp.org>
66853
66854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66855         Don't let the 'mostlyclean' target fail if the last subdirectory could
66856         not be removed.
66857         Reported by Karl Berry.
66858
66859 2007-06-23  Bruno Haible  <bruno@clisp.org>
66860
66861         * gnulib-tool (echo): Add a speedier workaround for ksh.
66862         * tests/test-echo.sh: Likewise.
66863
66864 2007-06-23  Bruno Haible  <bruno@clisp.org>
66865
66866         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66867         * tests/test-echo.sh: Likewise.
66868
66869 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66870
66871         * gnulib-tool (IFS): Initialize early, so we don't set it to
66872         empty later.
66873         (self_abspathname): Rewrite algorithm to set it, reindent.
66874         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66875         (func_create_megatestdir): Merge some sed scripts.
66876
66877 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66880         exposed by Sun Studio 11 cc on Solaris 8.
66881
66882 2007-06-22  Bruno Haible  <bruno@clisp.org>
66883
66884         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66885         backslashes.
66886         * tests/test-echo.sh: New file.
66887
66888 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66889
66890         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66891         simplify `sed_replace_build_aux' scripts, they are portable but
66892         echoing them with `echo' is not.
66893         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66894
66895 2007-06-21  Karl Berry  <karl@gnu.org>
66896
66897         * config/srclist.txt: guess we can't handle the licenses via
66898         srclist at the moment.
66899
66900 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         * MODULES.html.sh: Add include_next.
66903         * modules/include_next: New file.
66904
66905 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66908         INCLUDE_NEXT.
66909         (gl_CHECK_NEXT_HEADERS): New macro.
66910         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66911         the obsolescent gl_ABSOLUTE_HEADER.
66912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66913         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66914         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66915         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66916         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66917         * m4/math_h.m4 (gl_MATH_H): Likewise.
66918         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66919         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66920         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66921         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66922         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66923         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66924         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66927         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66928         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66929         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66930         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66931         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66932         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66933         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66934         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66935         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66936         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66937         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66938         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66939         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66940         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66941         * lib/float_.h: Likewise.
66942         * lib/inttypes_.h: Likewise.
66943         * lib/math_.h: Likewise.
66944         * lib/search_.h: Likewise.
66945         * lib/signal_.h: Likewise.
66946         * lib/stdint_.h: Likewise.
66947         * lib/stdio_.h: Likewise.
66948         * lib/stdlib_.h: Likewise.
66949         * lib/string_.h: Likewise.
66950         * lib/sys_stat_.h: Likewise.
66951         * lib/sys_time_.h: Likewise.
66952         * lib/time_.h: Likewise.
66953         * lib/unistd_.h: Likewise.
66954         * lib/wchar_.h: Likewise.
66955         * lib/wctype_.h: Likewise.
66956         * lib/dirent_.h: Likewise.
66957         * lib/iconv_.h: Likewise.
66958         * lib/locale_.h: Likewise.
66959         * lib/netinet_in_.h: Likewise.
66960         * lib/sys_select_.h: Likewise.
66961         * lib/sys_socket_.h: Likewise.
66962         * lib/sysexits_.h: Likewise.
66963         * modules/fcntl (Depends-on): Depend on include_next, not
66964         absolute_header.
66965         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66966         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66967         * modules/fchdir: Likewise.
66968         * modules/float: Likewise.
66969         * modules/iconv_open: Likewise.
66970         * modules/inttypes: Likewise.
66971         * modules/locale: Likewise.
66972         * modules/math: Likewise.
66973         * modules/netinet_in: Likewise.
66974         * modules/search: Likewise.
66975         * modules/signal: Likewise.
66976         * modules/stdint: Likewise.
66977         * modules/stdio: Likewise.
66978         * modules/stdlib: Likewise.
66979         * modules/string: Likewise.
66980         * modules/sys_select: Likewise.
66981         * modules/sys_socket: Likewise.
66982         * modules/sys_stat: Likewise.
66983         * modules/sys_time: Likewise.
66984         * modules/sysexits: Likewise.
66985         * modules/time: Likewise.
66986         * modules/unistd: Likewise.
66987         * modules/wchar: Likewise.
66988         * modules/wctype: Likewise.
66989         * modules/sys_stat: Change maintainer to "all".
66990         * modules/unistd: Likewise.
66991
66992 2007-06-20  Karl Berry  <karl@gnu.org>
66993
66994         * config/srclist.txt: track www changes in license files.
66995
66996 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66997
66998         * build-aux/bootstrap: Remove stray dot.
66999         Make sure build_aux settings are honored when linking
67000         gnulib_extra_files.
67001
67002 2007-06-19  Eric Blake  <ebb9@byu.net>
67003
67004         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67005         Allow compilation on cygwin.
67006
67007 2007-06-19  Jim Meyering  <jim@meyering.net>
67008
67009         xreadlink-with-size: Remove module.  No longer used.
67010         Ex-callers now use xreadlink or mreadlink-with-size.
67011         * modules/xreadlink-with-size: Remove module.
67012         * lib/xreadlink-with-size.c: Remove file.
67013         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67014         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67015         just before the function definition *is* accurate.
67016
67017         Eliminate one way canonicalize_filename_mode could exit.
67018         * lib/canonicalize.c (canonicalize_filename_mode):
67019         Use mreadlink_with_size, not xreadlink_with_size.
67020
67021 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         Detect porting problems to FreeBSD/arm, which has time_t wider than
67024         long int.  Original problem reported for GNU diff by Xin Li in
67025         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67026         * modules/getdate (Depends-on): Add intprops, verify.
67027         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67028         is an integer type no wider than long int.
67029
67030 2007-06-18  Jim Meyering  <jim@meyering.net>
67031
67032         New module: mreadlink-with-size.
67033         * MODULES.html.sh: Add mreadlink-with-size.
67034         * modules/mreadlink-with-size: New module
67035         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67036         not xreadlink-with-size.
67037         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67038
67039 2007-06-16  Bruno Haible  <bruno@clisp.org>
67040
67041         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67042         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67043         Reported by Gary V. Vaughan <gary@gnu.org>.
67044
67045 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         Revamp lchown so that it lives in unistd.h where it belongs.
67048         * lib/lchown.h: Remove.
67049         * lib/dirchownmod.c: Don't include lib/lchown.h.
67050         * lib/fchownat.c: Likewise.
67051         * lib/openat.c: Likewise.
67052         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67053         does not follow symlinks.
67054         (EOPNOTSUPP): Define if not defined.
67055         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67056         is defined to 0.
67057         (lchown): New decl.
67058         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67059         Do not check for lchown decl.
67060         Set REPLACE_LCHOWN.
67061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67062         REPLACE_LCHOWN.
67063         * modules/chown: Make it clear it follows symlinks.
67064         * modules/lchown: Make it clear it doesn't follow symlinks.
67065         (Files): Remove lib/lchown.h
67066         (Depends-on): Add unistd.
67067         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67068         (Include): Include <unistd.h>, not "lchown.h".
67069         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67070         REPLACE_LCHOWN.
67071
67072 2007-06-15  Jim Meyering  <jim@meyering.net>
67073
67074         Change license (GPL to LGPL) of fsusage and dependents.
67075         * modules/fsusage (License): Change to LGPL.
67076         * modules/full-read (License): Likewise.
67077         * modules/full-write (License): Likewise.
67078         * modules/safe-read (License): Likewise.
67079         * modules/safe-write (License): Likewise.
67080
67081 2007-06-14  Ben Pfaff  <blp@gnu.org>
67082
67083         Missing part of allocsa -> malloca transition.
67084         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67085         gl_MALLOCA.
67086
67087 2007-06-12  Bruno Haible  <bruno@clisp.org>
67088
67089         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67090         to ia64, x86_64, i386.
67091         Reported by Eric Blake.
67092
67093 2007-06-12  Bruno Haible  <bruno@clisp.org>
67094
67095         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67096         cross-compiling to x86_64.
67097
67098 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67099
67100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67101         glitch reported by Ralf Wildenhues in
67102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67103
67104         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67105         Vin Shelton.
67106
67107 2007-06-11  Bruno Haible  <bruno@clisp.org>
67108
67109         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67110         replacement string.
67111         Reported by Eric Blake.
67112
67113 2007-06-10  Bruno Haible  <bruno@clisp.org>
67114
67115         Prepare vasnprintf code for use with Unicode strings.
67116         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67117         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67118         TYPE_U32_STRING.
67119         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67120         a_u32_string variants.
67121         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67122         * lib/printf-args.c: Don't include config.h and the specification
67123         header if PRINTF_FETCHARGS is already defined.
67124         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67125         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67126         TYPE_U16_STRING, TYPE_U32_STRING.
67127         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67128         u16_directive, u16_directives, u32_directive, u32_directives): New
67129         types.
67130         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67131         New declarations.
67132         * lib/printf-parse.c: Don't include config.h and the specification
67133         header if PRINTF_PARSE is already defined. Eliminate the set of
67134         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67135         them now. Include c-ctype.h.
67136         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67137         directive and CHAR_T_ONLY_ASCII.
67138         * lib/vasnprintf.c: Don't include config.h and the specification header
67139         if VASNPRINTF is already defined.
67140         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67141         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67142         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67143         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67144         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67145         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67146         code accordingly.
67147         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67148         pad_ourselves also in this case, with the 'c' and 's' directives, and
67149         with a different notion of "width".
67150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67151
67152 2007-06-10  Bruno Haible  <bruno@clisp.org>
67153
67154         * modules/unistr/u32-mbsnlen: New file.
67155         * lib/unistr/u32-mbsnlen.c: New file.
67156
67157         * modules/unistr/u16-mbsnlen: New file.
67158         * lib/unistr/u16-mbsnlen.c: New file.
67159
67160         * modules/unistr/u8-mbsnlen: New file.
67161         * lib/unistr/u8-mbsnlen.c: New file.
67162
67163         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67164         declarations.
67165
67166 2007-06-10  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/string_.h (mbsnlen): New declaration.
67169         * lib/mbsnlen.c: New file.
67170         * m4/mbsnlen.m4: New file.
67171         * modules/mbsnlen: New file.
67172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67173         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67174         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67175
67176 2007-06-10  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67179
67180 2007-06-10  Bruno Haible  <bruno@clisp.org>
67181
67182         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67183         * lib/mbuiter.h: Likewise.
67184
67185 2007-06-10  Bruno Haible  <bruno@clisp.org>
67186
67187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67188         declaration.
67189
67190 2007-06-10  Karl Berry  <karl@gnu.org>
67191
67192         * config/srclist.txt: remove gettext entries, Bruno prefers
67193         to update individually.
67194
67195 2007-06-10  Bruno Haible  <bruno@clisp.org>
67196
67197         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67198         'maxlen'. Ensure only length + width bytes are allocated, not
67199         length + 1 + width.
67200
67201 2007-06-09  Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67204         (CHAR_T): Remove macro.
67205         (VASNPRINTF): Update.
67206
67207 2007-06-09  Bruno Haible  <bruno@clisp.org>
67208
67209         * MODULES.html.sh (Unicode string functions): Add the new modules.
67210
67211         * modules/uniconv/u32-conv-to-enc: New file.
67212         * lib/uniconv/u32-conv-to-enc.c: New file.
67213         * modules/uniconv/u32-conv-to-enc-tests: New file.
67214         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67215
67216         * modules/uniconv/u16-conv-to-enc: New file.
67217         * lib/uniconv/u16-conv-to-enc.c: New file.
67218         * lib/uniconv/u-conv-to-enc.h: New file.
67219         * modules/uniconv/u16-conv-to-enc-tests: New file.
67220         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67221
67222         * modules/uniconv/u8-conv-to-enc: New file.
67223         * lib/uniconv/u8-conv-to-enc.c: New file.
67224         * modules/uniconv/u8-conv-to-enc-tests: New file.
67225         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67226
67227         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67228         u32_conv_to_encoding): New declarations.
67229
67230 2007-06-09  Bruno Haible  <bruno@clisp.org>
67231
67232         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67233
67234 2007-06-09  Bruno Haible  <bruno@clisp.org>
67235
67236         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67237         * modules/malloca: Renamed from modules/allocsa, updated.
67238         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67239         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67240         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67241         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67242         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67243         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67244         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67245         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67246         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67247         * modules/c-strcasestr (Depends-on): Update.
67248         * lib/c-strcasestr.c: Update.
67249         * modules/c-strstr (Depends-on): Update.
67250         * lib/c-strstr.c: Update.
67251         * modules/canonicalize-lgpl (Depends-on): Update.
67252         * lib/canonicalize-lgpl.c: Update.
67253         * modules/clean-temp (Depends-on): Update.
67254         * lib/clean-temp.c: Update.
67255         * modules/csharpcomp (Depends-on): Update.
67256         * lib/csharpcomp.c: Update.
67257         * modules/csharpexec (Depends-on): Update.
67258         * lib/csharpexec.c: Update.
67259         * modules/javacomp (Depends-on): Update.
67260         * lib/javacomp.c: Update.
67261         * modules/javaexec (Depends-on): Update.
67262         * lib/javaexec.c: Update.
67263         * modules/mbscasestr (Depends-on): Update.
67264         * lib/mbscasestr.c: Update.
67265         * modules/mbsstr (Depends-on): Update.
67266         * lib/mbsstr.c: Update.
67267         * modules/setenv (Depends-on): Update.
67268         * lib/setenv.c: Update.
67269         * modules/strcasestr (Depends-on): Update.
67270         * lib/strcasestr.c: Update.
67271         * modules/striconveha (Depends-on): Update.
67272         * lib/striconveha.c: Update.
67273         * modules/relocatable-prog-wrapper (Files): Update.
67274         * lib/relocwrapper.c: Update.
67275         * build-aux/install-reloc: Update.
67276         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67277
67278 2007-06-08  Bruno Haible  <bruno@clisp.org>
67279
67280         Port to uClibc.
67281         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67282         * lib/fpurge.c (fpurge): Likewise.
67283         * lib/freading.c (freading): Likewise.
67284         * lib/fseeko.c (rpl_fseeko): Likewise.
67285         * lib/fseterr.c (fseterr): Likewise.
67286         * lib/fwriting.c (fwriting): Likewise.
67287         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67288
67289 2007-06-08  Bruno Haible  <bruno@clisp.org>
67290
67291         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67292         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67293         * modules/gettext (Files): Add m4/intlmacosx.m4.
67294
67295 2007-06-07  Bruno Haible  <bruno@clisp.org>
67296
67297         * modules/localename-tests: New file.
67298         * tests/test-localename.c: New file.
67299
67300         New module 'localename'.
67301         * lib/localename.h: New file.
67302         * lib/localename.c: New file, from GNU gettext.
67303         * m4/localename.m4: New file.
67304         * modules/localename: New file.
67305
67306 2007-06-07  Bruno Haible  <bruno@clisp.org>
67307
67308         Work around the lack of <wchar.h> on some builds of uClibc.
67309         * doc/headers/wchar.texi: Update.
67310         * lib/wchar_.h: Include <wchar.h> only if it exists.
67311         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67312         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67313         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67314         doesn't exist.
67315         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67316         * modules/mbfile (Depends-on): Add wchar.
67317         * modules/mbiter (Depends-on): Likewise.
67318         * modules/mbuiter (Depends-on): Likewise.
67319         Reported by Simon Josefsson.
67320
67321 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         Work around problem reported by Steven M. Schweda in
67324         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67325         Tru64 5.1B with the Compaq compiler environment installed declares
67326         an 'isblank' function but does not define it in the C library.
67327         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67328         * lib/regex_internal.h (isblank): Likewise.
67329         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67330         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67331
67332 2007-06-05  Bruno Haible  <bruno@clisp.org>
67333
67334         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67335         ia64.
67336         * modules/printf-safe: New file.
67337         * modules/fprintf-posix (Depends-on): Add printf-safe.
67338         * modules/printf-posix (Depends-on): Likewise.
67339         * modules/snprintf-posix (Depends-on): Likewise.
67340         * modules/sprintf-posix (Depends-on): Likewise.
67341         * modules/vasnprintf-posix (Depends-on): Likewise.
67342         * modules/vasprintf-posix (Depends-on): Likewise.
67343         * modules/vfprintf-posix (Depends-on): Likewise.
67344         * modules/vprintf-posix (Depends-on): Likewise.
67345         * modules/vsnprintf-posix (Depends-on): Likewise.
67346         * modules/vsprintf-posix (Depends-on): Likewise.
67347         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67348         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67349         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67350         "no" on i386, x86_64, ia64.
67351         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67352         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67353         on i386, x86_64, ia64.
67354         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67355         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67356         on i386, x86_64, ia64.
67357         * tests/test-vasnprintf-posix.c: Include float.h.
67358         (LDBL80_WORDS): New macro.
67359         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67360         on i386, x86_64, ia64.
67361         * tests/test-vasprintf-posix.c: Include float.h.
67362         (LDBL80_WORDS): New macro.
67363         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67364         on i386, x86_64, ia64.
67365         * tests/test-snprintf-posix.c: Include float.h.
67366         * tests/test-sprintf-posix.c: Likewise.
67367         * tests/test-vsnprintf-posix.c: Likewise.
67368         * tests/test-vsprintf-posix.c: Likewise.
67369
67370 2007-06-05  Bruno Haible  <bruno@clisp.org>
67371
67372         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67373         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67374         non-IEEE numbers on i386, x86_64, ia64.
67375         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67376         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67377         * tests/test-isnanl.h: Include float.h.
67378         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67379
67380 2007-06-05  Bruno Haible  <bruno@clisp.org>
67381
67382         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67383         also the %a / %A. Handle the %a / %A code before this extra handling.
67384
67385 2007-06-05  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67388         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67389
67390 2007-06-05  Bruno Haible  <bruno@clisp.org>
67391
67392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67393         typo in variable name.
67394
67395 2007-06-05  Eric Blake  <ebb9@byu.net>
67396
67397         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67398         Reported by Simon Josefsson.
67399
67400 2007-06-04  Bruno Haible  <bruno@clisp.org>
67401
67402         Avoid test failures on some PowerPC platforms.
67403         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67404         Define differently for PowerPC.
67405         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67406         Reported by Gary V. Vaughan <gary@gnu.org>.
67407
67408 2007-06-02  Bruno Haible  <bruno@clisp.org>
67409
67410         Fix test-stdint failure on FreeBSD/ia64.
67411         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67412         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67413         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67414         * doc/headers/stdint.texi: Update.
67415
67416 2007-06-01  Bruno Haible  <bruno@clisp.org>
67417
67418         * tests/test-binary-io.c (main): Pass a third argument to open().
67419         Reported by Gary V. Vaughan <gary@gnu.org>.
67420
67421 2007-06-01  Bruno Haible  <bruno@clisp.org>
67422
67423         * doc/functions/frexpl.texi: Update for mingw.
67424
67425 2007-06-01  Bruno Haible  <bruno@clisp.org>
67426
67427         * tests/test-lseek.c (main): Disable test of errno for invalid third
67428         argument.
67429         * doc/functions/lseek.texi: Update.
67430         Reported by Gary V. Vaughan <gary@gnu.org>.
67431
67432 2007-05-28  Bruno Haible  <bruno@clisp.org>
67433
67434         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67435
67436 2007-05-31  Eric Blake  <ebb9@byu.net>
67437
67438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67439         cross compiling.
67440
67441 2007-05-30  Eric Blake  <ebb9@byu.net>
67442         and Bruno Haible  <bruno@clisp.org>
67443
67444         Work around mingw test failures exposed by m4-1.4.9b.
67445         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67446         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67447         moment.
67448
67449 2007-05-30  Bruno Haible  <bruno@clisp.org>
67450
67451         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67452         assuming that they are closed. Needed on HP-UX 11.
67453
67454 2007-05-29  Bruno Haible  <bruno@clisp.org>
67455
67456         Fix a problem with #include_next.
67457         * lib/dirent_.h: Split the double-inclusion guard.
67458         * lib/fcntl_.h: Likewise.
67459         * lib/float_.h: Likewise.
67460         * lib/iconv_.h: Likewise.
67461         * lib/inttypes_.h: Likewise.
67462         * lib/locale_.h: Likewise.
67463         * lib/math_.h: Likewise.
67464         * lib/netinet_in_.h: Likewise.
67465         * lib/search_.h: Likewise.
67466         * lib/signal_.h: Likewise.
67467         * lib/stdint_.h: Likewise.
67468         * lib/stdio_.h: Likewise.
67469         * lib/stdlib_.h: Likewise.
67470         * lib/string_.h: Likewise.
67471         * lib/sys_select_.h: Likewise.
67472         * lib/sys_socket_.h: Likewise.
67473         * lib/sys_stat_.h: Likewise.
67474         * lib/sys_time_.h: Likewise.
67475         * lib/sysexits_.h: Likewise.
67476         * lib/time_.h: Likewise.
67477         * lib/unistd_.h: Likewise.
67478         * lib/wchar_.h: Likewise.
67479         * lib/wctype_.h: Likewise.
67480
67481 2007-05-29  Bruno Haible  <bruno@clisp.org>
67482
67483         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67484         for the moment.
67485
67486 2007-05-29  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67489         invocation.
67490         Reported by Eric Blake.
67491
67492 2007-05-29  Bruno Haible  <bruno@clisp.org>
67493
67494         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67495         compiling case.
67496
67497 2007-05-29  Eric Blake  <ebb9@byu.net>
67498             Bruno Haible  <bruno@clisp.org>
67499
67500         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67501         cross compiles.
67502
67503 2007-05-28  Eric Blake  <ebb9@byu.net>
67504
67505         * modules/closein-tests (test_closein_LDADD): Support test on
67506         cygwin with libtool.
67507
67508 2007-05-28  Bruno Haible  <bruno@clisp.org>
67509
67510         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67511         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67512         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67513         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67514         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67515         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67516         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67517         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67518         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67519
67520 2007-05-28  Eric Blake  <ebb9@byu.net>
67521
67522         Unconditionally include <config.h> in unit tests.
67523         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67524         * tests/test-allocsa.c, tests/test-arcfour.c,
67525         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67526         tests/test-array_list.c, tests/test-array_oset.c,
67527         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67528         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67529         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67530         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67531         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67532         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67533         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67534         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67535         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67536         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67537         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67538         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67539         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67540         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67541         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67542         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67543         test-md5.c, test-memmem.c, test-printf-posix.c,
67544         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67545         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67546         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67547         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67548         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67549         test-vasnprintf-posix2.c, test-vasnprintf.c,
67550         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67551         test-vfprintf-posix.c, test-vprintf-posix.c,
67552         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67553         test-xvasprintf.c: Likewise.
67554
67555 2007-05-28  Bruno Haible  <bruno@clisp.org>
67556
67557         * gnulib-tool (func_import): Remember the --with-tests command-line
67558         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67559         Reported by Eric Blake.
67560
67561 2007-05-28  Bruno Haible  <bruno@clisp.org>
67562
67563         * modules/ftell-tests: New file.
67564         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67565         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67566
67567         * lib/ftell.c: New file.
67568         * modules/ftell: New file.
67569         * m4/ftell.m4: New file.
67570         * doc/functions/ftell.texi: Update.
67571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67572         REPLACE_FTELL.
67573         * lib/stdio_.h (rpl_ftell): New declaration.
67574         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67575         REPLACE_FTELL.
67576
67577 2007-05-28  Eric Blake  <ebb9@byu.net>
67578
67579         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67580
67581 2007-05-28  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/fseek-tests: New file.
67584         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67585         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67586
67587         * lib/fseek.c: New file.
67588         * modules/fseek: New file.
67589         * m4/fseek.m4: New file.
67590         * doc/functions/fseek.texi: Update.
67591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67592         REPLACE_FSEEK.
67593         * lib/stdio_.h (rpl_fseek): New declaration.
67594         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67595         REPLACE_FSEEK.
67596
67597 2007-05-28  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/stdio_.h (fflush): More comments.
67600
67601 2007-05-28  Bruno Haible  <bruno@clisp.org>
67602
67603         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67604         runtime test.
67605
67606 2007-05-28  Eric Blake  <ebb9@byu.net>
67607
67608         Improve lseek module.
67609         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67610         * lib/unistd_.h (lseek): Scale back link warning message.
67611         * tests/test-lseek.c: Beef up test.
67612         * tests/test-lseek.sh: Exercise more facets of lseek.
67613         Reported by Bruno Haible.
67614
67615 2007-05-28  Bruno Haible  <bruno@clisp.org>
67616
67617         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67618         to define.
67619
67620 2007-05-27  Bruno Haible  <bruno@clisp.org>
67621
67622         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67623
67624 2007-05-27  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/openmp: New file.
67627         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67628         Noah Misch.
67629
67630 2007-05-26  Bruno Haible  <bruno@clisp.org>
67631
67632         * modules/chdir-long (Depends-on): Add fchdir.
67633         * modules/chdir-safer (Depends-on): Likewise.
67634         * modules/fts (Depends-on): Likewise.
67635         * modules/fts-lgpl (Depends-on): Likewise.
67636         * modules/openat (Depends-on): Likewise.
67637         * modules/savewd (Depends-on): Likewise.
67638
67639 2007-05-24  Eric Blake  <ebb9@byu.net>
67640
67641         Fix lseek on mingw.
67642         * modules/lseek: New module.
67643         * m4/lseek.m4: New file.
67644         * lib/lseek.c: New file.
67645         * modules/lseek-tests: New file.
67646         * tests/test-lseek.c: New file.
67647         * tests/test-lseek.sh: New file.
67648         * MODULES.html.sh: Document lseek module.
67649         * modules/fflush (Depends-on): Add lseek, fseeko.
67650         * modules/fseeko (Depends-on): Likewise.
67651         * modules/ftello (Depends-on): Likewise.
67652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67653         broken.
67654         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67655         broken.
67656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67657         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67658         * lib/ftello.c (rpl_ftello): Likewise.
67659         * tests/test-fseeko.c (main): Test this.
67660         * tests/test-fseeko.sh: Likewise.
67661         * tests/test-ftello.c (main): Likewise.
67662         * tests/test-ftello.sh: Likewise.
67663         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67664         implies replacing fseek.
67665         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67666         HAVE_FTELLO.
67667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67668         * modules/unistd (Makefile.am): Likewise.
67669         * lib/unistd_.h (lseek): Declare a replacement.
67670         * doc/functions/lseek.texi (lseek): Document this fix.
67671         * doc/functions/fseek.texi (fseek): Likewise.
67672         * doc/functions/ftell.texi (ftell): Likewise.
67673
67674 2007-05-24  Bruno Haible  <bruno@clisp.org>
67675
67676         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67677         in the printed representation of a NaN.
67678         * tests/test-vasprintf-posix.c (test_function): Likewise.
67679         * tests/test-snprintf-posix.h (test_function): Likewise.
67680         * tests/test-sprintf-posix.h (test_function): Likewise.
67681         Reported by Eric Blake.
67682
67683 2007-05-23  Eric Blake  <ebb9@byu.net>
67684
67685         Fix fseeko/ftello on cygwin 1.5.24.
67686         * doc/functions/fseeko.texi (fseeko): Document the fix.
67687         * doc/functions/ftello.texi (ftello): Document the fix.
67688         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67689         * doc/functions/stdout.text (stdout): New file.
67690         * doc/functions/stderr.text (stderr): New file.
67691         * doc/gnulib.texi (Function Substitutes): Use new files.
67692         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67693         prior to 1.7.0.
67694         * tests/test-ftello.c (main): Likewise for ftello.
67695         * tests/test-fseeko.sh: New file.
67696         * tests/test-ftello.sh: New file.
67697         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67698         with seekable stdin.
67699         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67701         (gl_REPLACE_FSEEKO): New macro.
67702         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67703         * modules/fseeko (Files): Distribute fseeko.c.
67704         * modules/ftello (Files): Distribute ftello.c.
67705         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67706         mode.
67707         * lib/ftello.c (rpl_ftello): New file.
67708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67709         fseeko, ftello.
67710         (gl_STDIN_LARGE_OFFSET): New macro.
67711         * modules/stdio (Makefile.am): Perform the replacement.
67712         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67713
67714 2007-05-23  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67717         GNULIB_POSIXCHECK is defined.
67718
67719 2007-05-21  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67722         Check also the output for NaN arguments. When cross-compiling, guess
67723         no on IRIX.
67724         * lib/vasnprintf.c: Update comments.
67725         * tests/test-vasnprintf-posix.c (strisnan): New function.
67726         (test_function): Use it.
67727         * tests/test-vasprintf-posix.c (strisnan): New function.
67728         (test_function): Use it.
67729         * tests/test-snprintf-posix.h (strisnan): New function.
67730         (test_function): Use it.
67731         * tests/test-sprintf-posix.h (strisnan): New function.
67732         (test_function): Use it.
67733         Reported by Eric Blake.
67734
67735 2007-05-20  Bruno Haible  <bruno@clisp.org>
67736
67737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67738         numbers that fails on BeOS.
67739         * doc/functions/frexpl.texi: Update.
67740
67741 2007-05-20  Jim Meyering  <jim@meyering.net>
67742
67743         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67744         forced upon us by glibc-2.6.
67745
67746 2007-05-20  Bruno Haible  <bruno@clisp.org>
67747
67748         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67749         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67750         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67751         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67752         NEED_PRINTF_INFINITE.
67753         (is_infinitel): New function.
67754         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67756         gl_PREREQ_VASNPRINTF_INFINITE.
67757         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67758         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67759         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67760         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67761         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67762         gl_PREREQ_VASNPRINTF_INFINITE.
67763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67764         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67770         * doc/functions/fprintf.texi: Update.
67771         * doc/functions/printf.texi: Update.
67772         * doc/functions/snprintf.texi: Update.
67773         * doc/functions/sprintf.texi: Update.
67774         * doc/functions/vfprintf.texi: Update.
67775         * doc/functions/vprintf.texi: Update.
67776         * doc/functions/vsnprintf.texi: Update.
67777         * doc/functions/vsprintf.texi: Update.
67778
67779 2007-05-20  Bruno Haible  <bruno@clisp.org>
67780
67781         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67782         was not found in libc.
67783         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67784
67785 2007-05-20  Bruno Haible  <bruno@clisp.org>
67786
67787         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67788         printed as "-nan" instead of "nan".
67789         * tests/test-vasprintf-posix.c (test_function): Likewise.
67790         * tests/test-snprintf-posix.h (test_function): Likewise.
67791         * tests/test-sprintf-posix.h (test_function): Likewise.
67792         Needed for HP-UX 11.
67793
67794 2007-05-20  Jim Meyering  <jim@meyering.net>
67795
67796         Fix buggy test for the fchownat-deref bug.
67797         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67798         symlink required for the run-test.  Without it, this test would
67799         always declare that fchownat doesn't work, and client code would
67800         unnecessarily use the replacement function with fixed libc.
67801         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67802         Reported by Greg Schafer.
67803
67804 2007-05-19  Bruno Haible  <bruno@clisp.org>
67805
67806         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67807         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67808         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67809         Needed for IRIX 6.5 and Solaris 2.5.1.
67810
67811 2007-05-19  Bruno Haible  <bruno@clisp.org>
67812
67813         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67814         (test_function): Skip tests involving -0.0 on platforms where
67815         -0.0 = 0.0.
67816         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67817         (test_function): Skip tests involving -0.0 on platforms where
67818         -0.0 = 0.0.
67819         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67820         (test_function): Skip tests involving -0.0 on platforms where
67821         -0.0 = 0.0.
67822         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67823         (test_function): Skip tests involving -0.0 on platforms where
67824         -0.0 = 0.0.
67825         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67826         tests.
67827         * tests/test-printf-posix.h (test_function): Likewise.
67828         * tests/test-printf-posix.output: Remove all -0.0 related results.
67829         Needed for IRIX 6.5.
67830
67831 2007-05-19  Bruno Haible  <bruno@clisp.org>
67832
67833         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67834         printed as "nan0x7fffffff" instead of "nan".
67835         * tests/test-vasprintf-posix.c (test_function): Likewise.
67836         * tests/test-snprintf-posix.h (test_function): Likewise.
67837         * tests/test-sprintf-posix.h (test_function): Likewise.
67838         * tests/test-fprintf-posix.h (NaN): Remove macro.
67839         (test_function): Remove all NaN related tests.
67840         * tests/test-printf-posix.h (NaN): Remove macro.
67841         (test_function): Remove all NaN related tests.
67842         * tests/test-printf-posix.output: Remove all NaN related results.
67843         Needed for IRIX 6.5.
67844
67845 2007-05-19  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67849
67850 2007-05-19  Bruno Haible  <bruno@clisp.org>
67851
67852         * lib/float_.h: New file.
67853         * m4/float_h.m4: New file.
67854         * modules/float: New file.
67855         * modules/isnanl (Dependencies): Add float.
67856         * modules/isnanl-nolibm (Dependencies): Likewise.
67857         * modules/mathl (Dependencies): Likewise.
67858         * modules/printf-frexpl (Dependencies): Likewise.
67859         * modules/signbit (Dependencies): Likewise.
67860         * modules/vasnprintf (Dependencies): Likewise.
67861         * doc/headers/float.texi: Update.
67862
67863 2007-05-19  Jim Meyering  <jim@meyering.net>
67864
67865         * lib/utimens.c (gl_futimens): Rename from futimens,
67866         now that glibc-2.6 declares futimens.
67867         * lib/utimens.h: Likewise.
67868
67869 2007-05-19  Bruno Haible  <bruno@clisp.org>
67870
67871         Avoid test failures on mingw.
67872         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67873         * tests/test-printf-posix.sh: Likewise.
67874         * tests/test-vfprintf-posix.sh: Likewise.
67875         * tests/test-vprintf-posix.sh: Likewise.
67876
67877 2007-05-19  Bruno Haible  <bruno@clisp.org>
67878
67879         Fix *printf result for NaN, Inf, -0.0 on mingw.
67880         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67881         * lib/vasnprintf.c: Include math.h and isnan.h.
67882         (is_infinite_or_zero): New function.
67883         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67884         values in the %f, %F, %e, %E, %g, %G directives.
67885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67887         gl_PRINTF_INFINITE and test its result. Invoke
67888         gl_PREREQ_VASNPRINTF_INFINITE.
67889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67890         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67896         * doc/functions/fprintf.texi: Update.
67897         * doc/functions/printf.texi: Update.
67898         * doc/functions/snprintf.texi: Update.
67899         * doc/functions/sprintf.texi: Update.
67900         * doc/functions/vfprintf.texi: Update.
67901         * doc/functions/vprintf.texi: Update.
67902         * doc/functions/vsnprintf.texi: Update.
67903         * doc/functions/vsprintf.texi: Update.
67904
67905 2007-05-19  Bruno Haible  <bruno@clisp.org>
67906
67907         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67908         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67909         Instead of multiplying with 10^k, set extra_zeroes to k.
67910         (scale10_round_long_double): Remove function.
67911
67912 2007-05-18  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67915         introduced on 2007-05-06.
67916
67917 2007-05-18  Bruno Haible  <bruno@clisp.org>
67918
67919         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67920         %g directives.
67921         * tests/test-vasprintf-posix.c (test_function): Likewise.
67922         * tests/test-snprintf-posix.h (test_function): Likewise.
67923         * tests/test-sprintf-posix.h (test_function): Likewise.
67924
67925 2007-05-18  Bruno Haible  <bruno@clisp.org>
67926
67927         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67928         (strmatch): New function.
67929         (test_function): Test the %f directive on numbers of various exponents.
67930         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67931         (strmatch): New function.
67932         (test_function): Test the %f directive on numbers of various exponents.
67933         * tests/test-snprintf-posix.h (strmatch): New function.
67934         (test_function): Test the %f directive on numbers of various exponents.
67935         * tests/test-sprintf-posix.h (strmatch): New function.
67936         (test_function): Test the %f directive on numbers of various exponents.
67937         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67938         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67939         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67940         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67941
67942 2007-05-18  Bruno Haible  <bruno@clisp.org>
67943
67944         Add support for 'long double' number output.
67945         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67946         * lib/vasnprintf.c: Include math.h and float+.h.
67947         (mp_limb_t): New type.
67948         (GMP_LIMB_BITS): New macro.
67949         (mp_twolimb_t): New type.
67950         (GMP_TWOLIMB_BITS): New macro.
67951         (mpn_t): New type.
67952         (multiply, divide, convert_to_decimal, decode_long_double,
67953         scale10_round_long_double, scale10_round_decimal_long_double,
67954         floorlog10l): New functions.
67955         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67956         for the %f, %F, %e, %E, %g, %G directives.
67957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67959         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67960         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67968         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67969         * modules/snprintf-posix (Depends-on): Likewise.
67970         * modules/sprintf-posix (Depends-on): Likewise.
67971         * modules/vasnprintf-posix (Depends-on): Likewise.
67972         * modules/vasprintf-posix (Depends-on): Likewise.
67973         * modules/vfprintf-posix (Depends-on): Likewise.
67974         * modules/vsnprintf-posix (Depends-on): Likewise.
67975         * modules/vsprintf-posix (Depends-on): Likewise.
67976         * modules/vasnprintf (Files): Add lib/float+.h.
67977         * doc/functions/fprintf.texi: Update.
67978         * doc/functions/printf.texi: Update.
67979         * doc/functions/snprintf.texi: Update.
67980         * doc/functions/sprintf.texi: Update.
67981         * doc/functions/vfprintf.texi: Update.
67982         * doc/functions/vprintf.texi: Update.
67983         * doc/functions/vsnprintf.texi: Update.
67984         * doc/functions/vsprintf.texi: Update.
67985
67986 2007-05-18  Bruno Haible  <bruno@clisp.org>
67987
67988         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67989
67990 2007-05-18  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67993         for printing 64-bit integers. Needed for mingw.
67994
67995 2007-05-18  Bruno Haible  <bruno@clisp.org>
67996
67997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67998         gl_FUNC_FREXPL_WORKS.
67999         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68000
68001 2007-05-18  Bruno Haible  <bruno@clisp.org>
68002
68003         * modules/frexpl-nolibm-tests: New file.
68004
68005         * modules/frexpl-nolibm: New file.
68006         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68007
68008 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68011         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68012         GCC 4.2, which otherwise issues a lot of warnings.
68013         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68014         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68015         Likewise.
68016         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68017         * modules/iconv_open (iconv.h): Likewise.
68018         * modules/locale (locale.h): Likewise.
68019         * modules/netinet_in (netinet/in.h): Likewise.
68020         * modules/sys_select (sys_select.h): Likewise.
68021         * modules/sys_socket (sys/socket.h): Likewise.
68022         * modules/sys_stat (sys/stat.h): Likewise.
68023         * modules/sysexits (sysexits.h): Likewise.
68024         * modules/unistd (unistd.h): Likewise.
68025
68026 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68027
68028         * modules/closein-tests (Makefile.am): Distribute
68029         `test-closein.sh'.
68030
68031 2007-05-17  Bruno Haible  <bruno@clisp.org>
68032
68033         * tests/test-printf-posix.output: Renamed from
68034         tests/test-fprintf-posix.out.
68035         * modules/fprintf-posix-tests: Update.
68036         * modules/printf-posix-tests: Update.
68037         * modules/vfprintf-posix-tests: Update.
68038         * modules/vprintf-posix-tests: Update.
68039         * tests/test-fprintf-posix.sh: Update.
68040         * tests/test-printf-posix.sh: Update.
68041         * tests/test-vfprintf-posix.sh: Update.
68042         * tests/test-vprintf-posix.sh: Update.
68043         Reported by Ralf Wildenhues.
68044
68045 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68046
68047         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68048         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68049         GCC 4.2, which otherwise issues a lot of warnings.
68050         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68051         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68052         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68053         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68054         it should no longer be needed.
68055         * lib/string_.h: Likewise.
68056         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68057         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68058         * modules/inttypes (inttypes.h): Likewise.
68059         * modules/math (math.h): Likewise.
68060         * modules/search (search.h): Likewise.
68061         * modules/signal (signal.h): Likewise.
68062         * modules/stdint (stdint.h): Likewise.
68063         * modules/stdio (stdio.h): Likewise.
68064         * modules/stdlib (stdlib.h): Likewise.
68065         * modules/string (string.h): Likewise.
68066         * modules/sys_time (sys/time.h): Likewise.
68067         * modules/time (time.h): Likewise.
68068         * modules/wchar (wchar.h): Likewise.
68069         * modules/wctype (wtype.h): Likewise.
68070
68071 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68072
68073         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68074
68075 2007-05-13  Bruno Haible  <bruno@clisp.org>
68076
68077         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68078         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68079         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68080         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68081         (gl_PREREQ_STRTOK_R): Don't require it here.
68082
68083 2007-05-13  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68086         when used in C++ mode.
68087
68088 2007-05-12  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/linebuffer.h: Tweak doc.
68091         * lib/linebuffer.c: Likewise.
68092
68093 2007-05-12  James Youngman  <jay@gnu.org>
68094
68095         * lib/linebuffer.c (readlinebuffer_delim): New function,
68096         like readlinebuffer, but use a caller-specified delimiter.
68097         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68098         as the delimiter.
68099         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68100
68101 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68102
68103         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68104         * modules/openat (Files): Remove openat-die.c.
68105         (Depends-on): Add openat-die.
68106         * modules/openat-die: New module.
68107
68108 2007-05-06  Bruno Haible  <bruno@clisp.org>
68109
68110         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68111         Update with info about Cygwin.
68112         * doc/functions/fprintf.texi: Update.
68113         * doc/functions/printf.texi: Update.
68114         * doc/functions/snprintf.texi: Update.
68115         * doc/functions/sprintf.texi: Update.
68116         * doc/functions/vfprintf.texi: Update.
68117         * doc/functions/vprintf.texi: Update.
68118         * doc/functions/vsnprintf.texi: Update.
68119         * doc/functions/vsprintf.texi: Update.
68120         Reported by Eric Blake.
68121
68122 2007-05-06  Bruno Haible  <bruno@clisp.org>
68123
68124         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68125         padding ourselves for the floating-point directives.
68126         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68128         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68129         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68130         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68131         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68132         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68133         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68135         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68137         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68138         * tests/test-snprintf-posix.h (test_function): Also check the width
68139         and some flags in the %f directive.
68140         * tests/test-sprintf-posix.h (test_function): Likewise.
68141         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68142         * tests/test-vasprintf-posix.c (test_function): Likewise.
68143         * doc/functions/fprintf.texi: Update.
68144         * doc/functions/printf.texi: Update.
68145         * doc/functions/snprintf.texi: Update.
68146         * doc/functions/sprintf.texi: Update.
68147         * doc/functions/vfprintf.texi: Update.
68148         * doc/functions/vprintf.texi: Update.
68149         * doc/functions/vsnprintf.texi: Update.
68150         * doc/functions/vsprintf.texi: Update.
68151
68152 2007-05-06  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68155         pass the ' flag character to sprintf or snprintf.
68156         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68159         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68160         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68162         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68168         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68169         flag.
68170         * tests/test-sprintf-posix.h (test_function): Likewise.
68171         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68172         * tests/test-vasprintf-posix.c (test_function): Likewise.
68173         * doc/functions/fprintf.texi: Update.
68174         * doc/functions/printf.texi: Update.
68175         * doc/functions/snprintf.texi: Update.
68176         * doc/functions/sprintf.texi: Update.
68177         * doc/functions/vfprintf.texi: Update.
68178         * doc/functions/vprintf.texi: Update.
68179         * doc/functions/vsnprintf.texi: Update.
68180         * doc/functions/vsprintf.texi: Update.
68181
68182 2007-05-01  Bruno Haible  <bruno@clisp.org>
68183
68184         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68185
68186 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68189         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68190
68191 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68194         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68196
68197 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68198
68199         * lib/argp-help.c (struct hol_entry): New member `ord'.
68200         (HOL_ENTRY_PTRCMP): Use ord for comparison
68201         (hol_sort): Initialize ord.
68202
68203 2007-05-01  Bruno Haible  <bruno@clisp.org>
68204
68205         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68206         Reported by Eric Blake.
68207         * doc/gnulib.texi (Function Substitutes): Update.
68208
68209 2007-05-01  Bruno Haible  <bruno@clisp.org>
68210
68211         * doc/functions.texi: Remove file, now redundant through
68212         doc/functions/*.texi.
68213
68214 2007-05-01  Bruno Haible  <bruno@clisp.org>
68215
68216         * modules/argp (Depends-on): Add sleep.
68217
68218 2007-05-01  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/sleep-tests: New file.
68221         * tests/test-sleep.c: New file.
68222
68223         * modules/sleep: New file.
68224         * lib/sleep.c: New file.
68225         * m4/sleep.m4: New file.
68226         * lib/unistd_.h (sleep): New declaration.
68227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68228         HAVE_SLEEP.
68229         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68230         * doc/functions/sleep.texi: Document the sleep module.
68231
68232 2007-05-01  Bruno Haible  <bruno@clisp.org>
68233
68234         * lib/sigprocmask.h: Remove file.
68235         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68236         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68237         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68238         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68239         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68240         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68241         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68242         HAVE_SIGSET_T as a shell variable.
68243         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68244         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68245         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68246         (Depends-on): Add signal. Remove verify.
68247         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68248         (Include): Mention <signal.h> instead of sigprocmask.h.
68249         * NEWS: Mention the change.
68250         * lib/fatal-signal.c: Don't include sigprocmask.h.
68251
68252 2007-05-01  Bruno Haible  <bruno@clisp.org>
68253
68254         * modules/signal: New file.
68255         * lib/signal_.h: New file.
68256         * m4/signal_h.m4: New file.
68257
68258 2007-05-01  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68261         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68262         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68263         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68264
68265 2007-05-01  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68268         configure time.
68269         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68270         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68271         * modules/sys_stat (Makefile.am): Substitute their values into
68272         sys/stat.h.
68273
68274 2007-05-01  Bruno Haible  <bruno@clisp.org>
68275
68276         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68277         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68278         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68279
68280 2007-05-01  Bruno Haible  <bruno@clisp.org>
68281
68282         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68283         'assert' module here.
68284
68285 2007-05-01  Bruno Haible  <bruno@clisp.org>
68286
68287         * doc/functions/*.texi: New files.
68288         * doc/functions/google-ranking.txt: New file.
68289         * doc/gnulib.texi (Function Substitutes): New chapter.
68290         (ctime, inet_ntoa): Remove sections.
68291         * doc/ctime.texi: Remove file.
68292         * doc/inet_ntoa.texi: Remove file.
68293         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68294         dependencies.
68295         (%.info): New rule, specifying a --reference-limit.
68296
68297 2007-05-01  Bruno Haible  <bruno@clisp.org>
68298
68299         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68300
68301 2007-05-01  Bruno Haible  <bruno@clisp.org>
68302
68303         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68304         the portability of 'mkdir' to mingw systems.
68305
68306 2007-05-01  Bruno Haible  <bruno@clisp.org>
68307
68308         * doc/headers/google-ranking.txt: New file.
68309
68310 2007-04-30  Eric Blake  <ebb9@byu.net>
68311
68312         Prefer fseeko to fseek.
68313         * modules/getpass (Depends-on): Add fseeko.
68314         * lib/getpass.c (getpass): Use fseeko, not fseek.
68315
68316 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68317
68318         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68319         assumes the sorting is stable, while most qsort implementations
68320         are not.  Use argument addresses to ensure they never compare as
68321         equal.
68322
68323         * tests/test-argp-2.sh (usage-indent test): Fix output
68324         (func_compare): Restore diff options
68325         * tests/test-argp.c: Restore #include "progname.h"
68326
68327 2007-04-29  Bruno Haible  <bruno@clisp.org>
68328
68329         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68331         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68333         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68334         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68335         (TESTS, check_PROGRAMS): Add test-snprintf.
68336         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68337         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68338         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68339         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68340         assertions that fail on HP-UX, OSF/1, or IRIX.
68341         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68342
68343 2007-04-29  Bruno Haible  <bruno@clisp.org>
68344
68345         * MODULES.html.sh (posix_functions): Remove 'contents'.
68346
68347 2007-04-29  Karl Berry  <karl@gnu.org>
68348
68349         * config/srclist.txt (gendocs_template_min): new entry.
68350
68351 2007-04-29  Bruno Haible  <bruno@clisp.org>
68352
68353         Work around fpurge bug on BSD systems.
68354         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68355         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68356         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68357         fpurge to rpl_fpurge if the system already has this function.
68358         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68359         the case where the system already has this function. Correct invariants
68360         on BSD systems.
68361         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68362         BSD systems.
68363
68364 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68365
68366         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68367         proposed by Sven Verdoolaege.
68368
68369         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68370         options.
68371         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68372         (usage and help tests): Update
68373
68374 2007-04-29  Bruno Haible  <bruno@clisp.org>
68375
68376         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68377         Print more information in case of failure. Disable a test on BeOS.
68378
68379 2007-04-29  Bruno Haible  <bruno@clisp.org>
68380
68381         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68382         This helps debugging on systems on which no gdb is available.
68383
68384 2007-04-29  Bruno Haible  <bruno@clisp.org>
68385
68386         * lib/freading.h: Improve comments.
68387         * lib/fwriting.h: Likewise.
68388         * tests/test-freading.c (main): Don't check freading immediately after
68389         repositioning. Needed for glibc.
68390
68391 2007-04-29  Bruno Haible  <bruno@clisp.org>
68392
68393         * lib/freading.c (freading): Trivial simplification.
68394
68395 2007-04-28  Bruno Haible  <bruno@clisp.org>
68396
68397         * tests/test-fwriting.c (main): Also test the interaction between
68398         fflush and fwriting.
68399         * modules/fwriting-tests (Depends-on): Add fflush.
68400
68401         * tests/test-freading.c (main): Also test the interaction between
68402         fflush and freading.
68403         * modules/freading-tests (Depends-on): Add fflush.
68404
68405 2007-04-28  Bruno Haible  <bruno@clisp.org>
68406
68407         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68408         fseeko and ftello.
68409         Suggested by Eric Blake.
68410
68411 2007-04-28  Jim Meyering  <jim@meyering.net>
68412
68413         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68414         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68415         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68416
68417 2007-04-27  Eric Blake  <ebb9@byu.net>
68418
68419         * doc/headers/assert.texi (assert.h): Document assert module use.
68420
68421 2007-04-27  Bruno Haible  <bruno@clisp.org>
68422
68423         * doc/headers/*.texi: New files.
68424         * doc/gnulib.texi (Header File Substitutes): New chapter.
68425         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68426         dependencies.
68427         (standards.info ,standards.html, standards.dvi): Update dependencies.
68428         (mostlyclean, clean): New targets.
68429
68430 2007-04-27  Bruno Haible  <bruno@clisp.org>
68431
68432         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68433         * modules/sysexits (Files, Makefile.am): Update.
68434
68435         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68436         * modules/sys_socket (Files, Makefile.am): Update.
68437
68438         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68439         * modules/sys_stat (Files, Makefile.am): Update.
68440
68441 2007-04-27  Eric Blake  <ebb9@byu.net>
68442
68443         * lib/freading.h: Improve comments.
68444         * lib/fwriting.h: Likewise.
68445         * lib/fflush.c: Likewise.
68446
68447         Fix closein for mingw.
68448         * modules/closein-tests: Add tests for closein.
68449         * tests/test-closein.c: New file.
68450         * tests/test-closein.sh: Likewise.
68451         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68452         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68453
68454 2007-04-27  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68457         version is < 6.
68458         * lib/math_.h [__DECC]: Likewise.
68459         * lib/stdio_.h [__DECC]: Likewise.
68460         * lib/stdlib_.h [__DECC]: Likewise.
68461         * lib/string_.h [__DECC]: Likewise.
68462         * lib/time_.h [__DECC]: Likewise.
68463         * lib/wchar_.h [__DECC]: Likewise.
68464         * lib/wctype_.h [__DECC]: Likewise.
68465
68466 2007-04-27  Bruno Haible  <bruno@clisp.org>
68467
68468         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68469
68470 2007-04-27  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/fflush.c: Add comments.
68473         * modules/fpurge-tests (Depends-on): Add fflush.
68474         * modules/freadable-tests (Depends-on): Likewise.
68475         * modules/fwritable-tests (Depends-on): Likewise.
68476
68477 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68478
68479         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68480         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68481         Report by Bruno Haible <bruno@clisp.org>.
68482
68483 2007-04-26  Eric Blake  <ebb9@byu.net>
68484
68485         Fix fflush on mingw.
68486         * modules/fflush (Depends-on): Add freading.
68487         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68488         but unread data.
68489
68490 2007-04-26  Eric Blake  <ebb9@byu.net>
68491         and Bruno Haible  <bruno@clisp.org>
68492
68493         Implement freading and fwriting.
68494         * lib/freading.c: New file.
68495         * lib/freading.h: Likewise.
68496         * m4/freading.m4: Likewise.
68497         * modules/freading: Likewise.
68498         * modules/freading-tests: Likewise.
68499         * tests/test-freading.c: Likewise.
68500         * lib/fwriting.c: New file.
68501         * lib/fwriting.h: Likewise.
68502         * m4/fwriting.m4: Likewise.
68503         * modules/fwriting: Likewise.
68504         * modules/fwriting-tests: Likewise.
68505         * tests/test-fwriting.c: Likewise.
68506         * MODULES.html.sh (File stream based Input/Output): Mention them.
68507
68508 2007-04-26  Bruno Haible  <bruno@clisp.org>
68509
68510         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68511         'long' when we assume it.
68512         Suggested by Eric Blake.
68513
68514 2007-04-26  Bruno Haible  <bruno@clisp.org>
68515
68516         Ensure fseeko, ftello are declared on glibc systems.
68517         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68518         * modules/fseeko (configure.ac-early): Likewise.
68519         * modules/ftello (configure.ac-early): Likewise.
68520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68521         AC_FUNC_FSEEKO for this.
68522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68523         (gl_CHECK_FSEEKO): Remove macro.
68524
68525 2007-04-26  Bruno Haible  <bruno@clisp.org>
68526
68527         * tests/test-fflush.c (main): Also check the ftell result after
68528         fflush and fseek/fseeko.
68529         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68530         file descriptor position cache in the stream.
68531         * lib/fseeko.c (rpl_fseeko): Likewise.
68532
68533 2007-04-26  Bruno Haible  <bruno@clisp.org>
68534
68535         * modules/fflush-tests (Depends-on): Add fseeko.
68536
68537 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68538             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68539
68540         * lib/argz_.h: ensure error_t definition is obtained in same
68541         mechanism system argz.h would have.
68542         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68543         argz facilities are known bad.  Err on the side of caution if
68544         cross-compiling.
68545
68546 2007-04-25  Eric Blake  <ebb9@byu.net>
68547
68548         * lib/fpurge.c (includes): Use stdlib.h for free.
68549         * tests/test-fflush.c (main): Also test fflush-fseeko.
68550
68551 2007-04-25  Bruno Haible  <bruno@clisp.org>
68552
68553         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68554         * lib/fseeko.c: New file.
68555         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68556         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68557         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68558         gl_FUNC_FSEEKO.
68559         (gl_FUNC_FSEEKO): Invoke it.
68560         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68561         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68562         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68563
68564 2007-04-25  Bruno Haible  <bruno@clisp.org>
68565
68566         * modules/fflush (Depends-on): Add ftello.
68567
68568 2007-04-25  Bruno Haible  <bruno@clisp.org>
68569
68570         * modules/ftello-tests: New file.
68571         * tests/test-ftello.c: New file.
68572
68573         * modules/ftello: New file.
68574         * m4/ftello.m4: New file.
68575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68576         HAVE_FTELLO.
68577         * lib/stdio_.h (ftello): New declaration.
68578         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68579         HAVE_FTELLO.
68580
68581 2007-04-25  Bruno Haible  <bruno@clisp.org>
68582
68583         * modules/fseeko-tests: New file.
68584         * tests/test-fseeko.c: New file.
68585
68586         * modules/fseeko: New file.
68587         * m4/fseeko.m4: New file.
68588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68589         HAVE_FSEEKO.
68590         * lib/stdio_.h (fseeko): New declaration.
68591         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68592         HAVE_FSEEKO.
68593
68594 2007-04-25  Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68597
68598 2007-04-25  Bruno Haible  <bruno@clisp.org>
68599
68600         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68601         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68602         * tests/test-unistd.c: Likewise.
68603         * tests/test-fcntl.c: Likewise.
68604
68605 2007-04-23  Eric Blake  <ebb9@byu.net>
68606
68607         * lib/fflush.c: Fix missing include.
68608         Reported by Bruno Haible.
68609
68610 2007-04-23  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68613         Reported by Eric Blake.
68614
68615 2007-04-23  Bruno Haible  <bruno@clisp.org>
68616
68617         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68618
68619 2007-04-23  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68622
68623 2007-04-23  Bruno Haible  <bruno@clisp.org>
68624
68625         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68626         Needed on HP-UX 11.
68627
68628 2007-04-16  Eric Blake  <ebb9@byu.net>
68629
68630         Make fflush rely on fpurge.
68631         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68632         open coding all variants.
68633         * modules/fflush (Depends-on): Add fpurge and unistd.
68634         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68635         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68636
68637         Fix --with-tests compilation on cygwin.
68638         * modules/argmatch-tests (Makefile.am): List gnulib library first
68639         in LDADD.
68640         * modules/argp-tests (Makefile.am): Likewise.
68641         * modules/array-list-tests (Makefile.am): Likewise.
68642         * modules/array-oset-tests (Makefile.am): Likewise.
68643         * modules/avltree-list-tests (Makefile.am): Likewise.
68644         * modules/avltree-oset-tests (Makefile.am): Likewise.
68645         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68646         * modules/carray-list-tests (Makefile.am): Likewise.
68647         * modules/dirname-tests (Makefile.am): Likewise.
68648         * modules/frexp-tests (Makefile.am): Likewise.
68649         * modules/isnanl-tests (Makefile.am): Likewise.
68650         * modules/linked-list-tests (Makefile.am): Likewise.
68651         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68652         * modules/lock-tests (Makefile.am): Likewise.
68653         * modules/rbtree-list-tests (Makefile.am): Likewise.
68654         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68655         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68656         * modules/tls-tests (Makefile.am): Likewise.
68657         * modules/tsearch-tests (Makefile.am): Likewise.
68658         * modules/xvasprintf-tests (Makefile.am): Likewise.
68659
68660         Fix fpurge for cygwin.
68661         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68662         value.
68663         * modules/fpurge-tests (Depends-on): Clean up trash.
68664
68665 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68666
68667         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68668
68669         * m4/autobuild.m4: Re-indent.
68670
68671 2007-04-13  Bruno Haible  <bruno@clisp.org>
68672
68673         * modules/fpurge-tests: New file.
68674         * tests/test-fpurge.c: New file.
68675
68676         * modules/fpurge: New file.
68677         * lib/fpurge.h: New file.
68678         * lib/fpurge.c: New file.
68679         * m4/fpurge.m4: New file.
68680
68681 2007-04-13  Bruno Haible  <bruno@clisp.org>
68682
68683         * modules/fbufmode-tests: New file.
68684         * tests/test-fbufmode.c: New file.
68685
68686         * modules/fbufmode: New file.
68687         * lib/fbufmode.h: New file.
68688         * lib/fbufmode.c: New file.
68689         * m4/fbufmode.m4: New file.
68690
68691 2007-04-13  Bruno Haible  <bruno@clisp.org>
68692
68693         * modules/fwritable-tests: New file.
68694         * tests/test-fwritable.c: New file.
68695
68696         * modules/fwritable: New file.
68697         * lib/fwritable.h: New file.
68698         * lib/fwritable.c: New file.
68699         * m4/fwritable.m4: New file.
68700
68701 2007-04-13  Bruno Haible  <bruno@clisp.org>
68702
68703         * modules/freadable-tests: New file.
68704         * tests/test-freadable.c: New file.
68705
68706         * modules/freadable: New file.
68707         * lib/freadable.h: New file.
68708         * lib/freadable.c: New file.
68709         * m4/freadable.m4: New file.
68710
68711 2007-04-13  Bruno Haible  <bruno@clisp.org>
68712
68713         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68714         MOSTLYCLEANFILES.
68715
68716 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68719         gzip bootstrap.conf to avoid dragging in i18n machinery.
68720         (gnulib_tool_option): Use it.
68721
68722 2007-04-13  Bruno Haible  <bruno@clisp.org>
68723
68724         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68725         %F directives.
68726         * tests/test-vasprintf-posix.c (test_function): Likewise.
68727         * tests/test-snprintf-posix.h (test_function): Likewise.
68728         * tests/test-sprintf-posix.h (test_function): Likewise.
68729         * tests/test-fprintf-posix.h (test_function): Likewise.
68730         * tests/test-printf-posix.h (test_function): Likewise.
68731         * tests/test-fprintf-posix.out: Likewise.
68732
68733 2007-04-13  Bruno Haible  <bruno@clisp.org>
68734
68735         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68736         * modules/tls-tests (configure.ac): Likewise.
68737         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68738
68739 2007-04-13  Bruno Haible  <bruno@clisp.org>
68740
68741         * lib/tls.c (glthread_tls_get): Fix return type.
68742         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68743
68744 2007-04-12  Eric Blake  <ebb9@byu.net>
68745
68746         * modules/gettime (Depends-on): Remove gettime.
68747         Reported by Dmitry V. Levin.
68748
68749 2007-04-12  Bruno Haible  <bruno@clisp.org>
68750
68751         * modules/fflush (Include): Mention <stdio.h>.
68752         * modules/strtoimax (Include): Mention <inttypes.h>.
68753         * modules/strtoumax (Include): Likewise.
68754
68755 2007-04-12  Eric Blake  <ebb9@byu.net>
68756
68757         * .cvsignore: New file.
68758         * .gitignore: Likewise.
68759
68760 2007-04-12  Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68763         not before, since $(LDADD) often contains libgnu.a.
68764         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68765         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68766         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68767         Needed on Cygwin.
68768
68769 2007-04-12  Eric Blake  <ebb9@byu.net>
68770
68771         Work around glibc's failure to flush stdin on fclose.
68772         * lib/closein.c (close_stdin): Flush stdin before closing.
68773
68774         Work around glibc's failure to reset seekable stdin on exit.
68775         * modules/closein: New module.
68776         * lib/closein.c: New file.
68777         * lib/closein.h: Likewise.
68778         * m4/closein.m4: Likewise.
68779         * MODULES.html.sh (File stream based Input/Output): Document it.
68780
68781 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68782
68783         * gnulib-tool: Rename generated 'autobuild' script to
68784         'do-autobuild' in --create-megatestdir output.
68785
68786         * doc/gnulib.texi (Build robot for gnulib): Fix.
68787
68788 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68789
68790         * modules/sysexits (Depends-on): Add absolute-header.
68791
68792 2007-04-12  Eric Blake  <ebb9@byu.net>
68793
68794         No need to preserve errno on success.
68795         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68796         Reported by Bruno Haible.
68797
68798 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68799
68800         * MODULES.html.sh (Support for maintaining and releasing
68801         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68802
68803 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68804
68805         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68806
68807 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68808
68809         * modules/autobuild: New module.
68810
68811         * m4/autobuild.m4: New file.
68812
68813 2007-04-11  Bruno Haible  <bruno@clisp.org>
68814
68815         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68816         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68820         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68821         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68823         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68824         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68826         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68827         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68829         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68830         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68832         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68833         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68835         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68836         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68838         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68839         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68843         Reported by Eric Blake.
68844
68845 2007-04-11  Bruno Haible  <bruno@clisp.org>
68846
68847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68848
68849 2007-04-10  Bruno Haible  <bruno@clisp.org>
68850
68851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68852         for NaN and Infinity. Needed on FreeBSD 6.1.
68853         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68854         regarding results for "%010a" of Infinity and NaN.
68855         * tests/test-vasprintf-posix.c (test_function): Likewise.
68856         * tests/test-snprintf-posix.h (test_function): Likewise.
68857         * tests/test-sprintf-posix.h (test_function): Likewise.
68858         * tests/test-fprintf-posix.h (test_function): Likewise.
68859         * tests/test-printf-posix.h (test_function): Likewise.
68860         * tests/test-fprintf-posix.out: Likewise.
68861
68862 2007-04-10  Bruno Haible  <bruno@clisp.org>
68863
68864         * modules/locale-tests: New file.
68865         * tests/test-locale.c: New file.
68866
68867         * modules/locale: New file.
68868         * lib/locale_.h: New file.
68869         * m4/locale_h.m4: New file.
68870
68871 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68872             Bruno Haible  <bruno@clisp.org>
68873
68874         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68875         be determined, test for availability of the copysignf, copysign,
68876         copysignl functions.
68877         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68878         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68879         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68880
68881 2007-04-09  Eric Blake  <ebb9@byu.net>
68882
68883         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68884         * modules/stdio (Makefile.am): Support fflush.
68885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68886         * modules/fflush: New file.
68887         * lib/fflush.c: Likewise.
68888         * m4/fflush.m4: Likewise.
68889         * modules/fflush-tests: New test.
68890         * tests/test-fflush.c: Likewise.
68891         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68892
68893 2007-04-06  Bruno Haible  <bruno@clisp.org>
68894
68895         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68896         (VASNPRINTF): Use signbit for faster determination whether to print a
68897         minus sign.
68898         * modules/vasnprintf (Files): Remove lib/float+.h.
68899         * modules/fprintf-posix (Depends-on): Add signbit.
68900         * modules/snprintf-posix (Depends-on): Likewise.
68901         * modules/sprintf-posix (Depends-on): Likewise.
68902         * modules/vasnprintf-posix (Depends-on): Likewise.
68903         * modules/vasprintf-posix (Depends-on): Likewise.
68904         * modules/vfprintf-posix (Depends-on): Likewise.
68905         * modules/vsnprintf-posix (Depends-on): Likewise.
68906         * modules/vsprintf-posix (Depends-on): Likewise.
68907
68908 2007-04-06  Bruno Haible  <bruno@clisp.org>
68909
68910         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68911         * tests/test-frexpl.c (main): Likewise.
68912         * tests/test-ldexpl.c (main): Likewise.
68913         * modules/frexp-tests (Depends-on): Add signbit.
68914         * modules/frexpl-tests (Depdends-on): Likewise.
68915         * modules/ldexpl-tests (Depdends-on): Likewise.
68916
68917 2007-04-06  Bruno Haible  <bruno@clisp.org>
68918
68919         * modules/signbit-tests: New file.
68920         * tests/test-signbit.c: New file.
68921
68922         * modules/signbit: New file.
68923         * lib/signbitf.c: New file.
68924         * lib/signbitd.c: New file.
68925         * lib/signbitl.c: New file.
68926         * m4/signbit.m4: New file.
68927         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68928         (signbit): New macro.
68929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68930         REPLACE_SIGNBIT.
68931         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68932         REPLACE_FREXPL into math.h.
68933
68934 2007-04-06  Bruno Haible  <bruno@clisp.org>
68935
68936         * modules/isnanf-nolibm-tests: New file.
68937         * tests/test-isnanf.c: New file.
68938
68939         * modules/isnanf-nolibm: New file.
68940         * lib/isnanf.h: New file.
68941         * lib/isnanf.c: New file.
68942         * lib/isnan.c: Consider the USE_FLOAT macro.
68943         * m4/isnanf.m4: New file.
68944
68945 2007-04-06  Bruno Haible  <bruno@clisp.org>
68946
68947         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68948         (Link): New section.
68949
68950         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68951
68952 2007-04-06  Bruno Haible  <bruno@clisp.org>
68953
68954         Assume the 'long double' type.
68955         * m4/longdouble.m4: Remove file.
68956         * config/srclist.txt: Don't mention longdouble.m4.
68957         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68958         * lib/float+.h: Likewise.
68959         * lib/frexp.c: Likewise.
68960         * lib/printf-args.h: Likewise.
68961         * lib/printf-args.c: Likewise.
68962         * lib/printf-frexp.c: Likewise.
68963         * lib/printf-parse.c: Likewise.
68964         * lib/vasnprintf.c: Likewise.
68965         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68966         * m4/intl.m4: Likewise.
68967         * m4/isnanl.m4: Likewise.
68968         * m4/printf.m4: Likewise.
68969         * m4/printf-frexpl.m4: Likewise.
68970         * m4/vasnprintf.m4: Likewise.
68971         * modules/allocsa (Files): Remove m4/longdouble.m4.
68972         * modules/gettext (Files): Likewise.
68973         * modules/relocatable-prog-wrapper (Files): Likewise.
68974         * modules/vasnprintf (Files): Likewise.
68975         * modules/isnanl (Files): Likewise.
68976         (Include): Simplify.
68977         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68978         (Include): Simplify.
68979         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68980         (Include): Simplify.
68981         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68982         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68983         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68984         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68985         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68986         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68987         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68988         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68989         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68990         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68991         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68992         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68993         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68994         * tests/test-isnanl.c: Likewise.
68995         * tests/test-snprintf-posix.h: Likewise.
68996         * tests/test-sprintf-posix.h: Likewise.
68997         * tests/test-vasnprintf-posix.c: Likewise.
68998         * tests/test-vasnprintf-posix2.c: Likewise.
68999         * tests/test-vasprintf-posix.c: Likewise.
69000
69001 2007-04-06  Bruno Haible  <bruno@clisp.org>
69002
69003         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69004         * lib/math_.h [__DECC]: Include the overridden include file through
69005         #include_next, outside the double-inclusion guard.
69006         * lib/stdio_.h [__DECC]: Likewise.
69007         * lib/stdlib_.h [__DECC]: Likewise.
69008         * lib/string_.h [__DECC]: Likewise.
69009         * lib/time_.h [__DECC]: Likewise.
69010         * lib/wchar_.h [__DECC]: Likewise.
69011         * lib/wctype_.h [__DECC]: Likewise.
69012         * lib/inttypes_.h [__DECC]: Likewise.
69013         Reported by Albert Chin <china@thewrittenword.com> in
69014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69015
69016 2007-04-04  Eric Blake  <ebb9@byu.net>
69017
69018         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69019         1.5.x.
69020
69021 2007-04-04  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69024         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69025
69026 2007-04-04  Bruno Haible  <bruno@clisp.org>
69027
69028         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69029         results for "%010a" of Infinity and NaN.
69030         * tests/test-vasprintf-posix.c (test_function): Likewise.
69031         * tests/test-snprintf-posix.h (test_function): Likewise.
69032         * tests/test-sprintf-posix.h (test_function): Likewise.
69033         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69034         * tests/test-printf-posix.h (test_function): Likewise.
69035         * tests/test-fprintf-posix.out: Update.
69036         Needed for FreeBSD 6.1.
69037
69038 2007-04-04  Bruno Haible  <bruno@clisp.org>
69039
69040         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69041         directly used by the gnulib modules nor by gnulib-tool.
69042
69043 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         * DEPENDENCIES: Give overall description of version dependency
69046         desirability.  Use more-typical names for apps.
69047         Add shell, coreutils, diffutils, grep, tar, gzip.
69048
69049 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69050
69051         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69052
69053 2007-04-04  Karl Berry  <karl@gnu.org>
69054
69055         * MODULES.html.sh (func_module): missing '.
69056
69057 2007-04-03  Bruno Haible  <bruno@clisp.org>
69058
69059         * modules/argmatch-tests (Makefile.am): New variable
69060         test_argmatch_LDADD.
69061         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69062         * modules/array-list-tests (Makefile.am): New variable
69063         test_array_list_LDADD.
69064         * modules/array-oset-tests (Makefile.am): New variable
69065         test_array_oset_LDADD.
69066         * modules/avltree-list-tests (Makefile.am): New variable
69067         test_avltree_list_LDADD.
69068         * modules/avltree-oset-tests (Makefile.am): New variable
69069         test_avltree_oset_LDADD.
69070         * modules/avltreehash-list-tests (Makefile.am): New variable
69071         test_avltreehash_list_LDADD.
69072         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69073         test_canonicalize_lgpl_LDADD.
69074         * modules/carray-list-tests (Makefile.am): New variable
69075         test_carray_list_LDADD.
69076         * modules/dirname-tests (Makefile.am): New variable
69077         test_dirname_LDADD.
69078         * modules/linked-list-tests (Makefile.am): New variable
69079         test_linked_list_LDADD.
69080         * modules/linkedhash-list-tests (Makefile.am): New variable
69081         test_linkedhash_list_LDADD.
69082         * modules/rbtree-list-tests (Makefile.am): New variable
69083         test_rbtree_list_LDADD.
69084         * modules/rbtree-oset-tests (Makefile.am): New variable
69085         test_rbtree_oset_LDADD.
69086         * modules/rbtreehash-list-tests (Makefile.am): New variable
69087         test_rbtreehash_list_LDADD.
69088         * modules/xvasprintf-tests (Makefile.am): New variable
69089         test_xvasprintf_LDADD.
69090         Reported by Eric Blake.
69091
69092 2007-04-03  Eric Blake  <ebb9@byu.net>
69093
69094         * DEPENDENCIES: Weaken m4 requirements.
69095
69096 2007-04-03  Bruno Haible  <bruno@clisp.org>
69097
69098         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69099         * modules/isnanl-tests (configure.ac): Likewise.
69100
69101 2007-04-03  Ben Pfaff  <blp@gnu.org>
69102
69103         * modules/iconv_open: Add $(srcdir)/ to source directory
69104         references in Makefile fragments that call gperf, to fix VPATH
69105         builds.
69106
69107 2007-04-03  Bruno Haible  <bruno@clisp.org>
69108
69109         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69110         * lib/ldexpl.c: Undo last change.
69111
69112 2007-04-03  Bruno Haible  <bruno@clisp.org>
69113
69114         * modules/printf-frexpl (Depends-on): Undo last change.
69115         (Files): Add m4/ldexpl.m4.
69116
69117 2007-04-03  Bruno Haible  <bruno@clisp.org>
69118
69119         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69120         * modules/isnanl (Link): New section.
69121
69122         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69123         * modules/frexp (Link): New section.
69124
69125         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69126         * modules/frexpl (Link): New section.
69127
69128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69129         * modules/ldexpl (Link): New section.
69130
69131 2007-04-03  Bruno Haible  <bruno@clisp.org>
69132
69133         * modules/TEMPLATE-EXTENDED: New file.
69134         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69135
69136 2007-04-03  Bruno Haible  <bruno@clisp.org>
69137
69138         * DEPENDENCIES: New file.
69139         Suggested by Simon Josefsson.
69140
69141 2007-04-03  Bruno Haible  <bruno@clisp.org>
69142
69143         * doc/gnulib.texi: Escape @.
69144
69145 2007-04-03  James Youngman  <jay@gnu.org>
69146         and Paul Eggert  <eggert@cs.ucla.edu>
69147
69148         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69149         birthtime on all systems that have birthtime, not just those which
69150         use st_birthtimensec rather than st_birthtim.  Putting zero in
69151         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69152         that the birth time is not available for files on an NFS mount.
69153
69154 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69155
69156         * modules/memxor: Move back from crypto/, suggested by Bruno.
69157         * modules/crypto/hmac-sha1: Fix memxor dependency.
69158
69159         * modules/crypto/gc: Moved from ../.
69160
69161 2007-04-02  Eric Blake  <ebb9@byu.net>
69162
69163         * lib/ldexpl.c (includes): Avoid libm.
69164
69165         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69166
69167 2007-04-02  Bruno Haible  <bruno@clisp.org>
69168
69169         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69170         on IRIX.
69171
69172 2007-04-02  Bruno Haible  <bruno@clisp.org>
69173
69174         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69175         x86 or x86_64 platforms running MacOS X.
69176         Reported by Ryan Schmidt <@ryandesign.com>.
69177
69178 2007-04-02  Bruno Haible  <bruno@clisp.org>
69179
69180         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69181         i386.
69182
69183 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69184
69185         * modules/crypto/arcfour: Moved from ../.
69186         * modules/crypto/arcfour-tests: Moved from ../.
69187         * modules/crypto/arctwo: Moved from ../.
69188         * modules/crypto/arctwo-tests: Moved from ../.
69189         * modules/crypto/des: Moved from ../.
69190         * modules/crypto/des-tests: Moved from ../.
69191         * modules/crypto/gc-arcfour: Moved from ../.
69192         * modules/crypto/gc-arcfour-tests: Moved from ../.
69193         * modules/crypto/gc-arctwo: Moved from ../.
69194         * modules/crypto/gc-arctwo-tests: Moved from ../.
69195         * modules/crypto/gc-des: Moved from ../.
69196         * modules/crypto/gc-des-tests: Moved from ../.
69197         * modules/crypto/gc-hmac-md5: Moved from ../.
69198         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69199         * modules/crypto/gc-hmac-sha1: Moved from ../.
69200         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69201         * modules/crypto/gc-md2: Moved from ../.
69202         * modules/crypto/gc-md2-tests: Moved from ../.
69203         * modules/crypto/gc-md4: Moved from ../.
69204         * modules/crypto/gc-md4-tests: Moved from ../.
69205         * modules/crypto/gc-md5: Moved from ../.
69206         * modules/crypto/gc-md5-tests: Moved from ../.
69207         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69208         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69209         * modules/crypto/gc-random: Moved from ../.
69210         * modules/crypto/gc-rijndael: Moved from ../.
69211         * modules/crypto/gc-rijndael-tests: Moved from ../.
69212         * modules/crypto/gc-sha1: Moved from ../.
69213         * modules/crypto/gc-sha1-tests: Moved from ../.
69214         * modules/crypto/gc-tests: Moved from ../.
69215         * modules/crypto/hmac-md5: Moved from ../.
69216         * modules/crypto/hmac-md5-tests: Moved from ../.
69217         * modules/crypto/hmac-sha1: Moved from ../.
69218         * modules/crypto/hmac-sha1-tests: Moved from ../.
69219         * modules/crypto/md2: Moved from ../.
69220         * modules/crypto/md2-tests: Moved from ../.
69221         * modules/crypto/md4: Moved from ../.
69222         * modules/crypto/md4-tests: Moved from ../.
69223         * modules/crypto/md5: Moved from ../.
69224         * modules/crypto/md5-tests: Moved from ../.
69225         * modules/crypto/memxor: Moved from ../.
69226         * modules/crypto/rijndael: Moved from ../.
69227         * modules/crypto/rijndael-tests: Moved from ../.
69228         * modules/crypto/sha1: Moved from ../.
69229
69230 2007-03-30  James Youngman  <jay@gnu.org>
69231
69232         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69233         rename() to change the ctime of a file (because ctime is unaffected
69234         by rename on jfs2 on AIX 5.1).
69235         (main): Start by doing cleanup, in case a previous run failed leaving
69236         test files behind.
69237
69238 2007-03-31  Bruno Haible  <bruno@clisp.org>
69239
69240         Support old proprietary implementations of iconv.
69241         * modules/iconv_open: New file.
69242         * lib/iconv_.h: New file.
69243         * m4/iconv_h.m4: New file.
69244         * lib/iconv_open.c: New file.
69245         * lib/iconv_open-aix.gperf: New file.
69246         * lib/iconv_open-hpux.gperf: New file.
69247         * lib/iconv_open-irix.gperf: New file.
69248         * lib/iconv_open-osf.gperf: New file.
69249         * m4/iconv_open.m4: New file.
69250         * modules/linebreak (Depends-on): Add iconv_open.
69251         * modules/striconv (Depends-on): Likewise.
69252         * modules/striconveh (Depends-on): Likewise.
69253         * modules/unicodeio (Depends-on): Likewise.
69254         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69255         (iconv_t)(-1).
69256         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69257         conversion if cd is (iconv_t)(-1).
69258         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69259         is not possible.
69260
69261 2007-03-31  Bruno Haible  <bruno@clisp.org>
69262
69263         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69264         work on Solaris either. Protect also second use of "autodetect_jp".
69265
69266 2007-03-31  Bruno Haible  <bruno@clisp.org>
69267
69268         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69269         the function is not present.
69270
69271 2007-03-31  Bruno Haible  <bruno@clisp.org>
69272
69273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69274         the function is not present.
69275
69276 2007-03-31  Bruno Haible  <bruno@clisp.org>
69277
69278         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69279         a bug in HP-UX iconv_open().
69280
69281 2007-03-31  Bruno Haible  <bruno@clisp.org>
69282
69283         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69284         (Mathematics <math.h>): New section, add fpieee.
69285         (Input/output <stdio.h>): Add fseterr.
69286         (Mathematics <math.h>): New section, add printf-frexp.
69287         (Container data structures): Add sublist.
69288         (Core language properties): Add fpucw, inline.
69289         (Functions for greatest-width integer types <inttypes.h>): Add
69290         imaxabs, imaxdiv, inttypes.
69291         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69292         isnanl-nolibm, ldexp.
69293         (Mathematics <math.h>): New section, add printf-frexpl.
69294         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69295         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69296         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69297         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69298         (Unicode string functions): Add unistr/u*-mbtoucr.
69299         (Java): Add javacomp-script, javaexec-script.
69300         (C#): Add csharpcomp-script, csharpexec-script.
69301         (Support for building libraries and executables): Add havelib,
69302         relocatable-*.
69303         (Support for maintaining and releasing projects): Renamed from
69304         'Support for maintaining and release projects'. Add announce-gen.
69305
69306 2007-03-31  Bruno Haible  <bruno@clisp.org>
69307
69308         * README: Talk primarily about git.
69309         (git and CVS): Renamed from CVS.
69310         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69311         gnulib is available through git.
69312         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69313
69314 2007-03-30  Bruno Haible  <bruno@clisp.org>
69315
69316         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69317         * lib/poll_.h: Likewise.
69318         * lib/stat_.h: Likewise.
69319         * lib/sys_time_.h: Likewise.
69320         * lib/sysexit_.h: Likewise.
69321         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69322         * lib/stdbool_.h: Likewise.
69323         * lib/byteswap_.h: Add double-inclusion guard.
69324
69325 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69326
69327         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69328
69329 2007-03-30  Karl Berry  <karl@gnu.org>
69330
69331         * config/srclist-update: double space after USA in the license
69332         substitution, since that's how it's usually (?) written.
69333
69334 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69337         reported by Bruno Haible.
69338
69339 2007-03-29  Bruno Haible  <bruno@clisp.org>
69340
69341         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69342         a bug in AIX iconv().
69343
69344 2007-03-29  Bruno Haible  <bruno@clisp.org>
69345
69346         * modules/ldexpl-tests: New file.
69347         * tests/test-ldexpl.c: New file.
69348
69349 2007-03-29  Bruno Haible  <bruno@clisp.org>
69350
69351         * lib/ldexpl.c: Include fpucw.h.
69352         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69353         multiplication.
69354         * modules/ldexpl (Depends-on): Add fpucw.
69355
69356 2007-03-29  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/ldexpl: New file.
69359         * m4/ldexpl.m4: New file.
69360         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69361         set.
69362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69363         REPLACE_LDEXPL.
69364         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69365         REPLACE_LDEXPL.
69366         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69367         gl_FUNC_LDEXPL_WORKS.
69368         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69369         * modules/mathl (Files): Remove lib/ldexpl.c.
69370         (Depends-on): Add ldexpl.
69371
69372 2007-03-29  Bruno Haible  <bruno@clisp.org>
69373
69374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69375
69376 2007-03-29  Bruno Haible  <bruno@clisp.org>
69377
69378         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69379         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69380         and possibly also HP-UX.
69381         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69382         work on AIX, IRIX, HP-UX, OSF/1.
69383         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69384         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69385         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69386         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69387         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69388         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69389
69390 2007-03-29  Bruno Haible  <bruno@clisp.org>
69391
69392         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69393
69394 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69397         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69398
69399 2007-03-29  Eric Blake  <ebb9@byu.net>
69400
69401         * lib/acl-internal.h: Remove redundant include.
69402         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69403         Cygwin when a file is locked.
69404
69405 2007-03-29  Bruno Haible  <bruno@clisp.org>
69406
69407         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69408         file.
69409         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69410
69411 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69414         try to remove a parent directory if the child couldn't be removed
69415         (except for the first rmdir, which could fail because the child
69416         doesn't exist).  Problem reported by Jeff Blaine in
69417         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69418
69419 2007-03-28  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/striconveh.c (utf8conv_carefully): New function.
69422         (mem_cd_iconveh_internal): Invoke it.
69423
69424 2007-03-28  Bruno Haible  <bruno@clisp.org>
69425
69426         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69427         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69428         input.
69429         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69430         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69431         unistr/u8-uctomb.
69432
69433 2007-03-28  Bruno Haible  <bruno@clisp.org>
69434
69435         * modules/unistr/u8-mbtoucr: New file.
69436         * lib/unistr/u8-mbtoucr.c: New file.
69437         * modules/unistr/u16-mbtoucr: New file.
69438         * lib/unistr/u16-mbtoucr.c: New file.
69439         * modules/unistr/u16-mbtoucr: New file.
69440         * lib/unistr/u16-mbtoucr.c: New file.
69441         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69442
69443 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69444             Bruno Haible  <bruno@clisp.org>
69445
69446         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69447         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69448         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69449
69450         * m4/stdio_h.m4: Add stubs for vasprintf too.
69451
69452         * modules/stdio: Support vasprintf in sed command.
69453
69454         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69455         vasprintf.h.  Add stdio module indicator.
69456
69457         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69458         vasprintf.h.
69459
69460         * lib/vasprintf.h: File removed.
69461
69462         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69463         * lib/vasprintf.c: Ditto.
69464         * lib/xvasprintf.c: Ditto.
69465         * tests/test-vasprintf-posix.c: Ditto.
69466         * tests/test-vasprintf.c: Ditto.
69467
69468 2007-03-27  Bruno Haible  <bruno@clisp.org>
69469
69470         Make vasnprintf multithread-safe.
69471         * lib/vasnprintf.c (decimal_point_char): New function.
69472         (VASNPRINTF): Use it.
69473         Suggested by Simon Josefsson.
69474
69475 2007-03-27  Eric Blake  <ebb9@byu.net>
69476
69477         Support sub-second birthtime on cygwin.
69478         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69479         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69480         (get_stat_birthtime): Also work with st_birthtim.
69481
69482 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69485         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69486         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69487         (get_stat_birthtime_ns): Simplify compile-time tests.
69488         (get_stat_birthtime): Change the API to look like
69489         get_stat_mtime etc., except return a negative tv_nsec on error.
69490         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69491         Don't check for "spare" fields.
69492         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69493         or for struct stat.st_birthtime, as these tests aren't used.
69494         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69495
69496 2007-03-27  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/stat-time.h: Include <sys/stat.h>.
69499
69500 2007-03-27  James Youngman  <jay@gnu.org>
69501
69502         * lib/stat-time.h (get_stat_birthtime): New function for
69503           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69504         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69505           and its variants.
69506         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69507         * modules/stat-time-test: New file.
69508         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69509
69510 2007-03-26  Bruno Haible  <bruno@clisp.org>
69511
69512         Better support of signalling NaNs.
69513         * lib/atanl.c: Include isnanl.h.
69514         (atanl): Perform test for NaN at the beginning of the function and
69515         through a call to isnanl.
69516         * lib/cosl.c: Include isnanl.h.
69517         (cosl): Perform test for NaN at the beginning of the function and
69518         through a call to isnanl.
69519         * lib/ldexpl.c: Include isnanl.h.
69520         (ldexpl): Perform test for NaN through a call to isnanl.
69521         * lib/logl.c: Include isnanl.h.
69522         (logl): Perform test for NaN at the beginning of the function and
69523         through a call to isnanl.
69524         * lib/sinl.c: Include isnanl.h.
69525         (sinl): Perform test for NaN at the beginning of the function and
69526         through a call to isnanl.
69527         * lib/sqrtl.c: Include isnanl.h.
69528         (sqrtl): Perform test for NaN at the beginning of the function and
69529         through a call to isnanl.
69530         * lib/tanl.c: Include isnanl.h.
69531         (tanl): Perform test for NaN at the beginning of the function and
69532         through a call to isnanl.
69533         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69534         * modules/mathl (Depends-on): Add isnanl.
69535
69536 2007-03-26  Eric Blake  <ebb9@byu.net>
69537
69538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69539         regression in logic sense of previous patch.
69540
69541 2007-03-26  Bruno Haible  <bruno@clisp.org>
69542
69543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69544         unportable shell command "if ! ...".
69545         Reported by Ralf Wildenhues.
69546
69547 2007-03-25  Bruno Haible  <bruno@clisp.org>
69548
69549         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69550         <sysexits.h> file, and only add EX_CONFIG.
69551         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69552         absolute file name and whether it is sufficient. Substitute also
69553         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69554         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69555         ABSOLUTE_SYSEXITS_H into sysexits.h.
69556
69557 2007-03-25  Bruno Haible  <bruno@clisp.org>
69558
69559         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69560         hints is NULL.
69561
69562 2007-03-25  Bruno Haible  <bruno@clisp.org>
69563
69564         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69565         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69566
69567 2007-03-25  Bruno Haible  <bruno@clisp.org>
69568
69569         * lib/vasnprintf.c: Include langinfo.h.
69570         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69571         multithread-safe.
69572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69581         Reported by Simon Josefsson.
69582
69583 2007-03-25  Bruno Haible  <bruno@clisp.org>
69584
69585         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69586         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69587         * modules/vasnprintf (Depends-on): Add stdint.
69588
69589 2007-03-25  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/fpieee: New file.
69592         * m4/fpieee.m4: New file.
69593         * modules/isnan-nolibm (Depends-on): Add fpieee.
69594         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69595         * modules/isnanl (Depends-on): Add fpieee.
69596
69597 2007-03-25  Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69600
69601 2007-03-25  Bruno Haible  <bruno@clisp.org>
69602
69603         Avoid test failures on IRIX 6.5.
69604         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69605         (main): Use it.
69606         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69607         macros.
69608         (main): Use them.
69609
69610 2007-03-25  Bruno Haible  <bruno@clisp.org>
69611
69612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69613         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69614         exists but doesn't work.
69615         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69616         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69618         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69619         math.h.
69620
69621 2007-03-25  Bruno Haible  <bruno@clisp.org>
69622
69623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69624         returns inf. Needed on IRIX 6.5.
69625
69626 2007-03-25  Bruno Haible  <bruno@clisp.org>
69627
69628         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69629         (main): Use isnanl instead of x != x idiom.
69630         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69631
69632         * tests/test-frexp.c: Include isnan.h.
69633         (main): Use isnan instead of x != x idiom.
69634         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69635
69636 2007-03-25  Bruno Haible  <bruno@clisp.org>
69637
69638         * tests/test-frexp.c (NaN): New function/macro.
69639         (main): Use it instead of 0.0 / 0.0.
69640         * tests/test-isnan.c (NaN): New function/macro.
69641         (main): Use it instead of 0.0 / 0.0.
69642         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69643         (test_function): Use it instead of 0.0 / 0.0.
69644         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69645         (test_function): Use it instead of 0.0 / 0.0.
69646         * tests/test-snprintf-posix.h (NaN): New function/macro.
69647         (test_function): Use it instead of 0.0 / 0.0.
69648         * tests/test-sprintf-posix.h (NaN): New function/macro.
69649         (test_function): Use it instead of 0.0 / 0.0.
69650         * tests/test-fprintf-posix.h (NaN): New function/macro.
69651         (test_function): Use it instead of 0.0 / 0.0.
69652         * tests/test-printf-posix.h (NaN): New function/macro.
69653         (test_function): Use it instead of 0.0 / 0.0.
69654
69655         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69656
69657 2007-03-25  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69660
69661 2007-03-25  Bruno Haible  <bruno@clisp.org>
69662
69663         * lib/regexec.c (merge_state_with_log): Make static.
69664
69665 2007-03-25  Bruno Haible  <bruno@clisp.org>
69666
69667         * lib/trigl.c (kernel_rem_pio2): Make static.
69668
69669 2007-03-25  Bruno Haible  <bruno@clisp.org>
69670
69671         * lib/sincosl.c (sincosl_table): Make static.
69672
69673 2007-03-25  Bruno Haible  <bruno@clisp.org>
69674
69675         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69676         if the compiler does not support C99.
69677
69678 2007-03-25  Bruno Haible  <bruno@clisp.org>
69679
69680         * modules/time (Makefile.am): Ensure all rule action lines start with a
69681         tab.
69682
69683 2007-03-24  Bruno Haible  <bruno@clisp.org>
69684
69685         * modules/tsearch-tests: New file.
69686         * tests/test-tsearch.sh: New file.
69687         * tests/test-tsearch.c: New file, mostly copied from glibc.
69688
69689         * modules/search-tests: New file.
69690         * tests/test-search.c: New file.
69691
69692         * modules/search: New file.
69693         * lib/search_.h: New file, incorporating lib/tsearch.h.
69694         * m4/search_h.m4: New file.
69695         * lib/tsearch.h: Remove file.
69696         * lib/tsearch.c: Include search.h instead of tsearch.h.
69697         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69698         HAVE_TSEARCH.
69699         * modules/tsearch (Files): Remove lib/tsearch.h.
69700         (Depends-on): Add search.
69701         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69702         (Include): Change tsearch.h into search.h.
69703
69704 2007-03-24  Bruno Haible  <bruno@clisp.org>
69705
69706         * modules/fpucw: New file.
69707         * lib/fpucw.h: New file.
69708         * lib/frexp.c: Include fpucw.h.
69709         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69710         (FUNC): Use them.
69711         * lib/printf-frexp.c: Include fpucw.h.
69712         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69713         (FUNC): Use them.
69714         * lib/vasnprintf.c: Include fpucw.h.
69715         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69716         'long double' calculations.
69717         * tests/test-frexpl.c: Include fpucw.h.
69718         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69719         * tests/test-printf-frexpl.c: Include fpucw.h.
69720         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69721         * modules/frexpl (Depends-on): Add fpucw.
69722         * modules/printf-frexpl (Depends-on): Likewise.
69723         * modules/fprintf-posix (Depends-on): Likewise.
69724         * modules/snprintf-posix (Depends-on): Likewise.
69725         * modules/sprintf-posix (Depends-on): Likewise.
69726         * modules/vasnprintf-posix (Depends-on): Likewise.
69727         * modules/vasprintf-posix (Depends-on): Likewise.
69728         * modules/vfprintf-posix (Depends-on): Likewise.
69729         * modules/vsnprintf-posix (Depends-on): Likewise.
69730         * modules/vsprintf-posix (Depends-on): Likewise.
69731         * modules/frexpl-tests (Depends-on): Likewise.
69732         * modules/printf-frexpl-tests (Depends-on): Likewise.
69733
69734 2007-03-24  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/float+.h: New file.
69737         * lib/isnan.c: Include float+.h.
69738         (SIZE): New macro.
69739         (FUNC): Compare only SIZE bytes of the value.
69740         * lib/vasnprintf.c: Include float+.h.
69741         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69742         SIZEOF_LDBL or SIZEOF_DBL bytes.
69743         * modules/isnan-nolibm (Files): Add lib/float+.h.
69744         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69745         * modules/isnanl (Files): Add lib/float+.h.
69746         * modules/vasnprintf (Files): Add lib/float+.h.
69747
69748 2007-03-24  Bruno Haible  <bruno@clisp.org>
69749
69750         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69751         include isnanl-nolibm.h.
69752
69753 2007-03-24  Bruno Haible  <bruno@clisp.org>
69754
69755         * tests/test-read-file.c (main): Don't produce spurious output for
69756         expected situations. Make the test fail if it encountered unexpected
69757         results.
69758
69759 2007-03-24  Bruno Haible  <bruno@clisp.org>
69760
69761         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69762         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69763
69764 2007-03-24  Bruno Haible  <bruno@clisp.org>
69765
69766         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69767
69768 2007-03-24  Bruno Haible  <bruno@clisp.org>
69769
69770         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69771         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69772
69773         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69774         * modules/utf8-ucs4: Turn into a symbolic link to module
69775         unistr/u8-mbtouc.
69776
69777         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69778         utf8-ucs4-unsafe.
69779         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69780         unistr/u8-mbtouc-unsafe.
69781
69782         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69783         * modules/utf16-ucs4: Turn into a symbolic link to module
69784         unistr/u16-mbtouc.
69785
69786         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69787         utf16-ucs4-unsafe.
69788         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69789         unistr/u16-mbtouc-unsafe.
69790
69791         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69792         * modules/ucs4-utf8: Turn into a symbolic link to module
69793         unistr/u8-ubtomb.
69794
69795         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69796         * modules/ucs4-utf16: Turn into a symbolic link to module
69797         unistr/u16-ubtomb.
69798
69799 2007-03-24  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69802         Enable the function only if HAVE_INLINE.
69803         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69804         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69805         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69806         Enable the function only if HAVE_INLINE.
69807         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69808         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69809         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69810         Enable the function only if HAVE_INLINE.
69811         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69812         Enable the function only if HAVE_INLINE.
69813         * modules/utf8-ucs4: Update.
69814         * modules/utf8-ucs4-unsafe: Update.
69815         * modules/utf16-ucs4: Update.
69816         * modules/utf16-ucs4-unsafe: Update.
69817         * modules/ucs4-utf8: Update.
69818         * modules/ucs4-utf16: Update.
69819
69820 2007-03-24  Bruno Haible  <bruno@clisp.org>
69821
69822         * lib/utf8-ucs4.h: Remove file.
69823         * lib/utf8-ucs4-unsafe.h: Remove file.
69824         * lib/utf16-ucs4.h: Remove file.
69825         * lib/utf16-ucs4-unsafe.h: Remove file.
69826         * lib/ucs4-utf8.h: Remove file.
69827         * lib/ucs4-utf16.h: Remove file.
69828         * lib/unistr.h: Include their previous contents.
69829         * m4/utf-ucs4.m4: Remove file.
69830         * m4/ucs4-utf.m4: Remove file.
69831         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69832         (Depends-on): Add unistr/base.
69833         (configure.ac): Remove gl_UTF_UCS4.
69834         (Makefile.am): Update.
69835         (Include): Change to unistr.h.
69836         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69837         (Depends-on): Add unistr/base.
69838         (configure.ac): Remove gl_UTF_UCS4.
69839         (Makefile.am): Update.
69840         (Include): Change to unistr.h.
69841         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69842         (Depends-on): Add unistr/base.
69843         (configure.ac): Remove gl_UTF_UCS4.
69844         (Makefile.am): Update.
69845         (Include): Change to unistr.h.
69846         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69847         (Depends-on): Add unistr/base.
69848         (configure.ac): Remove gl_UTF_UCS4.
69849         (Makefile.am): Update.
69850         (Include): Change to unistr.h.
69851         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69852         (Depends-on): Add unistr/base.
69853         (configure.ac): Remove gl_UCS4_UTF.
69854         (Makefile.am): Update.
69855         (Include): Change to unistr.h.
69856         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69857         (Depends-on): Add unistr/base.
69858         (configure.ac): Remove gl_UCS4_UTF.
69859         (Makefile.am): Update.
69860         (Include): Change to unistr.h.
69861         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69862         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69863         utf8-ucs4-unsafe.h.
69864         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69865         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69866         utf16-ucs4-unsafe.h.
69867         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69868         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69869         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69870         * lib/unistr/u8-strchr.c: Likewise.
69871         * lib/unistr/u8-strrchr.c: Likewise.
69872         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69873         * lib/unistr/u16-strchr.c: Likewise.
69874         * lib/unistr/u16-strrchr.c: Likewise.
69875         * lib/striconveh.c: Update.
69876         * lib/linebreak.c: Update.
69877
69878 2007-03-24  Bruno Haible  <bruno@clisp.org>
69879
69880         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69881         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69882
69883 2007-03-22  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69886
69887 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * MODULES.html.sh (File system functions): New module write-any-file.
69890         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69891         * m4/write-any-file.m4: New files.
69892
69893 2007-03-23  Eric Blake  <ebb9@byu.net>
69894
69895         * gnulib-tool: Rearrange space-tab sequences, since some editors
69896         like to eat them.
69897
69898 2007-03-23  Eric Blake  <ebb9@byu.net>
69899
69900         * lib/version-etc.c (version_etc_va): Update license wording to
69901         be more concise.  Recommended by Richard Stallman.
69902
69903 2007-03-22  Bruno Haible  <bruno@clisp.org>
69904
69905         * lib/poll.c (MSG_PEEK): New fallback definition.
69906
69907 2007-03-22  Bruno Haible  <bruno@clisp.org>
69908
69909         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69910         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69911         (main): Update.
69912         Fixes a compilation error on BeOS.
69913
69914 2007-03-22  Bruno Haible  <bruno@clisp.org>
69915
69916         * modules/frexpl-tests: New file.
69917         * tests/test-frexpl.c: New file.
69918
69919         * modules/frexpl: New file.
69920         * m4/frexpl.m4: New file.
69921         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69922         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69924         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69925         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69926         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69927
69928 2007-03-22  Bruno Haible  <bruno@clisp.org>
69929
69930         * lib/frexpl.c: Share code with lib/frexp.c.
69931         * modules/mathl (Files): Add lib/frexp.c.
69932         (Depends-on): Add isnanl-nolibm.
69933
69934 2007-03-22  Bruno Haible  <bruno@clisp.org>
69935
69936         * modules/printf-frexp (Files): Add m4/frexp.m4.
69937         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69938         only if the found frexp function actually works.
69939
69940 2007-03-22  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/frexp.c: Remove older implementation that uses divisions.
69943
69944 2007-03-21  Bruno Haible  <bruno@clisp.org>
69945
69946         * modules/frexp-tests: New file.
69947         * tests/test-frexp.c: New file.
69948
69949         * modules/frexp: New file.
69950         * lib/frexp.c: New file.
69951         * m4/frexp.m4: New file.
69952         * lib/math_.h (frexp): New declaration.
69953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69954         REPLACE_FREXP.
69955         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69956
69957 2007-03-21  Bruno Haible  <bruno@clisp.org>
69958
69959         * modules/isnanl-tests: New file.
69960         * tests/test-isnanl.c: New file.
69961
69962         * modules/isnanl: New file.
69963         * lib/isnanl.h: New file.
69964         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69965         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69966         gl_FUNC_ISNANL_WORKS.
69967         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69968         New macros.
69969
69970 2007-03-21  Bruno Haible  <bruno@clisp.org>
69971
69972         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69973         lib/isnanl.h.
69974         (Include): Update.
69975         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69976         * lib/vasnprintf.c: Update.
69977         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69978         tests/test-isnanl.h, remove tests/test-isnanl.c.
69979         (Makefile.am): Update.
69980         * tests/test-isnanl-nolibm.c: New file.
69981         * tests/test-isnanl.h: New file.
69982         * tests/test-isnanl.c: Remove file.
69983
69984 2007-03-21  Jim Meyering  <jim@meyering.net>
69985
69986         When trying to open ".", treat ESTALE like EACCES.
69987         * lib/savewd.c (savewd_save): Resort to forking not just upon
69988         failure with EACCES, but also when errno is ESTALE.
69989
69990 2007-03-20  Bruno Haible  <bruno@clisp.org>
69991
69992         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69993         Needed on AIX 5.1. Reported by Matthew Woehlke.
69994
69995 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         Suggestions by Bruno Haible:
69998         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69999         our own.
70000         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70001         * modules/acl (Depends-on): Add gettext.
70002
70003 2007-03-19  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/iconvme: Remove file.
70006         * lib/iconvme.h: Remove file.
70007         * lib/iconvme.c: Remove file.
70008         * m4/iconvme.m4: Remove file.
70009
70010 2007-03-19  Bruno Haible  <bruno@clisp.org>
70011
70012         * doc/relocatable-maint.texi: Break long shell script line.
70013         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70014
70015 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70018         handle file_has_acl.
70019         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70020         * lib/acl.c: Move header inclusions and related macro defns into
70021         lib/acl-internal.h.
70022         (S_ISLNK): Remove defn, since that's now done for us.
70023         (file_has_acl): Move to lib/file-has-acl.c.
70024         Call acl_trivial if available.  This is the crucial part of the fix.
70025         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70026         shared within the library.  Rewrite a bit, partly to make it compatible
70027         with the GNU coding style.
70028         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70029         Remove unnecessary double-quotes.
70030         Don't test for acl_to_text; the build will catch that.
70031         Replace acl_entries if it doesn't exist and it is needed.
70032         Check for -lsec and acl_trivial (as used on Solaris 10).
70033         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70034         lib/file-has-acl.c.
70035         (Depends-on): Add sys_stat, for S_ISLNK.
70036
70037 2007-03-19  Ben Pfaff  <blp@gnu.org>
70038
70039         * doc/gnulib.texi: Fix typos.
70040         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70041
70042 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70043
70044         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70045         If size is zero here, buf must be zero.
70046
70047 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70048
70049         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70050         <bruno@clisp.org>.
70051
70052 2007-03-18  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70055         Suggested by Eric Blake.
70056
70057 2007-03-18  Ben Pfaff  <blp@gnu.org>
70058
70059         * doc/relocatable.texi: Recommend using as prefix a directory
70060         that does not exist and will never be created.  Based on
70061         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70062         and others.
70063
70064 2007-03-17  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/fchownat.c: Include lchown.h.
70067
70068 2007-03-17  Bruno Haible  <bruno@clisp.org>
70069
70070         Fix endless loop when the given allocated size was > INT_MAX.
70071         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70072         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70073         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70074         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70075         * lib/sprintf.c (sprintf): Likewise.
70076
70077 2007-03-17  Bruno Haible  <bruno@clisp.org>
70078
70079         * tests/test-argp-2.sh (func_compare): Output a context diff.
70080
70081 2007-03-17  Bruno Haible  <bruno@clisp.org>
70082
70083         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70084         locale's decimal-point character.
70085
70086 2007-03-17  Bruno Haible  <bruno@clisp.org>
70087
70088         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70089         before comparing it. Needed because on some platforms (e.g. x86) a
70090         'long double' occupies less bytes than sizeof (long double).
70091
70092 2007-03-17  Bruno Haible  <bruno@clisp.org>
70093
70094         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70095         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70096         * tests/test-getaddrinfo.c (simple): Likewise.
70097         * tests/test-read-file.c (main): Likewise.
70098
70099 2007-03-17  Bruno Haible  <bruno@clisp.org>
70100
70101         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70102
70103 2007-03-17  Bruno Haible  <bruno@clisp.org>
70104
70105         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70106         unused variable.
70107
70108 2007-03-17  Bruno Haible  <bruno@clisp.org>
70109
70110         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70111         * tests/test-c-strncasecmp.c: Likewise.
70112
70113 2007-03-17  Bruno Haible  <bruno@clisp.org>
70114
70115         * modules/stdlib (Depends-on): Add unistd.
70116         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70117         Needed for MacOS X 10.3.
70118
70119 2007-03-17  Bruno Haible  <bruno@clisp.org>
70120
70121         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70122
70123 2007-03-17  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70126
70127 2007-03-17  Bruno Haible  <bruno@clisp.org>
70128
70129         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70130         to reflect files copied from gnulib (with or without modifications).
70131         Suggested by Jim Meyering.
70132
70133 2007-03-17  Eric Blake  <ebb9@byu.net>
70134
70135         * NEWS: Document stdlib change from 2007-02-18.
70136
70137 2007-03-17  Jim Meyering  <jim@meyering.net>
70138
70139         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70140         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70141         someone uses a name containing shell meta-characters.
70142         Reported by Alfred M. Szmidt.
70143
70144         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70145
70146 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70147
70148         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70149         and copy gettext configuration files only if configure.ac contains
70150         a use of AM_GNU_GETTEXT_VERSION.
70151
70152 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70153
70154         * build-aux/bootstrap (gnulib_name): New variable.
70155         (gnulib_tool_options): Use it.
70156
70157 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70158
70159         * tests/test-des.c: Use new namespace.
70160
70161 2007-03-15  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70164         Reported by James Youngman <jay@gnu.org>.
70165
70166 2007-03-15  Bruno Haible  <bruno@clisp.org>
70167
70168         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70169         declared prototype. Needed with cc on OSF/1 5.1.
70170
70171 2007-03-15  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70174         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70175         (struct gl_list_implementation): Add dispose_fn argument to the
70176         'create_empty', 'create' methods.
70177         (struct gl_list_impl_base): Add field 'dispose_fn'.
70178         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70179         argument.
70180         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70181         dispose_fn argument.
70182         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70183         dispose_fn on the dropped values.
70184         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70185         dispose_fn argument.
70186         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70187         dropped values.
70188         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70189         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70190         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70191         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70192         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70193         argument.
70194         (gl_tree_list_free): Call dispose_fn on the dropped values.
70195         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70196         the dropped values.
70197         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70198         Add dispose_fn argument.
70199         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70200         Call dispose_fn on the dropped values.
70201         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70202         Add dispose_fn argument.
70203         (gl_sublist_create): Initialize the 'dispose_fn' field.
70204         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70205         * tests/test-array_list.c (main): Update.
70206         * tests/test-carray_list.c (main): Update.
70207         * tests/test-avltree_list.c (main): Update.
70208         * tests/test-rbtree_list.c (main): Update.
70209         * tests/test-avltreehash_list.c (main): Update.
70210         * tests/test-rbtreehash_list.c (main): Update.
70211         * tests/test-linked_list.c (main): Update.
70212         * tests/test-linkedhash_list.c (main): Update.
70213         * tests/test-array_oset.c (main): Update.
70214
70215 2007-03-15  Bruno Haible  <bruno@clisp.org>
70216
70217         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70218         (gl_oset_create_empty): Add dispose_fn argument.
70219         (struct gl_oset_implementation): Add dispose_fn argument to
70220         'create_empty' method.
70221         (struct gl_oset_impl_base): Add dispose_fn field.
70222         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70223         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70224         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70225         values.
70226         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70227         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70228         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70229         dropped value.
70230         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70231         dropped value.
70232         * tests/test-array_oset.c (main): Update.
70233         * tests/test-avltree_oset.c (main): Update.
70234         * tests/test-rbtree_oset.c (main): Update.
70235         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70236
70237 2007-03-13  Bruno Haible  <bruno@clisp.org>
70238
70239         * tests/test-stdbool.c (i): Update after last patch.
70240
70241 2007-03-12  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70244         the iswprint macro. Needed on Solaris 2.5.1.
70245
70246 2007-03-12  Bruno Haible  <bruno@clisp.org>
70247
70248         * tests/test-printf-frexp.c (main): Declare x as volatile.
70249
70250 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70251
70252         * doc/gnulib.texi (Build robot for gnulib): New section.
70253
70254 2007-03-12  Jim Meyering  <jim@meyering.net>
70255
70256         * build-aux/bootstrap: New file.
70257         * build-aux/bootstrap.conf: New file, from coreutils.
70258
70259 2007-03-11  Bruno Haible  <bruno@clisp.org>
70260
70261         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70262
70263 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70264
70265         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70266         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70267         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70268
70269 2007-03-11  Bruno Haible  <bruno@clisp.org>
70270
70271         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70272         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70273
70274 2007-03-11  Bruno Haible  <bruno@clisp.org>
70275
70276         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70277         formula. Needed for SunPRO C 5.0.
70278
70279 2007-03-11  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/long-options (Depends-on): Add getopt.
70282
70283 2007-03-11  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/modechange (Depends-on): Add stdbool.
70286
70287 2007-03-11  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/i-ring (Depends-on): Add stdbool.
70290
70291 2007-03-11  Bruno Haible  <bruno@clisp.org>
70292
70293         * modules/gc-des (Depends-on): Add stdbool.
70294
70295 2007-03-11  Bruno Haible  <bruno@clisp.org>
70296
70297         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70298
70299 2007-03-11  Bruno Haible  <bruno@clisp.org>
70300
70301         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70302
70303 2007-03-11  Bruno Haible  <bruno@clisp.org>
70304
70305         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70306
70307 2007-03-11  Bruno Haible  <bruno@clisp.org>
70308
70309         * lib/vasnprintf.c (sprintf): Undefine.
70310
70311 2007-03-11  Bruno Haible  <bruno@clisp.org>
70312
70313         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70314         initializers in SunPRO C and Compaq C compilers.
70315
70316 2007-03-11  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70319         decrementing code ANSI C compliant.
70320
70321 2007-03-11  Bruno Haible  <bruno@clisp.org>
70322
70323         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70324         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70325
70326 2007-03-11  Bruno Haible  <bruno@clisp.org>
70327
70328         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70329         <stdbool.h> substitute doesn't pass.
70330
70331 2007-03-11  Bruno Haible  <bruno@clisp.org>
70332
70333         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70334
70335 2007-03-11  Bruno Haible  <bruno@clisp.org>
70336
70337         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70338         script, for submission to autobuild.josefsson.org.
70339
70340 2007-03-10  Bruno Haible  <bruno@clisp.org>
70341
70342         * modules/canonicalize-lgpl-tests: New file.
70343         * tests/test-canonicalize-lgpl.sh: New file.
70344         * tests/test-canonicalize-lgpl.c: New file.
70345
70346         * modules/c-strcase-tests: New file.
70347         * tests/test-c-strcase.sh: New file.
70348         * tests/test-c-strcasecmp.c: New file.
70349         * tests/test-c-strncasecmp.c: New file.
70350
70351         * modules/atexit-tests: New file.
70352         * tests/test-atexit.sh: New file.
70353         * tests/test-atexit.c: New file.
70354
70355 2007-03-10  Bruno Haible  <bruno@clisp.org>
70356
70357         * tests/test-binary-io.sh: Use temporary filenames that are not so
70358         likely to clash with those of other tests (in a parallel make).
70359         * tests/test-binary-io.c: Likewise.
70360
70361 2007-03-10  Bruno Haible  <bruno@clisp.org>
70362
70363         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70364         fallback; use #error instead.
70365         Suggested by Simon Josefsson.
70366
70367 2007-03-10  Bruno Haible  <bruno@clisp.org>
70368
70369         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70370         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70371         first and the last.
70372
70373 2007-03-10  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70376
70377 2007-03-10  Bruno Haible  <bruno@clisp.org>
70378
70379         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70380         "make distcheck".
70381         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70382         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70383         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70384
70385 2007-03-10  Bruno Haible  <bruno@clisp.org>
70386
70387         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70388         variable.
70389         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70390         variable.
70391
70392 2007-03-09  Eric Blake  <ebb9@byu.net>
70393         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70394
70395         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70396         types are not being provided by gnulib.
70397         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70398         types are supported.
70399
70400 2007-03-10  Bruno Haible  <bruno@clisp.org>
70401
70402         * lib/stdio_.h (__attribute__): New macro.
70403         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70404         vsprintf): Specify __attribute__ __format__ for GCC.
70405         Suggested by Eric Blake.
70406
70407 2007-03-09  Bruno Haible  <bruno@clisp.org>
70408
70409         * modules/printf-posix-tests: New file.
70410         * tests/test-printf-posix.sh: New file.
70411         * tests/test-printf-posix.c: New file.
70412
70413         * modules/printf-posix: New file.
70414         * lib/printf.c: New file.
70415         * m4/printf-posix-rpl.m4: New file.
70416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70417         REPLACE_PRINTF.
70418         * lib/stdio_.h (printf): New declaration.
70419         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70420         ____strfmon____): New macros.
70421         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70422         REPLACE_PRINTF.
70423
70424 2007-03-09  Bruno Haible  <bruno@clisp.org>
70425
70426         * tests/test-vasnprintf-posix2.sh: New file.
70427         * tests/test-vasnprintf-posix2.c: New file.
70428         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70429         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70430         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70431
70432         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70433         a locale dependent decimal point, rather than always '.'.
70434
70435 2007-03-09  Eric Blake  <ebb9@byu.net>
70436
70437         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70438         spite of platforms like Tandem/NSK that define it to -1.
70439
70440 2007-03-08  Bruno Haible  <bruno@clisp.org>
70441
70442         * modules/vprintf-posix-tests: New file.
70443         * tests/test-vprintf-posix.sh: New file.
70444         * tests/test-vprintf-posix.c: New file.
70445         * tests/test-printf-posix.h: New file.
70446
70447         * modules/vprintf-posix: New file.
70448         * lib/vprintf.c: New file.
70449         * m4/vprintf-posix.m4: New file.
70450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70451         REPLACE_VPRINTF.
70452         * lib/stdio_.h (vprintf): New declaration.
70453         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70454         REPLACE_VPRINTF.
70455
70456 2007-03-08  Bruno Haible  <bruno@clisp.org>
70457
70458         * modules/fprintf-posix-tests: New file.
70459         * tests/test-fprintf-posix.sh: New file.
70460         * tests/test-fprintf-posix.c: New file.
70461
70462         * modules/fprintf-posix: New file.
70463         * lib/fprintf.c: New file.
70464         * m4/fprintf-posix.m4: New file.
70465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70466         REPLACE_FPRINTF.
70467         * lib/stdio_.h (fprintf): New declaration.
70468         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70469         REPLACE_FPRINTF.
70470
70471 2007-03-08  Bruno Haible  <bruno@clisp.org>
70472
70473         * modules/vfprintf-posix-tests: New file.
70474         * tests/test-vfprintf-posix.sh: New file.
70475         * tests/test-vfprintf-posix.c: New file.
70476         * tests/test-fprintf-posix.h: New file.
70477         * tests/test-fprintf-posix.out: New file.
70478
70479         * modules/vfprintf-posix: New file.
70480         * lib/vfprintf.c: New file.
70481         * m4/vfprintf-posix.m4: New file.
70482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70483         REPLACE_VFPRINTF.
70484         * lib/stdio_.h (vfprintf): New declaration.
70485         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70486         REPLACE_VFPRINTF.
70487
70488 2007-03-08  Bruno Haible  <bruno@clisp.org>
70489
70490         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70491
70492 2007-03-08  Bruno Haible  <bruno@clisp.org>
70493
70494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70495         instead of 'expr' invocations.
70496         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70501         Suggested by Paul Eggert.
70502
70503 2007-03-08  Bruno Haible  <bruno@clisp.org>
70504
70505         * modules/fseterr-tests: New file.
70506         * tests/test-fseterr.c: New file.
70507
70508         * modules/fseterr: New file.
70509         * lib/fseterr.h: New file.
70510         * lib/fseterr.c: New file.
70511
70512 2007-03-08  Bruno Haible  <bruno@clisp.org>
70513
70514         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70515         * lib/getopt_.h: Likewise.
70516         * lib/mbswidth.h: Likewise.
70517         * lib/setenv.h: Likewise.
70518         * lib/vasnprintf.h: Likewise.
70519         * lib/vasprintf.h: Likewise.
70520         * lib/verror.h: Likewise.
70521         * lib/xsetenv.h: Likewise.
70522         * lib/xvasprintf.h: Likewise.
70523
70524 2007-03-08  Jim Meyering  <jim@meyering.net>
70525
70526         * users.txt: Add parted.
70527
70528         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70529
70530 2007-03-07  Bruno Haible  <bruno@clisp.org>
70531
70532         * m4/printf.m4: Make the shell script snippets copy&pastable.
70533
70534 2007-03-02  Bruno Haible  <bruno@clisp.org>
70535
70536         * lib/netinet_in_.h: New file.
70537         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70538         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70539         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70540         (Depends-on): Add absolute-header.
70541         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70542         into netinet/in.h.
70543
70544 2007-03-03  Bruno Haible  <bruno@clisp.org>
70545
70546         * lib/sys_select_.h: New file.
70547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70548         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70549         * modules/sys_select (Files): Add lib/sys_select_.h.
70550         (Depends-on): Add absolute-header.
70551         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70552         into sys/select.h.
70553
70554 2007-03-02  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70557         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70558         values.
70559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70560         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70561         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70562         * modules/sys_socket (Depends-on): Add absolute-header.
70563         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70564         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70565         (Include): Remove requirement of inclusion of <sys/types.h>.
70566
70567 2007-03-02  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/byteswap_.h (bswap_32): Fix formula.
70570
70571 2007-03-06  Bruno Haible  <bruno@clisp.org>
70572
70573         * modules/sprintf-posix-tests: New file.
70574         * tests/test-sprintf-posix.c: New file.
70575
70576         * modules/sprintf-posix: New file.
70577         * lib/sprintf.c: New file.
70578         * m4/sprintf-posix.m4: New file.
70579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70580         REPLACE_SPRINTF.
70581         * lib/stdio_.h (sprintf): New declaration.
70582         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70583         REPLACE_SPRINTF.
70584
70585 2007-03-06  Bruno Haible  <bruno@clisp.org>
70586
70587         * modules/vsprintf-posix-tests: New file.
70588         * tests/test-vsprintf-posix.c: New file.
70589         * tests/test-sprintf-posix.h: New file.
70590
70591         * modules/vsprintf-posix: New file.
70592         * lib/vsprintf.c: New file.
70593         * m4/vsprintf-posix.m4: New file.
70594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70595         REPLACE_VSPRINTF.
70596         * lib/stdio_.h (vsprintf): New declaration.
70597         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70598         REPLACE_VSPRINTF.
70599
70600 2007-03-06  Bruno Haible  <bruno@clisp.org>
70601
70602         * modules/vsnprintf (Depend-on): Remove minmax.
70603
70604 2007-03-06  Bruno Haible  <bruno@clisp.org>
70605
70606         * modules/snprintf-posix-tests: New file.
70607         * tests/test-snprintf-posix.c: New file.
70608
70609         * modules/snprintf-posix: New file.
70610         * m4/snprintf-posix.m4: New file.
70611         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70612         gl_FUNC_SNPRINTF.
70613         (gl_FUNC_SNPRINTF): Invoke it.
70614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70615         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70616         is set.
70617         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70618
70619 2007-03-06  Bruno Haible  <bruno@clisp.org>
70620
70621         * modules/vsnprintf-posix-tests: New file.
70622         * tests/test-vsnprintf-posix.c: New file.
70623         * tests/test-snprintf-posix.h: New file.
70624
70625         * modules/vsnprintf-posix: New file.
70626         * m4/vsnprintf-posix.m4: New file.
70627         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70628         gl_FUNC_VSNPRINTF.
70629         (gl_FUNC_VSNPRINTF): Invoke it.
70630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70631         * lib/stdio_.h (vsnprintf): Define as a replacement if
70632         REPLACE_VSNPRINTF is set.
70633         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70634
70635 2007-03-06  Bruno Haible  <bruno@clisp.org>
70636
70637         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70639
70640 2007-03-06  Bruno Haible  <bruno@clisp.org>
70641
70642         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70643         (asinl): Declare also if HAVE_DECL_ASINL is set.
70644         (atanl): Declare also if HAVE_DECL_ATANL is set.
70645         (ceill): Declare also if HAVE_DECL_CEILL is set.
70646         (cosl): Declare also if HAVE_DECL_COSL is set.
70647         (expl): Declare also if HAVE_DECL_EXPL is set.
70648         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70649         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70650         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70651         (logl): Declare also if HAVE_DECL_LOGL is set.
70652         (sinl): Declare also if HAVE_DECL_SINL is set.
70653         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70654         (tanl): Declare also if HAVE_DECL_TANL is set.
70655         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70657         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70658         declaration of frexpl, ldexpl.
70659         * modules/printf-frexpl (Depends-on): Add math.
70660         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70661
70662 2007-03-05  Bruno Haible  <bruno@clisp.org>
70663
70664         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70665         frexpl and ldexpl are declared.
70666         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70667
70668 2007-03-05  Bruno Haible  <bruno@clisp.org>
70669
70670         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70671         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70672
70673 2007-03-05  Bruno Haible  <bruno@clisp.org>
70674
70675         * lib/stdio_.h: Include <stddef.h>.
70676
70677 2007-03-05  Bruno Haible  <bruno@clisp.org>
70678
70679         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70680
70681 2007-03-05  Bruno Haible  <bruno@clisp.org>
70682
70683         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70684         NetBSD 4, from Ralf Wildenhues.
70685
70686 2007-03-04  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/vasprintf.h: Update #if logic for the case when the functions
70689         exist but are overridden.
70690
70691 2007-03-04  Bruno Haible  <bruno@clisp.org>
70692
70693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70694         implementations: glibc-2.4 and MacOS X 10.3.
70695         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70696         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70697         * tests/test-vasprintf-posix.c (test_function): Likewise.
70698
70699 2007-03-04  Bruno Haible  <bruno@clisp.org>
70700
70701         * modules/vasprintf-posix-tests: New file.
70702         * tests/test-vasprintf-posix.c: New file.
70703
70704         * modules/vasprintf-posix: New file.
70705         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70706         defined.
70707         * m4/vasprintf-posix.m4: New file.
70708         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70709         gl_FUNC_VASPRINTF.
70710         (gl_FUNC_VASPRINTF): Invoke it.
70711         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70712         here.
70713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70714
70715 2007-03-04  Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70718         REPLACE_GETTIMEOFDAY.
70719         * modules/sys_time (Makefile.am): Likewise.
70720         * m4/sys_time_h.m4: Likewise.
70721         * m4/gettimeofday.m4: Likewise.
70722
70723 2007-03-04  Bruno Haible  <bruno@clisp.org>
70724
70725         * modules/vasnprintf-posix-tests: New file.
70726         * tests/test-vasnprintf-posix.c: New file.
70727
70728         * modules/vasnprintf-posix: New file.
70729         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70730         printf-frexpl.h.
70731         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70732         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70733         REPLACE_VASNPRINTF is defined.
70734         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70735         gl_FUNC_VASNPRINTF.
70736         (gl_FUNC_VASNPRINTF): Invoke it.
70737         * m4/vasnprintf-posix.m4: New file.
70738         * m4/printf.m4: New file.
70739
70740 2007-03-04  Bruno Haible  <bruno@clisp.org>
70741
70742         Compile progreloc.c only if --enable-relocatable is specified.
70743         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70744         if --enable-relocatable was specified.
70745         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70746         lib_SOURCES.
70747
70748 2007-03-04  Jim Meyering  <jim@meyering.net>
70749
70750         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70751         Use it consistently, rather than enumerating errno constants.
70752
70753 2007-03-04  Bruno Haible  <bruno@clisp.org>
70754
70755         * modules/xvasprintf-tests: New file.
70756         * tests/test-xvasprintf.c: New file.
70757
70758         * modules/vasprintf-tests: New file.
70759         * tests/test-vasprintf.c: New file.
70760
70761         * modules/vasnprintf-tests: New file.
70762         * tests/test-vasnprintf.c: New file.
70763
70764         * modules/vsnprintf-tests: New file.
70765         * tests/test-vsnprintf.c: New file.
70766
70767         * modules/snprintf-tests: New file.
70768         * tests/test-snprintf.c: New file.
70769
70770 2007-03-04  Bruno Haible  <bruno@clisp.org>
70771
70772         Compile relocatable.c only if --enable-relocatable is specified.
70773         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70774         gl_RELOCATABLE_LIBRARY.
70775         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70776         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70777         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70778         gl_RELOCATABLE_LIBRARY.
70779         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70780         (Makefile.am): Remove lib_SOURCES.
70781         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70782         gl_RELOCATABLE_LIBRARY.
70783         (Makefile.am): Remove lib_SOURCES.
70784         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70785         always.
70786         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70787         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70788
70789 2007-03-04  Bruno Haible  <bruno@clisp.org>
70790
70791         * modules/argmatch-tests: New file.
70792         * tests/test-argmatch.c: New file.
70793
70794         * tests/test-allocsa.c (main): Halve the number of loop runs.
70795
70796         * modules/alloca-opt-tests: New file.
70797         * tests/test-alloca-opt.c: New file.
70798
70799 2007-03-04  Jim Meyering  <jim@meyering.net>
70800
70801         Work around difference between Linux ACLs and Solaris 10 ZFS.
70802         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70803         for EINVAL.
70804
70805 2007-03-03  Bruno Haible  <bruno@clisp.org>
70806
70807         * modules/relocatable-prog (Depends-on): Add back progreloc's
70808         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70809
70810 2007-03-03  Bruno Haible  <bruno@clisp.org>
70811
70812         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70813         * modules/relocatable-lib: New file.
70814
70815 2007-03-03  Bruno Haible  <bruno@clisp.org>
70816
70817         * modules/relocatable-prog: Renamed from modules/relocatable.
70818         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70819
70820 2007-03-03  Bruno Haible  <bruno@clisp.org>
70821
70822         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70823         m4/relocatable-lib.m4.
70824         (Depends-on): Remove 'relocatable'.
70825         (configure.ac): Add gl_RELOCATABLE_NOP.
70826
70827 2007-03-03  Bruno Haible  <bruno@clisp.org>
70828
70829         * modules/relocatable-prog-wrapper: New file.
70830         * modules/relocatable (Depends-on): Add it. Remove all other
70831         dependencies except progname.
70832         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70833
70834         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70835         (gl_FUNC_STRERROR): Nop.
70836         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70837
70838         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70839         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70840
70841         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70842         (gl_FUNC_READLINK): Update.
70843
70844         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70845
70846 2007-03-03  Bruno Haible  <bruno@clisp.org>
70847
70848         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70849         * modules/xreadlink (Depends-on): Add unistd.
70850         * modules/xreadlink-with-size (Depends-on): Likewise.
70851
70852 2007-03-03  Bruno Haible  <bruno@clisp.org>
70853
70854         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70855         extracted from gt_FUNC_SETENV.
70856         (gt_FUNC_SETENV): Remove macro.
70857         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70858         remove gt_FUNC_SETENV.
70859
70860 2007-03-03  Bruno Haible  <bruno@clisp.org>
70861
70862         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70863         ENABLE_RELOCATABLE here.
70864         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70865
70866 2007-03-03  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70869         * tests/test-rbtreehash_list.c: Include progname.h.
70870         (main): Call set_program_name.
70871
70872         * modules/rbtree-oset-tests (Depends-on): Add progname.
70873         * tests/test-rbtree_oset.c: Include progname.h.
70874         (main): Call set_program_name.
70875
70876         * modules/rbtree-list-tests (Depends-on): Add progname.
70877         * tests/test-rbtree_list.c: Include progname.h.
70878         (main): Call set_program_name.
70879
70880         * modules/linked-list-tests (Depends-on): Add progname.
70881         * tests/test-linked_list.c: Include progname.h.
70882         (main): Call set_program_name.
70883
70884 2007-03-03  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70887         All uses of __restrict changed to _Restrict_.
70888         * lib/glob_.h (__restrict): Remove macro.
70889
70890 2007-03-02  Bruno Haible  <bruno@clisp.org>
70891
70892         * modules/gettext (configure.ac): Require gettext infrastructure
70893         from version 0.16.1.
70894
70895 2007-03-02  Bruno Haible  <bruno@clisp.org>
70896
70897         * modules/linkedhash-list-tests (Depends-on): Add progname.
70898         * tests/test-linkedhash_list.c: Include progname.h.
70899         (main): Call set_program_name.
70900
70901         * modules/carray-list-tests (Depends-on): Add progname.
70902         * tests/test-carray_list.c: Include progname.h.
70903         (main): Call set_program_name.
70904
70905         * modules/avltreehash-list-tests (Depends-on): Add progname.
70906         * tests/test-avltreehash_list.c: Include progname.h.
70907         (main): Call set_program_name.
70908
70909         * modules/avltree-oset-tests (Depends-on): Add progname.
70910         * tests/test-avltree_oset.c: Include progname.h.
70911         (main): Call set_program_name.
70912
70913         * modules/avltree-list-tests (Depends-on): Add progname.
70914         * tests/test-avltree_list.c: Include progname.h.
70915         (main): Call set_program_name.
70916
70917         * modules/array-oset-tests (Depends-on): Add progname.
70918         * tests/test-array_oset.c: Include progname.h.
70919         (main): Call set_program_name.
70920
70921         * modules/array-list-tests (Depends-on): Add progname.
70922         * tests/test-array_list.c: Include progname.h.
70923         (main): Call set_program_name.
70924
70925         * modules/argp-tests (Depends-on): Add progname.
70926         * tests/test-argp.c: Include argp.h first. Include progname.h.
70927         (main): Call set_program_name.
70928
70929 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         * doc/gnulib-tool.texi (Initial import): Reword description of
70932         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70933         limited effect even if defined after the first system include.
70934
70935 2007-03-01  Bruno Haible  <bruno@clisp.org>
70936
70937         * build-aux/config.libpath: Update to libtool-1.5.22.
70938         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70939
70940 2007-03-01  Bruno Haible  <bruno@clisp.org>
70941
70942         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70943         foo_CFLAGS.
70944         Reported by Ralf Wildenhues.
70945
70946 2007-03-01  Bruno Haible  <bruno@clisp.org>
70947
70948         * build-aux/install-reloc: Remove object files left over by some
70949         compilers.
70950         Reported by Ralf Wildenhues.
70951
70952 2007-03-01  Bruno Haible  <bruno@clisp.org>
70953
70954         * build-aux/install-reloc: Break long lines.
70955
70956 2007-03-01  Bruno Haible  <bruno@clisp.org>
70957
70958         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70959         Reported by Ralf Wildenhues.
70960
70961 2007-03-01  Bruno Haible  <bruno@clisp.org>
70962
70963         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70964         include ordering constraints.
70965
70966 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70969         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70970         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70971         as another example.
70972         * lib/time_.h: Fix misspelling.
70973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70974         Require gl_HEADER_TIME_H_DEFAULTS.
70975         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70976         * m4/time_r.m4 (gl_TIME_R): Likewise.
70977         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70978
70979 2007-03-01  Bruno Haible  <bruno@clisp.org>
70980
70981         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70982         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70983
70984 2007-03-01  Jim Meyering  <jim@meyering.net>
70985
70986         * modules/xreadlink (Maintainer): Add my name.
70987         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70988
70989 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70990             Bruno Haible  <bruno@clisp.org>
70991
70992         * build-aux/install-reloc: Compile also c-ctype.c.
70993         * build-aux/relocatable.sh.in: New file.
70994         * doc/relocatable.texi: New file.
70995         * doc/relocatable-maint.texi: New file.
70996         * doc/gnulib.texi: Include relocatable-maint.texi.
70997         * lib/progreloc.c: Include unistd.h unconditionally.
70998         * lib/relocwrapper.c: Include unistd.h unconditionally.
70999         Include c-ctype.h.
71000         (add_dotbin): Use c_tolower.
71001         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71002         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71003         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71004         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71005         to m4/relocatable-lib.m4.
71006         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71007         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71008         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71009         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71010         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71011         * modules/relocatable: New file.
71012         * modules/relocatable-lib: New file.
71013         * modules/relocatable-script: New file.
71014
71015 2007-02-28  Bruno Haible  <bruno@clisp.org>
71016
71017         Import --enable-relocatable infrastructure.
71018         * build-aux/config.libpath: New file, from GNU gettext.
71019         * build-aux/install-reloc: New file, from GNU gettext.
71020         * build-aux/reloc-ldflags: New file, from GNU gettext.
71021         * lib/relocatable.h: New file, from GNU gettext.
71022         * lib/relocatable.c: New file, from GNU gettext.
71023         * lib/relocwrapper.c: New file, from GNU gettext.
71024         * m4/relocatable.m4: New file, from GNU gettext.
71025
71026 2007-02-28  Bruno Haible  <bruno@clisp.org>
71027
71028         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71029
71030         * modules/xreadlink: New file, from GNU gettext with modifications.
71031         * lib/xreadlink.c: New file, from GNU gettext.
71032         * lib/xreadlink.h: Add comments.
71033         (xreadlink): New declaration.
71034
71035         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71036         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71037         lib/xreadlink-with-size.c.
71038         (configure.ac): Remove gl_XREADLINK invocation.
71039         (Makefile.am): Augment lib_SOURCES.
71040         * m4/xreadlink.m4: Remove file.
71041         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71042         (xreadlink_with_size): Renamed from xreadink.
71043         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71044         * modules/canonicalize (Depends-on): Replace xreadlink with
71045         xreadlink-with-size.
71046         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71047
71048 2007-02-25  Jim Meyering  <jim@meyering.net>
71049
71050         * build-aux/announce-gen: When complaining about excess arguments,
71051         list them.
71052
71053 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71054
71055         * README: Document signed integer overflow situation more
71056         accurately.
71057
71058 2007-02-25  Bruno Haible  <bruno@clisp.org>
71059
71060         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71061         'a' or 'A' conversion.
71062
71063 2007-02-25  Bruno Haible  <bruno@clisp.org>
71064
71065         * modules/filename: Renamed from modules/pathname.
71066         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71067         lib/concatpath.c with lib/concat-filename.c.
71068         (Makefile.am): Update.
71069         (Include): Replace pathname.h with filename.h.
71070         * lib/filename.h: Renamed from lib/pathname.h.
71071         (concatenated_filename): Renamed from concatenated_pathname.
71072         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71073         (concatenated_filename): Renamed from concatenated_pathname.
71074         * lib/findprog.c: Include filename.h instead of pathname.h.
71075         (find_in_path): Update.
71076         * lib/javacomp.c: Include filename.h instead of pathname.h.
71077         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71078         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71079         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71080         is_oldgcj_14_13_usable, is_javac_usable): Update.
71081         * lib/javaexec.c: Include filename.h instead of pathname.h.
71082         (execute_java_class): Update.
71083         * modules/findprog: Update.
71084         * modules/javacomp: Update.
71085         * modules/javaexec: Update.
71086         * MODULES.html.sh (File system functions): Add 'filename', remove
71087         'pathname'.
71088
71089 2007-02-25  Bruno Haible  <bruno@clisp.org>
71090
71091         * modules/printf-frexpl-tests: New file.
71092         * tests/test-printf-frexpl.c: New file.
71093
71094         * modules/printf-frexpl: New file.
71095         * lib/printf-frexpl.h: New file.
71096         * lib/printf-frexpl.c: New file.
71097         * m4/printf-frexpl.m4: New file.
71098
71099 2007-02-25  Bruno Haible  <bruno@clisp.org>
71100
71101         * modules/printf-frexp-tests: New file.
71102         * tests/test-printf-frexp.c: New file.
71103
71104         * modules/printf-frexp: New file.
71105         * lib/printf-frexp.h: New file.
71106         * lib/printf-frexp.c: New file.
71107         * m4/printf-frexp.m4: New file.
71108
71109 2007-02-25  Bruno Haible  <bruno@clisp.org>
71110
71111         Assume automake >= 1.10 for the tests.
71112         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71113         * modules/arctwo-tests: Likewise.
71114         * modules/argp-tests: Likewise.
71115         * modules/avltree-list-tests: Likewise.
71116         * modules/avltree-oset-tests: Likewise.
71117         * modules/avltreehash-list-tests: Likewise.
71118         * modules/carray-list-tests: Likewise.
71119         * modules/crc-tests: Likewise.
71120         * modules/des-tests: Likewise.
71121         * modules/gc-arcfour-tests: Likewise.
71122         * modules/gc-arctwo-tests: Likewise.
71123         * modules/gc-des-tests: Likewise.
71124         * modules/gc-hmac-md5-tests: Likewise.
71125         * modules/gc-hmac-sha1-tests: Likewise.
71126         * modules/gc-md2-tests: Likewise.
71127         * modules/gc-md4-tests: Likewise.
71128         * modules/gc-md5-tests: Likewise.
71129         * modules/gc-pbkdf2-sha1-tests: Likewise.
71130         * modules/gc-rijndael-tests: Likewise.
71131         * modules/gc-sha1-tests: Likewise.
71132         * modules/gc-tests: Likewise.
71133         * modules/getaddrinfo-tests: Likewise.
71134         * modules/hmac-md5-tests: Likewise.
71135         * modules/hmac-sha1-tests: Likewise.
71136         * modules/linked-list-tests: Likewise.
71137         * modules/linkedhash-list-tests: Likewise.
71138         * modules/lock-tests: Likewise.
71139         * modules/md2-tests: Likewise.
71140         * modules/md4-tests: Likewise.
71141         * modules/md5-tests: Likewise.
71142         * modules/rbtree-list-tests: Likewise.
71143         * modules/rbtree-oset-tests: Likewise.
71144         * modules/rbtreehash-list-tests: Likewise.
71145         * modules/read-file-tests: Likewise.
71146         * modules/rijndael-tests: Likewise.
71147         * modules/stdint-tests: Likewise.
71148         * modules/tls-tests: Likewise.
71149
71150 2007-02-24  Bruno Haible  <bruno@clisp.org>
71151
71152         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71153         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71154         function; instead check whether isnan with a double argument links.
71155         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71156         function; instead check whether isnan with a 'long double' argument
71157         links.
71158         Reported by Eric Blake <ebb9@byu.net>.
71159
71160 2007-02-24  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71163         defined.
71164         * lib/isnanl.c: Remove all code. Just include isnan.c.
71165         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71166
71167 2007-02-25  Jim Meyering  <jim@meyering.net>
71168
71169         Avoid conflicting types for 'unsetenv' on FreeBSD.
71170         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71171         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71172         in stdlib.h.
71173
71174 2007-02-24  Bruno Haible  <bruno@clisp.org>
71175
71176         * modules/isnanl-nolibm-tests: New file.
71177         * tests/test-isnanl.c: New file.
71178
71179         * modules/isnanl-nolibm: New file.
71180         * lib/isnanl.h: New file.
71181         * lib/isnanl.c: New file.
71182         * m4/isnanl.m4: New file.
71183
71184 2007-02-24  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/isnan-nolibm-tests: New file.
71187         * tests/test-isnan.c: New file.
71188
71189         * modules/isnan-nolibm: New file.
71190         * lib/isnan.h: New file.
71191         * lib/isnan.c: New file.
71192         * m4/isnan.m4: New file.
71193
71194 2007-02-24  Bruno Haible  <bruno@clisp.org>
71195
71196         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71197         assume that an exponent fits in 20 bits.
71198
71199 2007-02-24  Jim Meyering  <jim@meyering.net>
71200
71201         * m4/regex.m4: Update the description of the configure-time option,
71202         --without-included-regex, to state accurately what the defaults are,
71203         and perhaps to give people an idea why using this option is risky.
71204
71205 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71206
71207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71208         loops on small arguments.  This attempts to avoid the problem
71209         Bruno Haible reported for AIX 4.3.2 in
71210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71211
71212 2007-02-23  Bruno Haible  <bruno@clisp.org>
71213
71214         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71215         Needed for help2man.
71216
71217 2007-02-23  Karl Berry  <karl@gnu.org>
71218
71219         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71220         exists, foo.h should be cvs-ignored, not committed.
71221
71222 2007-02-23  Eric Blake  <ebb9@byu.net>
71223
71224         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71225         * lib/stat-time.h (includes): Likewise.
71226         * lib/utimecmp.c (includes): Likewise.
71227         * lib/utimens.h (includes): Likewise.
71228         * lib/getdate.y (includes): Also include "timespec.h" for use
71229         internal to the module.
71230         * modules/utimens (Depends-on): Revert yesterday's patch.
71231         * modules/nanosleep (Depends-on): Add missing dependency.
71232
71233 2007-02-22  Bruno Haible  <bruno@clisp.org>
71234
71235         * lib/glob.c: Don't include getlogin_r.h.
71236
71237 2007-02-22  Jim Meyering  <jim@meyering.net>
71238
71239         * modules/utimens (Depends-on): Add timespec, required for
71240         utimens.h's inclusion of timespec.h.
71241
71242 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71245         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71246         Schwab in
71247         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71248         I'll try to think of a better way to fix the Solaris problem.
71249
71250         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71251         like glibc; on Solaris 10, it fails with errno == EINVAL.
71252         POSIX says the behavior is unspecified if the first argument is NULL,
71253         so play it safe and never pass NULL to the system getcwd.
71254
71255 2007-02-21  Jim Meyering  <jim@meyering.net>
71256
71257         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71258         of gettimeofday.  It would conflict with the one now always
71259         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71260         an IRIX 6.5 build failure.
71261
71262 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         Minor fixups to port to Solaris 10 with Sun C 5.8.
71265         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71266         * modules/getcwd (Depends-on): Add dirfd.
71267         * lib/putenv.c (putenv): #undef it.
71268         (rpl_putenv): New decl.
71269         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71270
71271 2007-02-20  Bruno Haible  <bruno@clisp.org>
71272
71273         * modules/stdio-tests: New file.
71274         * tests/test-stdio.c: New file.
71275
71276         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71277         (Depends-on): Add stdio.
71278         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71279         (Include): Use <stdio.h> instead of vsnprintf.h.
71280         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71281         HAVE_DECL_VSNPRINTF.
71282         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71283
71284         * modules/snprintf (Files): Remove lib/snprintf.h.
71285         (Depends-on): Add stdio.
71286         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71287         (Include): Use <stdio.h> instead of snprintf.h.
71288         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71289         HAVE_DECL_SNPRINTF.
71290         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71291         * lib/getaddrinfo.c: Likewise.
71292
71293         * modules/stdio: New file.
71294         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71295         * lib/snprintf.h: Remove file.
71296         * lib/vsnprintf.h: Remove file.
71297         * lib/.cppi-disable: Remove snprintf.h.
71298         * m4/stdio_h.m4: New file.
71299         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71300
71301 2007-02-20  Jim Meyering  <jim@meyering.net>
71302
71303         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71304         used by e.g., mingw.  From Bruno Haible.
71305
71306 2007-02-19  Bruno Haible  <bruno@clisp.org>
71307
71308         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71309         warnings.
71310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71311
71312 2007-02-19  Bruno Haible  <bruno@clisp.org>
71313
71314         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71315         from mingw users.
71316
71317 2007-02-19  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71320         warnings.
71321         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71322
71323 2007-02-19  Jim Meyering  <jim@meyering.net>
71324
71325         Don't use FD after a successful "fdopendir (fd)".
71326         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71327         Reset it by calling dirfd on the just-obtained DIR*.
71328
71329         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71330         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71331
71332 2007-02-18  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/readlink.c: Include <unistd.h>.
71335         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71336         HAVE_READLINK.
71337         * modules/readlink (Depends-on): Add unistd.
71338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71339         (Include): Add <unistd.h>.
71340
71341         * lib/getlogin_r.h: Remove file.
71342         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71343         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71344         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71345         HAVE_DECL_GETLOGIN_R.
71346         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71348         (Include): Use <unistd.h> instead of getlogin_r.h.
71349
71350         * lib/getcwd.h: Remove file.
71351         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71352         * lib/xgetcwd.c: Likewise.
71353         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71354         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71355         * modules/getcwd (Files): Remove lib/getcwd.h.
71356         (Depends-on): Add unistd.
71357         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71358         (Include): Use <unistd.h> instad of getcwd.h.
71359
71360         * lib/ftruncate.c: Include <unistd.h> first.
71361         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71362         Set HAVE_FTRUNCATE.
71363         * modules/ftruncate (Depends-on): Add unistd.
71364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71365
71366         * lib/fchdir.c: Include <unistd.h> first.
71367         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71369         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71370         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71371         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71372
71373         * lib/dup2.c: Include <unistd.h> first.
71374         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71375         HAVE_DUP2.
71376         * modules/dup2 (Depends-on): Add unistd.
71377         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71378
71379         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71380         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71381         REPLACE_CHOWN. Don't define chown as a macro here.
71382         * modules/chown (Depends-on): Add unistd.
71383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71384
71385         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71386         Add definition for GL_LINK_WARNING.
71387         (chown, dup2): New declarations.
71388         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71389         link warning.
71390         (ftruncate): New declaration.
71391         (getcwd): New declaration, taken from old getcwd.h.
71392         (getlogin_r): New declaration, taken from old getlogin_r.h.
71393         (readlink): New declaration.
71394         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71395         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71396         (gl_PREREQ_UNISTD): Remove macro.
71397         (gl_UNISTD_MODULE_INDICATOR): New macro.
71398         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71399         many new variables. Don't set UNISTD_H.
71400         * modules/unistd (Description): Change.
71401         (Depends-on): Add link-warning.
71402         (configure.ac): Update.
71403         (Makefile.am): Create unistd.h always. Substitute many new variables
71404         into it.
71405
71406 2007-02-18  Bruno Haible  <bruno@clisp.org>
71407
71408         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71409         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71410         HAVE_GETSUBOPT.
71411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71412         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71413         * lib/getsubopt.h: Remove file.
71414         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71415         (Depends-on): Add stdlib.
71416         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71417         (Includes): Use <stdlib.h> instead of getsubopt.h.
71418         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71419         Set HAVE_GETSUBOPT.
71420         * lib/getsubopt.c: Don't include getsubopt.h.
71421
71422 2007-02-18  Bruno Haible  <bruno@clisp.org>
71423
71424         * modules/fchdir (Depends-on): Add dup2.
71425
71426 2007-02-18  Bruno Haible  <bruno@clisp.org>
71427
71428         * lib/stdlib_.h: Handle glibc's special invocation convention
71429         specially.
71430
71431 2007-02-18  Bruno Haible  <bruno@clisp.org>
71432
71433         * modules/stdlib-tests: New file.
71434         * tests/test-stdlib.c: New file.
71435
71436         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71437         (Depends-on): Add stdlib.
71438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71439         (Includes): Use <stdlib.h> instead of mkstemp.h.
71440         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71441         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71442         * lib/mkstemp.c: Don't include mkstemp.h.
71443         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71444         * lib/stdlib--.h: Don't include mkstemp.h.
71445
71446         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71447         (Depends-on): Add stdlib.
71448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71449         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71450         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71451         HAVE_MKDTEMP.
71452         * lib/mkdtemp.c: Don't include mkdtemp.h.
71453         * lib/clean-temp.c: Don't include mkdtemp.h.
71454
71455         * modules/exit (Files): Remove lib/exit.h.
71456         (Depends-on): Add stdlib.
71457         (Makefile.am): Remove lib_SOURCES.
71458         (Include): Use <stdlib.h> instead of exit.h.
71459         * lib/argmatch.c: Don't include exit.h.
71460         * lib/execute.c: Likewise.
71461         * lib/pagealign_alloc.c: Likewise.
71462         * lib/pipe.c: Likewise.
71463         * lib/wait-process.c: Likewise.
71464         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71465         * lib/exitfail.c: Likewise.
71466         * lib/savewd.c: Likewise.
71467         * lib/xsetenv.c: Likewise.
71468
71469         * modules/stdlib: New file.
71470         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71471         and extra comments about mkstemp().
71472         * lib/exit.h: Remove file.
71473         * lib/mkdtemp.h: Remove file.
71474         * lib/mkstemp.h: Remove file.
71475         * m4/stdlib_h.m4: New file.
71476         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71477
71478 2007-02-18  Bruno Haible  <bruno@clisp.org>
71479
71480         * modules/math-tests: New file.
71481         * tests/test-math.c: New file.
71482
71483         * modules/math: New file.
71484         * modules/mathl (Files): Remove lib/mathl.h.
71485         (Depends-on): Add math.
71486         (Makefile.am): Don't mention mathl.h.
71487         (Include): Use <math.h> instead of mathl.h.
71488         * lib/math_.h: New file.
71489         * lib/mathl.h: Remove file.
71490         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71491         mathl.h.
71492         * lib/asinl.c: Likewise.
71493         * lib/atanl.c: Likewise.
71494         * lib/ceill.c: Likewise.
71495         * lib/cosl.c: Likewise.
71496         * lib/expl.c: Likewise.
71497         * lib/floorl.c: Likewise.
71498         * lib/frexpl.c: Likewise.
71499         * lib/ldexpl.c: Likewise.
71500         * lib/logl.c: Likewise.
71501         * lib/sincosl.c: Likewise.
71502         * lib/sinl.c: Likewise.
71503         * lib/sqrtl.c: Likewise.
71504         * lib/tanl.c: Likewise.
71505         * lib/trigl.c: Likewise.
71506         * m4/math_h.m4: New file.
71507         * MODULES.html.sh (Mathematics): Add math.
71508
71509 2007-02-17  Bruno Haible  <bruno@clisp.org>
71510
71511         * modules/wctype-tests: New file.
71512         * tests/test-wctype.c: New file.
71513
71514         * modules/wchar-tests: New file.
71515         * tests/test-wchar.c: New file.
71516
71517         * modules/unistd-tests: New file.
71518         * tests/test-unistd.c: New file.
71519
71520         * modules/time-tests: New file.
71521         * tests/test-time.c: New file.
71522
71523         * modules/sysexits-tests: New file.
71524         * tests/test-sysexits.c: New file.
71525
71526         * modules/sys_time-tests: New file.
71527         * tests/test-sys_time.c: New file.
71528
71529         * modules/sys_stat-tests: New file.
71530         * tests/test-sys_stat.c: New file.
71531
71532         * modules/sys_socket-tests: New file.
71533         * tests/test-sys_socket.c: New file.
71534
71535         * modules/sys_select-tests: New file.
71536         * tests/test-sys_select.c: New file.
71537
71538         * modules/string-tests: New file.
71539         * tests/test-string.c: New file.
71540
71541         * modules/stdbool-tests: New file.
71542         * tests/test-stdbool.c: New file.
71543
71544         * modules/netinet_in-tests: New file.
71545         * tests/test-netinet_in.c: New file.
71546
71547         * modules/inttypes-tests: New file.
71548         * tests/test-inttypes.c: New file.
71549
71550         * modules/fcntl-tests: New file.
71551         * tests/test-fcntl.c: New file.
71552
71553         * modules/byteswap-tests: New file.
71554         * tests/test-byteswap.c: New file.
71555
71556         * modules/arpa_inet-tests: New file.
71557         * tests/test-arpa_inet.c: New file.
71558
71559 2007-02-17  Bruno Haible  <bruno@clisp.org>
71560
71561         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71562         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71563         if the corresponding module is not enabled. Emit link warnings if
71564         the function is used nevertheless.
71565         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71566         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71567         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71568         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71569         * modules/inttypes (Depends-on): Add link-warning.
71570         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71571         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71572         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71573         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71574         * modules/imaxdiv (configure.ac): Likewise.
71575         * modules/strtoimax (configure.ac): Likewise.
71576         * modules/strtoumax (configure.ac): Likewise.
71577
71578 2007-02-17  Bruno Haible  <bruno@clisp.org>
71579
71580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71581         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71582         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71583         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71584
71585 2007-02-17  Bruno Haible  <bruno@clisp.org>
71586
71587         * modules/link-warning: New file.
71588         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71589         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71590         * modules/string (Depends-on): Add link-warning.
71591         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71592         string.h.
71593         * MODULES.html.sh (Support for building libraries and executables): Add
71594         link-warning.
71595
71596 2007-02-17  Bruno Haible  <bruno@clisp.org>
71597
71598         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71599         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71600         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71601         long lines.
71602
71603 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71604             Bruno Haible  <bruno@clisp.org>
71605
71606         * modules/tmpfile: New file.
71607         * lib/tmpfile.c: New file.
71608         * m4/tmpfile.m4: New file.
71609         * MODULES.html.sh (func_all_modules): New section "Input/output".
71610
71611 2007-02-15  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71614         (supports_delete_on_close): New function.
71615         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71616
71617 2007-02-14  Bruno Haible  <bruno@clisp.org>
71618
71619         * modules/mbspcasecmp-tests: New file.
71620         * tests/test-mbspcasecmp.sh: New file.
71621         * tests/test-mbspcasecmp.c: New file.
71622
71623         New module mbspcasecmp.
71624         * modules/mbspcasecmp: New file.
71625         * lib/mbspcasecmp.c: New file.
71626         * lib/string_.h (strncasecmp): Change warning message.
71627         (mbspcasecmp): New declaration.
71628         * m4/mbspcasecmp.m4: New file.
71629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71630         GNULIB_MBSPCASECMP.
71631         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71632         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71633
71634 2007-02-14  Bruno Haible  <bruno@clisp.org>
71635
71636         * modules/mbsncasecmp-tests: New file.
71637         * tests/test-mbsncasecmp.sh: New file.
71638         * tests/test-mbsncasecmp.c: New file.
71639
71640         New module mbsncasecmp.
71641         * modules/mbsncasecmp: New file.
71642         * lib/mbsncasecmp.c: New file.
71643         * lib/string_.h (mbsncasecmp): New declaration.
71644         * m4/mbsncasecmp.m4: New file.
71645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71646         GNULIB_MBSNCASECMP.
71647         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71648         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71649
71650 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71653         Verify that it doesn't overlap with our flags.
71654         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71655         do not have the desired effect in multibyte locales; instead, use
71656         mbscasecmp.
71657         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71658         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71659         we don't require GNU fnmatch ourselves (if our users require it, they
71660         should do so explicitly).
71661
71662         Fix regex code so it doesn't rely on strcasecmp.
71663         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71664         Otherwise, include gnulib's langinfo.h.
71665         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71666         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71667         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71668         * modules/regex (FILES): Remove m4/codeset.m4.
71669         (Depends-on): Add localcharset.  Remove strcase.
71670
71671 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71672
71673         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71674         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71675
71676 2007-02-13  Bruno Haible  <bruno@clisp.org>
71677
71678         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71679         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71680
71681 2007-02-12  Bruno Haible  <bruno@clisp.org>
71682
71683         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71684         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71685         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71686         time warning rather than a link error.
71687
71688 2007-02-12  Bruno Haible  <bruno@clisp.org>
71689
71690         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71691         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71693
71694 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71697         args, not 2.
71698
71699 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71700
71701         New module 'time', so that apps can include <time.h> as per
71702         POSIX and GNU instead of separate include files like time_r.h
71703         and timegm.h.  This implementation tries out a simpler approach
71704         for replacing decls in standard include files (as compared to
71705         the string module), somewhat as an experiment.
71706
71707         * config/srclist.txt: Comment out mktime.c for now.
71708         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71709         since it doesn't apply any more.  Use generic wording instead.
71710         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71711         'time'.
71712         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71713         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71714         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71715         Don't include <sys/types.h>; no longer needed since we assume C89.
71716         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71717         * lib/strftime.c: Likewise.
71718         * lib/time_r.c: Likewise.
71719         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71720         * lib/nanosleep.c: Include <time.h> first, to check interface.
71721         * lib/strptime.c: Likewise.
71722         * lib/time_r.c: Likewise.
71723         * lib/timegm.c: Likewise.
71724         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71725         needed.
71726         * lib/timegm.c: Don't include timegm.h; no longer needed.
71727         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71728         time.h now handles any problems in that area.
71729         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71730         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71731         that time.h defines struct timespec.
71732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71733         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71734         handles that.
71735         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71736         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71737         needed.  Set REPLACE_LOCALTIME.
71738         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71739         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71740         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71741         nanosleep; time_h.m4 now does that.  Don't require
71742         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71743         module handles this now.
71744         * modules/getdate (Depends-on): Remove timespec.  Add time.
71745         * modules/nanosleep (Depends-on): Likewise.
71746         * modules/stat-time (Depends-on): Likewise.
71747         * modules/nanosleep (Include): Include time.h, not timespec.h.
71748         * modules/strptime (Files): Remove lib/strptime.h.
71749         (Depends-on): Add extensions, time.
71750         (Include): Include time.h, not strptime.h.
71751         * modules/time_r (Files): Remove lib/time_r.h.
71752         (Depends-on): Add time.
71753         (Include): Include time.h, not time_r.h.
71754         * modules/timegm: Likewise.
71755         * modules/timespec (Description): Now does timespec-related decls
71756         of our own, instead of struct timespec itself.
71757         (Depends-on): Add time; remove extensions.
71758         (Maintainer): Add self.
71759         * modules/utimecmp (Depends-on): Add time; remove timespec.
71760         * modules/utimens (Depends-on): Likewise.
71761         * modules/xnanosleep (Depends-on): Likewise.
71762
71763 2007-02-11  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/c-strstr.c: Include allocsa.h.
71766         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71767         * lib/c-strcasestr.c: Include allocsa.h.
71768         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71769         * lib/strcasestr.c: Include allocsa.h.
71770         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71771         * lib/mbsstr.c: Include allocsa.h.
71772         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71773         allocsa/freesa instead of malloc/free.
71774         * lib/mbscasestr.c: Include allocsa.h.
71775         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71776         allocsa/freesa instead of malloc/free.
71777         * modules/c-strstr (Depends-on): Add allocsa.
71778         * modules/c-strcasestr (Depends-on): Likewise.
71779         * modules/strcasestr (Depends-on): Likewise.
71780         * modules/mbsstr (Depends-on): Likewise.
71781         * modules/mbscasestr (Depends-on): Likewise.
71782
71783 2007-02-11  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71786
71787         * modules/mbsspn-tests: New file.
71788         * tests/test-mbsspn.sh: New file.
71789         * tests/test-mbsspn.c: New file.
71790
71791 2007-02-11  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71794
71795         * modules/mbspbrk-tests: New file.
71796         * tests/test-mbspbrk.sh: New file.
71797         * tests/test-mbspbrk.c: New file.
71798
71799 2007-02-11  Bruno Haible  <bruno@clisp.org>
71800
71801         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71802         unneeded cast.
71803
71804         * modules/mbscspn-tests: New file.
71805         * tests/test-mbscspn.sh: New file.
71806         * tests/test-mbscspn.c: New file.
71807
71808 2007-02-11  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/mbscasecmp-tests: New file.
71811         * tests/test-mbscasecmp.sh: New file.
71812         * tests/test-mbscasecmp.c: New file.
71813
71814 2007-02-11  Bruno Haible  <bruno@clisp.org>
71815
71816         Ensure O(n) worst-case complexity of mbscasestr.
71817         * lib/mbscasestr.c: Include stdbool.h.
71818         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71819         functions.
71820         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71821         the bookkeeping indicates that it's worth it.
71822         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71823
71824         * modules/mbscasestr-tests: New file.
71825         * tests/test-mbscasestr1.c: New file.
71826         * tests/test-mbscasestr2.sh: New file.
71827         * tests/test-mbscasestr2.c: New file.
71828         * tests/test-mbscasestr3.sh: New file.
71829         * tests/test-mbscasestr3.c: New file.
71830         * tests/test-mbscasestr4.sh: New file.
71831         * tests/test-mbscasestr4.c: New file.
71832         * m4/locale-tr.m4: New file.
71833
71834 2007-02-11  Bruno Haible  <bruno@clisp.org>
71835
71836         Ensure O(n) worst-case complexity of mbsstr.
71837         * lib/mbsstr.c: Include stdbool.h.
71838         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71839         functions.
71840         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71841         bookkeeping indicates that it's worth it.
71842         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71843
71844         * modules/mbsstr-tests: New file.
71845         * tests/test-mbsstr1.c: New file.
71846         * tests/test-mbsstr2.sh: New file.
71847         * tests/test-mbsstr2.c: New file.
71848         * tests/test-mbsstr3.sh: New file.
71849         * tests/test-mbsstr3.c: New file.
71850         * m4/locale-fr.m4: New file.
71851
71852 2007-02-11  Bruno Haible  <bruno@clisp.org>
71853
71854         * lib/mbsrchr.c (mbsrchr): Fix bug.
71855
71856         * modules/mbsrchr-tests: New file.
71857         * tests/test-mbsrchr.sh: New file.
71858         * tests/test-mbsrchr.c: New file.
71859
71860 2007-02-11  Bruno Haible  <bruno@clisp.org>
71861
71862         * lib/mbschr.c (mbschr): Fix bug.
71863
71864         * modules/mbschr-tests: New file.
71865         * tests/test-mbschr.sh: New file.
71866         * tests/test-mbschr.c: New file.
71867         * m4/locale-zh.m4: New file.
71868
71869 2007-02-11  Bruno Haible  <bruno@clisp.org>
71870
71871         Support for copying multibyte string iterators.
71872         * lib/mbiter.h: Include <string.h>.
71873         (mbiter_multi_copy): New function.
71874         (mbi_copy): New macro.
71875         * lib/mbuiter.h: Include <string.h>.
71876         (mbuiter_multi_copy): New function.
71877         (mbui_copy): New macro.
71878
71879 2007-02-11  Bruno Haible  <bruno@clisp.org>
71880
71881         New module mbslen.
71882         * modules/mbslen: New file.
71883         * lib/mbslen.c: New file.
71884         * lib/string_.h (mbslen): New declaration.
71885         * m4/mbslen.m4: New file.
71886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71887         GNULIB_MBSLEN.
71888         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71889         * MODULES.html.sh (Internationalization functions): Add mbslen.
71890
71891 2007-02-11  Bruno Haible  <bruno@clisp.org>
71892
71893         Ensure O(n) worst-case complexity of strcasestr substitute.
71894         * lib/strcasestr.c: Include stdbool.h.
71895         (knuth_morris_pratt): New function.
71896         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71897         bookkeeping indicates that it's worth it.
71898         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71899
71900         * modules/strcasestr-tests: New file.
71901         * tests/test-strcasestr.c: New file.
71902
71903 2007-02-11  Bruno Haible  <bruno@clisp.org>
71904
71905         Ensure O(n) worst-case complexity of c_strcasestr.
71906         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71907         (knuth_morris_pratt): New function.
71908         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71909         the bookkeeping indicates that it's worth it.
71910         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71911
71912         * modules/c-strcasestr-tests: New file.
71913         * tests/test-c-strcasestr.c: New file.
71914
71915 2007-02-11  Bruno Haible  <bruno@clisp.org>
71916
71917         Ensure O(n) worst-case complexity of c_strstr.
71918         * lib/c-strstr.c: Include stdbool.h, string.h.
71919         (knuth_morris_pratt): New function.
71920         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71921         bookkeeping indicates that it's worth it.
71922         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71923
71924         * lib/c-strstr.c: Complete rewrite for maintainability.
71925
71926         * modules/c-strstr-tests: New file.
71927         * tests/test-c-strstr.c: New file.
71928
71929 2007-02-11  Bruno Haible  <bruno@clisp.org>
71930
71931         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71932         5.2.1 and earlier, whereby \055 was treated just like the range
71933         delimiter '-'.
71934         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71935
71936 2007-02-08  Bruno Haible  <bruno@clisp.org>
71937
71938         * modules/regex (Depends-on): Add stdbool.
71939         Reported by Dalibor Topic <robilad@kaffe.org>.
71940
71941 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71944         Prefer returning from main to exiting from it.
71945         Remove unnecessary parens after sizeof.
71946
71947 2007-02-05  Bruno Haible  <bruno@clisp.org>
71948
71949         New module mbssep.
71950         * modules/mbssep: New file.
71951         * lib/mbssep.c: New file.
71952         * lib/string_.h (strsep): Add a conditional link warning.
71953         (mbssep): New declaration.
71954         * m4/mbssep.m4: New file.
71955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71956         GNULIB_MBSSEP.
71957         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71958         * MODULES.html.sh (Internationalization functions): Add mbssep.
71959
71960 2007-02-05  Bruno Haible  <bruno@clisp.org>
71961
71962         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71963         Optimize search in case of 1 delimiter.
71964
71965 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71966
71967         * lib/acl.h: Include sys/types.h before sys/acl.h.
71968
71969 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71970
71971         Merge upstream fix for glibc bugzilla #3957:
71972
71973         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71974
71975         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71976         bit for RE_HAT_LISTS_NOT_NEWLINE.
71977         (build_charclass_op): Remove bogus comment.
71978
71979 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71980
71981         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71982
71983 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71986         * lib/memmem.c [!defined _LIBC]: Include config.h.
71987
71988 2007-02-04  Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71991         warning message.
71992
71993 2007-02-04  Bruno Haible  <bruno@clisp.org>
71994
71995         New module mbstok_r.
71996         * modules/mbstok_r: New file.
71997         * lib/mbstok_r.c: New file.
71998         * lib/string_.h (strtok_r): Change argument names to match the
71999         comments. Add a conditional link warning.
72000         (mbstok_r): New declaration.
72001         * m4/mbstok_r.m4: New file.
72002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72003         GNULIB_MBSTOK_R.
72004         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72005         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72006
72007 2007-02-04  Bruno Haible  <bruno@clisp.org>
72008
72009         New module mbsspn.
72010         * modules/mbsspn: New file.
72011         * lib/mbsspn.c: New file.
72012         * lib/string_.h (strspn): Add a conditional link warning.
72013         (mbsspn): New declaration.
72014         * m4/mbsspn.m4: New file.
72015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72016         GNULIB_MBSSPN.
72017         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72018         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72019
72020 2007-02-04  Bruno Haible  <bruno@clisp.org>
72021
72022         New module mbspbrk.
72023         * modules/mbspbrk: New file.
72024         * lib/mbspbrk.c: New file.
72025         * lib/string_.h (strpbrk): Add a conditional link warning.
72026         (mbspbrk): New declaration.
72027         * m4/mbspbrk.m4: New file.
72028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72029         GNULIB_MBSPBRK.
72030         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72031         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72032
72033 2007-02-04  Bruno Haible  <bruno@clisp.org>
72034
72035         New module mbscspn.
72036         * modules/mbscspn: New file.
72037         * lib/mbscspn.c: New file.
72038         * lib/string_.h (strcspn): Add a conditional link warning.
72039         (mbscspn): New declaration.
72040         * m4/mbscspn.m4: New file.
72041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72042         GNULIB_MBSCSPN.
72043         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72044         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72045
72046 2007-02-04  Bruno Haible  <bruno@clisp.org>
72047
72048         New module mbscasestr, reduced goal of strcasestr.
72049         * modules/mbscasestr: New file.
72050         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72051         (mbscasestr): Renamed from strcasestr.
72052         * lib/strcasestr.c: Don't include mbuiter.h.
72053         (strcasestr): Remove support for multibyte locales.
72054         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72055         Change the conditional link warning.
72056         (mbscasestr): New declaration.
72057         * m4/mbscasestr.m4: New file.
72058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72059         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72060         REPLACE_STRCASESTR.
72061         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72063         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72065         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72066         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72067         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72068         (Depends-on): Remove mbuiter.
72069         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72070
72071 2007-02-04  Bruno Haible  <bruno@clisp.org>
72072
72073         Simplify handling of strncasecmp.
72074         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72075         the conditional link warning.
72076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72077         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72078         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72079         * modules/strcase (configure.ac): Don't invoke
72080         gl_STRING_MODULE_INDICATOR.
72081         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72082
72083 2007-02-04  Bruno Haible  <bruno@clisp.org>
72084
72085         New module mbscasecmp, reduced goal of strcasecmp.
72086         * modules/mbscasecmp: New file.
72087         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72088         (mbscasecmp): Renamed from strcasecmp.
72089         * lib/strcasecmp.c: Don't include mbuiter.h.
72090         (strcasecmp): Remove support for multibyte locales.
72091         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72092         Change the conditional link warning.
72093         (mbscasecmp): New declaration.
72094         * m4/mbscasecmp.m4: New file.
72095         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72096         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72097         REPLACE_STRCASECMP.
72098         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72100         GNULIB_MBSCASECMP.
72101         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72102         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72103         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72104         (Depends-on): Remove mbuiter.
72105         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72106
72107 2007-02-04  Bruno Haible  <bruno@clisp.org>
72108
72109         New module mbsstr. Remove module strstr.
72110         * modules/mbsstr: New file.
72111         * modules/strstr: Remove file.
72112         * lib/mbsstr.c: Renamed from lib/strstr.c.
72113         (mbsstr): Renamed from strstr.
72114         * lib/string_.h (strstr): Remove declaration. Change the conditional
72115         link warning.
72116         (mbsstr): New declaration.
72117         * m4/mbsstr.m4: New file.
72118         * m4/strstr.m4: Remove file.
72119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72120         REPLACE_STRSTR.
72121         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72122         Don't initialize GNULIB_STRSTR.
72123         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72124         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72125         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72126         (Support for systems lacking ANSI C 89): Remove strstr.
72127
72128 2007-02-04  Bruno Haible  <bruno@clisp.org>
72129
72130         New module mbsrchr.
72131         * modules/mbsrchr: New file.
72132         * lib/mbsrchr.c: New file.
72133         * lib/string_.h (strrchr): Add a conditional link warning.
72134         (mbsrchr): New declaration.
72135         * m4/mbsrchr.m4: New file.
72136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72137         GNULIB_MBSRCHR.
72138         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72139         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72140
72141 2007-02-04  Bruno Haible  <bruno@clisp.org>
72142
72143         New module mbschr.
72144         * modules/mbschr: New file.
72145         * lib/mbschr.c: New file.
72146         * lib/string_.h (strchr): Add a conditional link warning.
72147         (mbschr): New declaration.
72148         * m4/mbschr.m4: New file.
72149         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72150         GNULIB_MBSCHR.
72151         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72152         * MODULES.html.sh (Internationalization functions): Add mbschr.
72153
72154 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72157
72158         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72159
72160 2007-02-04  Bruno Haible  <bruno@clisp.org>
72161
72162         New module description section 'configure.ac-early'.
72163         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72164         (func_get_autoconf_early_snippet): New function.
72165         (func_import, func_create_testdir): Use it. Remove special cases for
72166         modules 'extensions' and 'lock'.
72167         * modules/extensions (configure.ac-early): Require
72168         gl_USE_SYSTEM_EXTENSIONS.
72169         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72170
72171 2007-02-04  Bruno Haible  <bruno@clisp.org>
72172
72173         Make use of gcj-4.3's -fsource and -ftarget option.
72174         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72175         and if so try the options -fsource and -ftarget.
72176         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72177         source_version, ftarget_option, target_version arguments.
72178         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72179         (is_envjavac_oldgcj_14_14_usable): Renamed from
72180         is_envjavac_gcj_14_14_usable.
72181         (is_envjavac_oldgcj_14_13_usable): Renamed from
72182         is_envjavac_gcj_14_13_usable.
72183         (is_gcj_present): Update.
72184         (is_gcj_43, is_gcj43_usable): New functions.
72185         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72186         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72187         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72188         try the options -fsource and -ftarget.
72189
72190 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72193         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72194         larger value.
72195
72196 2007-02-03  Jim Meyering  <jim@meyering.net>
72197
72198         Give tools a better chance to allocate space for very large buffers.
72199         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72200
72201         Make pwd and readlink work also when run with an unreadable parent dir
72202         on systems with openat support.
72203         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72204         provided getcwd function, even when we have openat support.
72205         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72206
72207 2007-02-02  Bruno Haible  <bruno@clisp.org>
72208
72209         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72210         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72211         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72212         portability problems if one of these functions is only used on specific
72213         platforms.
72214         Reported by Paul Eggert.
72215
72216 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72219         is causing more trouble than it's curing.
72220         * lib/regex_internal.h (__mempcpy): Remove.
72221         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72222         (and make the code a tad smaller to boot).
72223         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72224
72225 2007-02-02  Jim Meyering  <jim@meyering.net>
72226
72227         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72228         section, not in the Makefile.am: one.
72229
72230 2007-02-02  Eric Blake  <ebb9@byu.net>
72231
72232         * lib/strchrnul.c: Always include config.h first.
72233
72234         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72235         gnulib strstr is not necessary here.
72236
72237 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72238
72239         * m4/socklen.m4: Fix typo.
72240
72241 2007-02-02  Eric Blake  <ebb9@byu.net>
72242
72243         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72244         * modules/netinet_in (Makefile.am): Likewise.
72245
72246 2007-02-01  Bruno Haible  <bruno@clisp.org>
72247
72248         * lib/string_.h (GL_LINK_WARNING): New macro.
72249         (strcasecmp, strstr, strcasestr): If provided by the system,
72250         conditionally define as a macro that leads to a warning instead of to
72251         an error.
72252         (strncasecmp): Conditionally define as a macro that leads to a warning.
72253
72254 2007-02-01  Karl Berry  <karl@gnu.org>
72255
72256         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72257
72258 2007-02-01  Bruno Haible  <bruno@clisp.org>
72259
72260         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72261         renamings.
72262
72263 2007-02-01  Eric Blake  <ebb9@byu.net>
72264
72265         * modules/regex (Depends-on): Revert dependence on mempcpy.
72266         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72267         module's definition of mempcpy.
72268         Reported by Paul Eggert.
72269
72270 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72273         the symbol XYZ before redefining it.  This fixes a problem with
72274         programs that don't use XYZ, when compiled on systems that define
72275         XYZ to something else.
72276
72277 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72280         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72281         writeable to group or other and (2) is intended to have a special
72282         mode bit that is set or cleared.  In such a case, the directory
72283         should be neither group- nor other-writeable until the special
72284         mode bits are right.
72285
72286 2007-01-31  Eric Blake  <ebb9@byu.net>
72287
72288         * modules/mountlist (Depends-on): Add strstr.
72289
72290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72291         bug.
72292         * modules/string (Makefile.am): Remove redundant replacement.
72293         * modules/regex (Depends-on): Add mempcpy.
72294
72295 2007-01-31  Bruno Haible  <bruno@clisp.org>
72296
72297         New module description field 'Link'.
72298         * gnulib-tool (func_usage): Document --extract-link-directive.
72299         (sed_extract_prog): Recognize 'Link' directive.
72300         (func_get_link_directive): New function.
72301         (func_import): Show summary of link directives.
72302         Handle --extract-link-directive option.
72303         * modules/acl (Link): New section.
72304         * modules/clock-time (Link): New section.
72305         * modules/euidaccess (Link): New section.
72306         * modules/gettext (Link): New section.
72307         * modules/iconv (Link): New section.
72308         * modules/lock (Link): New section.
72309         * modules/nanosleep (Link): New section.
72310         * modules/readline (Link): New section.
72311
72312 2007-01-27  Bruno Haible  <bruno@clisp.org>
72313
72314         Enforce the use of gnulib modules for unportable <string.h> functions.
72315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72316         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72317         (gl_HEADER_STRING_H_BODY): Require it.
72318         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72319         the symbol XYZ to one that gives a link error.
72320         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72321         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72322         * modules/mempcpy (configure.ac): Likewise.
72323         * modules/memrchr (configure.ac): Likewise.
72324         * modules/stpcpy (configure.ac): Likewise.
72325         * modules/stpncpy (configure.ac): Likewise.
72326         * modules/strcase (configure.ac): Likewise.
72327         * modules/strcasestr (configure.ac): Likewise.
72328         * modules/strchrnul (configure.ac): Likewise.
72329         * modules/strdup (configure.ac): Likewise.
72330         * modules/strndup (configure.ac): Likewise.
72331         * modules/strnlen (configure.ac): Likewise.
72332         * modules/strpbrk (configure.ac): Likewise.
72333         * modules/strsep (configure.ac): Likewise.
72334         * modules/strstr (configure.ac): Likewise.
72335         * modules/strtok_r (configure.ac): Likewise.
72336
72337 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72338
72339         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72340
72341 2007-01-30  Jim Meyering  <jim@meyering.net>
72342
72343         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72344
72345 2007-01-29  Bruno Haible  <bruno@clisp.org>
72346
72347         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72348         * lib/execute.c: Likewise.
72349         * lib/pipe.c: Likewise.
72350         * lib/printf-args.h: Likewise.
72351         * lib/printf-args.c: Likewise.
72352         * lib/printf-parse.c: Likewise.
72353         * lib/vasnprintf.c: Likewise.
72354
72355 2007-01-29  Eric Blake  <ebb9@byu.net>
72356
72357         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72358         declaration.
72359
72360 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72361
72362         * lib/strptime.h (strptime): Use 'restrict' for args where
72363         POSIX requires this.
72364         * lib/strptime.c (strptime): Likewise.
72365         Change license notice from LGPL to GPL, since gnulib-tool will
72366         change this as needed.
72367         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72368         defined.
72369         Include "strptime.h" first, to check interface.
72370         Do not #undef _LIBC and _NL_CURRENT.
72371         Do not include <stdlib.h>; no longer needed.
72372         Include "time_r.h" and declare ptime_locale_status
72373         only if _LIBC is not defined.
72374         (__P): Remove unused macro.
72375         (match_string): Bring back glibc version, but use it only if _LIBC
72376         is defined.
72377         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72378         Remove unnecessary assertion and abort() call.
72379         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72380         * m4/strptime.m4: Fix serial number comment.
72381         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72382         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72383         (Depends-on): Add time_r.
72384
72385 2007-01-29  Bruno Haible  <bruno@clisp.org>
72386
72387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72388         strptime.
72389         * modules/strptime (Depends-on): Add stdbool.
72390         * lib/strptime.h: Include <time.h> always. Add comments.
72391
72392 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72393
72394         * modules/strptime: New file.
72395         * lib/strptime.h: New file.
72396         * lib/strptime.c: New file.
72397         * m4/strptime.m4: New file.
72398
72399 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * MODULES.html.sh: New module mpsort.
72402         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72403
72404         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72405         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72406         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72407         All uses changed.
72408         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72409         All uses changed.
72410         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72411         to _Restrict_.
72412         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72413         the parameter matches the prototype.
72414
72415 2007-01-28  Jim Meyering  <jim@meyering.net>
72416
72417         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72418         sys/time.h here, reverting that part of the previous patch:
72419         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72420
72421 2007-01-28  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72424         value of $(SYS_TIME_H).
72425         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72426         remove it conditionally, too. [added by Jim Meyering]
72427         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72428         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72429         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72430         GETTIMEOFDAY_REPLACEMENT to 1.
72431
72432 2007-01-28  Bruno Haible  <bruno@clisp.org>
72433
72434         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72435         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72437         Set UNISTD_H instead of UNISTD_H2.
72438         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72439
72440 2007-01-28  Bruno Haible  <bruno@clisp.org>
72441
72442         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72443         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72444
72445 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72446
72447         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72448         (func_create_testdir): Ensure C locale for `grep' and `tr'
72449         character ranges.
72450         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72451         ACLOCAL_AMFLAGS parsing state machine.
72452
72453 2007-01-27  Bruno Haible  <bruno@clisp.org>
72454
72455         * modules/unistr/base: Update.
72456
72457 2007-01-27  Bruno Haible  <bruno@clisp.org>
72458
72459         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72460         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72461         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72462         modules/unistr/u32-mbtouc.
72463         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72464         * lib/unistr.h: Update.
72465         * lib/linebreak.c: Update.
72466         * modules/unistr/u32-mbtouc: Renamed from
72467         modules/unistr/u32-mbtouc-safe.
72468         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72469         * lib/unistr.h: Update.
72470         * lib/unistr/u32-to-u8.c: Update.
72471         * lib/unistr/u32-to-u16.c: Update.
72472
72473 2007-01-27  Bruno Haible  <bruno@clisp.org>
72474
72475         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72476         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72477         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72478         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72479         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72480         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72481         modules/unistr/u16-mbtouc.
72482         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72483         * lib/unistr.h: Update.
72484         * lib/linebreak.c: Update.
72485         * modules/linebreak: Update.
72486         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72487         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72488         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72489         * modules/unistr/u16-mbtouc: Renamed from
72490         modules/unistr/u16-mbtouc-safe.
72491         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72492         * lib/unistr.h: Update.
72493         * lib/unistr/u16-to-u8.c: Update.
72494         * modules/unistr/u16-to-u8: Update.
72495         * lib/unistr/u16-to-u32.c: Update.
72496         * modules/unistr/u16-to-u32: Update.
72497
72498 2007-01-27  Bruno Haible  <bruno@clisp.org>
72499
72500         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72501         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72502         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72503         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72504         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72505         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72506         modules/unistr/u8-mbtouc.
72507         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72508         * lib/unistr.h: Update.
72509         * lib/striconveh.c: Update.
72510         * modules/striconveh: Update.
72511         * lib/linebreak.c: Update.
72512         * modules/linebreak: Update.
72513         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72514         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72515         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72516         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72517         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72518         * lib/unistr.h: Update.
72519         * lib/striconveh.c: Update.
72520         * modules/striconveh: Update.
72521         * lib/unistr/u8-to-u16.c: Update.
72522         * modules/unistr/u8-to-u16: Update.
72523         * lib/unistr/u8-to-u32.c: Update.
72524         * modules/unistr/u8-to-u32: Update.
72525
72526 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72527
72528         Sync from Libtool.
72529         * lib/argz.c: Do not include strings.h nor memory.h, include
72530         string.h unconditionally.  Patch by Simon Josefsson.
72531
72532 2007-01-27  Bruno Haible  <bruno@clisp.org>
72533
72534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72535         from gl_HEADER_STRING_H_BODY.
72536         (gl_HEADER_STRING_H_BODY): Require it.
72537         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72538         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72539         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72540         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72541         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72542         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72544         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72545         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72546         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72547         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72548         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72549         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72550         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72551         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72552
72553 2007-01-27  Bruno Haible  <bruno@clisp.org>
72554
72555         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72556         check_PROGRAMS into noinst_PROGRAMS.
72557         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72558         check_PROGRAMS in this case.
72559         (func_import): Set for_test to false.
72560         (func_create_testdir): Set for_test to true.
72561
72562 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72563             Bruno Haible  <bruno@clisp.org>
72564
72565         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72566         (Depends-on): Add string.
72567         (Includes): Use <string.h> instead of strcasestr.h.
72568         * modules/string (Makefile.am): Also substitute the value of
72569         REPLACE_STRCASESTR.
72570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72571         assume strcasestr is declared in <string.h> not <strings.h>. Also
72572         set REPLACE_STRCASESTR.
72573         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72574         REPLACE_STRCASESTR.
72575         * lib/strcasestr.h: Remove file.
72576         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72577         * lib/string_.h (strcasestr): New declaration.
72578
72579 2007-01-27  Bruno Haible  <bruno@clisp.org>
72580
72581         * lib/string_.h: Use 'extern'.
72582
72583 2007-01-27  Jim Meyering  <jim@meyering.net>
72584
72585         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72586         of set-but-not-used local, "q".
72587
72588         * lib/mempcpy.c: Include <config.h> before <string.h>.
72589         This fixes a compilation error on HP-UX, due to the system's
72590         "restrict"-using mempcpy prototype.
72591
72592 2007-01-26  Bruno Haible  <bruno@clisp.org>
72593
72594         Small optimization.
72595         * lib/javacomp.c: Include c-strstr.h.
72596          (is_envjavac_gcj): Use c_strstr instead of strstr.
72597         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72598
72599 2007-01-26  Bruno Haible  <bruno@clisp.org>
72600
72601         * MODULES.html.sh (Unicode string functions): Add the new modules.
72602
72603         * modules/uniconv/u32-strconv-to-locale: New file.
72604         * lib/uniconv/u32-strconv-to-locale.c: New file.
72605
72606         * modules/uniconv/u16-strconv-to-locale: New file.
72607         * lib/uniconv/u16-strconv-to-locale.c: New file.
72608
72609         * modules/uniconv/u8-strconv-to-locale: New file.
72610         * lib/uniconv/u8-strconv-to-locale.c: New file.
72611
72612         * modules/uniconv/u32-strconv-from-locale: New file.
72613         * lib/uniconv/u32-strconv-from-locale.c: New file.
72614
72615         * modules/uniconv/u16-strconv-from-locale: New file.
72616         * lib/uniconv/u16-strconv-from-locale.c: New file.
72617
72618         * modules/uniconv/u8-strconv-from-locale: New file.
72619         * lib/uniconv/u8-strconv-from-locale.c: New file.
72620
72621         * modules/uniconv/u32-strconv-to-enc: New file.
72622         * lib/uniconv/u32-strconv-to-enc.c: New file.
72623         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72624         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72625
72626         * modules/uniconv/u16-strconv-to-enc: New file.
72627         * lib/uniconv/u16-strconv-to-enc.c: New file.
72628         * lib/uniconv/u-strconv-to-enc.h: New file.
72629         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72630         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72631
72632         * modules/uniconv/u8-strconv-to-enc: New file.
72633         * lib/uniconv/u8-strconv-to-enc.c: New file.
72634         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72635         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72636
72637         * modules/uniconv/u32-strconv-from-enc: New file.
72638         * lib/uniconv/u32-strconv-from-enc.c: New file.
72639         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72640         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72641
72642         * modules/uniconv/u16-strconv-from-enc: New file.
72643         * lib/uniconv/u16-strconv-from-enc.c: New file.
72644         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72645         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72646
72647         * modules/uniconv/u8-strconv-from-enc: New file.
72648         * lib/uniconv/u8-strconv-from-enc.c: New file.
72649         * lib/uniconv/u-strconv-from-enc.h: New file.
72650         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72651         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72652
72653         * modules/uniconv/u32-conv-from-enc: New file.
72654         * lib/uniconv/u32-conv-from-enc.c: New file.
72655         * modules/uniconv/u32-conv-from-enc-tests: New file.
72656         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72657
72658         * modules/uniconv/u16-conv-from-enc: New file.
72659         * lib/uniconv/u16-conv-from-enc.c: New file.
72660         * lib/uniconv/u-conv-from-enc.h: New file.
72661         * modules/uniconv/u16-conv-from-enc-tests: New file.
72662         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72663
72664         * modules/uniconv/u8-conv-from-enc: New file.
72665         * lib/uniconv/u8-conv-from-enc.c: New file.
72666         * modules/uniconv/u8-conv-from-enc-tests: New file.
72667         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72668
72669         * modules/uniconv/base: New file.
72670         * lib/uniconv.h: New file.
72671
72672 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * doc/gnulib-tool.texi (Initial import): Update to match current
72675         behavior with strdup module.
72676         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72677         * lib/memmem.h: Remove; all uses removed.  This is now done
72678         by <string.h>.
72679         * lib/mempcpy.h: Likewise.
72680         * lib/memrchr.h: Likewise.
72681         * lib/stpcpy.h: Likewise.
72682         * lib/stpncpy.h: Likewise.
72683         * lib/strcase.h: Likewise.
72684         * lib/strchrnul.h: Likewise.
72685         * lib/strdup.h: Likewise.
72686         * lib/strndup.h: Likewise.
72687         * lib/strnlen.h: Likewise.
72688         * lib/strpbrk.h: Likewise.
72689         * lib/strsep.h: Likewise.
72690         * lib/strstr.h: Likewise.
72691         * lib/strtok_r.h: Likewise.
72692         * lib/string_.h: New file.
72693         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72694         Rely on <string.h> instead.
72695         * lib/canon-host.c: Likewise.
72696         * lib/chdir-long.c: Likewise.
72697         * lib/concatpath.c: Likewise.
72698         * lib/exclude.c: Likewise.
72699         * lib/fchdir.c: Likewise.
72700         * lib/getaddrinfo.c: Likewise.
72701         * lib/getcwd.c: Likewise.
72702         * lib/getsubopt.c: Likewise.
72703         * lib/glob.c: Likewise.
72704         * lib/hard-locale.c: Likewise.
72705         * lib/iconvme.c: Likewise.
72706         * lib/javacomp.c: Likewise.
72707         * lib/mempcpy.c: Likewise.
72708         * lib/memrchr.c: Likewise.
72709         * lib/regex_internal.h: Likewise.
72710         * lib/stpncpy.c: Likewise.
72711         * lib/strcasecmp.c: Likewise.
72712         * lib/strchrnul.c: Likewise.
72713         * lib/strdup.c: Likewise.
72714         * lib/striconv.c: Likewise.
72715         * lib/striconveh.c: Likewise.
72716         * lib/striconveha.c: Likewise.
72717         * lib/strncasecmp.c: Likewise.
72718         * lib/strndup.c: Likewise.
72719         * lib/strnlen.c: Likewise.
72720         * lib/strsep.c: Likewise.
72721         * lib/strstr.c: Likewise.
72722         * lib/strtok_r.c: Likewise.
72723         * lib/userspec.c: Likewise.
72724         * lib/w32spawn.h: Likewise.
72725         * lib/xstrndup.c: Likewise.
72726         * lib/mountlist.c (strstr): Remove decl.
72727         * m4/string_h.m4: New file.
72728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72729         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72730         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72731         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72732         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72733         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72734         Set REPLACE_STRCASECMP if necessary.
72735         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72736         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72737         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72738         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72739         HAVE_DECL_STRDUP if necessary.
72740         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72741         since gl_FUNC_STRNDUP does that now.
72742         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72743         Check for decl here...
72744         (gl_PREREQ_STRNLEN): ... not here.
72745         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72746         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72747         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72748         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72749         necessary.
72750         * modules/string: New file.
72751         * modules/memmem (Files): Remove special-purpose include file.
72752         (Depends-on): Add string.
72753         (Include): Include <string.h>, not the removed file.
72754         * modules/mempcpy: Likewise.
72755         * modules/memrchr: Likewise.
72756         * modules/stpcpy: Likewise.
72757         * modules/stpncpy: Likewise.
72758         * modules/strcase: Likewise.
72759         * modules/strchrnul: Likewise.
72760         * modules/strdup: Likewise.
72761         * modules/strndup: Likewise.
72762         * modules/strnlen: Likewise.
72763         * modules/strpbrk: Likewise.
72764         * modules/strsep: Likewise.
72765         * modules/strstr: Likewise.
72766         * modules/strtok_r: Likewise.
72767         * tests/test-dirname.c: Don't include "strdup.h", since
72768         <string.h> now suffices.
72769         * tests/test-memmem.c: Don't include "memmem.h", since
72770         <string.h> now suffices.
72771
72772 2007-01-25  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72775         *resultp is 0.
72776
72777         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72778         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72779         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72780         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72781
72782         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72783         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72784         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72785         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72786         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72787         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72788
72789 2007-01-24  Bruno Haible  <bruno@clisp.org>
72790
72791         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72792         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72793         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72794         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72795         gl_FUNC_FTS_CORE.
72796         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72797         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72798         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72799         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72800         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72801         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72802         gl_FUNC_FCHOWNAT.
72803         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72804         gl_FUNC_STRFTIME.
72805         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72806         Reported by Ralf Wildenhues.
72807
72808 2007-01-24  Bruno Haible  <bruno@clisp.org>
72809
72810         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72811         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72812         gl_GETADDRINFO.
72813         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72814         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72815         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72816
72817 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72820         Don't use 'exit'; just return from 'main'.
72821         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72822
72823         * lib/fnmatch_.h: Readjust white space and comments to match
72824         glibc, to avoid spurious diffs.
72825
72826 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72829         2004-12-01 change by Jakub Jelinek, since this code won't compile
72830         if !LIBC.  Problem reported by Bob Proulx.
72831
72832 2007-01-23  Bruno Haible  <bruno@clisp.org>
72833
72834         * lib/striconveh.c: Include c-strcaseeq.h.
72835         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72836         * modules/striconveh (Depends-on): Add c-strcaseeq.
72837
72838 2007-01-23  Bruno Haible  <bruno@clisp.org>
72839
72840         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72841
72842         * modules/c-strcaseeq: New file.
72843         * lib/c-strcaseeq.h: New file.
72844
72845         * modules/streq: New file.
72846         * lib/streq.h: New file.
72847
72848 2007-01-23  Bruno Haible  <bruno@clisp.org>
72849
72850         * modules/striconveha-tests: New file.
72851         * tests/test-striconveha.c: New file.
72852
72853         * lib/striconveha.h: Include <stdbool.h>.
72854         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72855         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72856         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72857         (mem_iconveha): New function.
72858         (str_iconveha_notranslit): Renamed from str_iconveha.
72859         (str_iconveha): New function.
72860         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72861         c-strcase.
72862
72863 2007-01-23  Bruno Haible  <bruno@clisp.org>
72864
72865         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72866         encodings without forgiving before trying any encoding with handler.
72867         (str_iconveha): Try all encodings without forgiving before trying any
72868         encoding with handler.
72869
72870 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         Import the following changes from libc.
72873
72874         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72875
72876         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72877
72878         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72879
72880         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72881         normal_bracket label.
72882
72883         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72884
72885         [BZ #361]
72886         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72887         to normal_bracket after fetching the next character.
72888
72889 2007-01-22  Bruno Haible  <bruno@clisp.org>
72890
72891         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72892         argument.
72893         * lib/striconveh.c (iconv_carefully_1): New function.
72894         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72895         argument.
72896         (str_cd_iconveh): Update.
72897         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72898         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72899         * tests/test-striconveh.c (MAGIC): New macro.
72900         (new_offsets): New function.
72901         (main): Test call with and without offsets.
72902
72903 2007-01-22  Bruno Haible  <bruno@clisp.org>
72904
72905         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72906         * modules/sys_select (Makefile.am): Likewise.
72907         * modules/sys_socket (Makefile.am): Likewise.
72908         * modules/sys_time (Makefile.am): Likewise.
72909
72910 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * modules/gettimeofday (License): Change from GPL to LGPL, since
72913         gettimeofday is a library function.
72914
72915 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72916
72917         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72918
72919 2007-01-21  Bruno Haible  <bruno@clisp.org>
72920
72921         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72922
72923 2007-01-21  Bruno Haible  <bruno@clisp.org>
72924
72925         * modules/striconveha: New file.
72926         * lib/striconveha.h: New file.
72927         * lib/striconveha.c: New file.
72928         * MODULES.html.sh (Internationalization functions): Add striconveha.
72929         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72930         string.
72931         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72932
72933 2007-01-21  Bruno Haible  <bruno@clisp.org>
72934
72935         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72936         * lib/striconveh.c (str_iconveh): Likewise.
72937
72938 2007-01-21  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/striconveh.h (mem_iconveh): New declaration.
72941         * lib/striconveh.c (mem_iconveh): New function.
72942         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72943
72944 2007-01-21  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72947
72948         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72949         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72950         original result buffer.
72951         (str_cd_iconveh): Update.
72952         * tests/test-striconveh.c (main): Update.
72953
72954         * lib/striconv.h (mem_cd_iconv): Change specification.
72955         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72956         result buffer.
72957         (str_cd_iconv): Update.
72958         * tests/test-striconv.c (main): Update.
72959
72960 2007-01-21  Bruno Haible  <bruno@clisp.org>
72961
72962         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72963
72964 2007-01-20  Jim Meyering  <jim@meyering.net>
72965
72966         * lib/userspec.c (parse_with_separator): If a user or group string
72967         starts with "+", skip the corresponding name-to-ID look-up, since
72968         such a look-up must fail: user and group names may not include "+".
72969
72970 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72973         since we now assume the sys_time module.
72974         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72975         check for sys/time.h; no longer needed.
72976         * modules/poll (Depends-on): Depend on sys_time.
72977
72978 2007-01-18  Bruno Haible  <bruno@clisp.org>
72979
72980         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72982
72983         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72984         gettimeofday.
72985
72986         * tests/test-gettimeofday.c: Include <time.h>.
72987         (dummy): Remove variable.
72988
72989         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72990         gl_HEADER_SYS_TIME_H.
72991         (gl_HEADER_SYS_TIME_H): New macro.
72992
72993         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72994         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72996         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72997         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72998         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72999         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73000         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73001         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73002         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73003         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73004
73005         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73006         last change; it caused a compilation error when cross-compiling to
73007         Cygwin.
73008
73009 2007-01-18  Jim Meyering  <jim@meyering.net>
73010
73011         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73012         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73013         than the race-prone "test -d sys || mkdir sys".
73014         (configure.ac): Use AC_PROG_MKDIR_P.
73015         * modules/sys_select: Likewise.
73016         * modules/sys_socket: Likewise.
73017         * modules/sys_time: Likewise.
73018
73019 2007-01-18  Eric Blake  <ebb9@byu.net>
73020
73021         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73022         replace gettimeofday.
73023         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73024         name, to avoid infinite recursion.
73025
73026 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73029         module sys_time.
73030         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73031         assume timespec.h defines struct timeval.
73032         * lib/settime.c: Likewise.
73033         * lib/utimens.c: Likewise.
73034         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73035         since we now assume the gettimeofday module.
73036         * lib/tempname.c (__gen_tempname): Likewise.
73037         * lib/gettimeofday.h: Remove.
73038         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73039         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73040         Include <time.h>, for 'time()'.
73041         (localtime_buffer_addr): Also use this workaround if
73042         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73043         to simplify the uses.  All uses changed.
73044         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73045         that #undef is inside {}, and 'const' follows type name consistently.
73046         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73047         (gettimeofday): Do not use the maximum possible value for
73048         tv->tv_usec, since that might break usages other than ls.c.
73049         Instead, we'll leave ls.c alone.  This undoes today's patch
73050         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73051         we've never observed the problem but might as well keep the
73052         canary.
73053         * lib/nanosleep.c: Include timespec.h first, for interface check.
73054         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73055         now assume the sys_time module.
73056         * lib/tempname.c: Likewise.
73057         * lib/timespec.h: Likewise.
73058         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73059         needed.
73060         * lib/strftime.c: Likewise.
73061         * lib/timespec.h: Likewise.
73062         * lib/posixtm.c: Include posixtm.h first, for interface check.
73063         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73064         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73065         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73066         * lib/sys_time_.h: New file.
73067         * lib/timespec.h (struct timespec): Use long int, not long.
73068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73069         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73070         Remove obsolescent call to AC_HEADER_TIME.
73071         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73073         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73074         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73075         Likewise.
73076         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73077         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73078         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73079         into the sys_time module.  Check for gettimeofday just once.
73080         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73081         for gettimeofday signature to just check the signature.  Merely
73082         compile it, since linking doesn't test signature.  Improve test for
73083         whether gettimeofday.o is actually needed.
73084         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73085         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73086         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73087         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73088         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73089         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73090         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73091         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73092         than worrying about sys/time.h.
73093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73094         Don't bother worrying about TIME_WITH_SYS_TIME.
73095         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73096         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73097         * m4/sys_time_h.m4: New file.
73098         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73099         Don't include sys/time.h.  Return from main rather than exiting.
73100         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73101         all uses changed.
73102         * modules/gethrxtime (Depends-on): Add sys_time.
73103         * modules/gettime (Depends-on): Likewise.
73104         * modules/gettimeofday (Depends-on): Likewise.
73105         * modules/nanosleep (Depends-on): Likewise.
73106         * modules/settime (Depends-on): Likewise.
73107         * modules/tempname (Depends-on): Likewise.
73108         * modules/utimens (Depends-on): Likewise.
73109         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73110         (Include): Change back to <sys/time.h>.
73111         (Maintainer): Add self.
73112         * modules/sys_time: New file.
73113         * modules/tempname (Depends-on): Add gettimeofday.
73114         * tests/test-gettimeofday.c: Include <sys/time.h>
73115         rather than gettimeofday.h.
73116
73117 2007-01-17  Bruno Haible  <bruno@clisp.org>
73118
73119         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73120         the license default to GPL.
73121         (func_create_testdir): Don't complain if a module is LGPL and its
73122         tests module depends on GPLed modules.
73123
73124 2007-01-17  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/gettimeofday.c (gettimeofday): Add code for the case
73127         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73128         maximum possible value for tv->tv_usec, rather than the minimum one.
73129
73130 2005-10-08  Martin Lambers  <marlam@marlam.de>
73131 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73132 2007-01-16  Bruno Haible  <bruno@clisp.org>
73133
73134         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73135         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73136         gl_FUNC_GETTIMEOFDAY.
73137         (Include): Add gettimeofday.h.
73138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73139         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73140         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73141         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73142         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73143         * lib/gettimeofday.h: New file.
73144         * lib/gettimeofday.c: Include <sys/timeb.h>.
73145         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73146         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73147         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73148         fall back on time().
73149
73150         * tests/test-gettimeofday.c: New file.
73151         * modules/gettimeofday-tests: New file.
73152
73153 2007-01-16  Eric Blake  <ebb9@byu.net>
73154
73155         * modules/fnmatch (Depends-on): Depend on wchar.
73156         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73157         * m4/fnmatch.m4: Likewise.
73158         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73159         * m4/mbchar.m4: Likewise.
73160         * modules/mbswidth (Depends-on): Depend on wchar.
73161         * lib/mbswidth.c: Assume <wchar.h>.
73162         * m4/mbswidth.m4: Likewise.
73163         * modules/quotearg (Depends-on): Depend on wchar.
73164         * lib/quotearg.c: Assume <wchar.h>.
73165         * m4/quotearg.m4: Likewise.
73166         * modules/regex (Depends-on): Depend on wchar.
73167         * lib/regex_internal.h: Assume <wchar.h>.
73168         * m4/regex.m4: Likewise.
73169         * modules/stdint (Depends-on): Depend on wchar.
73170         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73171         * m4/stdint.m4: Likewise.
73172         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73173         * modules/strftime (Depends-on): Depend on wchar.
73174         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73175         * modules/strtol (Depends-on): Depend on wchar.
73176         * lib/strtol.c: Assume <wchar.h>.
73177         * modules/wcwidth (Depends-on): Depend on wchar.
73178         * lib/wcwidth.h: Assume <wchar.h>.
73179         * m4/wcwidth.m4: Likewise.
73180
73181 2007-01-16  Bruno Haible  <bruno@clisp.org>
73182
73183         * modules/csharpexec-script: New, created from...
73184         * modules/csharpexec: ... this.
73185
73186 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73187
73188         * modules/javaexec-script: New, created from...
73189         * modules/javaexec: ... this.
73190
73191 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73192
73193         * modules/poll (Dependencies): Add sys_select.
73194
73195 2007-01-15  Jim Meyering  <jim@meyering.net>
73196
73197         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73198         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73199         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73200         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73201
73202 2007-01-15  Bruno Haible  <bruno@clisp.org>
73203
73204         * modules/striconveh: New file.
73205         * lib/striconveh.h: New file.
73206         * lib/striconveh.c: New file.
73207         * MODULES.html.sh (Internationalization functions): Add striconveh.
73208
73209         * modules/striconveh-tests: New file.
73210         * tests/test-striconveh.c: New file.
73211
73212 2007-01-15  Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73215         not from GNU libiconv or GNU libc.
73216
73217 2007-01-15  Bruno Haible  <bruno@clisp.org>
73218
73219         * doc/gnulib-intro.texi (Copyright): Explain the different license
73220         terms for module descriptions, autoconf macros, tests, documentation.
73221
73222 2007-01-14  Bruno Haible  <bruno@clisp.org>
73223
73224         * modules/striconv-tests: New file.
73225         * tests/test-striconv.c: New file.
73226
73227 2007-01-14  Bruno Haible  <bruno@clisp.org>
73228
73229         * modules/iconv-tests: New file.
73230         * tests/test-iconv.c: New file.
73231
73232 2007-01-14  Bruno Haible  <bruno@clisp.org>
73233
73234         * gnulib-tool (func_get_license): For test modules, use the license of
73235         the main module.
73236
73237 2007-01-14  Bruno Haible  <bruno@clisp.org>
73238
73239         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73240         if iconv is found to exist.
73241
73242 2007-01-14  Bruno Haible  <bruno@clisp.org>
73243
73244         * modules/c-ctype-tests: New file.
73245         * tests/test-c-ctype.c: New file.
73246
73247 2007-01-14  Bruno Haible  <bruno@clisp.org>
73248
73249         * modules/binary-io-tests: New file.
73250         * tests/test-binary-io.sh: New file.
73251         * tests/test-binary-io.c: New file.
73252
73253 2007-01-14  Bruno Haible  <bruno@clisp.org>
73254
73255         * modules/array-oset-tests: New file.
73256         * tests/test-array_oset.c: New file.
73257
73258 2007-01-14  Bruno Haible  <bruno@clisp.org>
73259
73260         * modules/array-list-tests: New file.
73261         * tests/test-array_list.c: New file.
73262
73263 2007-01-14  Bruno Haible  <bruno@clisp.org>
73264
73265         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73266         and make.
73267         Reported by Simon Josefsson in
73268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73269
73270 2007-01-14  Bruno Haible  <bruno@clisp.org>
73271
73272         * modules/allocsa-tests: New file.
73273         * tests/test-allocsa.c: New file.
73274
73275 2007-01-14  Bruno Haible  <bruno@clisp.org>
73276
73277         * modules/fchdir (Depends-on): Add absolute-header.
73278         * modules/unistd (Depends-on): Likewise.
73279
73280 2006-12-30  Bruno Haible  <bruno@clisp.org>
73281
73282         * modules/fchdir: New file.
73283         * modules/unistd (Files): Add lib/unistd_.h.
73284         (Makefile.am): Generate unistd.h from unistd_.h.
73285         * lib/fchdir.c: New file.
73286         * lib/dirent_.h: New file.
73287         * lib/unistd_.h: New file.
73288         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73289         * m4/fchdir.m4: New file.
73290         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73291         (gl_HEADER_UNISTD): Invoke it.
73292         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73293         function.
73294         * lib/backupfile.c (opendir, closedir): Undefine.
73295         * lib/chown.c (open, close): Undefine.
73296         * lib/clean-temp.c (open, close): Undefine.
73297         * lib/copy-file.c (open, close): Undefine.
73298         * lib/execute.c (open, close): Undefine.
73299         * lib/fsusage.c (open, close): Undefine.
73300         * lib/gc-gnulib.c (open, close): Undefine.
73301         * lib/getcwd.c (opendir, closedir): Undefine.
73302         * lib/glob.c (opendir, closedir): Undefine.
73303         * lib/javacomp.c (open, close): Undefine.
73304         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73305         * lib/openat-proc.c (open, close): Undefine.
73306         * lib/pagealign_alloc.c (open, close): Undefine.
73307         * lib/pipe.c (open, close): Undefine.
73308         * lib/progreloc.c (open, close): Undefine.
73309         * lib/savedir.c (opendir, closedir): Undefine.
73310         * lib/utime.c (open, close): Undefine.
73311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73312
73313 2007-01-10  Bruno Haible  <bruno@clisp.org>
73314
73315         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73316
73317 2007-01-12  Eric Blake  <ebb9@byu.net>
73318
73319         Provide a robust <wchar.h>.  Further simplifications are now
73320         possible in other modules, but not included here.
73321         * modules/wchar: New module.
73322         * m4/wchar.m4: New file.
73323         * lib/wchar_.h: Likewise.
73324         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73325         of the new module.
73326         * MODULES.html.sh (Extended multibyte and wide character utilities):
73327         New section.
73328
73329 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73332         to a reasonable default for memory allocation.
73333         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73334         file system that reports garbage st_size values for symlinks.
73335         Problem reported by Liyang Hu.
73336
73337 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73338
73339         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73340         Emacs .#* auto-save files).
73341
73342 2007-01-11  Bruno Haible  <bruno@clisp.org>
73343
73344         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73345         directory.
73346
73347 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         Use @...@ consistently in lib/wctype_.h.
73350         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73351         on it being set to 1 or 0.
73352         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73353         go back to AC_SUBSTing it.
73354         * modules/wctype (Makefile.am): Undo previous change.
73355
73356 2007-01-10  Eric Blake  <ebb9@byu.net>
73357
73358         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73359         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73360         * modules/wctype (Makefile.am): Likewise.
73361         Reported by Chris McGuire.
73362
73363 2007-01-10  Jim Meyering  <jim@meyering.net>
73364
73365         fts.c: a small readability/maintainability improvement
73366         * lib/fts.c (fts_read): Make this code slightly more readable and
73367         maintainable by hoisting the "sp->fts_cur = p" assignments to
73368         immediately follow the statements that set P.  Derived from
73369         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73370
73371 2007-01-10  Eric Blake  <ebb9@byu.net>
73372
73373         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73374         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73376         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73377         Reported by Chris McGuire.
73378
73379 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73380
73381         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73382         in sed script.
73383
73384 2007-01-09  Bruno Haible  <bruno@clisp.org>
73385
73386         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73387         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73388         variables.
73389         (func_module): Use them.
73390
73391 2007-01-09  Bruno Haible  <bruno@clisp.org>
73392
73393         * modules/unistr/base: New file.
73394         * lib/unistr.h: New file.
73395
73396         * modules/unistr/u8-to-u16: New file.
73397         * lib/unistr/u8-to-u16.c: New file.
73398
73399         * modules/unistr/u8-to-u32: New file.
73400         * lib/unistr/u8-to-u32.c: New file.
73401
73402         * modules/unistr/u16-to-u8: New file.
73403         * lib/unistr/u16-to-u8.c: New file.
73404
73405         * modules/unistr/u16-to-u32: New file.
73406         * lib/unistr/u16-to-u32.c: New file.
73407
73408         * modules/unistr/u32-to-u8: New file.
73409         * lib/unistr/u32-to-u8.c: New file.
73410
73411         * modules/unistr/u32-to-u16: New file.
73412         * lib/unistr/u32-to-u16.c: New file.
73413
73414         * modules/unistr/u8-check: New file.
73415         * modules/unistr/u16-check: New file.
73416         * modules/unistr/u32-check: New file.
73417         * lib/unistr/u8-check.c: New file.
73418         * lib/unistr/u16-check.c: New file.
73419         * lib/unistr/u32-check.c: New file.
73420
73421         * modules/unistr/u8-chr: New file.
73422         * modules/unistr/u16-chr: New file.
73423         * modules/unistr/u32-chr: New file.
73424         * lib/unistr/u8-chr.c: New file.
73425         * lib/unistr/u16-chr.c: New file.
73426         * lib/unistr/u32-chr.c: New file.
73427
73428         * modules/unistr/u8-cmp: New file.
73429         * modules/unistr/u16-cmp: New file.
73430         * modules/unistr/u32-cmp: New file.
73431         * lib/unistr/u8-cmp.c: New file.
73432         * lib/unistr/u16-cmp.c: New file.
73433         * lib/unistr/u32-cmp.c: New file.
73434
73435         * modules/unistr/u8-cpy: New file.
73436         * modules/unistr/u16-cpy: New file.
73437         * modules/unistr/u32-cpy: New file.
73438         * lib/unistr/u8-cpy.c: New file.
73439         * lib/unistr/u16-cpy.c: New file.
73440         * lib/unistr/u32-cpy.c: New file.
73441         * lib/unistr/u-cpy.h: New file.
73442
73443         * modules/unistr/u8-cpy-alloc: New file.
73444         * modules/unistr/u16-cpy-alloc: New file.
73445         * modules/unistr/u32-cpy-alloc: New file.
73446         * lib/unistr/u8-cpy-alloc.c: New file.
73447         * lib/unistr/u16-cpy-alloc.c: New file.
73448         * lib/unistr/u32-cpy-alloc.c: New file.
73449         * lib/unistr/u-cpy-alloc.h: New file.
73450
73451         * modules/unistr/u8-endswith: New file.
73452         * modules/unistr/u16-endswith: New file.
73453         * modules/unistr/u32-endswith: New file.
73454         * lib/unistr/u8-endswith.c: New file.
73455         * lib/unistr/u16-endswith.c: New file.
73456         * lib/unistr/u32-endswith.c: New file.
73457         * lib/unistr/u-endswith.h: New file.
73458
73459         * modules/unistr/u8-mblen: New file.
73460         * modules/unistr/u16-mblen: New file.
73461         * modules/unistr/u32-mblen: New file.
73462         * lib/unistr/u8-mblen.c: New file.
73463         * lib/unistr/u16-mblen.c: New file.
73464         * lib/unistr/u32-mblen.c: New file.
73465
73466         * modules/unistr/u8-mbtouc: New file.
73467         * modules/unistr/u16-mbtouc: New file.
73468         * modules/unistr/u32-mbtouc: New file.
73469         * lib/unistr/u8-mbtouc.c: New file.
73470         * lib/unistr/u16-mbtouc.c: New file.
73471         * lib/unistr/u32-mbtouc.c: New file.
73472
73473         * modules/unistr/u8-mbtouc-safe: New file.
73474         * modules/unistr/u16-mbtouc-safe: New file.
73475         * modules/unistr/u32-mbtouc-safe: New file.
73476         * lib/unistr/u8-mbtouc-safe.c: New file.
73477         * lib/unistr/u16-mbtouc-safe.c: New file.
73478         * lib/unistr/u32-mbtouc-safe.c: New file.
73479
73480         * modules/unistr/u8-move: New file.
73481         * modules/unistr/u16-move: New file.
73482         * modules/unistr/u32-move: New file.
73483         * lib/unistr/u8-move.c: New file.
73484         * lib/unistr/u16-move.c: New file.
73485         * lib/unistr/u32-move.c: New file.
73486         * lib/unistr/u-move.h: New file.
73487
73488         * modules/unistr/u8-next: New file.
73489         * modules/unistr/u16-next: New file.
73490         * modules/unistr/u32-next: New file.
73491         * lib/unistr/u8-next.c: New file.
73492         * lib/unistr/u16-next.c: New file.
73493         * lib/unistr/u32-next.c: New file.
73494
73495         * modules/unistr/u8-prev: New file.
73496         * modules/unistr/u16-prev: New file.
73497         * modules/unistr/u32-prev: New file.
73498         * lib/unistr/u8-prev.c: New file.
73499         * lib/unistr/u16-prev.c: New file.
73500         * lib/unistr/u32-prev.c: New file.
73501
73502         * modules/unistr/u8-set: New file.
73503         * modules/unistr/u16-set: New file.
73504         * modules/unistr/u32-set: New file.
73505         * lib/unistr/u8-set.c: New file.
73506         * lib/unistr/u16-set.c: New file.
73507         * lib/unistr/u32-set.c: New file.
73508         * lib/unistr/u-set.h: New file.
73509
73510         * modules/unistr/u8-startswith: New file.
73511         * modules/unistr/u16-startswith: New file.
73512         * modules/unistr/u32-startswith: New file.
73513         * lib/unistr/u8-startswith.c: New file.
73514         * lib/unistr/u16-startswith.c: New file.
73515         * lib/unistr/u32-startswith.c: New file.
73516         * lib/unistr/u-startswith.h: New file.
73517
73518         * modules/unistr/u8-stpcpy: New file.
73519         * modules/unistr/u16-stpcpy: New file.
73520         * modules/unistr/u32-stpcpy: New file.
73521         * lib/unistr/u8-stpcpy.c: New file.
73522         * lib/unistr/u16-stpcpy.c: New file.
73523         * lib/unistr/u32-stpcpy.c: New file.
73524         * lib/unistr/u-stpcpy.h: New file.
73525
73526         * modules/unistr/u8-stpncpy: New file.
73527         * modules/unistr/u16-stpncpy: New file.
73528         * modules/unistr/u32-stpncpy: New file.
73529         * lib/unistr/u8-stpncpy.c: New file.
73530         * lib/unistr/u16-stpncpy.c: New file.
73531         * lib/unistr/u32-stpncpy.c: New file.
73532         * lib/unistr/u-stpncpy.h: New file.
73533
73534         * modules/unistr/u8-strcat: New file.
73535         * modules/unistr/u16-strcat: New file.
73536         * modules/unistr/u32-strcat: New file.
73537         * lib/unistr/u8-strcat.c: New file.
73538         * lib/unistr/u16-strcat.c: New file.
73539         * lib/unistr/u32-strcat.c: New file.
73540         * lib/unistr/u-strcat.h: New file.
73541
73542         * modules/unistr/u8-strchr: New file.
73543         * modules/unistr/u16-strchr: New file.
73544         * modules/unistr/u32-strchr: New file.
73545         * lib/unistr/u8-strchr.c: New file.
73546         * lib/unistr/u16-strchr.c: New file.
73547         * lib/unistr/u32-strchr.c: New file.
73548
73549         * modules/unistr/u8-strcmp: New file.
73550         * modules/unistr/u16-strcmp: New file.
73551         * modules/unistr/u32-strcmp: New file.
73552         * lib/unistr/u8-strcmp.c: New file.
73553         * lib/unistr/u16-strcmp.c: New file.
73554         * lib/unistr/u32-strcmp.c: New file.
73555
73556         * modules/unistr/u8-strcpy: New file.
73557         * modules/unistr/u16-strcpy: New file.
73558         * modules/unistr/u32-strcpy: New file.
73559         * lib/unistr/u8-strcpy.c: New file.
73560         * lib/unistr/u16-strcpy.c: New file.
73561         * lib/unistr/u32-strcpy.c: New file.
73562         * lib/unistr/u-strcpy.h: New file.
73563
73564         * modules/unistr/u8-strcspn: New file.
73565         * modules/unistr/u16-strcspn: New file.
73566         * modules/unistr/u32-strcspn: New file.
73567         * lib/unistr/u8-strcspn.c: New file.
73568         * lib/unistr/u16-strcspn.c: New file.
73569         * lib/unistr/u32-strcspn.c: New file.
73570         * lib/unistr/u-strcspn.h: New file.
73571
73572         * modules/unistr/u8-strdup: New file.
73573         * modules/unistr/u16-strdup: New file.
73574         * modules/unistr/u32-strdup: New file.
73575         * lib/unistr/u8-strdup.c: New file.
73576         * lib/unistr/u16-strdup.c: New file.
73577         * lib/unistr/u32-strdup.c: New file.
73578         * lib/unistr/u-strdup.h: New file.
73579
73580         * modules/unistr/u8-strlen: New file.
73581         * modules/unistr/u16-strlen: New file.
73582         * modules/unistr/u32-strlen: New file.
73583         * lib/unistr/u8-strlen.c: New file.
73584         * lib/unistr/u16-strlen.c: New file.
73585         * lib/unistr/u32-strlen.c: New file.
73586         * lib/unistr/u-strlen.h: New file.
73587
73588         * modules/unistr/u8-strmblen: New file.
73589         * modules/unistr/u16-strmblen: New file.
73590         * modules/unistr/u32-strmblen: New file.
73591         * lib/unistr/u8-strmblen.c: New file.
73592         * lib/unistr/u16-strmblen.c: New file.
73593         * lib/unistr/u32-strmblen.c: New file.
73594
73595         * modules/unistr/u8-strmbtouc: New file.
73596         * modules/unistr/u16-strmbtouc: New file.
73597         * modules/unistr/u32-strmbtouc: New file.
73598         * lib/unistr/u8-strmbtouc.c: New file.
73599         * lib/unistr/u16-strmbtouc.c: New file.
73600         * lib/unistr/u32-strmbtouc.c: New file.
73601
73602         * modules/unistr/u8-strncat: New file.
73603         * modules/unistr/u16-strncat: New file.
73604         * modules/unistr/u32-strncat: New file.
73605         * lib/unistr/u8-strncat.c: New file.
73606         * lib/unistr/u16-strncat.c: New file.
73607         * lib/unistr/u32-strncat.c: New file.
73608         * lib/unistr/u-strncat.h: New file.
73609
73610         * modules/unistr/u8-strncmp: New file.
73611         * modules/unistr/u16-strncmp: New file.
73612         * modules/unistr/u32-strncmp: New file.
73613         * lib/unistr/u8-strncmp.c: New file.
73614         * lib/unistr/u16-strncmp.c: New file.
73615         * lib/unistr/u32-strncmp.c: New file.
73616
73617         * modules/unistr/u8-strncpy: New file.
73618         * modules/unistr/u16-strncpy: New file.
73619         * modules/unistr/u32-strncpy: New file.
73620         * lib/unistr/u8-strncpy.c: New file.
73621         * lib/unistr/u16-strncpy.c: New file.
73622         * lib/unistr/u32-strncpy.c: New file.
73623         * lib/unistr/u-strncpy.h: New file.
73624
73625         * modules/unistr/u8-strnlen: New file.
73626         * modules/unistr/u16-strnlen: New file.
73627         * modules/unistr/u32-strnlen: New file.
73628         * lib/unistr/u8-strnlen.c: New file.
73629         * lib/unistr/u16-strnlen.c: New file.
73630         * lib/unistr/u32-strnlen.c: New file.
73631         * lib/unistr/u-strnlen.h: New file.
73632
73633         * modules/unistr/u8-strpbrk: New file.
73634         * modules/unistr/u16-strpbrk: New file.
73635         * modules/unistr/u32-strpbrk: New file.
73636         * lib/unistr/u8-strpbrk.c: New file.
73637         * lib/unistr/u16-strpbrk.c: New file.
73638         * lib/unistr/u32-strpbrk.c: New file.
73639         * lib/unistr/u-strpbrk.h: New file.
73640
73641         * modules/unistr/u8-strrchr: New file.
73642         * modules/unistr/u16-strrchr: New file.
73643         * modules/unistr/u32-strrchr: New file.
73644         * lib/unistr/u8-strrchr.c: New file.
73645         * lib/unistr/u16-strrchr.c: New file.
73646         * lib/unistr/u32-strrchr.c: New file.
73647
73648         * modules/unistr/u8-strspn: New file.
73649         * modules/unistr/u16-strspn: New file.
73650         * modules/unistr/u32-strspn: New file.
73651         * lib/unistr/u8-strspn.c: New file.
73652         * lib/unistr/u16-strspn.c: New file.
73653         * lib/unistr/u32-strspn.c: New file.
73654         * lib/unistr/u-strspn.h: New file.
73655
73656         * modules/unistr/u8-strstr: New file.
73657         * modules/unistr/u16-strstr: New file.
73658         * modules/unistr/u32-strstr: New file.
73659         * lib/unistr/u8-strstr.c: New file.
73660         * lib/unistr/u16-strstr.c: New file.
73661         * lib/unistr/u32-strstr.c: New file.
73662         * lib/unistr/u-strstr.h: New file.
73663
73664         * modules/unistr/u8-strtok: New file.
73665         * modules/unistr/u16-strtok: New file.
73666         * modules/unistr/u32-strtok: New file.
73667         * lib/unistr/u8-strtok.c: New file.
73668         * lib/unistr/u16-strtok.c: New file.
73669         * lib/unistr/u32-strtok.c: New file.
73670         * lib/unistr/u-strtok.h: New file.
73671
73672         * modules/unistr/u8-uctomb: New file.
73673         * modules/unistr/u16-uctomb: New file.
73674         * modules/unistr/u32-uctomb: New file.
73675         * lib/unistr/u8-uctomb.c: New file.
73676         * lib/unistr/u16-uctomb.c: New file.
73677         * lib/unistr/u32-uctomb.c: New file.
73678
73679         * MODULES.html.sh (Unicode string functions): Add the new modules.
73680
73681 2007-01-08  Bruno Haible  <bruno@clisp.org>
73682
73683         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73684         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73685         subdirectories.
73686
73687 2007-01-08  Karl Berry  <karl@gnu.org>
73688
73689         * doc/error.texi: mention that main() fns must set program_name
73690         when progname is used.
73691
73692 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73695         WCTYPE_H is empty, for the benefit of builds from non-distclean
73696         directories.  Problem reported by Eric Blake in
73697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73698
73699 2007-01-08  Bruno Haible  <bruno@clisp.org>
73700
73701         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73702         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73703         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73704         PROVIDE_CANONICALIZE_FILENAME_MODE.
73705         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73706
73707 2007-01-08  Bruno Haible  <bruno@clisp.org>
73708
73709         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73710         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73711         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73712         * lib/fts.c: Likewise.
73713         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73714
73715 2006-12-25  Bruno Haible  <bruno@clisp.org>
73716
73717         * modules/utf8-ucs4-safe: New file.
73718         * lib/utf8-ucs4-safe.h: New file.
73719         * lib/unistr/utf8-ucs4-safe.c: New file.
73720
73721         * modules/utf16-ucs4-safe: New file.
73722         * lib/utf16-ucs4-safe.h: New file.
73723         * lib/unistr/utf16-ucs4-safe.c: New file.
73724
73725         * MODULES.html.sh (Unicode string functions): Add the new modules.
73726
73727 2007-01-08  Bruno Haible  <bruno@clisp.org>
73728
73729         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73730         (Depends-on): Add unitypes.
73731         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73732         (u8_mbtouc_aux): Move out to separate file.
73733         (u8_mbtouc): Use ucs4_t, uint8_t types.
73734         * lib/unistr/utf8-ucs4.c: New file.
73735
73736         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73737         (Depends-on): Add unitypes.
73738         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73739         (u16_mbtouc_aux): Move out to separate file.
73740         (u16_mbtouc): Use ucs4_t, uint16_t types.
73741         * lib/unistr/utf16-ucs4.c: New file.
73742
73743         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73744         (Depends-on): Add unitypes.
73745         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73746         (u8_uctomb_aux): Move out to separate file.
73747         (u8_uctomb): Use ucs4_t, uint8_t types.
73748         * lib/unistr/ucs4-utf8.c: New file.
73749
73750         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73751         (Depends-on): Add unitypes.
73752         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73753         (u16_uctomb_aux): Move out to separate file.
73754         (u16_uctomb): Use ucs4_t, uint16_t types.
73755         * lib/unistr/ucs4-utf16.c: New file.
73756
73757 2006-12-25  Bruno Haible  <bruno@clisp.org>
73758
73759         * modules/unitypes: New file.
73760         * lib/unitypes.h: New file.
73761         * MODULES.html.sh (func_all_modules): New section "Unicode string
73762         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73763         this section. Add unitypes.
73764
73765 2007-01-08  Bruno Haible  <bruno@clisp.org>
73766
73767         Avoid variable names that conflict with those from libtool.
73768         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73769         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73770         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73771         library_names_spec to acl_library_names_spec, hardcode_* to
73772         acl_hardcode_*.
73773         Reported by Ralf Wildenhues.
73774
73775 2007-01-08  Bruno Haible  <bruno@clisp.org>
73776
73777         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73778         definition.
73779         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73780         definition.
73781         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73782         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73783         definition.
73784         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73785         definition.
73786         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73787         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73788         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73789         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73790         definition.
73791         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73792         definition.
73793         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73794         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73795         GC_USE_<algorithm>.
73796         * lib/gc-libgcrypt.c: Likewise.
73797         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73798         * modules/gc-arctwo (configure.ac): Likewise.
73799         * modules/gc-des (configure.ac): Likewise.
73800         * modules/gc-hmac-md5 (configure.ac): Likewise.
73801         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73802         * modules/gc-md2 (configure.ac): Likewise.
73803         * modules/gc-md4 (configure.ac): Likewise.
73804         * modules/gc-md5 (configure.ac): Likewise.
73805         * modules/gc-random (configure.ac): Likewise.
73806         * modules/gc-rijndael (configure.ac): Likewise.
73807         * modules/gc-sha1 (configure.ac): Likewise.
73808
73809 2007-01-08  Bruno Haible  <bruno@clisp.org>
73810
73811         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73812         macro definition.
73813         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73814         definition.
73815         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73816         definition.
73817         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73818         * modules/fcntl-safer (configure.ac): Likewise.
73819         * modules/fopen-safer (configure.ac): Likewise.
73820         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73821         GNULIB_FWRITEERROR macro definition.
73822
73823 2007-01-08  Bruno Haible  <bruno@clisp.org>
73824
73825         * m4/gnulib-common.m4: New file.
73826         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73827         (func_get_filelist): Add m4/gnulib-common.m4.
73828
73829 2007-01-08  Bruno Haible  <bruno@clisp.org>
73830
73831         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73832         command.
73833
73834 2007-01-08  Jim Meyering  <jim@meyering.net>
73835
73836         Use a more robust test for a "can't happen" condition.
73837         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73838         narrowed the st_size value.  Presuming the "can't happen" condition
73839         is true, that narrowing could conceivably convert an invalid st_size
73840         value into a valid one.  Instead, use a change based on Matthew
73841         Woehlke's original patch.
73842
73843         Slight readability improvement: use an assert-like macro
73844         in place of literal "abort ()" uses.
73845         * lib/fts.c (fts_assert): Define.
73846         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73847         Use this macro instead of a bare 'abort'.
73848
73849 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73852         simply work around them.
73853         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73854         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73855         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73856         declaring.
73857         Don't bother to define as macros, since the standard doesn't require it.
73858         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73859         longer worry about IRIX 5.3.
73860         (HAVE_WCTYPE_CTMP_BUG): Remove.
73861
73862 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73865         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73866         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73867         Problems reported by Georg Schwarz for IRIX 5.3.
73868
73869         * gnulib-tool (autoconf_minversion): Take the maximum version number
73870         found, not the minimum.  Problem reported by James Youngman.
73871
73872 2007-01-03  Karl Berry  <karl@gnu.org>
73873
73874         * doc/error.texi: new file, explaining interaction with progname.
73875         * doc/gnulib.texi: include it.  Update copyright.
73876
73877 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73878
73879         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73880         AC_CANONICAL_HOST, to improve autobuild outputs.
73881
73882 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73883             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73884
73885         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73886         sockets, server sockets, and other file descriptors.  Count errors
73887         to compute the return value.  Reorder the code a bit to be easier
73888         to follow.  Don't set event bits that were not requested (except
73889         POLLERR and POLLHUP).
73890
73891 2007-01-01  Bruno Haible  <bruno@clisp.org>
73892
73893         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73894
73895 2007-01-03  Jim Meyering  <jim@meyering.net>
73896
73897         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73898
73899 2007-01-02  Bruno Haible  <bruno@clisp.org>
73900
73901         * modules/settime (Include): Require timespec.h.
73902         * modules/nanosleep (Include): Likewise.
73903
73904 2007-01-01  Bruno Haible  <bruno@clisp.org>
73905
73906         * gnulib-tool (func_emit_copyright_notice): Bump year.
73907         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73908
73909 2007-01-01  Bruno Haible  <bruno@clisp.org>
73910
73911         Improve support for OpenBSD.
73912         * build-aux/config.rpath (libname_spec): Export.
73913         (library_names_spec): New variable. Export.
73914         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73915         library_names_spec from the config.rpath output. Locate shared library
73916         through the name pattern in library_names_spec.
73917
73918 2007-01-01  Eric Blake  <ebb9@byu.net>
73919
73920         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73921
73922 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73925         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73926         assume the C locale, and avoid an "eval" that could cause trouble.
73927         Problem with SORT reported by Bob Proulx.
73928
73929         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73930         Define.  Trivial patch from Henning Nielsen Lund, originally
73931         sent to bug-grep@gnu.org today.
73932
73933 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73936         struct stat.  Problem reported by Henning Nielsen Lund.
73937         * lib/acl.c: Include acl.h first, to check interface.  Don't
73938         bother to include sys/types.h and sys/stat.h again.
73939
73940 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         Import the following change from libc; problem reported by
73943         Sven Verdoolaege.
73944
73945         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73946
73947         [BZ #1373]
73948         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73949
73950 2006-12-28  Jim Meyering  <jim@meyering.net>
73951
73952         * build-aux/announce-gen: Do not assume that the package
73953         builds any of tar.gz, tar.bz2, and .xdelta files.
73954         Suggestion from Simon Josefsson.
73955
73956 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73957
73958         * modules/announce-gen: New file.
73959
73960 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73961
73962         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73963         handles its gotchas now.
73964         * lib/mbswidth.c: Likewise.
73965         * lib/wcwidth.h: Likewise.
73966         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73967         and iswcntrl; the wctype module does this stuff now.
73968         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73970         * modules/mbchar (Depends-on): Add wctype.
73971         * modules/mbswidth (Depends-on): Likewise.
73972         * modules/wcwidth (Depends-on): Likewise.
73973
73974 2006-12-27  Eric Blake  <ebb9@byu.net>
73975
73976         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73977         module uses more than what <wctype.h> is required to provide.
73978
73979 2006-12-26  Eric Blake  <ebb9@byu.net>
73980
73981         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73982
73983 2006-12-26  Eric Blake  <ebb9@byu.net>
73984
73985         * modules/absolute-header: New module.
73986         * modules/fcntl (Depends-on): Depend on it.
73987         * modules/inttypes (Depends-on): Likewise.
73988         * modules/stdint (Depends-on): Likewise.
73989         * modules/sys_stat (Depends-on): Likewise.
73990         * modules/wctype (Depends-on): Likewise.
73991         * MODULES.html.sh (Support for building libraries and
73992         executables): Document it.
73993
73994 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * gnulib-tool (SED): Remove, undoing previous change.
73997         The problem was that it broke coreutils on Solaris, because
73998         "sed --posix" leaked into a makefile.
73999         (sed): New alias, if 'alias' and GNU sed.
74000
74001 2006-12-24  Jim Meyering  <jim@meyering.net>
74002
74003         Work around an fchownat bug in glibc-2.4:
74004         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74005         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74006         in spite of the -P option.
74007         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74008         New macros.
74009         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74010         * modules/openat (Files): Add lib/fchownat.c.
74011         * lib/openat.c (fchownat): Don't define here.  Move to...
74012         * lib/fchownat.c: ...this new file.
74013
74014 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         Fix bug reported by Bruno Haible in
74017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74018         where quotearg.c didn't compile on Mac OS X 10.2 because it
74019         lacks <wchar.h> and wint_t.
74020         * lib/wctype_.h (__wctype_wint_t): New type.
74021         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74022         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74023         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74024         Arg is now of type __wctype_wint_t, not wint_t.
74025         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74026         substitute HAVE_WINT_T.
74027         * modules/wctype (Files): Add m4/wint_t.m4.
74028         (wctype.h): Substitute HAVE_WINT_T.
74029
74030 2006-12-23  Bruno Haible  <bruno@clisp.org>
74031
74032         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74033
74034 2006-12-23  Bruno Haible  <bruno@clisp.org>
74035
74036         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74037         S_ISLNK.
74038         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74039         mingw.
74040
74041 2006-12-22  Bruno Haible  <bruno@clisp.org>
74042
74043         * lib/copy-file.c: Include acl.h.
74044         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74045         Close the file descriptors only after being done with copy_acl.
74046         * modules/copy-file (Depends-on): Add acl.
74047
74048 2006-12-22  Bruno Haible  <bruno@clisp.org>
74049
74050         * gnulib-tool (SED): New variable.
74051         Use $SED instead of sed everywhere.
74052
74053 2006-12-22  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/no-c++: New file.
74056         * m4/no-c++.m4: New file.
74057         * MODULES.html.sh (Support for building libraries and executables):
74058         Add no-c++.
74059
74060 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74063         Include <limits.h>, and use its INT_MAX to rewrite the
74064         j loop so that it does not overflow 'int'.  Problem reported by
74065         Ralf Wildenhues in
74066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74067         Play it safe by shifting left by 1 rather than multiplying by 2,
74068         as GCC is less likely to optimize this away when the value
74069         is signed (when it assumes overflow leads to undefined behavior).
74070         Also, don't assume time_t uses two's complement.
74071
74072 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * MODULES.html.sh: New module wctype.
74075         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74076         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74077         <wctype.h>, since the new wctype module should fix this.
74078         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74079         the wctype module should arrange for it.
74080         * lib/regex_internal.h: Likewise.
74081         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74082         since the wctype module should handle this now.
74083         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74084         * modules/fnmatch (Depends-on): Add wctype.
74085         * modules/quotearg (Depends-on): Likewise.
74086         * modules/regex (Depends-on): Likewise.
74087
74088 2006-12-19  Bruno Haible  <bruno@clisp.org>
74089
74090         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74091         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74092
74093 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74094
74095         * modules/savewd (Depends-on): Fix dependency on fcntl.
74096
74097 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74100         conforms to C99, rather than relying on the user's environment
74101         setting of STDINT_H.
74102
74103 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74104         and Eric Blake  <ebb9@byu.net>
74105
74106         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74107         This is more consistent with the other defines here.
74108         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74109         Port to z/OS.  Problem reported by Paul Gilmartin.
74110         Change local vars to use gl_ prefix rather than ac_.
74111         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74112         with other defines.
74113         * modules/double-slash-root: New module.
74114         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74115         (Depends-on): Add double-slash-root.
74116         * MODULES.html.sh (File system functions): Mention new module.
74117
74118 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74121         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74122         This is for the benefit of gzip, which doesn't do i18n.
74123
74124 2006-12-12  Jim Meyering  <jim@meyering.net>
74125
74126         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74127         Reported by Andreas Schwab <schwab@suse.de>.
74128
74129 2006-12-12  Bruno Haible  <bruno@clisp.org>
74130
74131         Merge these changes.
74132         2006-09-05  Bruno Haible  <bruno@clisp.org>
74133         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74134         iconv_alloc succeeded.
74135         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74136         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74137         test for " && dest " at the end - dest is always != NULL there. Call
74138         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74139         with 2xNULL arguments, also to flush the state storage. Handle the
74140         IRIX iconv behaviour. Realloc the final result, to throw away unused
74141         memory.
74142
74143 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74144
74145         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74146         and fchmodat unconditionally, since glibc 2.4 has them.
74147         Problem reported by Arkadiusz Miskiewicz.
74148
74149 2006-12-10  Bruno Haible  <bruno@clisp.org>
74150
74151         * gnulib-tool (func_import): Show the include files only for those
74152         modules that are copied and specified.
74153         Reported by Karl Berry.
74154
74155 2006-12-08  Jim Meyering  <jim@meyering.net>
74156
74157         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74158         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74159
74160         * build-aux/announce-gen: Add two new options, both optional:
74161         --bootstrap-tools=TOOL_LIST
74162               a comma-separated list of tools, e.g.,
74163               autoconf,automake,bison,gnulib
74164         --gnulib-snapshot-date=DATE
74165               if gnulib is in the bootstrap tool list,
74166               then report this as the snapshot date.
74167               If not specified, use the current date/time.
74168               If you specify a date here, be sure it's UTC.
74169
74170 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74171
74172         * tests/test-argp-2.sh: Fix test to match actual output.
74173         (func_compare): Fix sed script to be portable.
74174
74175 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74176
74177         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74178         workaround for this case.  It is not autoconfigured now; offhand
74179         it's hard to see how to autoconfigure it.
74180
74181 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74184         a directory that is about to be chowned.  Such a directory's
74185         initial file permissions should permit the owner only and this
74186         should not be changed until after the chown, since the group and
74187         other bits would be incorrect if they granted permission before
74188         the chown.
74189
74190         Fix porting problem for iswctype reported by Georg Schwarz in:
74191         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74192         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74193         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74194         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74195         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74196
74197 2006-12-03  Jim Meyering  <jim@meyering.net>
74198
74199         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74200         p->fts_statp may not yet be defined.
74201         (fts_read): Instead, set it in the caller, once p->fts_statp is
74202         sure to be defined, and corresponds to a top-level directory.
74203         This bug made du -x fail.  Here's the coreutils test case:
74204         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74205         Reported by Mike Frysinger.
74206
74207 2006-12-01  Jim Meyering  <jim@meyering.net>
74208
74209         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74210         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74211         Reported by Simon Josefsson.
74212
74213 2006-11-30  Jim Meyering  <jim@meyering.net>
74214
74215         * m4/warning.m4: Use the all-permissive copyright notice
74216         recommended by RMS (rather than LGPL).
74217         * m4/vararrays.m4: Likewise.
74218         * m4/flexmember.m4: Likewise.
74219
74220 2006-11-29  Bruno Haible  <bruno@clisp.org>
74221
74222         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74223         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74224         using +=.
74225         Reported by Simon Josefsson <simon@josefsson.org>.
74226
74227 2006-11-28  James Youngman <jay@gnu.org>
74228
74229         * README: Advise users that they might find the bug-gnulib@gnu.org
74230         and autotools-announce@gnu.org mailing lists useful.
74231
74232 2006-11-28  Bruno Haible  <bruno@clisp.org>
74233
74234         * m4/ptrdiff_max.m4: Remove file.
74235
74236 2006-11-21  Bruno Haible  <bruno@clisp.org>
74237
74238         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74239         _AC_COMPUTE_INT.
74240         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74241         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74242         _AC_COMPUTE_INT.
74243         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74244         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74245         _AC_COMPUTE_INT.
74246         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74247
74248 2006-11-28  Jim Meyering  <jim@meyering.net>
74249
74250         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74251         warning from "gcc -Wshadow" about shadowing the builtin.
74252
74253 2006-11-27  Bruno Haible  <bruno@clisp.org>
74254
74255         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74256         _AC_COMPUTE_INT.
74257         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74258
74259 2006-11-27  Bruno Haible  <bruno@clisp.org>
74260             Paul Eggert  <eggert@cs.ucla.edu>
74261
74262         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74263
74264 2006-11-26  Bruno Haible  <bruno@clisp.org>
74265
74266         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74267         noinst_LTLIBRARIES.
74268
74269 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74270             Bruno Haible  <bruno@clisp.org>
74271
74272         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74273         if compiling with "gcc -ansi".
74274
74275 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         Fix some incompatibilities with gcc -ansi -pedantic.
74278         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74279         if compiling pedantically with GCC, unless it's C99 or later.
74280         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74281         it mishandles gcc -ansi -pedantic as well.
74282         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74283         if gcc -pedantic.
74284         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74285         initializers for struct if -pedantic, unless it's C99 or later.
74286
74287 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74288
74289         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74290         Don't close an fd more than once. Identical atimes indicate
74291         success, not failure.
74292
74293 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74294
74295         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74296
74297 2006-11-23  Jim Meyering  <jim@meyering.net>
74298
74299         * build-aux/announce-gen: New file.  From coreutils.
74300
74301 2006-11-22  Jim Meyering  <jim@meyering.net>
74302
74303         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74304         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74305         (fts_read): Use a temporary to narrow the overused st_size member
74306         before using it in a switch statement.  Reported by Matthew Woehlke.
74307
74308         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74309         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74310
74311 2006-11-20  Bruno Haible  <bruno@clisp.org>
74312
74313         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74314         changequote instead of pairs of brackets.
74315         Reported by Andreas Schwab <schwab@suse.de>.
74316
74317 2006-11-21  Jim Meyering  <jim@meyering.net>
74318
74319         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74320         so as to remain compatible with older compilers.
74321         Patch from Michael Deutschmann.
74322
74323 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * MODULES.html.sh (File system functions): Add openat.
74326
74327         * lib/openat.h (rpl_fstatat): New macro, if
74328         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74329         (fstatat): Define to rpl_fstatat under the same conditions,
74330         unless COMPILING_FSTATAT.
74331         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74332         seems to have the bug.
74333         * lib/fstatat.c: New file.
74334         * modules/openat (Files): Add it.
74335
74336 2006-11-20  Bruno Haible  <bruno@clisp.org>
74337
74338         * Makefile: New file.
74339
74340 2006-11-20  Jim Meyering  <jim@meyering.net>
74341
74342         The beginnings of syntax-related checks for gnulib.
74343         * lib/Makefile: New file.
74344         * lib/t-idcache: New script.  Ensure that the two halves of
74345         idcache.c stay in sync.
74346
74347         * lib/idcache.c: Adjust comments in user- and group- portions to
74348         be more accurate, and to be consistent with one another.
74349
74350 2006-11-20  Jim Meyering  <jim@meyering.net>
74351
74352         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74353         continue using the flexible array member (thus, this module performs
74354         half as many malloc calls), with the addition that...
74355         (getgroup, getuser): Consistently record a non-match via an empty
74356         "name" string, and map an empty string match to a NULL return value.
74357         * modules/idcache (Depends-on): Re-add flexmember.
74358
74359         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74360         (getuidbyname, getgroup, getgidbyname): Likewise.
74361
74362         Use cleaner syntax: NULL rather than 0.
74363         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74364
74365 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74368         It mishandled the case where the group was missing.
74369         Problem reported by Greg Schafer.
74370         * modules/idcache: Likewise.
74371
74372 2006-11-18  Jim Meyering  <jim@meyering.net>
74373
74374         * check-module (%exempt_header): Add exception for some
74375         conditionally-included headers.
74376
74377         * modules/i-ring (Depends-on): Add verify.
74378         (License): Change to LGPL.
74379
74380 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74383         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74384         and inttostr.h.  Use snprintf rather than uinttostr, so that
74385         LGPLed code doesn't depend on GPLed.
74386
74387 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * modules/inline (License): Change from GPL to LGPL.
74390
74391 2006-11-17  Jim Meyering  <jim@meyering.net>
74392
74393         * modules/d-type (License): Switch to LGPL.
74394
74395 2006-11-15  Bruno Haible  <bruno@clisp.org>
74396
74397         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74398
74399 2006-11-15  Eric Blake  <ebb9@byu.net>
74400
74401         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74402         the module dependency.
74403
74404 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74405             Bruno Haible  <bruno@clisp.org>
74406
74407         * gnulib-tool (func_create_testdir): Add license consistency check.
74408
74409 2006-11-15  Eric Blake  <ebb9@byu.net>
74410
74411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74412         random "(cached)" in configure output.
74413
74414 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74415
74416         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74417         test for conforming inttypes.h is both announced and cached.
74418
74419         * MODULES.html.sh (seen_modules, seen_files): New variables.
74420         (func_module): Rewrite to use a few less gnulib-tool and sed
74421         invocations.  Avoid a couple of quadratic algorithms for ...
74422         (missed_modules, missed_files): ... these, with ...
74423         (func_append, func_tmpdir): ... these new functions, from
74424         gnulib-tool.  Analogously, install traps for cleanup.
74425
74426         * tests/test-gc.c (main): Remove unused variables.
74427         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74428
74429 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * modules/inttostr (License): Change to LGPL.
74432
74433 2006-11-14  Eric Blake  <ebb9@byu.net>
74434
74435         * modules/tempname (License): Change to LGPL.
74436
74437 2006-11-14  Eric Blake  <ebb9@byu.net>
74438
74439         * doc/functions.texi (Function Portability): *printf functions on
74440         Cygwin now understand all POSIX size specifiers.
74441
74442 2006-11-14  Bruno Haible  <bruno@clisp.org>
74443
74444         * modules/c-ctype (License): Change to LGPL.
74445
74446 2006-11-12  Bruno Haible  <bruno@clisp.org>
74447
74448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74449         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74450         for GNOME libraries, for which the include files are installed in
74451         subdirectories of $prefix/include.
74452
74453 2006-11-12  Bruno Haible  <bruno@clisp.org>
74454
74455         * m4/lib-link.m4: Require at least autoconf-2.54.
74456         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74457         name to underscores for the --with option.
74458
74459 2006-11-13  Bruno Haible  <bruno@clisp.org>
74460
74461         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74462         the tests directory.
74463         Reported by Ralf Wildenhues.
74464
74465 2006-11-13  Bruno Haible  <bruno@clisp.org>
74466
74467         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74468         (func_emit_initmacro_end): Undo the override here.
74469         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74470         Works around the famous automake error in coreutils.
74471
74472 2006-11-13  Eric Blake  <ebb9@byu.net>
74473
74474         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74475         element, not its node.
74476
74477 2006-11-12  Bruno Haible  <bruno@clisp.org>
74478
74479         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74480         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74481
74482 2006-11-12  Bruno Haible  <bruno@clisp.org>
74483
74484         * gnulib-tool: New option --local-symlink.
74485         (func_usage): Document it.
74486         (lsymbolic): New variable.
74487         (func_import, func_create_testdir): If --symlink was not specified,
74488         test whether --local-symlink was specified and the file comes from
74489         the local_gnulib_dir.
74490
74491 2006-11-12  Bruno Haible  <bruno@clisp.org>
74492
74493         * gnulib-tool (func_ln): New function.
74494         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74495
74496 2006-11-12  Bruno Haible  <bruno@clisp.org>
74497
74498         Finish support for source files in subdirectories.
74499         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74500         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74501         AUTOMAKE_OPTIONS.
74502         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74503
74504 2006-11-12  Bruno Haible  <bruno@clisp.org>
74505
74506         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74507         EXTRA_lib_SOURCES augmentation.
74508         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74509
74510 2006-11-12  Jim Meyering  <jim@meyering.net>
74511
74512         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74513         file descriptors.  This also averts a failure on systems with
74514         native openat support when a traversed directory lacks "x" access.
74515         * lib/fts_.h: Include "i-ring.h"
74516         (struct FTS) [fts_fd_ring]: New member.
74517         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74518         (FCHDIR): Add parentheses.
74519         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74520         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74521         When descending, rather than simply closing the previous
74522         fts_cwd_fd value, push that file descriptor onto the ring.
74523         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74524         (fts_open): Initialize the new fd_ring member.
74525         (fts_close): Clear the ring.
74526         (fts_safe_changedir): When possible, use our new fd_ring to skip
74527         the diropen and fstat and dev/ino comparison that would normally
74528         accompany a virtual `chdir ("..")'.
74529
74530         * modules/fts (Depends-on): Add i-ring.
74531         * modules/i-ring: New module.
74532         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74533         * m4/i-ring.m4: New file.
74534
74535 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74536
74537         * gnulib-tool (func_create_testdir): Fix replacement of
74538         `build-aux' in configure.ac.  Run autotools in gltests
74539         subdirectory.
74540         (func_create_testdir, func_create_megatestdir, test): There is
74541         no need for '--force' in most autotool invocations in a new
74542         tree.  Actually fail the whole test if any of the tools, or the
74543         configure or make stages fail.
74544
74545         Sync from Automake.
74546         * build-aux/gnupload: Revert last change.  Add pointer to upload
74547         instructions of the GNU Maintenance Instructions.
74548         Suggestion by Karl Berry.
74549
74550 2006-11-10  Jim Meyering  <jim@meyering.net>
74551
74552         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74553
74554 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74557         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74558         (bind_textdomain_codeset) [! ENABLE_NLS]:
74559         Evaluate all the arguments.  That way, callers get compatible behavior
74560         if the arguments have side effects.  Also, it avoids some GCC
74561         diagnostics in some cases; Joel E. Denny reported problems when Bison
74562         was configured with --enable-gcc-warnigs.
74563
74564 2006-11-10  Jim Meyering  <jim@meyering.net>
74565
74566         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74567         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74568         account.
74569
74570 2006-11-10  Jim Meyering  <jim@meyering.net>
74571
74572         * modules/inline: New file/module.
74573         * modules/xalloc (Files): Remove m4/inline.m4.
74574         (Depends-on): Add inline, instead.
74575         * modules/oset: Likewise.
74576         * modules/list: Likewise.
74577
74578 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74581         Problem reported by Matthew Woehlke.
74582
74583 2006-11-09  Bruno Haible  <bruno@clisp.org>
74584
74585         * lib/tempname.c (gen_tempname): Remove variant that invokes
74586         __gen_tempname.
74587         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74588         __gen_tempname.
74589
74590 2006-11-08  Bruno Haible  <bruno@clisp.org>
74591
74592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74593         to 'yes' instead of 'cross-compiling'.
74594
74595 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74596
74597         * lib/quotearg.h (quotearg_free): New decl.
74598         * lib/quotearg.c (quotearg_free): New function.
74599         (slot0, nslots, slotvec0, slotvec):
74600         Now file-scope so that quotearg_free can get at them.
74601
74602 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74603
74604         Sync from Automake.
74605         * build-aux/gnupload: Add missing 'gnu' to example URL.
74606         Report by Karl Berry.
74607
74608 2006-11-08  Bruno Haible  <bruno@clisp.org>
74609
74610         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74611         Suggested by Paul Eggert.
74612
74613 2006-11-08  Jim Meyering  <jim@meyering.net>
74614
74615         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74616         It's already included if !_LIBC.
74617         (fts_safe_changedir): Add a comment.
74618
74619 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74622         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74623         Matthew Woehlke.
74624
74625         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74626         definitions up, to avoid colliding with change below.
74627         (static_inline) [HAVE_INLINE]: New macro.
74628         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74629         Provide extern decls when !HAVE_INLINE.  Do not define unless
74630         static_inline is defined, either by us or by xmalloc.c.  Use
74631         static_inline rather than static inline.
74632         (XCALLOC): Optimize sizeof(T) = 1 case.
74633         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74634
74635 2006-11-07  Bruno Haible  <bruno@clisp.org>
74636
74637         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74638         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74639         AC_C_INLINE.
74640         * modules/xalloc (Files): Add m4/inline.m4.
74641
74642 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74643
74644         * README: Fix typo.
74645         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74646         (Miscellanous Notes): ...from this.
74647
74648 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74651         Mention that offsetof should be used instead of sizeof.
74652         From Bruno Haible.
74653
74654 2006-11-07  Bruno Haible  <bruno@clisp.org>
74655
74656         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74657
74658 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74661         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74662         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74663         (gl_tree_add_before, gl_tree_add_after):
74664         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74665         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74666         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74667         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74668         (gl_linked_add_after, gl_linked_add_at): Likewise.
74669         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74670         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74671         (gl_tree_add_before, gl_tree_add_after): Likewise.
74672         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74673         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74674         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74675
74676 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74677
74678         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74679
74680 2006-11-06  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/inline.m4: New file.
74683         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74684         * modules/list (Files): Add m4/inline.m4.
74685         * modules/oset (Files): Likewise.
74686
74687 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * lib/idcache.c: Include <stddef.h>, for offsetof.
74690         (struct userid.name): Change from char * to a flexible array member.
74691         All uses changed.
74692         * modules/idcache (Depends-on): Add flexmember.
74693
74694         * MODULES.html.sh (Core language properties): New module flexmember.
74695         * modules/flexmember, m4/flexmember.m4: New files.
74696
74697         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74698         inline functions that are identical with the old xnmalloc_inline,
74699         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74700         that we can avoid some unnecessary integer multiplications and
74701         divisions in the common case where the element size is known at
74702         compile time.
74703         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74704         needed.
74705         (xnboundedmalloc): Remove.
74706         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74707         arguments, for consistency with rest of this header.
74708         (xcharalloc): Rewrite using XNMALLOC.
74709         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74710         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74711         versions have been moved to lib/xalloc.h and renamed to be the
74712         non-*_inline versions.
74713         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74714         and xnrealloc functions, since those functions are now inline and
74715         now call us.
74716         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74717         renaming described above.
74718         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74719         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74720         captures the dependency in AC_C_INLINE.
74721
74722         New module canonicalize-lgpl, proposed by Charles Wilson in
74723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74724         with a few small changes afterwards.
74725         * MODULES.html.sh (File system functions): New module
74726         canonicalize-lgpl.
74727         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74728         and canonicalize_file_name.
74729         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74730         * modules/canonicalize-lgpl: New files.
74731
74732 2006-11-05  Bruno Haible  <bruno@clisp.org>
74733
74734         * gnulib-tool (func_import, func_create_testdir): Create directories
74735         also for files in subdirectories of lib/.
74736
74737 2006-11-05  Bruno Haible  <bruno@clisp.org>
74738
74739         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74740         ANSI C compliant.
74741
74742 2006-11-03  Bruno Haible  <bruno@clisp.org>
74743
74744         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74745         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74746         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74747         (xnboundedmalloc): New inline function.
74748         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74749         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74750         xmalloc.
74751         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74752         xmalloc.
74753         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74754         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74755         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74756         xmalloc.
74757         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74758         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74759         xmalloc.
74760         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74761         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74762         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74763         xmalloc.
74764         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74765         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74766         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74767         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74768         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74769         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74770         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74771
74772 2006-11-03  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/c-ctype.h [C++]: Define functions without name mangling.
74775         * lib/fwriteerror.h [C++]: Likewise.
74776         * lib/gcd.h [C++]: Likewise.
74777         * lib/linebreak.h [C++]: Likewise.
74778
74779 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74782         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74783         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74784         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74785         Check for functions and headers just once.
74786         Check for declaration of canonicalize_file_name.
74787         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74788
74789 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74790
74791         * gnulib-tool (func_import): Fix typo in actioncmd.
74792
74793 2006-11-02  Bruno Haible  <bruno@clisp.org>
74794
74795         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74796         newline sequence in the Makefile.am snippet as a space, like "make"
74797         does.
74798         Reported by Roger Persson <perrog@gmail.com>.
74799
74800 2006-11-01  Bruno Haible  <bruno@clisp.org>
74801
74802         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74803         already declared in <string.h>.
74804         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74805
74806 2006-11-01  Bruno Haible  <bruno@clisp.org>
74807
74808         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74809         * lib/strcase.h: Include <string.h>.
74810         (strcasecmp): Define to rpl_strcasecmp here.
74811
74812 2006-11-01  Bruno Haible  <bruno@clisp.org>
74813
74814         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74815
74816 2006-11-01  Eric Blake  <ebb9@byu.net>
74817
74818         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74819
74820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74821
74822 2006-10-29  Bruno Haible  <bruno@clisp.org>
74823
74824         Make it compile in C++ mode.
74825         * lib/full-write.c (full_rw): Add a cast.
74826
74827 2006-11-01  Bruno Haible  <bruno@clisp.org>
74828
74829         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74830         be POSIX compliant.
74831         Reported by Roger Persson <perrog@gmail.com>.
74832
74833 2006-11-01  Eric Blake  <ebb9@byu.net>
74834
74835         * lib/getopt_.h: Fix comments.
74836
74837 2006-10-31  Eric Blake  <ebb9@byu.net>
74838
74839         * modules/tmpdir (Depends-on): Add sys_stat.
74840         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74841         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74842         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74843         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74844         tempname.
74845
74846 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         Avoid some C++ diagnostics reported by Bruno Haible.
74849         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74850         xmalloc.
74851         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74852         (struct slotvec): Move to top level.
74853         (quotearg_n_options): Rewrite to avoid xmalloc.
74854         * lib/xalloc.h (xcharalloc): New function.
74855         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74856         [defined __cplusplus]: Add function template that provides result
74857         type propagation.  This part of the change is from Bruno Haible.
74858
74859 2006-10-29  Bruno Haible  <bruno@clisp.org>
74860
74861         Make it compile in C++ mode.
74862         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74863         * lib/strnlen1.c (strnlen1): Cast memchr result.
74864         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74865         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74866         (create_temp_dir): Rename local variable 'template'.
74867         (compile_csharp_using_sscli): Add cast.
74868         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74869         * lib/findprog.c (find_in_path): Likewise.
74870         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74871         * lib/wait-process.c (register_slave_subprocess): Likewise.
74872
74873 2006-10-22  Bruno Haible  <bruno@clisp.org>
74874
74875         * modules/tsearch: New file.
74876         * lib/tsearch.h: New file.
74877         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74878         * m4/tsearch.m4: New file.
74879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74880
74881 2006-10-29  Eric Blake  <ebb9@byu.net>
74882
74883         * lib/arcfour.c: Assume config.h.
74884         * lib/arctwo.c: Likewise.
74885         * lib/base64.c: Likewise.
74886         * lib/check-version.c: Likewise.
74887         * lib/crc.c: Likewise.
74888         * lib/des.c: Likewise.
74889         * lib/gc-gnulib.c: Likewise.
74890         * lib/gc-libgcrypt.c: Likewise.
74891         * lib/gc-pbkdf2-sha1.c: Likewise.
74892         * lib/getaddrinfo.c: Likewise.
74893         * lib/getdelim.c: Likewise.
74894         * lib/getline.c: Likewise.
74895         * lib/hmac-md5.c: Likewise.
74896         * lib/hmac-sha1.c: Likewise.
74897         * lib/iconvme.c: Likewise.
74898         * lib/md2.c: Likewise.
74899         * lib/md4.c: Likewise.
74900         * lib/memxor.c: Likewise.
74901         * lib/read-file.c: Likewise.
74902         * lib/readline.c: Likewise.
74903         * lib/rijndael-alg-fst.c: Likewise.
74904         * lib/rijndael-api-fst.c: Likewise.
74905         * lib/xgetdomainname.c: Likewise.
74906
74907 2006-10-28  Eric Blake  <ebb9@byu.net>
74908
74909         * lib/xstrndup.c: Assume config.h.
74910
74911 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74914         stat-macros.h is now for our own macros, whereas stat_h is for
74915         macros in the <sys/stat.h> name space.
74916         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74917         (STAT_MACROS_H): Remove.
74918         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74919         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74920         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74921         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74922         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74923         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74924         Move these macros to ...
74925         * lib/stat_.h: here.  Don't include stat-macros.h.
74926         * lib/canonicalize.c: Don't include stat-macros.h.
74927         * lib/chown.c: Likewise.
74928         * lib/euidaccess.c: Likewise.
74929         * lib/file-type.c: Likewise.
74930         * lib/filemode.c: Likewise.
74931         * lib/glob.c: Likewise.
74932         * lib/isapipe.c: Likewise.
74933         * lib/lchown.c: Likewise.
74934         * lib/lstat.c: Likewise.
74935         * lib/mkdir-p.c: Likewise.
74936         * lib/rmdir.c: Likewise.
74937         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74939         unless mkdir isn't declared, to speed up 'configure'.
74940         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74941         would define all the S_* symbols.
74942         * modules/canonicalize (Depends-on):
74943         Depend on sys_stat, not stat-macros.
74944         * modules/chown: Likewise.
74945         * modules/euidaccess: Likewise.
74946         * modules/filemode: Likewise.
74947         * modules/file-type: Likewise.
74948         * modules/glob: Likewise.
74949         * modules/isapipe: Likewise.
74950         * modules/lchown: Likewise.
74951         * modules/lstat: Likewise.
74952         * modules/mkancesdirs: Likewise.
74953         * modules/rmdir: Likewise.
74954         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74955         * modules/modechange: Likewise.
74956         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74957         (configure.ac): Remove gl_STAT_MACROS.
74958         * modules/sys_stat (Depends-on): Remove stat-macros.
74959
74960 2006-10-27  Bruno Haible  <bruno@clisp.org>
74961
74962         * m4/signed.m4: Remove file.
74963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74964         invocation.
74965         * modules/vasnprintf (Files): Remove m4/signed.m4.
74966
74967 2006-10-27  Bruno Haible  <bruno@clisp.org>
74968
74969         Update to GNU gettext 0.16.
74970         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74971         m4/inttypes-h.m4, m4/signed.m4.
74972         * m4/gettext.m4: Update to GNU gettext 0.16.
74973         * m4/intl.m4: New file, from GNU gettext.
74974         * m4/intldir.m4: New file, from GNU gettext.
74975         * config/srclist.txt: Update
74976
74977 2006-10-27  Eric Blake  <ebb9@byu.net>
74978
74979         * MODULES.html.sh: Document tempname.
74980         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74981         dependencies.
74982         (Files): Move lib/tempname.c...
74983         * modules/tempname: ...to this new module.
74984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74985         (gl_PREREQ_TEMPNAME): Move...
74986         * m4/tempname.m4: ...to this new file.
74987         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74988         * modules/sys_stat (Depends-on): Add stat-macros.
74989         * lib/stat_.h (includes): Pick up stat macros.
74990         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74991         if stat macros are broken.
74992         * lib/tempname.c (includes): No need to include "stat-macros.h".
74993         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74994         (direxists, __path_search) [!_LIBC]: Don't compile these in
74995         gnulib; the tmpdir module covers that.
74996         * lib/tempname.h: New file.
74997
74998 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * COPYING: Explain how gnulib-tool converts licence headers.
75001         Almost all wording by Eric Blake.
75002
75003 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * lib/mbchar.h (is_basic_table): Make read-only.
75006         * lib/mbchar.c (is_basic_table): Likewise.
75007         Reported by John Darrington.
75008
75009 2006-10-25  Bruno Haible  <bruno@clisp.org>
75010
75011         * lib/progname.h (set_program_name): Undefine before defining.
75012
75013 2006-10-25  Bruno Haible  <bruno@clisp.org>
75014
75015         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75016         false for non-gcc C++ compilers.
75017         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75018
75019 2006-10-24  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75022         iconv implementations like Irix iconv.
75023
75024 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         * modules/vararrays: New file.
75027         * m4/vararrays.m4: New file, taken from diffutils.
75028         * MODULES.html.sh: New module vararrays.
75029
75030 2006-10-24  Karl Berry  <karl@gnu.org>
75031
75032         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75033         Don't call GNU Unix.
75034
75035 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75036
75037         * users.txt: Add Libtool.
75038
75039         Sync from Libtool:
75040
75041         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75044         to gnulib's policy of including config.h unconditionally.
75045
75046 2006-10-24  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/wcwidth (Files): Add m4/wint_t.m4.
75049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75050         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75051
75052 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75055         to pacify GCC with some -W flags enabled.  Problem reported by
75056         Bruno Haible.
75057
75058 2006-10-24  Jim Meyering  <jim@meyering.net>
75059
75060         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75061         Reported by Karl Berry.
75062
75063 2006-10-23  Bruno Haible  <bruno@clisp.org>
75064
75065         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75066
75067 2006-10-24  Bruno Haible  <bruno@clisp.org>
75068
75069         * lib/gl_list.h: Use C comment style, not C++ comment style.
75070
75071 2006-10-23  Eric Blake  <ebb9@byu.net>
75072
75073         * lib/getaddrinfo.c (includes): Add missing include.
75074
75075 2006-10-23  Bruno Haible  <bruno@clisp.org>
75076             Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         Ability to rename obstack_free.
75079         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75080         obstack_free.
75081         (obstack_free): Invoke the __obstack_free macro.
75082         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75083
75084 2006-10-23  Bruno Haible  <bruno@clisp.org>
75085             Paul Eggert  <eggert@cs.ucla.edu>
75086
75087         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75088         __argc, __argv from the declaration. (They are defined as macros on
75089         mingw.)
75090
75091 2006-10-22  Bruno Haible  <bruno@clisp.org>
75092
75093         * doc/gnulib-intro.texi: New file.
75094         * doc/gnulib.texi: Include it.
75095
75096 2006-10-21  Bruno Haible  <bruno@clisp.org>
75097
75098         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75099         "Introduction", "Miscellanous Notes", "Particular Modules".
75100
75101 2006-10-21  Bruno Haible  <bruno@clisp.org>
75102
75103         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75104         Change mostlyclean-local rule to avoid sh syntax error from bash
75105         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75106
75107 2006-10-23  Jim Meyering  <jim@meyering.net>
75108
75109         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75110         in place of snprintf.
75111
75112         * modules/inttostr (Files): Add lib/uinttostr.c.
75113         * lib/uinttostr.c (inttostr): New file/function.
75114         * lib/inttostr.h (uinttostr): Declare.
75115         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75116         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75117         Add uinttostr.
75118         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75119
75120 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         * lib/canonicalize.c (ELOOP): Define if not already defined.
75123         Problem reported by Bruno Haible in
75124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75125
75126 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75129         Problem reported by Perry Smith and Ville Laurikari.
75130
75131         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75132         uses.
75133
75134 2006-10-19  Bruno Haible  <bruno@clisp.org>
75135
75136         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75137         for mingw.
75138
75139 2006-10-19  Bruno Haible  <bruno@clisp.org>
75140
75141         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75142         Needed for mingw.
75143
75144 2006-10-19  Bruno Haible  <bruno@clisp.org>
75145
75146         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75147
75148 2006-10-19  Bruno Haible  <bruno@clisp.org>
75149
75150         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75151         it.
75152
75153 2006-10-19  Bruno Haible  <bruno@clisp.org>
75154
75155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75156         invocation.
75157
75158 2006-10-19  Bruno Haible  <bruno@clisp.org>
75159
75160         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75161         mountlist by default.
75162
75163 2006-10-16  Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/c-strstr.c: Include c-strstr.h.
75166
75167 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75168
75169         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75170         in a slash.
75171
75172 2006-10-18  Bruno Haible  <bruno@clisp.org>
75173
75174         * lib/lock.h [C++]: Wrap definitions in extern "C".
75175
75176 2006-10-18  Bruno Haible  <bruno@clisp.org>
75177
75178         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75179         gl_LIBOBJS list.
75180
75181 2006-10-18  Bruno Haible  <bruno@clisp.org>
75182
75183         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75184
75185 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * lib/xstrtol.h: Include gettext.h.
75188         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75189         Problem reported by Eric Blake.
75190         * modules/xstrtol (Depends-on): Add gettext-h.
75191
75192 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75193
75194         * lib/strftime.c (advance): New macro.
75195         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75196         incomplete type, so you can't add 0 to it.  Problem and patch
75197         reported by Eelco Dolstra for dietlibc.
75198
75199 2006-10-18  Jim Meyering  <jim@meyering.net>
75200
75201         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75202         type for a local, and rename it: s/up/user_proc/.
75203
75204 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75205
75206         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75207         READ_UTMP_USER_PROCESS.
75208         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75209
75210 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75213         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75214
75215 2006-10-17  Eric Blake  <ebb9@byu.net>
75216
75217         * lib/sigprocmask.c (sigprocmask): Fix typo.
75218
75219         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75220
75221         * modules/clean-temp (Makefile.am): Don't add to make output...
75222         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75223         config.h.
75224
75225 2006-10-17  Bruno Haible  <bruno@clisp.org>
75226
75227         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75228         differently if DEFAULT_TEXT_DOMAIN is set.
75229
75230 2006-10-16  Bruno Haible  <bruno@clisp.org>
75231
75232         * lib/clean-temp.c: Include fwriteerror.h.
75233
75234 2006-10-16  Bruno Haible  <bruno@clisp.org>
75235
75236         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75237
75238 2006-10-16  Bruno Haible  <bruno@clisp.org>
75239
75240         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75241         * lib/sigprocmask.h: Include <sys/types.h>.
75242         (sigset_t): Use the system's definition if present.
75243
75244 2006-10-17  Eric Blake  <ebb9@byu.net>
75245
75246         * lib/xvasprintf.c (includes): Assume config.h.
75247         * lib/xasprintf.c (includes): Likewise.
75248
75249 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75252         at least as wide as intmax_t.
75253
75254 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75255
75256         (Imported from Automake.)
75257         * build-aux/gnupload: Update to version 1.1 of directive file.
75258
75259 2006-10-16  Eric Blake  <ebb9@byu.net>
75260
75261         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75262         match Automake 1.10a.
75263
75264 2006-10-14  Bruno Haible  <bruno@clisp.org>
75265
75266         * modules/sigprocmask: New file.
75267         * lib/sigprocmask.h: New file.
75268         * lib/sigprocmask.c: New file.
75269         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75270         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75271         request sigprocmask.o.
75272         (gl_PREREQ_SIGPROCMASK): New macro.
75273         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75274         (Depends-on): Add sigprocmask.
75275         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75276         gt_SIGNALBLOCKING. Test for 'raise' only once.
75277         * lib/fatal-signal.c: Include sigprocmask.h.
75278         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75279         unblock_fatal_signals): Define always.
75280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75281         sigprocmask.
75282
75283 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         Sync from Automake.
75286         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75287         which incorrectly sets the mode of an existing destination
75288         directory.  In some cases the unpatched install-sh could do the
75289         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75290         system.  We hope this is rare in practice, but it's clearly worth
75291         fixing.  Problem reported by Alex Unleashed in
75292         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75293         Also, don't bother to check for -m bugs unless we're using -m;
75294         suggested by Stepan Kasal.
75295
75296 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75297
75298         Sync from Automake.
75299         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75300         `-c' flag, so they appear at the same position as in %FASTDEP%
75301         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75302         which ignores unknown options only after the first non-option.
75303         Bug report against M4 by Nelson H. F. Beebe.
75304
75305 2006-10-13  Jim Meyering  <jim@meyering.net>
75306
75307         Fix a bug in yesterday's change.
75308         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75309         p->fts_statp->st_dev would be used uninitialized.
75310         Ensures that we always call fts_stat on the very first entry.
75311         Miklos Szeredi reported that find -xdev stopped working.
75312
75313 2006-10-12  Bruno Haible  <bruno@clisp.org>
75314
75315         * gnulib-tool (func_get_automake_snippet): Append an automatically
75316         computed EXTRA_DIST augmentation.
75317         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75318         * modules/alloca-opt (Makefile.am): Likewise.
75319         * modules/allocsa (Makefile.am): Likewise.
75320         * modules/arcfour (Makefile.am): Likewise.
75321         * modules/arctwo (Makefile.am): Likewise.
75322         * modules/argmatch (Makefile.am): Likewise.
75323         * modules/argz (Makefile.am): Likewise.
75324         * modules/atexit (Makefile.am): Likewise.
75325         * modules/backupfile (Makefile.am): Likewise.
75326         * modules/byteswap (Makefile.am): Likewise.
75327         * modules/c-strtod (Makefile.am): Likewise.
75328         * modules/c-strtold (Makefile.am): Likewise.
75329         * modules/calloc (Makefile.am): Likewise.
75330         * modules/canon-host (Makefile.am): Likewise.
75331         * modules/canonicalize (Makefile.am): Likewise.
75332         * modules/chdir-long (Makefile.am): Likewise.
75333         * modules/chdir-safer (Makefile.am): Likewise.
75334         * modules/check-version (Makefile.am): Likewise.
75335         * modules/chown (Makefile.am): Likewise.
75336         * modules/cloexec (Makefile.am): Likewise.
75337         * modules/close-stream (Makefile.am): Likewise.
75338         * modules/closeout (Makefile.am): Likewise.
75339         * modules/crc (Makefile.am): Likewise.
75340         * modules/csharpexec (Makefile.am): Likewise.
75341         * modules/cycle-check (Makefile.am): Likewise.
75342         * modules/des (Makefile.am): Likewise.
75343         * modules/dev-ino (Makefile.am): Likewise.
75344         * modules/dirfd (Makefile.am): Likewise.
75345         * modules/dirname (Makefile.am): Likewise.
75346         * modules/dup2 (Makefile.am): Likewise.
75347         * modules/eealloc (Makefile.am): Likewise.
75348         * modules/error (Makefile.am): Likewise.
75349         * modules/euidaccess (Makefile.am): Likewise.
75350         * modules/exclude (Makefile.am): Likewise.
75351         * modules/exitfail (Makefile.am): Likewise.
75352         * modules/fcntl-safer (Makefile.am): Likewise.
75353         * modules/fcntl (Makefile.am): Likewise.
75354         * modules/file-type (Makefile.am): Likewise.
75355         * modules/fileblocks (Makefile.am): Likewise.
75356         * modules/filemode (Makefile.am): Likewise.
75357         * modules/filenamecat (Makefile.am): Likewise.
75358         * modules/fnmatch (Makefile.am): Likewise.
75359         * modules/fopen-safer (Makefile.am): Likewise.
75360         * modules/fpending (Makefile.am): Likewise.
75361         * modules/fprintftime (Makefile.am): Likewise.
75362         * modules/free (Makefile.am): Likewise.
75363         * modules/fsusage (Makefile.am): Likewise.
75364         * modules/ftruncate (Makefile.am): Likewise.
75365         * modules/fts (Makefile.am): Likewise.
75366         * modules/gc-arcfour (Makefile.am): Likewise.
75367         * modules/gc-des (Makefile.am): Likewise.
75368         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75369         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75370         * modules/gc-md4 (Makefile.am): Likewise.
75371         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75372         * modules/gc-sha1 (Makefile.am): Likewise.
75373         * modules/gc (Makefile.am): Likewise.
75374         * modules/getaddrinfo (Makefile.am): Likewise.
75375         * modules/getcwd (Makefile.am): Likewise.
75376         * modules/getdelim (Makefile.am): Likewise.
75377         * modules/getdomainname (Makefile.am): Likewise.
75378         * modules/getgroups (Makefile.am): Likewise.
75379         * modules/gethostname (Makefile.am): Likewise.
75380         * modules/gethrxtime (Makefile.am): Likewise.
75381         * modules/getline (Makefile.am): Likewise.
75382         * modules/getloadavg (Makefile.am): Likewise.
75383         * modules/getlogin_r (Makefile.am): Likewise.
75384         * modules/getndelim2 (Makefile.am): Likewise.
75385         * modules/getopt (Makefile.am): Likewise.
75386         * modules/getpagesize (Makefile.am): Likewise.
75387         * modules/getpass-gnu (Makefile.am): Likewise.
75388         * modules/getpass (Makefile.am): Likewise.
75389         * modules/getsubopt (Makefile.am): Likewise.
75390         * modules/gettime (Makefile.am): Likewise.
75391         * modules/gettimeofday (Makefile.am): Likewise.
75392         * modules/getugroups (Makefile.am): Likewise.
75393         * modules/getusershell (Makefile.am): Likewise.
75394         * modules/glob (Makefile.am): Likewise.
75395         * modules/group-member (Makefile.am): Likewise.
75396         * modules/hard-locale (Makefile.am): Likewise.
75397         * modules/hash (Makefile.am): Likewise.
75398         * modules/hmac-md5 (Makefile.am): Likewise.
75399         * modules/hmac-sha1 (Makefile.am): Likewise.
75400         * modules/human (Makefile.am): Likewise.
75401         * modules/idcache (Makefile.am): Likewise.
75402         * modules/imaxabs (Makefile.am): Likewise.
75403         * modules/imaxdiv (Makefile.am): Likewise.
75404         * modules/inet_ntop (Makefile.am): Likewise.
75405         * modules/inet_pton (Makefile.am): Likewise.
75406         * modules/intprops (Makefile.am): Likewise.
75407         * modules/inttostr (Makefile.am): Likewise.
75408         * modules/inttypes (Makefile.am): Likewise.
75409         * modules/isapipe (Makefile.am): Likewise.
75410         * modules/javaversion (Makefile.am): Likewise.
75411         * modules/lchmod (Makefile.am): Likewise.
75412         * modules/lchown (Makefile.am): Likewise.
75413         * modules/localcharset (Makefile.am): Likewise.
75414         * modules/long-options (Makefile.am): Likewise.
75415         * modules/lstat (Makefile.am): Likewise.
75416         * modules/malloc (Makefile.am): Likewise.
75417         * modules/mathl (Makefile.am): Likewise.
75418         * modules/mbchar (Makefile.am): Likewise.
75419         * modules/md2 (Makefile.am): Likewise.
75420         * modules/md4 (Makefile.am): Likewise.
75421         * modules/md5 (Makefile.am): Likewise.
75422         * modules/memcasecmp (Makefile.am): Likewise.
75423         * modules/memchr (Makefile.am): Likewise.
75424         * modules/memcmp (Makefile.am): Likewise.
75425         * modules/memcoll (Makefile.am): Likewise.
75426         * modules/memcpy (Makefile.am): Likewise.
75427         * modules/memmem (Makefile.am): Likewise.
75428         * modules/memmove (Makefile.am): Likewise.
75429         * modules/mempcpy (Makefile.am): Likewise.
75430         * modules/memrchr (Makefile.am): Likewise.
75431         * modules/memset (Makefile.am): Likewise.
75432         * modules/memxor (Makefile.am): Likewise.
75433         * modules/mkancesdirs (Makefile.am): Likewise.
75434         * modules/mkdir-p (Makefile.am): Likewise.
75435         * modules/mkdir (Makefile.am): Likewise.
75436         * modules/mkdtemp (Makefile.am): Likewise.
75437         * modules/mkstemp (Makefile.am): Likewise.
75438         * modules/mktime (Makefile.am): Likewise.
75439         * modules/modechange (Makefile.am): Likewise.
75440         * modules/mountlist (Makefile.am): Likewise.
75441         * modules/nanosleep (Makefile.am): Likewise.
75442         * modules/obstack (Makefile.am): Likewise.
75443         * modules/openat (Makefile.am): Likewise.
75444         * modules/pagealign_alloc (Makefile.am): Likewise.
75445         * modules/pathmax (Makefile.am): Likewise.
75446         * modules/physmem (Makefile.am): Likewise.
75447         * modules/poll (Makefile.am): Likewise.
75448         * modules/posixtm (Makefile.am): Likewise.
75449         * modules/posixver (Makefile.am): Likewise.
75450         * modules/putenv (Makefile.am): Likewise.
75451         * modules/quote (Makefile.am): Likewise.
75452         * modules/quotearg (Makefile.am): Likewise.
75453         * modules/raise (Makefile.am): Likewise.
75454         * modules/read-file (Makefile.am): Likewise.
75455         * modules/readline (Makefile.am): Likewise.
75456         * modules/readlink (Makefile.am): Likewise.
75457         * modules/readtokens (Makefile.am): Likewise.
75458         * modules/readutmp (Makefile.am): Likewise.
75459         * modules/realloc (Makefile.am): Likewise.
75460         * modules/regex (Makefile.am): Likewise.
75461         * modules/rename-dest-slash (Makefile.am): Likewise.
75462         * modules/rename (Makefile.am): Likewise.
75463         * modules/rijndael (Makefile.am): Likewise.
75464         * modules/rmdir (Makefile.am): Likewise.
75465         * modules/rpmatch (Makefile.am): Likewise.
75466         * modules/safe-read (Makefile.am): Likewise.
75467         * modules/safe-write (Makefile.am): Likewise.
75468         * modules/same-inode (Makefile.am): Likewise.
75469         * modules/same (Makefile.am): Likewise.
75470         * modules/save-cwd (Makefile.am): Likewise.
75471         * modules/savedir (Makefile.am): Likewise.
75472         * modules/setenv (Makefile.am): Likewise.
75473         * modules/settime (Makefile.am): Likewise.
75474         * modules/sha1 (Makefile.am): Likewise.
75475         * modules/sig2str (Makefile.am): Likewise.
75476         * modules/snprintf (Makefile.am): Likewise.
75477         * modules/stat-macros (Makefile.am): Likewise.
75478         * modules/stat-time (Makefile.am): Likewise.
75479         * modules/stdbool (Makefile.am): Likewise.
75480         * modules/stdint (Makefile.am): Likewise.
75481         * modules/stdlib-safer (Makefile.am): Likewise.
75482         * modules/stpcpy (Makefile.am): Likewise.
75483         * modules/stpncpy (Makefile.am): Likewise.
75484         * modules/strcase (Makefile.am): Likewise.
75485         * modules/strcasestr (Makefile.am): Likewise.
75486         * modules/strchrnul (Makefile.am): Likewise.
75487         * modules/strcspn (Makefile.am): Likewise.
75488         * modules/strdup (Makefile.am): Likewise.
75489         * modules/strerror (Makefile.am): Likewise.
75490         * modules/strftime (Makefile.am): Likewise.
75491         * modules/strndup (Makefile.am): Likewise.
75492         * modules/strnlen (Makefile.am): Likewise.
75493         * modules/strpbrk (Makefile.am): Likewise.
75494         * modules/strsep (Makefile.am): Likewise.
75495         * modules/strstr (Makefile.am): Likewise.
75496         * modules/strtod (Makefile.am): Likewise.
75497         * modules/strtoimax (Makefile.am): Likewise.
75498         * modules/strtok_r (Makefile.am): Likewise.
75499         * modules/strtol (Makefile.am): Likewise.
75500         * modules/strtoll (Makefile.am): Likewise.
75501         * modules/strtoul (Makefile.am): Likewise.
75502         * modules/strtoull (Makefile.am): Likewise.
75503         * modules/strtoumax (Makefile.am): Likewise.
75504         * modules/strverscmp (Makefile.am): Likewise.
75505         * modules/sys_socket (Makefile.am): Likewise.
75506         * modules/sys_stat (Makefile.am): Likewise.
75507         * modules/sysexits (Makefile.am): Likewise.
75508         * modules/time_r (Makefile.am): Likewise.
75509         * modules/timegm (Makefile.am): Likewise.
75510         * modules/timespec (Makefile.am): Likewise.
75511         * modules/tmpfile-safer (Makefile.am): Likewise.
75512         * modules/trim (Makefile.am): Likewise.
75513         * modules/unistd-safer (Makefile.am): Likewise.
75514         * modules/unlinkdir (Makefile.am): Likewise.
75515         * modules/unlocked-io (Makefile.am): Likewise.
75516         * modules/userspec (Makefile.am): Likewise.
75517         * modules/utime (Makefile.am): Likewise.
75518         * modules/utimecmp (Makefile.am): Likewise.
75519         * modules/utimens (Makefile.am): Likewise.
75520         * modules/vasnprintf (Makefile.am): Likewise.
75521         * modules/vasprintf (Makefile.am): Likewise.
75522         * modules/vsnprintf (Makefile.am): Likewise.
75523         * modules/xalloc (Makefile.am): Likewise.
75524         * modules/xgetcwd (Makefile.am): Likewise.
75525         * modules/xnanosleep (Makefile.am): Likewise.
75526         * modules/xreadlink (Makefile.am): Likewise.
75527         * modules/xstrtod (Makefile.am): Likewise.
75528         * modules/xstrtol (Makefile.am): Likewise.
75529         * modules/xstrtold (Makefile.am): Likewise.
75530         * modules/yesno (Makefile.am): Likewise.
75531         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75532
75533 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         * modules/error (Makefile.am): Distribute files through
75536         EXTRA_DIST, not lib_SOURCES.
75537
75538 2006-10-12  Eric Blake  <ebb9@byu.net>
75539
75540         * modules/error (Makefile.am): Distribute files in /lib.
75541         * modules/obstack (Makefile.am): Likewise.
75542
75543 2006-10-12  Bruno Haible  <bruno@clisp.org>
75544
75545         * modules/acl (Makefile.am): Distribute all files in lib/ through
75546         EXTRA_DIST.
75547         * modules/arcfour (Makefile.am): Likewise.
75548         * modules/arctwo (Makefile.am): Likewise.
75549         * modules/argmatch (Makefile.am): Likewise.
75550         * modules/argz (Makefile.am): Likewise.
75551         * modules/atexit (Makefile.am): Likewise.
75552         * modules/backupfile (Makefile.am): Likewise.
75553         * modules/c-strtod (Makefile.am): Likewise.
75554         * modules/c-strtold (Makefile.am): Likewise.
75555         * modules/calloc (Makefile.am): Likewise.
75556         * modules/canon-host (Makefile.am): Likewise.
75557         * modules/canonicalize (Makefile.am): Likewise.
75558         * modules/chdir-long (Makefile.am): Likewise.
75559         * modules/chdir-safer (Makefile.am): Likewise.
75560         * modules/check-version (Makefile.am): Likewise.
75561         * modules/chown (Makefile.am): Likewise.
75562         * modules/cloexec (Makefile.am): Likewise.
75563         * modules/close-stream (Makefile.am): Likewise.
75564         * modules/closeout (Makefile.am): Likewise.
75565         * modules/crc (Makefile.am): Likewise.
75566         * modules/cycle-check (Makefile.am): Likewise.
75567         * modules/des (Makefile.am): Likewise.
75568         * modules/dirfd (Makefile.am): Likewise.
75569         * modules/dirname (Makefile.am): Likewise.
75570         * modules/dup2 (Makefile.am): Likewise.
75571         * modules/euidaccess (Makefile.am): Likewise.
75572         * modules/exclude (Makefile.am): Likewise.
75573         * modules/exitfail (Makefile.am): Likewise.
75574         * modules/fcntl-safer (Makefile.am): Likewise.
75575         * modules/file-type (Makefile.am): Likewise.
75576         * modules/fileblocks (Makefile.am): Likewise.
75577         * modules/filemode (Makefile.am): Likewise.
75578         * modules/filenamecat (Makefile.am): Likewise.
75579         * modules/fnmatch (Makefile.am): Likewise.
75580         * modules/fopen-safer (Makefile.am): Likewise.
75581         * modules/fpending (Makefile.am): Likewise.
75582         * modules/fprintftime (Makefile.am): Likewise.
75583         * modules/free (Makefile.am): Likewise.
75584         * modules/fsusage (Makefile.am): Likewise.
75585         * modules/ftruncate (Makefile.am): Likewise.
75586         * modules/fts (Makefile.am): Likewise.
75587         * modules/gc (Makefile.am): Likewise.
75588         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75589         * modules/getaddrinfo (Makefile.am): Likewise.
75590         * modules/getcwd (Makefile.am): Likewise.
75591         * modules/getdelim (Makefile.am): Likewise.
75592         * modules/getdomainname (Makefile.am): Likewise.
75593         * modules/getgroups (Makefile.am): Likewise.
75594         * modules/gethostname (Makefile.am): Likewise.
75595         * modules/gethrxtime (Makefile.am): Likewise.
75596         * modules/getline (Makefile.am): Likewise.
75597         * modules/getloadavg (Makefile.am): Likewise.
75598         * modules/getlogin_r (Makefile.am): Likewise.
75599         * modules/getopt (Makefile.am): Likewise.
75600         * modules/getpass (Makefile.am): Likewise.
75601         * modules/getpass-gnu (Makefile.am): Likewise.
75602         * modules/getsubopt (Makefile.am): Likewise.
75603         * modules/gettime (Makefile.am): Likewise.
75604         * modules/gettimeofday (Makefile.am): Likewise.
75605         * modules/getugroups (Makefile.am): Likewise.
75606         * modules/getusershell (Makefile.am): Likewise.
75607         * modules/glob (Makefile.am): Likewise.
75608         * modules/group-member (Makefile.am): Likewise.
75609         * modules/hard-locale (Makefile.am): Likewise.
75610         * modules/hash (Makefile.am): Likewise.
75611         * modules/hmac-md5 (Makefile.am): Likewise.
75612         * modules/hmac-sha1 (Makefile.am): Likewise.
75613         * modules/human (Makefile.am): Likewise.
75614         * modules/idcache (Makefile.am): Likewise.
75615         * modules/imaxabs (Makefile.am): Likewise.
75616         * modules/imaxdiv (Makefile.am): Likewise.
75617         * modules/inet_ntop (Makefile.am): Likewise.
75618         * modules/inet_pton (Makefile.am): Likewise.
75619         * modules/inttostr (Makefile.am): Likewise.
75620         * modules/isapipe (Makefile.am): Likewise.
75621         * modules/lchown (Makefile.am): Likewise.
75622         * modules/long-options (Makefile.am): Likewise.
75623         * modules/lstat (Makefile.am): Likewise.
75624         * modules/malloc (Makefile.am): Likewise.
75625         * modules/mathl (Makefile.am): Likewise.
75626         * modules/mbchar (Makefile.am): Likewise.
75627         * modules/md2 (Makefile.am): Likewise.
75628         * modules/md4 (Makefile.am): Likewise.
75629         * modules/md5 (Makefile.am): Likewise.
75630         * modules/memcasecmp (Makefile.am): Likewise.
75631         * modules/memchr (Makefile.am): Likewise.
75632         * modules/memcmp (Makefile.am): Likewise.
75633         * modules/memcoll (Makefile.am): Likewise.
75634         * modules/memcpy (Makefile.am): Likewise.
75635         * modules/memmem (Makefile.am): Likewise.
75636         * modules/memmove (Makefile.am): Likewise.
75637         * modules/mempcpy (Makefile.am): Likewise.
75638         * modules/memrchr (Makefile.am): Likewise.
75639         * modules/memset (Makefile.am): Likewise.
75640         * modules/memxor (Makefile.am): Likewise.
75641         * modules/mkancesdirs (Makefile.am): Likewise.
75642         * modules/mkdir (Makefile.am): Likewise.
75643         * modules/mkdir-p (Makefile.am): Likewise.
75644         * modules/mkdtemp (Makefile.am): Likewise.
75645         * modules/mkstemp (Makefile.am): Likewise.
75646         * modules/mktime (Makefile.am): Likewise.
75647         * modules/modechange (Makefile.am): Likewise.
75648         * modules/mountlist (Makefile.am): Likewise.
75649         * modules/nanosleep (Makefile.am): Likewise.
75650         * modules/openat (Makefile.am): Likewise.
75651         * modules/pagealign_alloc (Makefile.am): Likewise.
75652         * modules/physmem (Makefile.am): Likewise.
75653         * modules/poll (Makefile.am): Likewise.
75654         * modules/posixtm (Makefile.am): Likewise.
75655         * modules/posixver (Makefile.am): Likewise.
75656         * modules/putenv (Makefile.am): Likewise.
75657         * modules/quote (Makefile.am): Likewise.
75658         * modules/quotearg (Makefile.am): Likewise.
75659         * modules/raise (Makefile.am): Likewise.
75660         * modules/read-file (Makefile.am): Likewise.
75661         * modules/readline (Makefile.am): Likewise.
75662         * modules/readlink (Makefile.am): Likewise.
75663         * modules/readtokens (Makefile.am): Likewise.
75664         * modules/readutmp (Makefile.am): Likewise.
75665         * modules/realloc (Makefile.am): Likewise.
75666         * modules/regex (Makefile.am): Likewise.
75667         * modules/rename (Makefile.am): Likewise.
75668         * modules/rename-dest-slash (Makefile.am): Likewise.
75669         * modules/rijndael (Makefile.am): Likewise.
75670         * modules/rmdir (Makefile.am): Likewise.
75671         * modules/rpmatch (Makefile.am): Likewise.
75672         * modules/safe-read (Makefile.am): Likewise.
75673         * modules/safe-write (Makefile.am): Likewise.
75674         * modules/same (Makefile.am): Likewise.
75675         * modules/save-cwd (Makefile.am): Likewise.
75676         * modules/savedir (Makefile.am): Likewise.
75677         * modules/setenv (Makefile.am): Likewise.
75678         * modules/settime (Makefile.am): Likewise.
75679         * modules/sha1 (Makefile.am): Likewise.
75680         * modules/sig2str (Makefile.am): Likewise.
75681         * modules/snprintf (Makefile.am): Likewise.
75682         * modules/stdlib-safer (Makefile.am): Likewise.
75683         * modules/stpcpy (Makefile.am): Likewise.
75684         * modules/stpncpy (Makefile.am): Likewise.
75685         * modules/strcase (Makefile.am): Likewise.
75686         * modules/strcasestr (Makefile.am): Likewise.
75687         * modules/strchrnul (Makefile.am): Likewise.
75688         * modules/strcspn (Makefile.am): Likewise.
75689         * modules/strdup (Makefile.am): Likewise.
75690         * modules/strerror (Makefile.am): Likewise.
75691         * modules/strftime (Makefile.am): Likewise.
75692         * modules/strndup (Makefile.am): Likewise.
75693         * modules/strnlen (Makefile.am): Likewise.
75694         * modules/strpbrk (Makefile.am): Likewise.
75695         * modules/strsep (Makefile.am): Likewise.
75696         * modules/strstr (Makefile.am): Likewise.
75697         * modules/strtod (Makefile.am): Likewise.
75698         * modules/strtoimax (Makefile.am): Likewise.
75699         * modules/strtok_r (Makefile.am): Likewise.
75700         * modules/strtol (Makefile.am): Likewise.
75701         * modules/strtoll (Makefile.am): Likewise.
75702         * modules/strtoul (Makefile.am): Likewise.
75703         * modules/strtoull (Makefile.am): Likewise.
75704         * modules/strtoumax (Makefile.am): Likewise.
75705         * modules/strverscmp (Makefile.am): Likewise.
75706         * modules/time_r (Makefile.am): Likewise.
75707         * modules/timegm (Makefile.am): Likewise.
75708         * modules/tmpfile-safer (Makefile.am): Likewise.
75709         * modules/unistd-safer (Makefile.am): Likewise.
75710         * modules/unlinkdir (Makefile.am): Likewise.
75711         * modules/userspec (Makefile.am): Likewise.
75712         * modules/utime (Makefile.am): Likewise.
75713         * modules/utimecmp (Makefile.am): Likewise.
75714         * modules/utimens (Makefile.am): Likewise.
75715         * modules/vasnprintf (Makefile.am): Likewise.
75716         * modules/vasprintf (Makefile.am): Likewise.
75717         * modules/vsnprintf (Makefile.am): Likewise.
75718         * modules/xalloc (Makefile.am): Likewise.
75719         * modules/xgetcwd (Makefile.am): Likewise.
75720         * modules/xnanosleep (Makefile.am): Likewise.
75721         * modules/xreadlink (Makefile.am): Likewise.
75722         * modules/xstrtod (Makefile.am): Likewise.
75723         * modules/xstrtol (Makefile.am): Likewise.
75724         * modules/xstrtold (Makefile.am): Likewise.
75725         * modules/yesno (Makefile.am): Likewise.
75726
75727 2006-10-12  Jim Meyering  <jim@meyering.net>
75728
75729         * m4/getloadavg.m4: Revert the change below.
75730
75731         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75732         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75733         fail with a symlink, which is what coreutils' ./bootstrap now
75734         creates by default.
75735
75736 2006-10-12  Bruno Haible  <bruno@clisp.org>
75737
75738         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75739         mingw.
75740         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75741         MSVC and mingw explicitly.
75742
75743 2006-10-11  Simon Josefsson  <jas@extundo.com>
75744             Bruno Haible  <bruno@clisp.org>
75745
75746         Add support for multiple gnulib-tool invocations in the scope of a
75747         single configure.ac file.
75748         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75749         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75750         with the same contents as the _LIBADD variable.
75751         (func_emit_initmacro_start, func_emit_initmacro_end,
75752         func_emit_initmacro_done): New functions.
75753         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75754         gl_LIBOBJS and gl_LTLIBOBJS.
75755
75756 2006-10-11  Bruno Haible  <bruno@clisp.org>
75757
75758         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75759         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75760         autoreconf. Instead, invoke autopoint explicitly but move back the
75761         *.m4 files from gnulib.
75762
75763 2006-10-11  Bruno Haible  <bruno@clisp.org>
75764
75765         * gnulib-tool (func_usage): Make module names after --create-testdir
75766         optional.
75767         (func_create_testdir): If no module was specified, use nearly all
75768         modules.
75769
75770 2006-10-12  Jim Meyering  <jim@meyering.net>
75771
75772         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75773         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75774         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75775         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75776         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75777         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75778         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75779         (fts_set_stat_required): New function.
75780         (fts_open): Defer the calls to fts_stat, if possible or requested.
75781         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75782         into fts_stat itself.
75783         (fts_read): Perform any required (deferred) fts_stat call.
75784         (fts_build): Likewise, for the directory we're about to open and read.
75785         In the readdir loop, carefully decide whether each entry will require
75786         an eventual call to fts_stat, using dirent.d_type info if available.
75787         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75788         a command line argument into this function.  Update all callers.
75789         Map a return value of FTS_DOT to FTS_D for a command line argument.
75790         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75791         Thanks to Miklos Szeredi for his tenacity and for the initial
75792         bug report about "find" failing on a FUSE-based file system.
75793
75794         * lib/fts.c (fts_open): Use consistent indentation.
75795
75796 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75799         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75800         reported by Jim Meyering.  All uses of cache variables renamed
75801         to match Autoconf's.
75802         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75803         the other one.
75804
75805         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75806         Fix misspelling in diagnostic.
75807
75808 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75811         defined.  Problem reported by Matthew Woehlke.
75812
75813         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75814         Add support for Tandem NonStop R series.
75815         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75816         Use new macro.
75817
75818         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75819         (has_trailing_slash): Omit size arg; all callers changed.
75820         Omit 'inline', since it doesn't help performance and we'd
75821         need to configure it.
75822         Don't count //, ///, etc. as having a trailing slash.
75823         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75824         (rpl_rename_dest_slash): On failure, use rename's errno rather
75825         than (in some cases) an incorrect or junk errno.
75826         Simplify code by removing need to compute length; this does
75827         cause it to make two passes instead of one over the file name,
75828         but it's worth it.
75829
75830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75831         change, since Autoconf's version may no longer be appropriate now
75832         that we are using CVS Autoconf's version.  Add support for Tandem.
75833
75834 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75835             Bruno Haible  <bruno@clisp.org>
75836
75837         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75838         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75839         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75840         gl_AC_TYPE_LONG_LONG.
75841
75842         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75843         instead of HAVE_LONG_LONG.
75844         * lib/printf-args.c (printf_fetchargs): Likewise.
75845         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75846         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75847         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75848         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75849         gl_AC_TYPE_LONG_LONG.
75850
75851 2006-10-11  Bruno Haible  <bruno@clisp.org>
75852
75853         * m4/longlong.m4: Add comments.
75854         * m4/ulonglong.m4: Likewise.
75855
75856 2006-10-10  Bruno Haible  <bruno@clisp.org>
75857
75858         Make it possible to #define stpcpy, strdup to aliases.
75859         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75860         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75861
75862 2006-10-10  Bruno Haible  <bruno@clisp.org>
75863
75864         Make it possible to #define gcd to an alias.
75865         * lib/gcd.c: Include config.h.
75866
75867 2006-10-10  Bruno Haible  <bruno@clisp.org>
75868
75869         Make it possible to #define c_isascii to an alias.
75870         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75871         defined. Undefine the macros before defining them, to avoid gcc
75872         warnings.
75873         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75874         define NO_C_CTYPE_MACROS early.
75875
75876 2006-10-10  Bruno Haible  <bruno@clisp.org>
75877
75878         Make it possible to #define set_program_name to an alias.
75879         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75880         ENABLE_RELOCATABLE early.
75881
75882 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75885         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75886         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75887         More generally, don't assume that 64-bit signed int is available
75888         if unsigned int is, and vice versa.
75889         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75890         unsigned symbols, not on their signed counterparts.
75891         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75892         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75893         (UINT64_C, UINTMAX_C):
75894         Likewise.
75895         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75896         unsigned counterparts.
75897         (Have_long_long, Unsigned): New macros.
75898         (Int): Renamed from INT.
75899         (strtoimax): Use the new macros.
75900         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75901         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75902         * modules/inttypes (inttypes.h): Substitute
75903         HAVE_UNSIGNED_LONG_LONG_INT.
75904         * modules/stdint (stdint.h): Likewise.
75905         (Files): Add m4/ulonglong.m4.
75906
75907 2006-10-10  Bruno Haible  <bruno@clisp.org>
75908
75909         Fix a gcc -Wshadow warning.
75910         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75911         to 'bucket'.
75912         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75913         gl_linked_indexof_from_to): Likewise.
75914         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75915         Likewise.
75916         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75917         Likewise.
75918         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75919         Reported by Eric Blake.
75920
75921 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75924         for NetBSD.  Problem reported by Bruno Haible.
75925
75926 2006-10-09  Jim Meyering  <jim@meyering.net>
75927
75928         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75929         Patch from Bruno Haible.
75930
75931 2006-10-09  Jim Meyering  <jim@meyering.net>
75932
75933         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75934         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75935         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75936
75937 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         Don't include <config.h> twice; this doesn't work in some cases,
75940         e.g., when config.h has "#define intmax_t long long int" and
75941         we include <config.h>, <inttypes.h>, <config.h> in that order.
75942         Problem reported by Matthew Woehlke in:
75943         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75944         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75945         * lib/fts-cycle.c: Don't include config.h.
75946         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75947         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75948         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75949         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75950         inttypes.h.
75951         * lib/xstrtoumax.c: Likewise.
75952         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75953         __strtol and the like, so that this module is more like its siblings.
75954         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75955         Remove; no longer needed now that we assume gnulib inttypes.h.
75956
75957 2006-10-08  Bruno Haible  <bruno@clisp.org>
75958
75959         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75960         option.
75961
75962 2006-10-07  Jim Meyering  <jim@meyering.net>
75963
75964         * modules/inttypes (inttypes.h): Revert what seems to have been
75965         an inadvertent part of today's change: use "|", not "/" in the
75966         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75967
75968 2006-10-07  Bruno Haible  <bruno@clisp.org>
75969
75970         * modules/sublist: New file.
75971
75972 2006-10-07  Bruno Haible  <bruno@clisp.org>
75973
75974         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75975         * modules/argz (argz.h): Likewise.
75976         * modules/arpa_inet (arpa/inet.h): Likewise.
75977         * modules/byteswap (byteswap.h): Likewise.
75978         * modules/configmake (configmake.h): Likewise.
75979         * modules/fcntl (fcntl.h): Likewise.
75980         * modules/fnmatch (fnmatch.h): Likewise.
75981         * modules/getopt (getopt.h): Likewise.
75982         * modules/glob (glob.h): Likewise.
75983         * modules/inttypes (inttypes.h): Likewise.
75984         * modules/netinet_in (netinet/in.h): Likewise.
75985         * modules/poll (poll.h): Likewise.
75986         * modules/stdbool (stdbool.h): Likewise.
75987         * modules/stdint (stdint.h): Likewise.
75988         * modules/sys_select (sys/select.h): Likewise.
75989         * modules/sys_socket (sys/socket.h): Likewise.
75990         * modules/sys_stat (sys/stat.h): Likewise.
75991         * modules/sysexits (sysexits.h): Likewise.
75992         * modules/unistd (unistd.h): Likewise.
75993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75994         Add a "DO NOT EDIT" comment to the generated file.
75995         (func_import): Likewise for gnulib-comp.m4.
75996
75997 2006-10-07  Bruno Haible  <bruno@clisp.org>
75998
75999         * lib/gl_sublist.h: New file.
76000         * lib/gl_sublist.c: New file.
76001
76002 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76005         name (relative to the original working directory) and the file
76006         name component (relative to the temporary working directory).  All
76007         callers changed.
76008         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76009         * lib/mkdir-p.c (make_dir_parents): Likewise.
76010         * lib/mkdir-p.h (make_dir_parents): Likewise.
76011
76012 2006-10-06  Eric Blake  <ebb9@byu.net>
76013
76014         Define several macros for use by the clean-temp module.
76015         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76016         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76017         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76018
76019         * lib/clean-temp.h (close_stream_temp): New declaration.
76020         * lib/clean-temp.c (includes): Pull in headers according to what
76021         other modules are in use.
76022         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76023
76024 2006-10-06  Bruno Haible  <bruno@clisp.org>
76025
76026         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76027         instead of fopen, fwriteerror.
76028
76029 2006-10-06  Bruno Haible  <bruno@clisp.org>
76030
76031         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76032         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76033         int.
76034         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76035         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76036         Return an error indicator.
76037         Suggested by Eric Blake.
76038
76039 2006-10-06  Bruno Haible  <bruno@clisp.org>
76040
76041         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76042         Reported by Eric Blake.
76043
76044 2006-10-06  Bruno Haible  <bruno@clisp.org>
76045
76046         * modules/closeout (Description): Mention stderr too.
76047
76048 2006-10-06  Bruno Haible  <bruno@clisp.org>
76049         and Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * lib/closeout.c (close_stdout): Also close stderr.
76052         * lib/closeout.h: Update comment.
76053
76054 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76057         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76058         * lib/dirchownmod.c: Include lchown.h.
76059         * lib/lchown.c: Don't include files that lchown.h now includes.
76060         Don't declare chown, since lchown.h now does that.
76061         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76062         (lchown): Define to rpl_chown if lchown is declared but
76063         does not exist.  Declare using a prototype if lchown is not
76064         declared.  Add a copyright notice.
76065         * lib/mkstemp.h: Include <unistd.h>.
76066         * lib/openat.c: Include lchown.h.
76067
76068         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76069         we now test for that separately.
76070         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76071         rather than O_NOFOLLOW, when testing whether it's possible to
76072         avoid a race condition reliably.
76073         * lib/savewd.c (savewd_chdir): Likewise.
76074
76075         Remove macros that are no longer needed now that stdint.h is
76076         reliable.
76077         * lib/fsusage.c (UINTMAX_MAX): Remove.
76078         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76079         * lib/utimecmp.c (SIZE_MAX): Remove.
76080
76081         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76082
76083         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76084         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76085         O_NOATIME works.
76086
76087 2006-10-05  Bruno Haible  <bruno@clisp.org>
76088
76089         * lib/gl_list.h (gl_sortedlist_search_from_to,
76090         gl_sortedlist_indexof_from_to): New declarations.
76091         (gl_list_implementation): New fields sortedlist_search_from_to,
76092         sortedlist_indexof_from_to.
76093         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76094         inline functions.
76095         * lib/gl_list.c (gl_sortedlist_search_from_to,
76096         gl_sortedlist_indexof_from_to): New functions.
76097         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76098         function.
76099         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76100         (gl_array_sortedlist_search_from_to): New function.
76101         (gl_array_list_implementation): Update.
76102         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76103         function.
76104         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76105         (gl_carray_sortedlist_search_from_to): New function.
76106         (gl_carray_list_implementation): Update.
76107         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76108         gl_linked_sortedlist_indexof_from_to): New functions.
76109         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76110         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76111         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76112         gl_tree_sortedlist_indexof_from_to): New functions.
76113         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76114         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76115         Update.
76116         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76117         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76118         Update.
76119
76120 2006-10-05  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76123         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76124         (struct gl_list_implementation): Add fields search_from_to,
76125         indexof_from_to. Remove fields search, indexof.
76126         (gl_list_search): Use the search_from_to method.
76127         (gl_list_search_from, gl_list_search_from_to): New functions.
76128         (gl_list_indexof): Use the indexof_from_to method.
76129         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76130         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76131         (gl_list_search_from, gl_list_search_from_to): New functions.
76132         (gl_list_indexof): Use the indexof_from_to method.
76133         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76134         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76135         gl_array_indexof. Add start_index, end_index arguments.
76136         (gl_array_search_from_to): Renamed from gl_array_search. Add
76137         start_index, end_index arguments.
76138         (gl_array_remove, gl_array_list_implementation): Update.
76139         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76140         gl_carray_indexof. Add start_index, end_index arguments.
76141         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76142         start_index, end_index arguments.
76143         (gl_carray_remove, gl_carray_list_implementation): Update.
76144         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76145         gl_linked_search. Add start_index, end_index arguments.
76146         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76147         start_index, end_index arguments.
76148         (gl_linked_remove): Update.
76149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76151         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76152         field to 'size_t'.
76153         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76154         gl_tree_search. Add start_index, end_index arguments.
76155         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76156         start_index, end_index arguments.
76157         (gl_tree_remove): Update.
76158         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76159         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76160         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76161         function.
76162         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76163         gl_tree_search. Add start_index, end_index arguments.
76164         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76165         start_index, end_index arguments.
76166         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76167         Update.
76168         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76169
76170 2006-10-05  Bruno Haible  <bruno@clisp.org>
76171
76172         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76173
76174         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76175         fwriteerror_temp): New declarations.
76176         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76177         (descriptors): New variable.
76178         (cleanup): First, close the descriptors.
76179         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76180         fclose_temp, fwriteerror_temp): New functions.
76181
76182 2006-10-04  Jim Meyering  <jim@meyering.net>
76183
76184         * lib/fts.c (fts_open): Tiny comment change.
76185
76186 2006-10-04  Bruno Haible  <bruno@clisp.org>
76187
76188         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76189         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76190         gl_LOCK_BODY.
76191         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76192         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76193         gl_LOCK_EARLY_BODY.
76194         (gl_LOCK): Require gl_LOCK_BODY.
76195
76196 2006-10-04  Bruno Haible  <bruno@clisp.org>
76197
76198         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76199         (gl_oset_search_atleast): New declaration.
76200         (struct gl_oset_implementation): Add field 'search_atleast'.
76201         (gl_oset_search_atleast): New inline function.
76202         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76203         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76204         (gl_array_oset_implementation): Update.
76205         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76206         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76207         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76208
76209 2006-10-04  Bruno Haible  <bruno@clisp.org>
76210
76211         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76212
76213 2006-10-03  Bruno Haible  <bruno@clisp.org>
76214
76215         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76216         from gl_avltreehash_list_implementation.
76217
76218 2006-10-03  Bruno Haible  <bruno@clisp.org>
76219
76220         * lib/gl_oset.c (gl_oset_add): Fix return type.
76221
76222 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76223
76224         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76225
76226 2006-10-02  Eric Blake  <ebb9@byu.net>
76227
76228         * modules/strnlen (Depends-on): Add extensions.
76229
76230 2006-10-02  Eric Blake  <ebb9@byu.net>
76231
76232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76233         definition in 2.60+.
76234
76235 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76236
76237         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76238         checks.
76239
76240 2006-10-02  Bruno Haible  <bruno@clisp.org>
76241
76242         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76243         to the AUTOMAKE_OPTIONS.
76244         Reported by Jim Meyering.
76245
76246 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         Work around bug in Solaris 10 /proc file system:
76249         /proc/self/fd/NNN/.. isn't the parent directory of
76250         the directory whose file descriptor is NNN.  This needs to
76251         be worked around at run time, not compile time, since a
76252         program might be built on Solaris 8, where things work, and
76253         run on Solaris 10.
76254         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76255         to use the following interface instead:
76256         (OPENAT_BUFFER_SIZE): New macro.
76257         (openat_proc_name): New function.
76258         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76259         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76260         Likewise.
76261         * lib/openat-proc.c: New file.
76262         * modules/openat (Files): Add lib/openat-proc.c.
76263         (Depends-on): Add same-inode, stdbool.
76264         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76265
76266 2006-09-29  Bruno Haible  <bruno@clisp.org>
76267
76268         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76269         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76270         argument. Set stdout_closed before testing for ferror, not after.
76271         (fwriteerror, fwriteerror_no_ebadf): New functions.
76272
76273 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76274
76275         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76276
76277 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76278
76279         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76280         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76281
76282 2006-09-28  Jim Meyering  <jim@meyering.net>
76283
76284         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76285         Include <unistd.h>.
76286
76287 2006-09-28  Bruno Haible  <bruno@clisp.org>
76288
76289         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76290         * modules/linkedhash-list (Depends-on): Likewise.
76291         * modules/rbtreehash-list (Depends-on): Likewise.
76292
76293 2006-09-28  Bruno Haible  <bruno@clisp.org>
76294
76295         * lib/strndup.h: Simplify the redefinition of strndup.
76296         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76297         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76298
76299 2006-09-28  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76302         * lib/gl_linkedhash_list.c: Likewise.
76303         * lib/gl_rbtreehash_list.c: Likewise.
76304
76305 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76308         getaddrinfo.
76309
76310         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76311         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76312         it causes <stdio_ext.h> to cause a compile-time error.
76313         Problem reported by Nelson H. F. Beebe.
76314         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76315         of HAVE_DECL___PENDING.
76316
76317         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76318         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76319         declaration.
76320
76321 2006-09-27  Jim Meyering  <jim@meyering.net>
76322
76323         This file could end up with a definition for a function
76324         named __strndup, rather than rpl_strndup on a system with
76325         incomplete weak_alias support.
76326         * lib/strndup.c (strndup): Rename from __strndup.
76327         Remove #defines that used to map __strndup to strndup.
76328         Don't use K&R prototypes.
76329         Remove LIBC-related code, since this file is not sync'd with glibc.
76330         * lib/strndup.h: Revamp, accordingly.
76331         * m4/strndup.m4: Modernize.
76332
76333 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76334
76335         * modules/savewd (Depends-on): Add 'raise'.
76336         * lib/savewd.c: Include <signal.h>, for 'raise'.
76337
76338 2006-09-26  Jim Meyering  <jim@meyering.net>
76339
76340         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76341         when we detect Darwin 8.7.0's acl_get_file bug.
76342         Rearrange to perform the new (below) run-test while $LIBS
76343         contains any acl-related library.  Set USE_ACL at the end.
76344         (gl_ACL_GET_FILE): New function.
76345
76346 2006-09-26  Eric Blake  <ebb9@byu.net>
76347
76348         * lib/verror.c: Include <config.h> unconditionally.
76349
76350 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * modules/clock-time (Maintainer): Add self.
76353         * modules/getlogin_r (Depends-on): Add extensions.
76354
76355 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76356
76357         * modules/clock-time: New module.
76358         * modules/nanosleep (Depends-on): Add clock-time.
76359         * modules/gethrxtime (Depends-on): Likewise.
76360         * modules/gettime (Depends-on): Likewise.
76361         * modules/settime (Depends-on): Likewise.
76362
76363         * modules/fts-lgpl: Depend on openat.
76364         * modules/mkancesdirs: Depend on savewd.
76365         * modules/mkdir-p: Likewise.
76366
76367 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76368
76369         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76370
76371         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76372         `gl_have_arbitrary_file_name_length_limit' to
76373         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76374         actually works between configure runs.
76375
76376 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76377             Bruno Haible  <bruno@clisp.org>
76378
76379         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76380
76381 2006-09-25  Jim Meyering  <jim@meyering.net>
76382
76383         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76384         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76385
76386 2006-09-25  Eric Blake  <ebb9@byu.net>
76387
76388         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76389         exec's in 2006-09-18 patch when shuffling fds.
76390
76391 2006-09-25  Bruno Haible  <bruno@clisp.org>
76392
76393         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76394         Reported by Jim Meyering.
76395
76396 2006-09-24  Jim Meyering  <jim@meyering.net>
76397
76398         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76399         compare a pointer against a literal "0".  That caused failures with
76400         at least HP-UX's hpcc.
76401
76402 2006-09-22  Simon Josefsson  <jas@extundo.com>
76403
76404         * modules/gc-sha1:
76405         * modules/gc-md4:
76406         * modules/gc-hmac-sha1:
76407         * modules/gc-hmac-md5:
76408         * modules/gc-des:
76409         * modules/gc-arcfour: Distribute more files.
76410
76411 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76412
76413         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76414         (gl_linked_iterator_from_to): Initialize struct completely.
76415         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76416         (gl_tree_iterator_from_to): Likewise
76417         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76418         * lib/gl_array_list.c [lint] (gl_array_iterator)
76419         (gl_array_iterator_from_to): Likewise.
76420         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76421         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76422         (gl_carray_iterator_from_to): Likewise.
76423
76424         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76425         * lib/md4.c (md4_process_block): Remove unused variable.
76426         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76427         parentheses for clarity.
76428
76429 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76430
76431         * modules/bison-i18n (Depends-on): Add gettext.
76432
76433 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76434
76435         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76436         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76437         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76438         also add missing comma that caused broken test.
76439         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76440         stdlib.h, for `abort'.
76441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76442         variables.
76443         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76444         include unistd.h if present, for `rmdir'.
76445         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76446         variables.
76447         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76448         in the process include standard headers for prototypes.
76449         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76450         gets declared on GNU/Linux.
76451         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76452         unistd.h, for `rmdir'.
76453         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76454
76455         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76456         always true.
76457         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76458
76459         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76460
76461 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76462
76463         * gnulib-tool (func_version): Create output all at once.  This
76464         may help avoid triggering unnecessary SIGPIPEs, and at any
76465         rate it doesn't hurt.
76466
76467 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76468             Bruno Haible  <bruno@clisp.org>
76469
76470         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76471         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76472         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76473
76474         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76475         (gl_FUNC_VASPRINTF): Invoke it.
76476
76477 2006-09-22  Bruno Haible  <bruno@clisp.org>
76478
76479         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76480         getloadavg.c as first argument.
76481
76482 2006-09-22  Bruno Haible  <bruno@clisp.org>
76483
76484         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76485         at the beginning of the gl_INIT macro.
76486         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76487         gl_GETLOADAVG.
76488
76489 2006-09-22  Bruno Haible  <bruno@clisp.org>
76490
76491         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76492         module.
76493         Suggested by Ralf Wildenhues.
76494
76495 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76496
76497         Import this patch from libc:
76498
76499         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76500
76501         * lib/regex_internal.c (re_string_reconstruct): Handle
76502         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76503         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76504         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76505         re_string_context_at.
76506
76507         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76508         now requires it.
76509         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76510         gl_REGEX now does it for us.
76511         (gl_REGEX): Add test taken from
76512         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76513
76514         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76515         Check that large offsets work.  Modernize Autoconf usages.
76516         Prefer "yes" to mean a good thing rather than a bad.
76517         Don't put "#define mkstemp" in config.h, as this might interfere
76518         with standard system headers that "#define mkstemp mkstemp64".
76519
76520         * modules/mkstemp (Depends-on): Add extensions, so that
76521         mkstemp is visible on some platforms.
76522         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76523         (Include): Change to "mkstemp.h" from <stdlib.h>.
76524         (Files): Add mkstemp.h.
76525
76526         * lib/mkstemp.h: New file, since some standard headers
76527         #define mkstemp.
76528         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76529         Include "mkstemp.h".
76530         Make the _LIBC code resemble glibc original more,
76531         e.g., use K&R style.
76532         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76533         (mkstemp): Remove, since mkstemp.h does this for us.
76534         * lib/stdlib--.h: Include mkstemp.h.
76535
76536         Import this patch from libc:
76537
76538         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76539
76540         * lib/tempname.c (__gen_tempname): Change attempts_min
76541         into a macro.  Use preprocessor to decide how to initialize
76542         attempts [Coverity CID 67].
76543
76544 2006-09-20  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/mkdtemp.c: Import from libc.
76547         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76548                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76549                 attempts_min into a macro.  Use preprocessor to decide how to
76550                 initialize attempts [Coverity CID 67].
76551         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76552                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76553                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76554
76555 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76556
76557         * gnulib-tool (func_exit): New function, to allow to pass the
76558         exit status portably through the trap.  Use everywhere.
76559         (--help, --version): Signal a write error.
76560         (trap): catch SIGPIPE, for write errors.
76561         Exit at the end of the trap, with the correct exit status.
76562
76563 2006-09-19  Karl Berry  <karl@gnu.org>
76564
76565         * doc/gnulib.texi: note about the license texinfo files.
76566
76567 2006-09-19  Eric Blake  <ebb9@byu.net>
76568
76569         * gnulib-tool: Avoid space-tab.
76570
76571 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76574         that prevented coreutils 6.1 from building.  Problem reported
76575         by Petter Reinholdtsen.
76576
76577 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         * gnulib-tool (avoidlist): Fix typo that broke options like
76580         --avoid=lock that are used by coreutils bootstrap.
76581
76582 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76583
76584         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76585         more systematically.
76586
76587 2006-09-18  Jim Meyering  <jim@meyering.net>
76588
76589         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76590
76591 2006-09-18  Bruno Haible  <bruno@clisp.org>
76592
76593         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76594
76595 2006-09-18  Bruno Haible  <bruno@clisp.org>
76596
76597         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76598         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76599         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76600         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76601         * m4/gettext.m4: Require autoconf >= 2.52.
76602         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76603         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76604         of gl_cv_header_inttypes_h.
76605
76606 2006-09-18  Bruno Haible  <bruno@clisp.org>
76607
76608         * lib/javaversion.c: Include configmake.h.
76609
76610 2006-09-18  Bruno Haible  <bruno@clisp.org>
76611
76612         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76613         avoid that the while loops be executed in a subshell.
76614
76615 2006-09-18  Bruno Haible  <bruno@clisp.org>
76616
76617         * MODULES.html.sh (func_module): Break long lines.
76618         Suggested by Bruce Korb <bkorb@gnu.org>.
76619
76620 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76621
76622         Speed up by a factor of 1.12.
76623         * gnulib-tool (nl): New variable.
76624         (func_import): Rewrite include directive extraction to only read each
76625         directive once.
76626
76627 2006-09-17  Bruno Haible  <bruno@clisp.org>
76628
76629         * modules/javaversion (Makefile.am): Remove DEFS setting.
76630         (Depends-on): Add configmake, for PKGDATADIR definition.
76631
76632 2006-09-17  Bruno Haible  <bruno@clisp.org>
76633
76634         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76635
76636 2006-09-17  Bruno Haible  <bruno@clisp.org>
76637
76638         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76639         (func_modules_transitive_closure, func_modules_add_dummy,
76640         func_modules_to_filelist, func_import, func_create_testdir,
76641         func_create_megatestdir, ...): Use it wherever possible.
76642         Suggested by Ralf Wildenhues.
76643
76644 2006-09-16  Karl Berry  <karl@gnu.org>
76645
76646         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76647         to avoid sectioning errors.
76648         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76649         [ifinfo]: blank line after @center-ed titles.
76650         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76651         Spell FSF address consistently with others.
76652         (These changes approved by rms.)
76653
76654 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76655
76656         Speed up by a factor of 1.61.
76657         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76658         already checked module names again.
76659
76660 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76661
76662         Speed up by a factor of 1.13.
76663         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76664         for new_files, and the input to func_add_or_update.
76665
76666 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76667
76668         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76669         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76670
76671 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76672
76673         * modules/mkancesdirs (Depends-on): Add fcntl.
76674         * modules/savewd: New file.
76675         * MODULES.html.sh (File system functions): Add savewd.
76676
76677         * modules/configmake (Makefile.am): Add support for the
76678         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76679
76680 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * m4/savewd.m4: New file.
76683
76684 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76687         (dirchownmod): New arg FD.  All callers changed.
76688         Use FD rather than opening the directory ourself, as opening is
76689         now the caller's responsibility.
76690         * lib/dirchownmod.h: Likewise.
76691         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76692         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76693         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76694         (test_dir): Remove.
76695         (mkancesdirs): Return length of prefix of FILE that has already
76696         been made, or -2 if there is a child doing the work.  Redo
76697         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76698         ".", and treat ".." specially since it might stray back into
76699         already-created areas.  Use a subprocess if necessary.  New arg
76700         WD; all users changed.  MAKE_DIR function should now return 1
76701         if it creates a directory that is not readable.  Return -2 if
76702         a child process is spun off.
76703         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76704         Adjust signature to match code.
76705         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76706         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76707         all users changed.
76708         * lib/savewd.c, lib/savewd.h: New files.
76709
76710 2006-09-15  Jim Meyering  <jim@meyering.net>
76711
76712         * modules/rename-dest-slash: New module.
76713         * MODULES.html.sh (posix_compat): Add it here.
76714
76715         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76716
76717 2006-09-15  Jim Meyering  <jim@meyering.net>
76718
76719         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76720         file.
76721
76722         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76723
76724 2006-09-15  Jim Meyering  <jim@meyering.net>
76725
76726         * lib/rename-dest-slash.c (has_trailing_slash): Use
76727         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76728         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76729         test before testing whether SRC is a directory.
76730         Suggestions from Bruno Haible.
76731
76732         Avoid a warning about an unused variable.
76733         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76734         into the #ifdef block where it's used.
76735
76736         * lib/rename-dest-slash.c: New file.
76737
76738 2006-09-14  Bruno Haible  <bruno@clisp.org>
76739
76740         * lib/allocsa.c: Include <config.h> unconditionally.
76741         * lib/asnprintf.c: Likewise.
76742         * lib/asprintf.c: Likewise.
76743         * lib/c-strcasecmp.c: Likewise.
76744         * lib/c-strcasestr.c: Likewise.
76745         * lib/c-strncasecmp.c: Likewise.
76746         * lib/c-strstr.c: Likewise.
76747         * lib/classpath.c: Likewise.
76748         * lib/clean-temp.c: Likewise.
76749         * lib/concatpath.c: Likewise.
76750         * lib/copy-file.c: Likewise.
76751         * lib/csharpcomp.c: Likewise.
76752         * lib/csharpexec.c: Likewise.
76753         * lib/execute.c: Likewise.
76754         * lib/fatal-signal.c: Likewise.
76755         * lib/findprog.c: Likewise.
76756         * lib/fwriteerror.c: Likewise.
76757         * lib/gl_array_list.c: Likewise.
76758         * lib/gl_array_oset.c: Likewise.
76759         * lib/gl_avltree_list.c: Likewise.
76760         * lib/gl_avltree_oset.c: Likewise.
76761         * lib/gl_avltreehash_list.c: Likewise.
76762         * lib/gl_carray_list.c: Likewise.
76763         * lib/gl_linked_list.c: Likewise.
76764         * lib/gl_linkedhash_list.c: Likewise.
76765         * lib/gl_list.c: Likewise.
76766         * lib/gl_oset.c: Likewise.
76767         * lib/gl_rbtree_list.c: Likewise.
76768         * lib/gl_rbtree_oset.c: Likewise.
76769         * lib/gl_rbtreehash_list.c: Likewise.
76770         * lib/imaxabs.c: Likewise.
76771         * lib/imaxdiv.c: Likewise.
76772         * lib/javacomp.c: Likewise.
76773         * lib/javaexec.c: Likewise.
76774         * lib/javaversion.c: Likewise.
76775         * lib/linebreak.c: Likewise.
76776         * lib/localcharset.c: Likewise.
76777         * lib/lock.c: Likewise.
76778         * lib/mbchar.c: Likewise.
76779         * lib/mbswidth.c: Likewise.
76780         * lib/mkdtemp.c: Likewise.
76781         * lib/pipe.c: Likewise.
76782         * lib/printf-args.c: Likewise.
76783         * lib/printf-parse.c: Likewise.
76784         * lib/progname.c: Likewise.
76785         * lib/progreloc.c: Likewise.
76786         * lib/readlink.c: Likewise.
76787         * lib/sh-quote.c: Likewise.
76788         * lib/stpcpy.c: Likewise.
76789         * lib/stpncpy.c: Likewise.
76790         * lib/strcasecmp.c: Likewise.
76791         * lib/strcasestr.c: Likewise.
76792         * lib/strcspn.c: Likewise.
76793         * lib/striconv.c: Likewise.
76794         * lib/strncasecmp.c: Likewise.
76795         * lib/strnlen1.c: Likewise.
76796         * lib/strstr.c: Likewise.
76797         * lib/strtok_r.c: Likewise.
76798         * lib/tls.c: Likewise.
76799         * lib/tmpdir.c: Likewise.
76800         * lib/unicodeio.c: Likewise.
76801         * lib/unsetenv.c: Likewise.
76802         * lib/vasnprintf.c: Likewise.
76803         * lib/vasprintf.c: Likewise.
76804         * lib/wait-process.c: Likewise.
76805         * lib/xallocsa.c: Likewise.
76806         * lib/xsetenv.c: Likewise.
76807         * lib/xstriconv.c: Likewise.
76808
76809 2006-09-13  Simon Josefsson  <jas@extundo.com>
76810
76811         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76812         that internally, suggested by Ralf Wildenhues
76813         <Ralf.Wildenhues@gmx.de>.
76814
76815 2006-09-13  Simon Josefsson  <jas@extundo.com>
76816
76817         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76818         @LIBOBJS@.
76819         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76820
76821 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76824         longer worry about uses that don't define HAVE_CONFIG_H.
76825         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76826         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76827         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76828         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76829         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76830         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76831         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76832         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76833         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76834         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76835         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76836         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76837         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76838         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76839         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76840         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76841         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76842         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76843         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76844         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76845         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76846         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76847         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76848         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76849         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76850         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76851         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76852         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76853         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76854         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76855         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76856         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76857         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76858         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76859         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76860         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76861         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76862         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76863         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76864         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76865         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76866         Likewise.
76867
76868 2006-09-13  Eric Blake  <ebb9@byu.net>
76869
76870         * lib/getopt.c: Fix typo in last commit.
76871
76872 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76873
76874         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76875         dgettext.
76876
76877 2006-09-12  Jim Meyering  <jim@meyering.net>
76878
76879         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76880         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76881         Reported by Nelson H. F. Beebe.
76882
76883 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76884
76885         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76886         program_invocation_name and program_invocation_short_name are
76887         initialized.
76888         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76889         and program_invocation_short_name to argp.h, so they are visible
76890         to user programs.
76891         * lib/argp.h: Likewise
76892
76893 2006-09-10  Bruno Haible  <bruno@clisp.org>
76894
76895         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76896         m4/inttypes_h.m4, m4/uintmax_t.m4.
76897
76898 2006-09-10  Bruno Haible  <bruno@clisp.org>
76899
76900         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76901         gl_AC_TYPE_UINTMAX_T.
76902
76903 2006-09-10  Bruno Haible  <bruno@clisp.org>
76904
76905         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76906
76907 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76908
76909         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76910         convention.  Text proposed by Bruno Haible.
76911         (struct argp_option): Document the use of N_() wrappers.
76912
76913         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76914         '\v', and translate the two parts separately, instead of feeding
76915         the whole string to gettext.  This allows to exclude
76916         '\v' from the strings visible to the translator by writing doc
76917         strings as N_("..") "\v" N_("..").
76918
76919 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * config/srclist.txt: Undo latest change; the bug was fixed.
76922
76923 2006-09-09  Bruno Haible  <bruno@clisp.org>
76924
76925         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76926         assignments if building a library without libtool.
76927         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76928         in func_emit_lib_Makefile_am.
76929         (func_import): When building a static library libfoo.a, arrange to
76930         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76931         (func_create_testdir): Likewise.
76932         * modules/gc (configure.ac, Makefile.am): If building statically,
76933         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76934         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76935         * modules/striconv (configure.ac, Makefile.am): Likewise.
76936         Based on a suggestion by Ralf Wildenhues.
76937
76938 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76941         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76942         Also:
76943
76944         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76945         Add year_2050_test to catch glibc bug 2821
76946         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76947
76948         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76949         Prefer #ifdef to #if.
76950
76951         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76952         Return from 'main' instead of calling 'exit'.
76953
76954 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76957         returned the maximum time_t value rather than (time_t) -1.
76958         Problem originally reported by William Bardwell
76959         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76960
76961         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76962         Moved to here ...
76963         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76964         ... from here.
76965
76966 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76969         2821 is fixed.
76970
76971 2006-09-08  Jim Meyering  <jim@meyering.net>
76972
76973         Don't make generated files read-only.  That would bother too many
76974         people.  However, do retain the ability to work when targets are
76975         read-only: remove the destination and temporary files before writing
76976         them (when generated via sed or echo), or by using the -f option for
76977         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76978         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76979         * modules/byteswap, modules/configmake, modules/fcntl:
76980         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76981         * modules/localcharset, modules/netinet_in, modules/poll:
76982         * modules/stdbool, modules/stdint, modules/sys_select:
76983         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76984
76985 2006-09-08  Jim Meyering  <jim@meyering.net>
76986
76987         Avoid new build failure on FreeBSD 6.0.
76988         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76989         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76990         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76991
76992 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76993
76994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76995
76996 2006-09-07  Jim Meyering  <jim@meyering.net>
76997
76998         Fix global typo in last change: use chmod u-w, not chmod u-x.
76999         Spotted by Paul Eggert and Bruce Korb.
77000         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77001         * modules/byteswap, modules/configmake, modules/fcntl:
77002         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77003         * modules/localcharset, modules/netinet_in, modules/poll:
77004         * modules/stdbool, modules/stdint, modules/sys_select:
77005         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77006
77007 2006-09-06  Jim Meyering  <jim@meyering.net>
77008
77009         Make generated files be read-only.
77010         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77011         Ensure that each generated file is now read-only.
77012         * modules/argz: Likewise.
77013         * modules/arpa_inet: Likewise.
77014         * modules/byteswap: Likewise.
77015         * modules/configmake: Likewise.
77016         * modules/fcntl: Likewise.
77017         * modules/fnmatch: Likewise.
77018         * modules/getopt: Likewise.
77019         * modules/glob: Likewise.
77020         * modules/inttypes: Likewise.
77021         * modules/netinet_in: Likewise.
77022         * modules/poll: Likewise.
77023         * modules/stdbool: Likewise.
77024         * modules/stdint: Likewise.
77025         * modules/sys_select: Likewise.
77026         * modules/sys_socket: Likewise.
77027         * modules/sys_stat: Likewise.
77028         * modules/sysexits: Likewise.
77029         * modules/localcharset: Same as above, but continue using temporary
77030         file named "t-$@" (why different?) rather than the "$@-t" used
77031         everywhere else.
77032
77033         * modules/sysexits (Makefile.am): Replace literal occurrences
77034         of "sysexit.h" more readable, and more consistent, "$@".
77035
77036 2006-09-06  Bruno Haible  <bruno@clisp.org>
77037
77038         * modules/striconv: New file.
77039         * modules/xstriconv: New file.
77040         * MODULES.html.sh (Internationalization functions): Add striconv,
77041         xstriconv.
77042
77043 2006-09-06  Bruno Haible  <bruno@clisp.org>
77044
77045         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77046         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77047         not using libtool correctly.
77048
77049 2006-09-06  Bruno Haible  <bruno@clisp.org>
77050
77051         * lib/striconv.h: New file.
77052         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77053         iconvstring.c.
77054         * lib/xstriconv.h: New file.
77055         * lib/xstriconv.c: New file.
77056
77057 2006-09-06  Bruno Haible  <bruno@clisp.org>
77058
77059         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77060         lib_..._LDFLAGS.
77061
77062 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77063
77064         * lib/argz_.h: Sync from Libtool.
77065
77066         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77067                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77068
77069         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77070
77071 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77072
77073         * modules/trim: New file.
77074
77075 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77076
77077         * lib/trim.h: New file.
77078         * lib/trim.c: New file.
77079
77080 2006-09-05  Bruno Haible  <bruno@clisp.org>
77081
77082         * MODULES.html.sh (String handling): Add trim.
77083
77084 2006-09-04  Karl Berry  <karl@gnu.org>
77085
77086         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77087         until next release.
77088
77089 2006-09-03  Bruno Haible  <bruno@clisp.org>
77090
77091         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77092         correctly.
77093
77094 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77097         not gl_GETLOADAVG.  Omit unneeded semicolons.
77098         Problems reported by Ralf Wildenhues in
77099         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77100         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77101         at the end, which is the usual gnulib style.
77102
77103         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77104         of doing all the work ourselves.
77105         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77106         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77107
77108 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77111         Problem reported by Ralf Wildenhues in
77112         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77113
77114         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77115         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77116
77117 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77120         yesterday's patch by changing test -n to test -z.
77121
77122 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77125         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77126         the former is now obsolescent.
77127
77128         * modules/chdir-long (Depends-on): Add fcntl.
77129
77130 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77133         obsolescent, and programs should use gnulib instead.
77134         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77135         but with prefixes changed.
77136
77137 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77140         or stdbool.h, because they might not exist while configuring.
77141
77142         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77143         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77144         does that for us.
77145         (O_DIRECTORY): Remove.
77146
77147 2006-08-31  Eric Blake  <ebb9@byu.net>
77148
77149         * gnulib-tool: Don't let emacs change spaces to TAB.
77150
77151 2006-08-31  Bruno Haible  <bruno@clisp.org>
77152
77153         * gnulib-tool: When calling func_import more than once, do it in a
77154         subshell.
77155         Reported by Eric Blake <ebb9@byu.net>.
77156
77157 2006-08-31  Bruno Haible  <bruno@clisp.org>
77158
77159         * gnulib-tool (nl): Remove variable.
77160         (sed_transform_lib_file): Use more robust test for config-h module.
77161         (func_import): Fix typo in 2006-08-25 patch.
77162
77163 2006-08-31  Bruno Haible  <bruno@clisp.org>
77164
77165         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77166         specified, augment Makefile.am variables instead of assigning them.
77167
77168 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77169
77170         Work around a bug in both the Linux and SunOS 64-bit kernels:
77171         nanosleep mishandles sleeps for longer than 2**31 seconds.
77172         Problem reported by Frank v Waveren in
77173         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77175         Check for nanosleep bug.
77176         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77177
77178 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         Work around a bug in both the Linux and SunOS 64-bit kernels:
77181         nanosleep mishandles sleeps for longer than 2**31 seconds.
77182         Problem reported by Frank v Waveren in
77183         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77184         * lib/nanosleep.c (BILLION): New constant.
77185         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77186         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77187         implementation.
77188
77189 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77190
77191         * modules/nanosleep (Depends-on): Add gettime.
77192
77193 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77194         and Simon Josefsson  <jas@extundo.com>
77195         and Oskar Liljeblad  <oskar@osk.mine.nu>
77196
77197         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77198         * gnulib-tool (func_import): New license type 'unmodifiable license
77199         text'.
77200         * modules/fdl: Use it.  Longer description.
77201         * module/gpl, module/lgpl: New files.
77202
77203 2006-08-30  Jim Meyering  <jim@meyering.net>
77204
77205         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77206         shadowing the parameter.
77207
77208 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77209
77210         Sync from Libtool:
77211
77212         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77213
77214         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77215         sharing with gnulib.  Report by Eric Blake.
77216
77217 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         * modules/isapipe: New file.
77220         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77221
77222 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * modules/configmake (Makefile.am): Add a comment, and omit
77225         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77226         by Bruno Haible.
77227
77228 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77229
77230         * m4/isapipe.m4: New file.
77231
77232 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * lib/isapipe.c, lib/isapipe.h: New files.
77235
77236 2006-08-29  Jim Meyering  <jim@meyering.net>
77237
77238         * modules/configmake (Makefile.am): Make configmake.h depend on
77239         Makefile.  Otherwise, a stale configmake.h could hang around.
77240
77241 2006-08-29  Eric Blake  <ebb9@byu.net>
77242
77243         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77244         resolution of upstream bug 3044.
77245
77246 2006-08-29  Bruno Haible  <bruno@clisp.org>
77247
77248         * modules/localcharset (Depends-on): Add configmake.
77249         (Makefile.am): Remove setting of LIBDIR through DEFS.
77250
77251 2006-08-29  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77254         defined.
77255
77256 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         * modules/fcntl: New file.
77259         * modules/chdir-safer (Depends-on): Add fcntl.
77260         * modules/fts: Likewise.
77261         * modules/mkdir-p: Likewise.
77262
77263         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77264         This undoes the most recent change, since we're now addressing the
77265         problem in a different way.
77266
77267         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77268         into output, since the output might be called Makefile.am even
77269         if $makefile_name is something different.
77270         (func_import): Use $makefile_am rather than
77271         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77272         empty.
77273
77274         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77275
77276 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77279         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77280         recent change to stdint.m4, since we're now addressing the problem in a
77281         different way.
77282
77283 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77284
77285         * m4/fcntl_h.m4: New file.
77286
77287 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * lib/fcntl_.h: New file.
77290         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77291         the fcntl module.
77292         * lib/dirchownmod.c: Likewise.
77293         * lib/fts.c: Likewise.
77294
77295         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77296         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77297         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77298         just before including <inttypes.h>, to avoid circular inclusion.
77299
77300 2006-08-28  Jim Meyering  <jim@meyering.net>
77301
77302         * doc/visibility.texi: Actually read and correct the grammar of the
77303         sentence affected by yesterday's change.
77304
77305 2006-08-28  Eric Blake  <ebb9@byu.net>
77306
77307         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77308         needs wrapper.
77309
77310 2006-08-28  Eric Blake  <ebb9@byu.net>
77311
77312         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77313
77314 2006-08-28  Eric Blake  <ebb9@byu.net>
77315
77316         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77317
77318 2006-08-28  Bruno Haible  <bruno@clisp.org>
77319
77320         * modules/c-strstr: New file, from GNU gettext.
77321         * MODULES.html.sh (String handling): Add c-strstr.
77322
77323 2006-08-28  Bruno Haible  <bruno@clisp.org>
77324
77325         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77326         macros.
77327         Reported by Eric Blake.
77328
77329 2006-08-28  Bruno Haible  <bruno@clisp.org>
77330
77331         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77332         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77333         * lib/vasprintf.c: Include errno.h, limits.h.
77334         (EOVERFLOW): New fallback definition.
77335         (vasprintf): Test here whether the string length is > INT_MAX.
77336         * lib/vsnprintf.c: Include errno.h, limits.h.
77337         (EOVERFLOW): New fallback definition.
77338         (vsnprintf): Fix bug when generated string was too long for the buffer.
77339         Test here whether the string length is > INT_MAX.
77340
77341 2006-08-28  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/inttypes_.h (SCNX*): Remove definitions.
77344         Reported by Eric Blake.
77345
77346 2006-08-28  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/c-strstr.h: New file, from GNU gettext.
77349         * lib/c-strstr.c: New file, from GNU gettext.
77350
77351 2006-08-28  Bruno Haible  <bruno@clisp.org>
77352
77353         * gnulib-tool: Reorder some statements.
77354
77355 2006-08-28  Bruno Haible  <bruno@clisp.org>
77356
77357         * gnulib-tool: New option --makefile-name.
77358         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77359         $makefile_name.
77360         (func_import): Write $makefile_name to the cache file, and read it from
77361         there unless explicitly specified. Use $makefile_name as file name
77362         instead of Makefile.am. Adjust the recommendations accordingly.
77363
77364 2006-08-28  Bruno Haible  <bruno@clisp.org>
77365
77366         * gnulib-tool (func_verify_module): Check against misapplying patch.
77367
77368 2006-08-28  Bruno Haible  <bruno@clisp.org>
77369
77370         * gnulib-tool (func_relativize, func_relconcat): New functions.
77371         Give an error if --local-dir is given with --update.
77372         Remove trailing slashes from $local_gnulib_dir.
77373         (func_import): Store the relativized $local_gnulib_dir in
77374         gnulib-cache.m4, and read it from there if not specified explicitly.
77375
77376 2006-08-28  Bruno Haible  <bruno@clisp.org>
77377
77378         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77379         is the current directory. Respect also $local_gnulib_dir.
77380
77381 2006-08-28  Bruno Haible  <bruno@clisp.org>
77382             Simon Josefsson  <jas@extundo.com>
77383
77384         BeOS portability.
77385         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77386
77387 2006-08-27  Jim Meyering  <jim@meyering.net>
77388
77389         * doc/visibility.texi: Remove duplicate word: "pointer".
77390
77391 2006-08-26  Bruno Haible  <bruno@clisp.org>
77392
77393         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77394         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77395         (Makefile.am): Create inttypes.h from inttypes_.h.
77396         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77397
77398         * modules/imaxabs: New file.
77399
77400         * modules/imaxdiv: New file.
77401
77402 2006-08-26  Bruno Haible  <bruno@clisp.org>
77403
77404         * m4/inttypes.m4: New file.
77405         * m4/_inttypes_h.m4: Remove file.
77406         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77407         PRI_MACROS_BROKEN.
77408         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77409
77410         * m4/imaxabs.m4: New file.
77411
77412         * m4/imaxdiv.m4: New file.
77413
77414 2006-08-26  Bruno Haible  <bruno@clisp.org>
77415
77416         * lib/inttypes_.h: New file.
77417         * lib/inttypes.h: Remove file.
77418         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77419
77420         * lib/imaxabs.c: New file.
77421
77422         * lib/imaxdiv.c: New file.
77423
77424 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77425
77426         New config-h module, so that "make" output needn't be cluttered
77427         by -DHAVE_CONFIG_H.
77428         * MODULES.html.sh (Support for building libraries and executables):
77429         Add config-h.
77430         * modules/config-h: New file.
77431         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77432         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77433         the config-h module is used.
77434
77435         New configmake module, so that "make" output needn't be cluttered
77436         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77437         * MODULES.html.sh (Support for building libraries and executables):
77438         Add configmake.
77439         * modules/configmake: New file.
77440
77441 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * m4/config-h.m4: New file.
77444
77445 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * config/srclist.txt: Add elisp-comp.
77448
77449 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         * MODULES.html.sh (Support for building libraries and executables):
77452         Add elisp-comp.
77453         * build-aux/elisp-comp: New file.
77454         * modules/elisp-comp: New file.
77455
77456 2006-08-24  Bruno Haible  <bruno@clisp.org>
77457
77458         * gnulib-tool (func_create_testdir): Use non-default values of
77459         sourcebase and m4base.
77460
77461 2006-08-24  Bruno Haible  <bruno@clisp.org>
77462
77463         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77464         HTML structure.
77465
77466 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * modules/openat (Depends-on): Add lchown.
77469
77470 2006-08-23  Bruno Haible  <bruno@clisp.org>
77471
77472         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77473         of gl_LOCK_EARLY instead of gl_LOCK.
77474
77475 2006-08-23  Bruno Haible  <bruno@clisp.org>
77476
77477         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77478         on OSF/1 to no.
77479         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77480
77481 2006-08-23  Bruno Haible  <bruno@clisp.org>
77482
77483         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77484         as unusable.
77485
77486         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77487         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77488         (gl_LOCK): New macro.
77489
77490 2006-08-22  Simon Josefsson  <jas@extundo.com>
77491
77492         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77493         to md5 module.
77494
77495 2006-08-22  Simon Josefsson  <jas@extundo.com>
77496
77497         * MODULES.html.sh: Add "Support for maintaining and release
77498         projects".
77499
77500         * build-aux/gnupload: New file, from coreutils.
77501
77502 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         Avoid the need for AC_LIBSOURCES in m4 macros.
77505         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77506         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77507         * modules/check-version (EXTRA_DIST): Add check-version.h.
77508         * modules/crc (EXTRA_DIST): Add crc.h.
77509         * modules/des (EXTRA_DIST): Add des.h.
77510         * modules/gc (EXTRA_DIST): Add gc.h.
77511         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77512         * modules/getline (EXTRA_DIST): Add getline.h.
77513         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77514         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77515         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77516         * modules/md2 (EXTRA_DIST): Add md2.h.
77517         * modules/md4 (EXTRA_DIST): Add md4.h.
77518         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77519         * modules/read-file (EXTRA_DIST): Add read-file.h.
77520         * modules/readline (EXTRA_DIST): Add readline.h.
77521         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77522         rijndael-api-fst.h.
77523
77524 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * m4/rijndael.m4 (gl_ARCFOUR):
77527         * m4/arctwo.m4 (gl_ARCTWO):
77528         * m4/check-version.m4 (gl_CHECK_VERSION):
77529         * m4/crc.m4 (gl_CRC):
77530         * m4/des.m4 (gl_DES):
77531         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77532         * m4/gc.m4 (gl_GC):
77533         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77534         * m4/getline.m4 (gl_FUNC_GETLINE):
77535         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77536         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77537         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77538         * m4/md2.m4 (gl_MD2):
77539         * m4/md4.m4 (gl_MD4):
77540         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77541         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77542         * m4/readline.m4 (gl_FUNC_READLINE):
77543         * m4/rijndael.m4 (gl_RIJNDAEL):
77544         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77545         to get the necessary .h files and whatnot.
77546
77547 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77550         gnulib rather than the other way around.
77551         * config/srclistvars.sh (COREUTILS): Remove.
77552
77553 2006-08-22  Jim Meyering  <jim@meyering.net>
77554
77555         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77556
77557         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77558
77559 2006-08-22  Eric Blake  <ebb9@byu.net>
77560
77561         * modules/regexprops-generic: New file.
77562         * MODULES.html.sh (Support for building documentation): List it.
77563
77564 2006-08-22  Eric Blake  <ebb9@byu.net>
77565
77566         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77567         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77568         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77569         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77570
77571 2006-08-22  Bruno Haible  <bruno@clisp.org>
77572
77573         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77574         and lib_LTLIBRARIES like the other lib_* variables.
77575
77576 2006-08-22  Bruno Haible  <bruno@clisp.org>
77577
77578         * build-aux/x-to-1.in: New file, from GNU gettext.
77579
77580 2006-08-22  Bruno Haible  <bruno@clisp.org>
77581
77582         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77583         <utmpx.h> exists.
77584
77585 2006-08-22  Bruno Haible  <bruno@clisp.org>
77586
77587         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77588         <utmpx.h> exists.
77589
77590 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         BeOS portability.
77593         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77594         exist.
77595         Problem reported by Bruno Haible.
77596
77597 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77598
77599         Avoid the need for AC_LIBSOURCES in m4 macros.
77600         * modules/acl (EXTRA_DIST): Add acl.h.
77601         * modules/argmatch (Files): Add m4/argmatch.m4.
77602         (configure.ac): Add gl_ARGMATCH.
77603         (EXTRA_DIST): Renamed from lib_SOURCES, for
77604         consistency with the other modules.  Remove argmatch.c.
77605         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77606         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77607         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77608         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77609         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77610         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77611         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77612         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77613         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77614         * modules/closeout (EXTRA_DIST): Add closeout.h.
77615         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77616         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77617         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77618         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77619         dirname.h; remove basename.c and stripslash.c.
77620         * modules/exclude (EXTRA_DIST): Add exclude.h.
77621         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77622         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77623         * modules/file-type (EXTRA_DIST): Add file-type.h.
77624         * modules/filemode (EXTRA_DIST): Add filemode.h.
77625         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77626         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77627         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77628         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77629         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77630         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77631         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77632         * modules/getdate (EXTRA_DIST): Add getdate.c.
77633         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77634         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77635         * modules/getpass (EXTRA_DIST): Add getpass.h.
77636         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77637         * modules/group-member (EXTRA_DIST): Add group-member.h.
77638         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77639         * modules/hash (EXTRA_DIST): Add hash.h.
77640         * modules/human (EXTRA_DIST): Add human.h.
77641         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77642         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77643         * modules/lchown (EXTRA_DIST): Add lchown.h.
77644         * modules/long-options (EXTRA_DIST): Add long-options.h.
77645         * modules/lstat (EXTRA_DIST): Add lstat.h.
77646         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77647         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77648         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77649         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77650         * modules/memxor (EXTRA_DIST): Add memxor.h.
77651         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77652         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77653         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77654         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77655         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77656         * modules/physmem (EXTRA_DIST): Add physmem.h.
77657         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77658         * modules/posixver (EXTRA_DIST): Add posixver.h.
77659         * modules/quote (EXTRA_DIST): Add quote.h.
77660         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77661         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77662         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77663         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77664         regex_internal.h regexec.c.
77665         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77666         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77667         * modules/same (EXTRA_DIST): Add same.h.
77668         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77669         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77670         * modules/savedir (EXTRA_DIST): Add savedir.h.
77671         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77672         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77673         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77674         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77675         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77676         * modules/strdup (EXTRA_DIST): Add strdup.h.
77677         * modules/strftime (EXTRA_DIST): Add strftime.h.
77678         * modules/strndup (EXTRA_DIST): Add strndup.h.
77679         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77680         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77681         * modules/time_r (EXTRA_DIST): Add time_r.h.
77682         * modules/timespec (EXTRA_DIST): Add timespec.h.
77683         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77684         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77685         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77686         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77687         * modules/userspec (EXTRA_DIST): Add userspec.h.
77688         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77689         * modules/utimens (EXTRA_DIST): Add utimens.h.
77690         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77691         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77692         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77693         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77694         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77695         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77696         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77697         * modules/yesno (EXTRA_DIST): Add yesno.h.
77698
77699 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77702
77703         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77704         * m4/dev-ino.m4, same-inode.m4: Remove.
77705
77706         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77707         * m4/acl.m4 (AC_FUNC_ACL):
77708         * m4/backupfile.m4 (gl_BACKUPFILE):
77709         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77710         * m4/canon-host.m4 (gl_CANON_HOST):
77711         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77713         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77714         * m4/cloexec.m4 (gl_CLOEXEC):
77715         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77716         * m4/closeout.m4 (gl_CLOSEOUT):
77717         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77718         * m4/dirname.m4 (gl_DIRNAME):
77719         * m4/exclude.m4 (gl_EXCLUDE):
77720         * m4/exitfail.m4 (gl_EXITFAIL):
77721         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77722         * m4/file-type.m4 (gl_FILE_TYPE):
77723         * m4/filemode.m4 (gl_FILEMODE):
77724         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77725         * m4/fpending.m4 (gl_FUNC_FPENDING):
77726         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77727         * m4/fts.m4 (gl_FUNC_FTS):
77728         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77729         * m4/getdate.m4 (gl_GETDATE):
77730         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77731         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77732         * m4/getpass.m4 (gl_FUNC_GETPASS):
77733         * m4/gettime.m4 (gl_GETTIME):
77734         * m4/getugroups.m4 (gl_GETUGROUPS):
77735         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77736         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77737         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77738         * m4/hash.m4 (gl_HASH):
77739         * m4/idcache.m4 (gl_IDCACHE):
77740         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77741         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77742         * m4/long-options.m4 (gl_LONG_OPTIONS):
77743         * m4/lstat.m4 (gl_FUNC_LSTAT):
77744         * m4/md5.m4 (gl_MD5):
77745         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77746         * m4/memcoll.m4 (gl_MEMCOLL):
77747         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77749         * m4/memxor.m4 (gl_MEMXOR):
77750         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77752         * m4/modechange.m4 (gl_MODECHANGE):
77753         * m4/mountlist.m4 (gl_MOUNTLIST):
77754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77755         * m4/openat.m4 (gl_FUNC_OPENAT):
77756         * m4/pathmax.m4 (gl_PATHMAX):
77757         * m4/physmem.m4 (gl_PHYSMEM):
77758         * m4/posixtm.m4 (gl_POSIXTM):
77759         * m4/posixver.m4 (gl_POSIXVER):
77760         * m4/quote.m4 (gl_QUOTE):
77761         * m4/quotearg.m4 (gl_QUOTEARG):
77762         * m4/readtokens.m4 (gl_READTOKENS):
77763         * m4/readutmp.m4 (gl_READUTMP):
77764         * m4/regex.m4 (gl_REGEX):
77765         * m4/safe-read.m4 (gl_SAFE_READ):
77766         * m4/safe-write.m4 (gl_SAFE_WRITE):
77767         * m4/same.m4 (gl_SAME):
77768         * m4/save-cwd.m4 (gl_SAVE_CWD):
77769         * m4/savedir.m4 (gl_SAVEDIR):
77770         * m4/settime.m4 (gl_SETTIME):
77771         * m4/sha1.m4 (gl_SHA1):
77772         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77773         * m4/stat-macros.m4 (gl_STAT_MACROS):
77774         * m4/stat-time.m4 (gl_STAT_TIME):
77775         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77776         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77777         * m4/strdup.m4 (gl_FUNC_STRDUP):
77778         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77779         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77780         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77781         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77782         * m4/time_r.m4 (gl_TIME_R):
77783         * m4/timespec.m4 (gl_TIMESPEC):
77784         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77785         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77786         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77787         * m4/userspec.m4 (gl_USERSPEC):
77788         * m4/utimecmp.m4 (gl_UTIMECMP):
77789         * m4/utimens.m4 (gl_UTIMENS):
77790         * m4/xalloc.m4 (gl_XALLOC):
77791         * m4/xgetcwd.m4 (gl_XGETCWD):
77792         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77793         * m4/xreadlink.m4 (gl_XREADLINK):
77794         * m4/xstrtod.m4 (gl_XSTRTOD):
77795         * m4/yesno.m4 (gl_YESNO):
77796         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77797         to get the necessary .h files and whatnot.
77798
77799 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77800             Bruno Haible  <bruno@clisp.org>
77801
77802         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77803         /bin/sh understanding of '!' conditional negation.
77804
77805 2006-08-21  Jim Meyering  <jim@meyering.net>
77806
77807         * modules/openat (Depends-on): Really alphabetize.
77808
77809         * modules/acl (Depends-on): Add error and quote.
77810
77811         * check-module (find_included_lib_files): Add at-func.c to the
77812         ok-to-include-more-than-once white list.
77813
77814         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77815
77816 2006-08-21  Bruno Haible  <bruno@clisp.org>
77817
77818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77819         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77820         Reported by Martin Lambers <marlam@marlam.de>.
77821
77822 2006-08-21  Bruno Haible  <bruno@clisp.org>
77823
77824         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77825         specify an installation location, don't emit a noinst_LIBRARIES or
77826         noinst_LTLIBRARIES assignment.
77827
77828 2006-08-21  Bruno Haible  <bruno@clisp.org>
77829
77830         BeOS portability.
77831         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77832         BeOS has mbrtowc() but no <wctype.h>.
77833
77834 2006-08-21  Bruno Haible  <bruno@clisp.org>
77835
77836         BeOS portability.
77837         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77838         exist.
77839
77840 2006-08-21  Bruno Haible  <bruno@clisp.org>
77841
77842         BeOS portability.
77843         * lib/mbchar.h: Include <wctype.h> only if it exists.
77844
77845 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77846
77847         Remove files that are no longer needed by their respective modules.
77848         * m4/obstack.m4: Remove.
77849         * m4/strerror_r.m4: Remove.
77850         * m4/uint32_t.m4: Remove.
77851         * m4/uintptr_t.m4: Remove.
77852         * m4/ullong_max.m4: Remove.
77853         * m4/xstrtoimax.m4: Remove.
77854         * m4/xstrtoumax.m4: Remove.
77855
77856         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77857         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77858         dependencies now capture this.
77859
77860         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77861         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77862         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77863         * m4/human.m4 (gl_HUMAN): Likewise.
77864         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77865         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77866
77867         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77868
77869         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77870         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77871         stdint.
77872         * m4/human.m4 (gl_HUMAN): Likewise.
77873         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77874         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77875         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77876         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77877         * m4/xstrtol (gl_XSTRTOL): Likewise.
77878
77879         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77880         AC_TYPE_LONG_LONG_INT.
77881         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77882         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77883         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77884         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77885
77886         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77887         on stdbool.
77888
77889         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77890         (gl_PREREQ_XSTRTOUL): Remove.
77891
77892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77893
77894         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77895         mode.
77896
77897 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         Add and change modules to make it easier for coreutils to use
77900         gnulib-tool.
77901         * modules/backupfile (Files): Remove m4/d-ino.m4.
77902         (Depends-on): Add d-ino.
77903         * modules/cycle-check (Depends-on): Add stdint.
77904         (lib_SOURCES): Add cycle-check.h.
77905         * modules/d-ino: New module.
77906         * modules/d-type: New module.
77907         * modules/error (Files): Remove m4/strerror_r.m4.
77908         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77909         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77910         m4/inttypes_h.m4, m4/uintmax_t.m4.
77911         (Depends-on): Add stdint.
77912         (lib_SOURCES): Add fsusage.h.
77913         * modules/getcwd (Files): Remove d-ino.m4.
77914         (Depends-on): Add d-ino.
77915         * modules/getndelim2 (Depends-on): Add stdint.
77916         * modules/glob (Files): Remove m4/d-type.m4.
77917         (Depends-on): Add d-type.
77918         * modules/host-os: New module.
77919         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77920         m4/inttypes_h.m4, m4/uintmax_t.m4.
77921         * Depends-on: Add stdint.
77922         (lib_SOURCES): Add human.h.
77923         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77924         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77925         m4/uintmax_t.m4, m4/ulonglong.m4.
77926         (Depends-on): Add stdint.
77927         (EXTRA_DIST): Add inttostr.h.
77928         * modules/lchmod: New module.
77929         * modules/link-follow: New module.
77930         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77931         (Depends-on): Add lchmod.
77932         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77933         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77934         (Depends-on): Add stdint.
77935         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77936         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77937         (Depends-on): Add stdint.
77938         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77939         * modules/perl: New module.
77940         * modules/regex (Depends-on): Add stdint.
77941         * modules/rmdir-errno: New module.
77942         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77943         m4/intmax_t.m4.
77944         (Depends-on): Add stdint.
77945         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77946         m4/uintmax_t.m4.
77947         (Depends-on): Add stdint.
77948         * modules/unlink-busy: New module.
77949         * modules/utimecmp (Depends-on): Add stdint.
77950         * modules/uptime: New module.
77951         * modules/winsz-ioctl: New module.
77952         * modules/winsz-termios: New module.
77953         * modules/xnanosleep (Depends-on): Add nanosleep.
77954         * modules/ullong_max: Remove.
77955         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77956         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77957         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77958         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77959         (Depends-on): Add inttypes.
77960         (lib_SOURCES): Add xstrtol.h.
77961         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77962         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77963         * MODULES.html.sh: Move 'assert' into the assert section.
77964         Move 'dummy' into the linking section.
77965         Remove ullong_max.
77966         Add section for compatibility checks for POSIX:2001 functions,
77967         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77968         winsz-ioctl, and winsz-termios into it.
77969         Add lchmod.
77970         Add top-level Misc section and put host-os, perl, and uptime
77971         into it.
77972
77973 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77974
77975         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77976         now assume the stdint module.  Do not include inttypes.h.
77977         * lib/fsusage.h: Likewise.
77978         * lib/getndelim2.c: Likewise.
77979         * lib/human.h: Likewise.
77980         * lib/inttostr.h: Likewise.
77981         * lib/obstack.c: Likewise.
77982         * lib/regex_internal.h: Likewise.
77983         * lib/tempname.c: Likewise.
77984         * lib/utimecmp.c: Likewise.
77985         * lib/xstrtol.h: Likewise.
77986
77987         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77988
77989         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77990         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77991         * lib/xtime.h: Likewise.
77992
77993 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * modules/openat (Files): Add lib/fchmodat.c.
77996         Fixes problem reported by Jay Youngman.
77997
77998 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78001         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78002
78003 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78004             Bruno Haible  <bruno@clisp.org>
78005
78006         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78007         and is a script that invokes bison. Tighten the code. Add comments.
78008
78009 2006-08-18  Jim Meyering  <jim@meyering.net>
78010
78011         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78012         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78013         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78014         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78015
78016 2006-08-18  Bruno Haible  <bruno@clisp.org>
78017
78018         * modules/bison-i18n: New file.
78019         * MODULES.html.sh (Internationalization functions): Add it.
78020
78021 2006-08-18  Bruno Haible  <bruno@clisp.org>
78022
78023         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78024         sys/statvfs.h. When getmntinfo was found, check its declaration and
78025         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78026
78027 2006-08-18  Bruno Haible  <bruno@clisp.org>
78028
78029         * m4/bison-i18n.m4: New file, from bison.
78030
78031 2006-08-18  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78034         (ME_DUMMY): Treat "kernfs" as a dummy.
78035         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78036
78037 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78038
78039         Update from coreutils.
78040
78041         2006-08-15  Jim Meyering  <jim@meyering.net>
78042
78043         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78044
78045         2006-01-17  Jim Meyering  <jim@meyering.net>
78046
78047         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78048
78049         2006-01-11  Jim Meyering  <jim@meyering.net>
78050
78051         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78052         Check for the lchmod function.
78053
78054 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         Update from coreutils.
78057
78058         * lib/__fpending.h: Add copyright notice.
78059         * lib/fprintftime.h: Likewise.
78060         * lib/savedir.c: Use (C) in copyright notice.
78061         * lib/savedir.h: Likewise.
78062
78063         2006-08-15  Jim Meyering  <jim@meyering.net>
78064
78065         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78066         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78067         in support of the EXPECTED_ERRNO macro.
78068         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78069         definitions.  Instead, define the appropriate symbols and include
78070         "at-func.c".
78071         * lib/mkdirat.c (mkdirat): Likewise.
78072         * lib/fchmodat.c (fchmodat): Likewise.
78073         (ENOSYS): Remove definition.
78074         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78075         it.  Don't include "unistd--.h" -- it wasn't ever used.
78076
78077         2006-01-17  Jim Meyering  <jim@meyering.net>
78078
78079         Rewrite fts.c not to change the current working directory,
78080         by using openat, fstatat, fdopendir, etc..
78081
78082         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78083         (HAVE_OPENAT_SUPPORT): Define.
78084         [_LIBC] (fchdir): Don't undef or define; no longer used.
78085         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78086         Now, this `function' always succeeds, and consumes its file descriptor
78087         parameter -- so callers must not close such FDs.  Update callers.
78088         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78089         (diropen): Add parameter, SP.  Adjust all callers.
78090         Implement using diropen_fd, rather than open.
78091         (fts_open): Initialize new member, fts_cwd_fd.
78092         Remove fts_rft-setting code.
78093         (fts_close): Close fts_cwd_fd, if necessary.
78094         (__opendir2): Define in terms of opendir or opendirat,
78095         depending on whether the FST_NOCHDIR flag is set.
78096         (fts_build): Since fts_safe_changedir consumes its FD, and since
78097         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78098         and close the dup'd file descriptor upon failure.
78099         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78100         (fts_safe_changedir): Tweak semantics to reflect that this function
78101         now calls cwd_advance_fd and hence consumes its FD argument.
78102         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78103         [struct FTS] (fts_rft): Remove now-unused member.
78104         [struct FTS] (fts_cycle.state): Improve comment.
78105
78106         * lib/openat.c (openat_needs_fchdir): New function.
78107         * lib/openat.h (openat_needs_fchdir): Declare it.
78108
78109 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78112         Problem and fix reported by Pádraig Brady in
78113         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78114
78115 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78116
78117         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78118
78119 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * lib/memcoll.c (memcoll): Optimize for the common case where the
78122         arguments are bytewise equal.
78123
78124 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * doc/regexprops-generic.texi: Add a copyright notice.
78127
78128 2006-08-15  Bruno Haible  <bruno@clisp.org>
78129
78130         * modules/tmpdir (License): Change to LGPL.
78131
78132 2006-08-15  Bruno Haible  <bruno@clisp.org>
78133
78134         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78135         module.
78136
78137 2006-08-14  Simon Josefsson  <jas@extundo.com>
78138
78139         * config/srclist.txt: Add gnupload.
78140
78141 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78142
78143         Change copyright notice from LGPL 2 to GPL 2, since that's the
78144         standard form used in the gnulib repository.
78145         * tests/test-lock.c: Likewise.
78146         * tests/test-stdint.c: Likewise.
78147         * tests/test-tls.c: Likewise.
78148
78149         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78150         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78151         Add copyright notice.
78152
78153         * check-module: Add copyright notice.  Output a copyright
78154         notice if "--version" is specified.
78155         * modules/COPYING: New file.
78156         * tests/test-getaddrinfo.c: Add copyright notice.
78157         * tests/test-verify.c: Likewise.
78158
78159 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         Change copyright notice from LGPL 2 to GPL 2, since that's the
78162         standard form used in the gnulib repository.
78163         * lib/lock.c: LGPL -> GPL.
78164         * lib/lock.h: Likewise.
78165         * lib/strnlen1.c: Likewise.
78166         * lib/strnlen1.h: Likewise.
78167         * lib/tls.c: Likewise.
78168         * lib/tls.h: Likewise.
78169         * lib/tmpdir.c: Likewise.
78170
78171         * lib/TODO: Remove; this belongs only in coreutils.
78172
78173 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         Add copyright notices to long-enough files that lack them, since
78176         otherwise the files aren't clearly free.  Use the same notice that
78177         getdate.texi already uses.
78178         * doc/alloca-opt.texi: Add copyright notice.
78179         * doc/alloca.texi: Likewise.
78180         * doc/ctime.texi: Likewise.
78181         * doc/functions.texi: Likewise.
78182         * doc/gcd.texi: Likewise.
78183         * doc/gnulib-tool.texi: Likewise.
78184         * doc/inet_ntoa.texi: Likewise.
78185         * doc/visibility.texi: Likewise.
78186
78187         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78188         * doc/quote.texi: Add copyright notice.
78189
78190         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78191         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78192         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78193         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78194         is now obsolete, and give a pointer to the Sun list.
78195         Add copyright notice.
78196
78197 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         * config/srclistvars.sh: Add copyright notice.
78200
78201 2006-08-14  Eric Blake  <ebb9@byu.net>
78202
78203         Import the following change from libc:
78204
78205         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78206
78207         Upstream bug 2997.
78208         * lib/misc/error.c: Add space between program name and message if file
78209         name is missing.
78210
78211 2006-08-12  Karl Berry  <karl@gnu.org>
78212
78213         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78214         remove, these originate in gnulib now.
78215
78216 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78217
78218         * doc/Makefile (standards.info standards.html standards.dvi):
78219         Also depend on make-stds.texi.
78220
78221 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78224         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78225
78226         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78227         in wchar_t.  Problem reported by Eric Blake.
78228
78229         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78230         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78231         Also, help the compiler to keep LEN in a register.
78232
78233 2006-08-11  Eric Blake  <ebb9@byu.net>
78234
78235         * users.txt: Sort.  Add tar.
78236
78237 2006-08-11  Bruno Haible  <bruno@clisp.org>
78238
78239         * users.txt: New file.
78240
78241 2006-08-11  Bruno Haible  <bruno@clisp.org>
78242
78243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78244         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78245
78246 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78247
78248         * modules/snprintf (Depends-on): Remove minmax.
78249         (Maintainer): Add self and Bruno.
78250
78251 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78254         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78255         (EOVERFLOW): Define if the system does not.
78256         Do not include "minmax.h"; it wasn't used.
78257         (snprintf): Don't assume size_t promotes to an unsigned type.
78258         Fix bug when generated string was too long for the buffer: the
78259         buffer's contents are supposed to be the initial prefix of the
78260         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78261         exceeds INT_MAX; do the check ourselves.
78262
78263         Import the following changes from libc:
78264
78265         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78266
78267         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78268         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78269         set wc to the byte which couldn't be converted.
78270         (re_string_reconstruct): Don't clear valid_raw_len before calling
78271         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78272         tip_context using re_string_context_at.
78273
78274         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78275
78276         * lib/posix/regex.h: g++ still cannot handled [restrict].
78277
78278         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78279
78280         * lib/posix/regex.h: Remove special handling for VMS.
78281
78282 2006-08-10  Jim Meyering  <jim@meyering.net>
78283
78284         * modules/same-inode: New module.
78285         * modules/dev-ino: New module.
78286         * modules/cycle-check: Depend on these modules, rather than simply
78287         including their .h files.
78288         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78289         required via m4/cycle-check.m4.
78290         * modules/same: Depend on new same-inode module, rather than
78291         including same-inode.h.
78292         * modules/chdir-safer: New file.
78293
78294         * modules/chown (Depends-on): Add stat-macros.
78295
78296 2006-08-10  Jim Meyering  <jim@meyering.net>
78297
78298         * m4/cycle-check.m4: New file.
78299         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78300         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78301
78302 2006-08-10  Eric Blake  <ebb9@byu.net>
78303
78304         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78305         in from original proposal.
78306
78307 2006-08-10  Eric Blake  <ebb9@byu.net>
78308         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78309
78310         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78311         namespace.
78312
78313 2006-08-10  Bruno Haible  <bruno@clisp.org>
78314
78315         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78316         as well.
78317
78318 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78319
78320         Sync from coreutils.
78321
78322         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78323
78324         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78325         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78326
78327 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * modules/restrict: Remove; no longer needed now that we assume
78330         Autoconf 2.59 or later.
78331         * MODULES.html.sh: Remove 'restrict'.
78332         * modules/argp (Depends-on): Remove 'restrict'.
78333         * modules/base64 (Depends-on): Likewise.
78334         * modules/gc (Depends-on): Likewise.
78335         * modules/getaddrinfo (Depends-on): Likewise.
78336         * modules/glob (Depends-on): Likewise.
78337         * modules/inet_ntop (Depends-on): Likewise.
78338         * modules/inet_pton (Depends-on): Likewise.
78339         * modules/memxor (Depends-on): Likewise.
78340         * modules/regex (Depends-on): Likewise.
78341         * modules/strtok_r (Depends-on): Likewise.
78342         * modules/time_r (Depends-on): Likewise.
78343
78344 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78347         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78348         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78349         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78350         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78351         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78352         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78353         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78354
78355         Merge from coreutils.
78356         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78357         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78358         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78359         * m4/time_r.m4 (gl_TIME_R): Likewise.
78360
78361 2006-08-09  Karl Berry  <karl@gnu.org>
78362
78363         * config/srclist.txt: no more gettext-tools, per Bruno.
78364
78365 2006-08-08  Eric Blake  <ebb9@byu.net>
78366
78367         * modules/verror: New module.
78368         * MODULES.html.sh: Document it.
78369
78370 2006-08-08  Eric Blake  <ebb9@byu.net>
78371
78372         * lib/verror.h, lib/verror.c: New files.
78373
78374 2006-08-08  Eric Blake  <ebb9@byu.net>
78375
78376         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78377         verror_at_line output complies with GNU Coding Standards even when
78378         file is NULL.
78379
78380 2006-08-07  Bruno Haible  <bruno@clisp.org>
78381
78382         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78383         versions of AIX.
78384         Reported by Ralf Wildenhues.
78385
78386 2006-08-07  Bruno Haible  <bruno@clisp.org>
78387
78388         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78389         in an AC_DEFUN. Needed so that the autoconf snippets can use
78390         AC_REQUIRE.
78391
78392 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78393
78394         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78395         Initialize pkgdata_DATA.
78396         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78397         overriding it.
78398
78399 2006-08-06  Eric Blake  <ebb9@byu.net>
78400
78401         * lib/error.h: Fold in some upstream changes from glibc.
78402         * lib/error.c: Likewise.
78403
78404 2006-08-04  Bruno Haible  <bruno@clisp.org>
78405
78406         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78407         Make the mostlyclean-local rule depend on mostlyclean-generic.
78408         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78409
78410 2006-07-31  Bruno Haible  <bruno@clisp.org>
78411
78412         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78413         <stdlib.h>, <string.h>.
78414
78415 2006-07-30  Bruno Haible  <bruno@clisp.org>
78416
78417         * modules/readlink (License): Change to LGPL.
78418
78419 2006-07-30  Bruno Haible  <bruno@clisp.org>
78420
78421         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78422         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78423         set PKGDATADIR to point to it.
78424
78425 2006-07-30  Bruno Haible  <bruno@clisp.org>
78426
78427         * modules/csharpexec (configure.ac): Comment out macro invocation.
78428         * modules/javaexec (configure.ac): Likewise.
78429         * modules/javacomp-script (configure.ac): Likewise.
78430
78431         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78432
78433 2006-07-30  Bruno Haible  <bruno@clisp.org>
78434
78435         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78436         linked-list.
78437
78438 2006-07-30  Bruno Haible  <bruno@clisp.org>
78439
78440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78441
78442 2006-07-30  Bruno Haible  <bruno@clisp.org>
78443
78444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78445         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78446         get removed.
78447
78448 2006-07-29  Bruno Haible  <bruno@clisp.org>
78449
78450         Make it possible for gnulib-tool to work with locally modified or
78451         augmented gnulib repositories.
78452         * gnulib-tool (func_usage): Document --local-dir option.
78453         (local_gnulib_dir): New variable.
78454         Handle --local-dir option.
78455         (func_lookup_file): New function.
78456         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78457         (func_get_description, func_get_filelist, func_get_description,
78458         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78459         func_get_automake_snippet, func_get_include_directive,
78460         func_get_license, func_get_maintainer): Use func_lookup_file.
78461         (func_import, func_create_testdir): Use func_lookup_file.
78462
78463 2006-07-29  Bruno Haible  <bruno@clisp.org>
78464
78465         * modules/setenv (Depends-on): Add unistd.
78466
78467 2006-07-29  Bruno Haible  <bruno@clisp.org>
78468
78469         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78470
78471 2006-07-29  Bruno Haible  <bruno@clisp.org>
78472
78473         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78474
78475 2006-07-29  Bruno Haible  <bruno@clisp.org>
78476
78477         * gnulib-tool (import, update): If there is no Makefile.am, look at
78478         aclocal.m4, instead of bailing out.
78479
78480 2006-07-29  Bruno Haible  <bruno@clisp.org>
78481
78482         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78483         Categorize the options by when they are useful.
78484
78485 2006-07-29  Bruno Haible  <bruno@clisp.org>
78486
78487         * gnulib-tool (func_usage): Document option --no-libtool.
78488         Handle option --no-libtool.
78489         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78490         for changed semantics of $libtool variable.
78491         (func_import): Likewise. If libtool is not used, show this through
78492         an option --no-libtool.
78493         (func_create_testdir): Update.
78494
78495 2006-07-29  Bruno Haible  <bruno@clisp.org>
78496
78497         * gnulib-tool (func_import): Extend error message about missing
78498         --doc-base.
78499
78500 2006-07-29  Bruno Haible  <bruno@clisp.org>
78501
78502         * gnulib-tool (func_import): Don't create the $docbase directory if
78503         there is no file to store there.
78504
78505 2006-07-29  Bruno Haible  <bruno@clisp.org>
78506
78507         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78508         relevant, look for configure.ac there, not in the current directory.
78509         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78510
78511 2006-07-29  Bruno Haible  <bruno@clisp.org>
78512
78513         * gnulib-tool (SORT): New variable.
78514         (func_usage): Undocument --assume-autoconf option.
78515         Remove --assume-autoconf option handling.
78516         (autoconf_minversion): Determine from the contents of configure.ac.
78517         (func_import): Remove autoconf_minversion handling.
78518         Suggested by Eric Blake.
78519
78520 2006-07-29  Bruno Haible  <bruno@clisp.org>
78521
78522         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78523
78524 2006-07-29  Bruno Haible  <bruno@clisp.org>
78525
78526         * config/srclist.txt (*setenv.[ch]): Remove rules.
78527
78528 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78529
78530         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78531
78532 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78533
78534         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78535         arpa/inet.h.
78536
78537 2006-07-28  Simon Josefsson  <jas@extundo.com>
78538
78539         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78540         * modules/inet_pton (Depends-on): Likewise.
78541
78542 2006-07-28  Simon Josefsson  <jas@extundo.com>
78543
78544         * m4/netinet_in_h.m4: New file.
78545
78546 2006-07-28  Simon Josefsson  <jas@extundo.com>
78547
78548         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78549         #include's.
78550
78551 2006-07-28  Simon Josefsson  <jas@extundo.com>
78552
78553         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78554         #include's.
78555
78556 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78557
78558         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78559         setgid on directories only if they set these bits.
78560         * lib/modechange.h: Remove obsolete comment about masks.
78561
78562 2006-07-28  Eric Blake  <ebb9@byu.net>
78563
78564         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78565         macro expansion.
78566
78567 2006-07-28  Bruno Haible  <bruno@clisp.org>
78568
78569         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78570
78571 2006-07-28  Bruno Haible  <bruno@clisp.org>
78572
78573         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78574
78575 2006-07-28  Bruno Haible  <bruno@clisp.org>
78576
78577         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78578         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78579         Define fallbacks.
78580         Avoids link error on FreeBSD 4.x.
78581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78582
78583         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78584         encoding.
78585         * lib/mbswidth.c (iswcntrl): Likewise.
78586
78587 2006-07-27  Bruno Haible  <bruno@clisp.org>
78588
78589         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78590         test.
78591
78592 2006-07-27  Bruno Haible  <bruno@clisp.org>
78593
78594         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78595         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78596         defined.
78597
78598 2006-07-26  Eric Blake  <ebb9@byu.net>
78599
78600         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78601
78602 2006-07-26  Eric Blake  <ebb9@byu.net>
78603
78604         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78605         like mingw that lack mkstemp.
78606         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78607         avoid compilation warning on mingw.
78608
78609 2006-07-26  Bruno Haible  <bruno@clisp.org>
78610
78611         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78612         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78613         INT_FAST*_MIN, INTPTR_MIN.
78614
78615 2006-07-25  Bruno Haible  <bruno@clisp.org>
78616
78617         * modules/version-etc (Depends-on): Add stdarg.
78618
78619 2006-07-25  Bruno Haible  <bruno@clisp.org>
78620
78621         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78622         complex commands.
78623
78624 2006-07-25  Bruno Haible  <bruno@clisp.org>
78625
78626         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78627         defined in <stdarg.h> or config.h.
78628
78629 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78632         (gl_STDIO_SAFER): Remove.
78633
78634 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         * MODULES.html.sh (File stream based Input/Output):
78637         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78638         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78639         * modules/fopen-safer, modules/tmpfile-safer: New files.
78640         * modules/stdio-safer: Remove.
78641
78642 2006-07-24  Bruno Haible  <bruno@clisp.org>
78643
78644         * modules/tmpdir: New file.
78645         * MODULES.html.sh (File system functions): Add it.
78646
78647 2006-07-24  Bruno Haible  <bruno@clisp.org>
78648
78649         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78650         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78651
78652 2006-07-24  Bruno Haible  <bruno@clisp.org>
78653
78654         * modules/clean-temp: New file.
78655
78656 2006-07-24  Bruno Haible  <bruno@clisp.org>
78657
78658         * m4/tmpdir.m4: New file, from GNU gettext.
78659
78660 2006-07-24  Bruno Haible  <bruno@clisp.org>
78661
78662         * lib/tmpdir.h: New file, from GNU gettext.
78663         * lib/tmpdir.c: New file, from GNU gettext.
78664
78665 2006-07-24  Bruno Haible  <bruno@clisp.org>
78666
78667         * lib/clean-temp.h: New file, from GNU gettext.
78668         * lib/clean-temp.c: New file, from GNU gettext.
78669
78670 2006-07-23  Eric Blake  <ebb9@byu.net>
78671
78672         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78673         (Depends-on): Add binary-io.
78674
78675 2006-07-23  Eric Blake  <ebb9@byu.net>
78676
78677         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78678
78679 2006-07-23  Eric Blake  <ebb9@byu.net>
78680
78681         * lib/tmpfile-safer.c: New file.
78682         * lib/stdio-safer.h (fopen_safer): Add prototype.
78683         * lib/stdio--.h (tmpfile): Make safer.
78684
78685 2006-07-23  Bruno Haible  <bruno@clisp.org>
78686
78687         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78688         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78689         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78690         gl_linked_remove_at): Use it.
78691
78692 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78693         and Simon Josefsson <jas@extundo.com>
78694
78695         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78696
78697         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78698
78699 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * modules/close-stream: New file.
78702         * modules/closeout (Description): Make it clear that it exits
78703         with a diagnostic on error.
78704         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78705         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78706
78707 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * m4/close-stream.m4: New file.
78710
78711 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         * lib/close-stream.c, lib/close-stream.h: New files.
78714
78715 2006-07-22  Bruno Haible  <bruno@clisp.org>
78716
78717         Merge from GNU gettext 0.15.
78718
78719         2006-05-01  Bruno Haible  <bruno@clisp.org>
78720
78721                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78722
78723         2006-07-22  Bruno Haible  <bruno@clisp.org>
78724
78725                 * modules/javaversion: New file.
78726                 * MODULES.html.sh (Java): Add javaversion.
78727
78728         2006-03-12  Bruno Haible  <bruno@clisp.org>
78729
78730                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78731
78732         2005-12-04  Bruno Haible  <bruno@clisp.org>
78733
78734                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78735                 (untested).
78736
78737         2006-06-21  Bruno Haible  <bruno@clisp.org>
78738
78739                 Avoid warnings from recent versions of mcs.
78740                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78741                 -o, -L, -r any more. Use options documented since mcs-1.0
78742                 instead. Similarly for -g.
78743
78744         2005-12-04  Bruno Haible  <bruno@clisp.org>
78745
78746                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78747                 .resources, not .resource.
78748
78749         2005-07-09  Bruno Haible  <bruno@clisp.org>
78750
78751                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78752                 add a .dll suffix.
78753                 Reported by Mark Junker <mjscod@gmx.de>.
78754
78755         2006-07-22  Bruno Haible  <bruno@clisp.org>
78756
78757                 * modules/gettext: Upgrade to gettext-0.15.
78758                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78759                 m4/visibility.m4.
78760                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78761
78762 2006-07-22  Bruno Haible  <bruno@clisp.org>
78763
78764         Merge from GNU gettext 0.15.
78765
78766         2006-03-25  Bruno Haible  <bruno@clisp.org>
78767
78768                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78769
78770         2006-07-21  Bruno Haible  <bruno@clisp.org>
78771
78772                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78773                 "1.1".
78774
78775         2006-05-09  Bruno Haible  <bruno@clisp.org>
78776
78777                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78778                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78779                 for the conftestver execution.
78780
78781         2006-05-01  Bruno Haible  <bruno@clisp.org>
78782
78783                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78784                 optional target-version argument. Verify that the compiler
78785                 groks source of the specified source-version, or add -source
78786                 option as necessary. Verify that the compiler produces
78787                 bytecode in the specified target-version, or add -target and
78788                 -source options as necessary. Make the result of the test
78789                 available as variable CONF_JAVAC. Also log error output in
78790                 config.log.
78791
78792         2006-03-11  Bruno Haible  <bruno@clisp.org>
78793
78794                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78795
78796         2006-05-09  Bruno Haible  <bruno@clisp.org>
78797
78798                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78799                 CLASSPATH_SEPARATOR to a semicolon.
78800
78801         2006-03-12  Bruno Haible  <bruno@clisp.org>
78802
78803                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78804                 available as variable CONF_JAVA, for subsequent autoconf
78805                 tests. Also log error output in config.log.
78806
78807         2006-07-19  Bruno Haible  <bruno@clisp.org>
78808
78809                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78810                 that getline works on glibc2 systems. Needed to avoid trouble
78811                 in relocatable.c.
78812                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78813
78814         2005-12-04  Bruno Haible  <bruno@clisp.org>
78815
78816                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78817                 launcher (untested).
78818
78819         2005-12-04  Bruno Haible  <bruno@clisp.org>
78820
78821                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78822
78823         2006-07-22  Bruno Haible  <bruno@clisp.org>
78824
78825                 * gettext.m4: Update from GNU gettext-0.15.
78826                 * nls.m4: Likewise.
78827                 * po.m4: Likewise.
78828                 * inttypes-pri.m4: Likewise.
78829                 * inttypes-h.m4: Renamed from inttypes.m4.
78830                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78831
78832 2006-07-22  Bruno Haible  <bruno@clisp.org>
78833
78834         Merge from GNU gettext 0.15.
78835
78836         2005-07-05  Bruno Haible  <bruno@clisp.org>
78837
78838                 * printf-args.c (printf_fetchargs): Work around broken
78839                 definition of wint_t on mingw.
78840
78841         2005-02-12  Bruno Haible  <bruno@clisp.org>
78842
78843                 * xallocsa.h: Add extern "C" for C++.
78844
78845         2006-05-17  Bruno Haible  <bruno@clisp.org>
78846
78847                 Cygwin portability.
78848                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78849
78850         2006-04-30  Bruno Haible  <bruno@clisp.org>
78851
78852                 * progreloc.c: Include <mach-o/dyld.h> if available.
78853                 (find_executable): Use _NSGetExecutablePath when possible.
78854
78855         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78856
78857                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78858                 function.
78859
78860         2005-12-29  Bruno Haible  <bruno@clisp.org>
78861
78862                 * progreloc.c (set_program_name_and_installdir): Fix
78863                 compilation error.
78864
78865         2005-12-04  Bruno Haible  <bruno@clisp.org>
78866
78867                 Cygwin portability.
78868                 * progreloc.c: Include <windows.h> also on Cygwin.
78869                 (find_executable): Add support for Cygwin.
78870                 (set_program_name_and_installdir): Handle also platforms with
78871                 nonempty EXEEXT.
78872
78873         2006-07-11  Bruno Haible  <bruno@clisp.org>
78874
78875                 * javacomp.c: Fix a comment.
78876                 Reported by Jim Meyering.
78877
78878         2006-04-30  Bruno Haible  <bruno@clisp.org>
78879
78880                 * javacomp.h (compile_java_class): Add source_version,
78881                 target_version arguments.
78882                 * javacomp.c: Rewritten to choose only a compiler that
78883                 respects the specified source_version and target_version.
78884
78885         2006-06-27  Bruno Haible  <bruno@clisp.org>
78886
78887                 Assume correct S_ISDIR macro.
78888                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78889
78890         2006-07-22  Bruno Haible  <bruno@clisp.org>
78891
78892                 * javaversion.h: New file, from GNU gettext.
78893                 * javaversion.c: New file, from GNU gettext.
78894                 * javaversion.java: New file, from GNU gettext.
78895                 * javaversion.class: New file, from GNU gettext.
78896
78897         2006-05-17  Bruno Haible  <bruno@clisp.org>
78898
78899                 Cygwin portability.
78900                 * javaexec.c (execute_java_class): Test for jview program
78901                 also on Cygwin.
78902
78903         2006-04-09  Bruno Haible  <bruno@clisp.org>
78904
78905                 * fatal-signal.c: Don't include string.h.
78906                 (at_fatal_signal): Use a copying loop instead of memcpy.
78907
78908         2005-12-04  Bruno Haible  <bruno@clisp.org>
78909
78910                 * csharpexec.c: Add support for 'clix' launcher (untested).
78911                 (execute_csharp_using_sscli): New function.
78912                 (execute_csharp_program): Call it.
78913
78914         2006-06-21  Bruno Haible  <bruno@clisp.org>
78915
78916                 Avoid warnings from recent versions of mcs.
78917                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78918                 -o, -L, -r any more. Use options documented since mcs-1.0
78919                 instead. Similarly for -g.
78920
78921         2005-07-09  Bruno Haible  <bruno@clisp.org>
78922
78923                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78924                 add a .dll suffix.
78925                 Reported by Mark Junker <mjscod@gmx.de>.
78926
78927         2006-06-17  Bruno Haible  <bruno@clisp.org>
78928
78929                 * config.charset: Update for NetBSD 3.0.
78930
78931         2006-05-17  Bruno Haible  <bruno@clisp.org>
78932
78933                 Cygwin portability.
78934                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78935
78936         2006-05-16  Bruno Haible  <bruno@clisp.org>
78937
78938                 * localcharset.c [CYGWIN]: Include <windows.h>.
78939                 (get_charset_aliases): For Cygwin, return the same CPxxx
78940                 aliases list as under WIN32.
78941                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78942                 the environment variables. Fall back to GetACP().
78943
78944         2006-04-05  Bruno Haible  <bruno@clisp.org>
78945
78946                 * config.charset: Update Juan Manuel Guerrero's address.
78947
78948         2005-02-12  Bruno Haible  <bruno@clisp.org>
78949
78950                 * allocsa.h: Add extern "C" for C++.
78951
78952         2005-02-10  Bruno Haible  <bruno@clisp.org>
78953
78954                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78955                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78956
78957         2006-07-22  Bruno Haible  <bruno@clisp.org>
78958
78959                 * gettext.h: Update to GNU gettext-0.15.
78960
78961 2006-07-22  Bruno Haible  <bruno@clisp.org>
78962
78963         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78964         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78965         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78966
78967 2006-07-21  Eric Blake  <ebb9@byu.net>
78968
78969         * modules/stdlib-safer: New file.
78970         * MODULES.html.sh (File stream based Input/Output): Add
78971         stdlib-safer.
78972
78973 2006-07-21  Eric Blake  <ebb9@byu.net>
78974
78975         * lib/stdlib-safer.h: New file from coreutils, required by
78976         stdlib--.h.
78977
78978 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78981
78982 2006-07-20  Bruno Haible  <bruno@clisp.org>
78983
78984         * gnulib-tool: Recognize new option --assume-autoconf.
78985         (autoconf_minversion): New variable.
78986         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78987
78988 2006-07-20  Bruno Haible  <bruno@clisp.org>
78989
78990         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78991
78992 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78993
78994         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78995         Reindent and repaginate.
78996
78997 2006-07-19  Derek Price  <derek@ximbiot.com>
78998
78999         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79000         Correct grammar.
79001
79002 2006-07-17  Bruno Haible  <bruno@clisp.org>
79003
79004         * modules/list: New file.
79005         * modules/array-list: New file.
79006         * modules/carray-list, modules/carray-list-tests: New files.
79007         * modules/linked-list, modules/linked-list-tests: New files.
79008         * modules/avltree-list, modules/avltree-list-tests: New files.
79009         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79010         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79011         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79012         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79013         * modules/oset: New file.
79014         * modules/array-oset: New file.
79015         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79016         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79017         * tests/test-carray_list.c: New file.
79018         * tests/test-linked_list.c: New file.
79019         * tests/test-avltree_list.c: New file.
79020         * tests/test-rbtree_list.c: New file.
79021         * tests/test-linkedhash_list.c: New file.
79022         * tests/test-avltreehash_list.c: New file.
79023         * tests/test-rbtreehash_list.c: New file.
79024         * tests/test-avltree_oset.c: New file.
79025         * tests/test-rbtree_oset.c: New file.
79026         * MODULES.html.sh (Container data structures): New section.
79027
79028 2006-07-17  Bruno Haible  <bruno@clisp.org>
79029
79030         * m4/gl_list.m4: New file.
79031
79032 2006-07-17  Bruno Haible  <bruno@clisp.org>
79033
79034         * lib/gl_list.h: New file.
79035         * lib/gl_list.c: New file.
79036         * lib/gl_array_list.h: New file.
79037         * lib/gl_array_list.c: New file.
79038         * lib/gl_carray_list.h: New file.
79039         * lib/gl_carray_list.c: New file.
79040         * lib/gl_linked_list.h: New file.
79041         * lib/gl_linked_list.c: New file.
79042         * lib/gl_anylinked_list1.h: New file.
79043         * lib/gl_anylinked_list2.h: New file.
79044         * lib/gl_avltree_list.h: New file.
79045         * lib/gl_avltree_list.c: New file.
79046         * lib/gl_anyavltree_list1.h: New file.
79047         * lib/gl_anyavltree_list2.h: New file.
79048         * lib/gl_rbtree_list.h: New file.
79049         * lib/gl_rbtree_list.c: New file.
79050         * lib/gl_anyrbtree_list1.h: New file.
79051         * lib/gl_anyrbtree_list2.h: New file.
79052         * lib/gl_anytree_list1.h: New file.
79053         * lib/gl_anytree_list2.h: New file.
79054         * lib/gl_linkedhash_list.h: New file.
79055         * lib/gl_linkedhash_list.c: New file.
79056         * lib/gl_anyhash_list1.h: New file.
79057         * lib/gl_anyhash_list2.h: New file.
79058         * lib/gl_avltreehash_list.h: New file.
79059         * lib/gl_avltreehash_list.c: New file.
79060         * lib/gl_rbtreehash_list.h: New file.
79061         * lib/gl_rbtreehash_list.c: New file.
79062         * lib/gl_anytreehash_list1.h: New file.
79063         * lib/gl_anytreehash_list2.h: New file.
79064
79065         * lib/gl_oset.h: New file.
79066         * lib/gl_oset.c: New file.
79067         * lib/gl_array_oset.h: New file.
79068         * lib/gl_array_oset.c: New file.
79069         * lib/gl_avltree_oset.h: New file.
79070         * lib/gl_avltree_oset.c: New file.
79071         * lib/gl_rbtree_oset.h: New file.
79072         * lib/gl_rbtree_oset.c: New file.
79073         * lib/gl_anytree_oset.h: New file.
79074
79075 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * m4/mkancesdirs.m4: New file.
79078         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79079         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79080         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79081         it.
79082
79083 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79086         * lib/mkancesdirs.h: New files.
79087         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79088         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79089         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79090         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79091         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79092         callers changed.  Revamp internals significantly, by not
79093         attempting to create directories that are temporarily more
79094         permissive than the final results.  Do not attempt to use
79095         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79096         This removes some race conditions, fixes some bugs, and simplifies
79097         things.  Use new dirchownmod function to do owner and mode changes.
79098         * lib/mkdir-p.h: Likewise.
79099         * lib/modechange.c (octal_to_mode): New function.
79100         (struct mode_change): New member mentioned.
79101         (make_node_op_equals): New arg mentioned.  All callers changed.
79102         (mode_compile): Keep track of which mode bits the user has explicitly
79103         mentioned.
79104         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79105         New arg PMODE_BITS, to keep track of which mode bits the user
79106         mentioned; it treats S_ISUID and S_ISGID speciall.
79107         All callers changed.
79108         * lib/modechange.h: Likewise.
79109
79110 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * MODULES.html.sh: Add mkancestors.
79113         * modules/mkancesdirs: New module.
79114         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79115         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79116         The chdir-safer and afs files are now orphans; I'll remove them
79117         unless someone speaks up.
79118         Add lib/dirchownmod.c, lib/dirchownmod.h.
79119         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79120         Add lchown, mkancesdirs.
79121         (Maintainer): Add self.
79122
79123 2006-07-15  Karl Berry  <karl@gnu.org>
79124
79125         * gnulib-tool: help message wording/arrangement.
79126
79127 2006-07-14  Simon Josefsson  <jas@extundo.com>
79128
79129         * doc/gnulib.texi (Libtool and Windows): New section.
79130
79131 2006-07-12  Simon Josefsson  <jas@extundo.com>
79132
79133         * modules/gendocs (License): Fix license, approved by Karl.
79134
79135 2006-07-12  Eric Blake  <ebb9@byu.net>
79136
79137         * MODULES.html.sh: Add gendocs.
79138
79139 2006-07-11  Eric Blake  <ebb9@byu.net>
79140
79141         * modules/fdl: New module, to install doc/fdl.texi.
79142         * MODULES.html.sh: Add new section for documentation modules.
79143         * gnulib-tool: Avoid space-tab.
79144         (--doc-base): New option, to manage files from doc.
79145
79146 2006-07-11  Eric Blake  <ebb9@byu.net>
79147
79148         * m4/absolute-header.m4: Fix comments to match recent change.
79149
79150 2006-07-11  Eric Blake  <ebb9@byu.net>
79151
79152         * gnulib-tool: List --doc-base before --tests-base.
79153
79154 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79155
79156         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79157
79158 2006-07-11  Bruno Haible  <bruno@clisp.org>
79159
79160         * README: Mention where to put documentation.
79161
79162 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79163
79164         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79165
79166 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79169         to stdint.m4.
79170
79171 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79174         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79175         "no/such/file/stdint.h" when there is no such file, so that
79176         the resulting C code can be parsed by dodgy compilers.
79177         Problems reported by Bob Proulx.
79178
79179 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79180
79181         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79182         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79183         macros into the GNU _D_EXACT_NAMLEN.
79184         * lib/savedir.c:  Likewise.
79185         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79186
79187 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79188         and Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79191         * m4/savedir.m4:
79192         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79193         macros into the GNU _D_EXACT_NAMLEN.
79194
79195 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79198         around the absolute name, to work around a problem with the HP-UX
79199         11.23 native C compiler, reported by Bob Proulx.
79200
79201 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * doc/maintain.texi, make-stds.texi: Sync from
79204         <http://savannah.gnu.org/projects/gnustandards>.
79205
79206 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79207
79208         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79209
79210 2006-07-09  Jim Meyering  <jim@meyering.net>
79211
79212         * m4/glob.m4: Remove a doubled word in a comment.
79213
79214 2006-07-09  Jim Meyering  <jim@meyering.net>
79215
79216         * lib/argp-pv.c: Remove a doubled word in a comment.
79217         * lib/check-version.c (check_version): Likewise.
79218         * lib/javacomp.c (compile_java_class): Likewise.
79219
79220 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79223         for the benefit of people using Autoconf 2.60.  If you want to
79224         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79225         (or m4/onceonly.m4, if pre-2.57) manually.
79226
79227 2006-07-08  Jim Meyering  <jim@meyering.net>
79228
79229         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79230         comment.
79231         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79232         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79233         comment.
79234
79235 2006-07-08  Jim Meyering  <jim@meyering.net>
79236
79237         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79238
79239 2006-07-07  Simon Josefsson  <jas@extundo.com>
79240
79241         * tests/test-crc.c: Change expected crc value, the test vector
79242         were probably computed using the old broken crc.c?
79243
79244 2006-07-06  Simon Josefsson  <jas@extundo.com>
79245
79246         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79247         now the canonical place for the M4 file).
79248
79249         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79250         from the sys_socket dependency now.
79251
79252         * modules/inet_pton (Files): Ditto.
79253
79254         * modules/inet_ntop (Files): Ditto.
79255
79256 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79257
79258         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79259         not gl_PREREQ_GETUSERSHELL.
79260
79261 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79262
79263         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79264         with only one argument, for Autoconf 2.60.
79265         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79266         expand to nothing, so add a shell command to avoid syntax error.
79267         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79268
79269 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79270
79271         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79272
79273 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79276         no longer needed.  Check for isblank decl.
79277         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79278         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79279         of existence.
79280
79281 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * lib/getloadavg.c: Use __VMS, not VMS.
79284         * lib/getopt.c: Likewise.
79285         * lib/getpagesize.h: Likewise.
79286         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79287         and probably does not work.
79288
79289 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         * lib/.cppi-disable: Add wcwidth.
79292         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79293         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79294         (ISGRAPH): Remove.  All uses changed to isgraph.
79295         (FOLD) [!defined _LIBC]: Remove special case.
79296         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79297         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79298         HAVE_ISBLANK.
79299         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79300         case.
79301
79302 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79303
79304         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79305         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79306         brackets.  Other minor changes to suppress some compiler
79307         warnings.
79308
79309 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79310         and Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79313         of invoking obsolescent AC_HEADER_DIRENT macro.
79314         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79315         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79316         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79318         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79319         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79320         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79321         * m4/readdir.m4: Remove; no longer needed.
79322
79323 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79324         and Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79327         Don't worry about this obsolete case any more.
79328         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79329         directories.
79330         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79331         worry about this obsolete case any more.
79332         * lib/fts.c: Likewise.
79333         * lib/getcwd.c: Likewise.
79334         * lib/glob.h: Likewise.
79335         * lib/savedir.c: Likewise.
79336
79337 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79340         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79341         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79342         needed.
79343         All uses removed.
79344         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79345         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79346         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79347         needed.
79348         * m4/getdate.m4 (gl_GETDATE): Likewise.
79349         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79350         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79351         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79352         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79353         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79354         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79355         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79356         needed.
79357
79358 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * lib/memcasecmp.c: Include <limits.h>.
79361         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79362         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79363         Don't assume isdigit succeeds only on '0' through '9'.
79364
79365 2006-07-05  Eric Blake  <ebb9@byu.net>
79366
79367         * modules/getaddrinfo (Depends-on): Add snprintf.
79368
79369 2006-07-05  Eric Blake  <ebb9@byu.net>
79370
79371         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79372         to avoid 'header present but could not be compiled' on cygwin.
79373
79374 2006-07-05  Eric Blake  <ebb9@byu.net>
79375
79376         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79377         missing from netdb.h.
79378         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79379
79380 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79381
79382         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79383         no longer needed.
79384         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79385         * m4/getdate.m4 (gl_GETDATE): Likewise.
79386         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79387         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79388         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79389         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79390         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79391
79392 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79393
79394         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79395         All uses of is_space replaced by isspace.
79396         * lib/exit.h: Don't talk about STDC_HEADERS.
79397         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79398         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79399         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79400         replaced by isprint etc.
79401         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79402         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79403         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79404         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79405         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79406         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79407
79408 2006-07-05  Bruno Haible  <bruno@clisp.org>
79409
79410         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79411         the function exists, before testing against AIX.
79412         Reported by Martin Lambers <marlam@marlam.de>.
79413
79414 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79417         From Mark D. Baushke.
79418
79419 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79422         to the absolute name, not just one, to bypass Sun C 5.8's
79423         "warning: #include of /usr/include/... may be non-portable".
79424
79425 2006-07-04  Eric Blake  <ebb9@byu.net>
79426
79427         * modules/dirname-tests: New test module.
79428         * tests/test-dirname.c: New file, replacing dirname.c
79429         TEST_DIRNAME section that was recently deleted.
79430
79431 2006-07-04  Bruno Haible  <bruno@clisp.org>
79432
79433         Assume ANSI C header files and <ctype.h> functions.
79434         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79435         (mbsnwidth): Use isprint, iscntrl instead.
79436
79437 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         Merge from coreutils.
79440         * MODULES.html.sh: Add xstrtold.
79441         * modules/xstrtold: New file.
79442         * modules/cycle-check (Files): Add lib/same-inode.h.
79443         * modules/dirname (Files): Add m4/double-slash-root.m4.
79444         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79445         * modules/mkdir-p (Files): Add lib/same-inode.h.
79446         * modules/same (Files): Add lib/same-inode.h.
79447
79448 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79449
79450         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79451         This is to keep the terminology clean; POSIX talks about
79452         "absolute pathnames", not "full pathnames", but the GNU
79453         Coding Standards say to use "path" for something else;
79454         so use "absolute" to keep both sides happy.
79455         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79456         Set gl_absolute_header, not gl_full_header_path.
79457         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79458         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79459         All uses changed.
79460
79461         Merge from coreutils.
79462
79463         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79464
79465         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79466         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79467         want to require the building of c-strtod.o.
79468         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79469         needs -lm directly.
79470         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79471
79472         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79473
79474         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79475         --as-needed option if available.  Problem reported by Albert Chin in
79476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79477         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79478         cc merely issues a bunch of annoying warnings for --as-needed
79479         (this problem was reported by Bob Proulx).  Also, try linking with
79480         -lm to detect a bug in binutils 2.16 (this problem was reported
79481         by Ralf Wildenhues).
79482
79483         2006-06-18  Jim Meyering  <jim@meyering.net>
79484
79485         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79486         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79487         macro.
79488         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79489         also check for glibc-2.4's abort-inducing bug.
79490
79491         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79492         Low-probability clean-up should be to use rmdir to get rid of
79493         the just-created directory, not unlink.
79494
79495         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79496         configure fail, and request a bug report to inform us about it.
79497         Add a comment that, barring reports to the contrary, in 2007 we'll
79498         assume ftruncate is universally available.
79499
79500         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79503
79504         2006-03-12  Jim Meyering  <jim@meyering.net>
79505
79506         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79507         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79508         * m4/same.m4 (gl_SAME): Likewise.
79509         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79510
79511         2006-03-11  Eric Blake  <ebb9@byu.net>
79512
79513         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79514         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79515         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79516         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79517
79518 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79521         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79522         reported by Mark D. Baushke, one in
79523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79524
79525         Merge from coreutils.
79526
79527         * lib/.cppi-disable: Add stdint_.h.
79528         * lib/.cvsignore: Add stdint.h.
79529
79530         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79533         both double and long double versions.
79534         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79535         * lib/xstrtold.c: New file.
79536         * lib/xstrtod.h (xstrtold): New decl.
79537
79538         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79539
79540         * lib/filemode.c (setst): Remove.
79541         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79542         (arguably) clearer, and the generated code is a bit smaller on my
79543         Debian GNU/Linux stable x86 host.
79544
79545         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79548         Assume that filemode.h includes sys/types.h and sys/stat.h.
79549         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79550         (ftypelet): Reorder to put common cases first, for efficiency.
79551         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79552         to do 'M'.
79553         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79554         of 10, for compatibility with FreeBSD.  All callers changed.
79555         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79556         types that can't be deduced solely from st_mode.  First arg is now a
79557         const pointer.
79558         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79559         (strmode): Renamed from mode_string.
79560         (filemodestring): New decl.
79561         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79562         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79563         needed.
79564         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79565
79566         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79567
79568         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79569         fsusage.h now does that.  Include fsusage.h first, to test interface.
79570         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79571         at most one method (the old code could have generated decls that
79572         didn't conform to C89, not that this was ever exercised).
79573         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79574
79575         2006-03-19  Jim Meyering  <jim@meyering.net>
79576
79577         Work even in a chroot where d_ino values for entries in "/"
79578         don't match the stat.st_ino values for the same names.
79579         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79580         number, iterate through all entries again, using lstat instead.
79581         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79582         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79583
79584         * lib/getcwd.c (__getcwd): Clarify a comment.
79585         Use memcpy in place of a call to strcpy.
79586
79587         2006-03-12  Jim Meyering  <jim@meyering.net>
79588
79589         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79590         matches that of the current directory (which we're about to chdir ".."
79591         out of), then save the dev-ino of the parent, instead.
79592
79593         * lib/same-inode.h (SAME_INODE): New file/macro.
79594         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79595         Include "same-inode.h", instead.
79596         * lib/same.c: Likewise.
79597         * lib/cycle-check.h: Include "same-inode.h".
79598         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79599         * lib/cycle-check.c (SAME_INODE): Remove definition.
79600         * lib/root-dev-ino.h: Include "same-inode.h".
79601
79602         2006-03-11  Eric Blake  <ebb9@byu.net>
79603
79604         * lib/same.c (same_name): s/base_name/last_component/
79605         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79606         * lib/filenamecat.c (file_name_concat): Likewise.
79607
79608         2006-03-11  Eric Blake  <ebb9@byu.net>,
79609                     Paul Eggert  <eggert@cs.ucla.edu>
79610
79611         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79612         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79613         drive prefix.
79614         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79615         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79616         (last_component): New method.
79617         * lib/dirname.c (dir_len): Determine when drive letters need a
79618         subsequent slash.  Preserve // when it is special.
79619         (dir_name): Don't append dot when drive letter is absolute.
79620         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79621         * lib/basename.c (base_name): New semantics - malloc the result.
79622         Preserve // when it is special.  Preserve relative files that look
79623         like drive letters.
79624         (base_len): Preserve // when it is special.
79625         (last_component): New method, similar to old base_name semantics.
79626         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79627         base_name.  Strip redundant slashes from ///.
79628
79629 2006-07-03  Jim Meyering  <jim@meyering.net>
79630
79631         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79632         macro is used before the first cycle_check call.
79633
79634 2006-07-03  Eric Blake  <ebb9@byu.net>
79635
79636         * modules/dirname (Depends-on): Add xstrndup.
79637
79638 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79641         test cases, so that config.log is a bit easier to follow.
79642
79643 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79646         both are 64 bits, since this seems to be the tradition, and this
79647         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79648         we ever run into a host that prefers long long to long in this
79649         case, we'll need another configure-time test.  Problem reported by
79650         Jim Meyering.
79651
79652 2006-07-02  Eric Blake  <ebb9@byu.net>
79653
79654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79655
79656 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79657
79658         * modules/inttypes (Depends-on): No longer depends on stdint.
79659         * modules/stdint (Description): Say more about assumptions.
79660         Say that the fast types might differ.  Say macros are used.
79661         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79662         (Makefile.am): Revise list of substituted symbols to match
79663         new stdint.m4.
79664         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79665         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79666         * tests/test-stdint.c (verify_same_types)
79667         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79668         the code conforms to C99/C89.
79669         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79670         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79671
79672 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79673
79674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79675         but fix a bug, by requiring at least 64 bits.
79676         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79677         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79678         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79679         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79680
79681         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79682         changes.  Make 2.59 a prerequisite.  Check and substitute for
79683         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79684         inttypes.h.  Do not use special include files; just use the
79685         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79686         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79687         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79688         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79689         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79690         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79691         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79692         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79693         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79694         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79695         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79696         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79697         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79698         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79699         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79700         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79701         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79702         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79703         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79704         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79705         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79706         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79707         not check for things that C99 does not require, e.g., int8_t.  If
79708         a test isn't needed unless <stdint.h> isn't working, and is
79709         unlikely to be needed for any other reason, then don't do it
79710         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79711         size_t, since we assume C89 freestanding at least.  Do not check
79712         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79713         the right thing even if the types are not defined.  Instead use:
79714         (gl_STDINT_TYPE_PROPERTIES): New macro.
79715         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79716         testing whether <sys/types.h> clashes, as Autoconf does this for
79717         us now.  All uses removed.
79718         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79719         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79720         (gl_CHECK_TYPE_SAME):
79721         Remove; no longer needed.
79722         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79723         exists, since we'll return 0 anyway in that case.
79724         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79725
79726 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79729         possible collision with system files.
79730         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79731         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79732         WCHAR_MIN and WCHAR_MAX in this case.
79733         (<stddef.h>): Do not include; no longer needed.
79734         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79735         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79736         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79737         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79738         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79739         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79740         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79741         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79742         !defined(__c99))]: Include in this case too, since it's harmless
79743         now.
79744         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79745         dangerous to do so.
79746         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79747         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79748         (_STDINT_MIN, _STDINT_MAX): New macros.
79749         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79750         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79751         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79752         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79753         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79754         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79755         macros, not typedefs; this simplifies things quite a bit.
79756         Use long int for all types narrower than int64_t.
79757         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79758         Define in terms of long long int or int64_t or long int,
79759         not int64_t or int32_t.  This saves some compile-time testing.
79760         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79761         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79762         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79763         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79764         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79765         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79766         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79767         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79768         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79769         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79770         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79771         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79772         undef any previous version and define our own version, for
79773         simplicity and consistency with the new macros for types.
79774         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79775         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79776         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79777         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79778         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79779         @WINT_T_SUFFIX@ to keep things simple here.
79780         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79781         Simplify by assuming typical 8/16/32/64 host, since we're
79782         already doing that elsewhere anyway.
79783         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79784         and assume long long int is 64 bits if available.  This
79785         speeds up 'configure'.
79786
79787 2006-07-01  Eric Blake  <ebb9@byu.net>
79788
79789         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79790         Reported by Andreas Buening.
79791
79792 2006-07-01  Eric Blake  <ebb9@byu.net>
79793
79794         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79795
79796 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79797
79798         * lib/getaddrinfo.c: fixed typo
79799
79800 2006-06-29  Jim Meyering  <jim@meyering.net>
79801
79802         * modules/strftime (Maintainer): Add my name, since with the
79803         FPRINTFTIME changes strftime.c has forked from glibc.
79804
79805 2006-06-29  Eric Blake  <ebb9@byu.net>
79806
79807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79808
79809 2006-06-29  Eric Blake  <ebb9@byu.net>
79810
79811         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79812
79813 2006-06-29  Eric Blake  <ebb9@byu.net>
79814
79815         * lib/stat_.h: New file.
79816
79817 2006-06-29  Eric Blake  <ebb9@byu.net>
79818
79819         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79820         unused static function.
79821
79822 2006-06-29  Eric Blake  <ebb9@byu.net>
79823
79824         * doc/functions.texi (Function Portability): Document missing lstat
79825         on mingw.
79826
79827 2006-06-29  Eric Blake  <ebb9@byu.net>
79828
79829         * MODULES.html.sh: Add sys_stat.
79830         * modules/sys_stat: New module.
79831         * modules/mkstemp (Depends-on): Add sys_stat.
79832
79833 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79834
79835         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79836
79837 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79838
79839         * m4/c-bs-a.m4: Removed.
79840
79841 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79842
79843         * lib/strftime.c: Assume strftime() exists.
79844
79845 2006-06-29  Derek Price  <derek@ximbiot.com>
79846
79847         * modules/c-bs-a: Removed - \a is C89.
79848         * MODULES.html.sh: Remove c-bs-a.
79849
79850 2006-06-29  Bruno Haible  <bruno@clisp.org>
79851
79852         * modules/wcwidth (License): Change to LGPL.
79853
79854 2006-06-28  Simon Josefsson  <jas@extundo.com>
79855
79856         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79857         on _WIN32.
79858
79859         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79860         getnameinfo.
79861
79862 2006-06-28  Simon Josefsson  <jas@extundo.com>
79863
79864         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79865
79866 2006-06-28  Simon Josefsson  <jas@extundo.com>
79867
79868         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79869         functions there.  It will succeed on Windows XP, but on Windows
79870         2000 and (presumably) earlier, it will fail, and use the internal
79871         re-implementation.
79872         (use_win32_p): New function.
79873         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79874         Support AI_NUMERICSERV to disable getservbyname.
79875         (getnameinfo): New function, only supports
79876         NI_NUMERICHOST|NI_NUMERICSERV for now.
79877
79878         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79879         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79880         getnameinfo.
79881
79882 2006-06-28  Eric Blake  <ebb9@byu.net>
79883
79884         * modules/wcwidth: New file.
79885         * modules/mbchar (Depends-on): Add wcwidth.
79886         * modules/mbswidth (Depends-on): Add wcwidth.
79887         * MODULES.html.sh: Add wcwidth.
79888
79889 2006-06-28  Eric Blake  <ebb9@byu.net>
79890
79891         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79893
79894 2006-06-28  Eric Blake  <ebb9@byu.net>
79895
79896         * lib/xvasprintf.h: Fix comments.
79897
79898 2006-06-28  Eric Blake  <ebb9@byu.net>
79899
79900         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79901         * lib/mbswidth.c (wcwidth): Move from here...
79902         * lib/wcwidth.h: ...to this new file.
79903
79904 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79905
79906         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79907
79908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79909         it's obsolete.
79910         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79911
79912 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79913
79914         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79915         Autoconf 2.60 says this stuff was obsolete.
79916
79917 2006-06-28  Bruno Haible  <bruno@clisp.org>
79918
79919         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79920
79921 2006-06-28  Bruno Haible  <bruno@clisp.org>
79922
79923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79924         gt_TYPE_WCHAR_T.
79925
79926 2006-06-28  Bruno Haible  <bruno@clisp.org>
79927
79928         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79929         declaration for wcwidth.
79930         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79931
79932 2006-06-28  Bruno Haible  <bruno@clisp.org>
79933
79934         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79935         (mkdir): Define using _mkdir.
79936
79937 2006-06-28  Bruno Haible  <bruno@clisp.org>
79938
79939         * lib/getaddrinfo.h: Fix POSIX URL.
79940         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79941         _WIN32.
79942         (use_win32_p): Make static.
79943         (getaddrinfo): Reject service name if it is empty or does not consist
79944         solely of decimal digits, or if its value is > 65535.
79945         (getnameinfo): Remove useless casts.
79946
79947 2006-06-27  Simon Josefsson  <jas@extundo.com>
79948
79949         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79950         Eggert and Martin Lambers.
79951
79952 2006-06-27  Simon Josefsson  <jas@extundo.com>
79953
79954         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79955         Eggert and Martin Lambers.
79956
79957 2006-06-27  Bruno Haible  <bruno@clisp.org>
79958
79959         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79960         result to 0, not to empty.
79961         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79962
79963 2006-06-27  Bruno Haible  <bruno@clisp.org>
79964
79965         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79966
79967 2006-06-26  Simon Josefsson  <jas@extundo.com>
79968
79969         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79970         present.
79971
79972 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79975         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79977
79978 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79979
79980         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79981
79982 2006-06-26  Bruno Haible  <bruno@clisp.org>
79983
79984         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79985
79986 2006-06-26  Bruno Haible  <bruno@clisp.org>
79987
79988         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79989
79990 2006-06-26  Bruno Haible  <bruno@clisp.org>
79991
79992         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79993         SGI C compiler in pre-C99 mode.
79994         Suggested by Mark D. Baushke and Larry Jones.
79995
79996 2006-06-26  Bruno Haible  <bruno@clisp.org>
79997
79998         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79999         WCHAR_MAX.
80000         Reported by Mark D. Baushke and Larry Jones.
80001
80002 2006-06-26  Bruno Haible  <bruno@clisp.org>
80003
80004         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80005         in pre-C99 mode.
80006         Suggested by Mark D. Baushke and Larry Jones.
80007
80008 2006-06-23  Simon Josefsson  <jas@extundo.com>
80009             Bruno Haible  <bruno@clisp.org>
80010
80011         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80012         Emit mostlyclean-local rule.
80013         (func_emit_tests_Makefile_am): Likewise.
80014         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80015
80016 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80017
80018         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80019
80020 2006-06-23  Bruno Haible  <bruno@clisp.org>
80021
80022         * tests/test-stdint.c: Update to match ISO C 99 Technical
80023         Corrigendum 1.
80024
80025 2006-06-23  Bruno Haible  <bruno@clisp.org>
80026
80027         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80028
80029 2006-06-23  Bruno Haible  <bruno@clisp.org>
80030
80031         * lib/stdint_.h: Treat IRIX like OpenBSD.
80032
80033 2006-06-23  Bruno Haible  <bruno@clisp.org>
80034
80035         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80036         ISO C 99 Technical Corrigendum 1.
80037
80038 2006-06-22  Simon Josefsson  <jas@extundo.com>
80039
80040         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80041         MinGW.
80042
80043 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80044
80045         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80046         needed.  Some compiler complained about some of them.  Problem reported
80047         by Larry Jones in
80048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80049
80050 2006-06-21  Simon Josefsson  <jas@extundo.com>
80051
80052         * tests/test-getaddrinfo.c: New file.
80053
80054         * modules/getaddrinfo-tests: New file.
80055
80056         * MODULES.html.sh: Add inet_pton.
80057
80058         * modules/inet_pton: New file.
80059
80060 2006-06-21  Simon Josefsson  <jas@extundo.com>
80061
80062         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80063         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80064         of using the (limited) gnulib implementation on Windows XP.
80065
80066         * m4/inet_pton.m4: New file.
80067
80068 2006-06-21  Simon Josefsson  <jas@extundo.com>
80069
80070         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80071         variable.
80072
80073         * lib/socket_.h: Don't define WINVER.
80074
80075         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80076         slightly modified to work in gnulib.
80077
80078 2006-06-21  Simon Josefsson  <jas@extundo.com>
80079
80080         * doc/gnulib.texi (Windows sockets): Add.
80081
80082 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         * lib/read-file.c (fread_file): Start with buffer allocation of
80085         0 bytes rather than 1 byte; this simplifies the code.
80086         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80087         code to free buffer and save/restore errno.
80088         (internal_read_file): Remove unused local.
80089
80090 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80093         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80094         Problem reported by Denis Excoffier in
80095         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80096
80097 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80098
80099         * modules/sys_socket, modules/socklen: Include sys/types since
80100         FreeBSD 4.x's sys/socket.h needs it.
80101
80102 2006-06-19  Simon Josefsson  <jas@extundo.com>
80103
80104         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80105
80106 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80109
80110 2006-06-19  Bruno Haible  <bruno@clisp.org>
80111
80112         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80113         and FULL_PATH_INTTYPES_H in angle brackets.
80114         Reported by Mark D. Baushke <mdb@gnu.org>.
80115
80116 2006-06-17  Eric Blake  <ebb9@byu.net>
80117
80118         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80119         errno.
80120
80121 2006-06-17  Bruno Haible  <bruno@clisp.org>
80122
80123         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80124         <sys/inttypes.h>.
80125
80126 2006-06-17  Bruno Haible  <bruno@clisp.org>
80127
80128         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80129         whether errno is declared. Assume <errno.h> declares errno.
80130
80131 2006-06-17  Bruno Haible  <bruno@clisp.org>
80132
80133         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80134
80135 2006-06-17  Bruno Haible  <bruno@clisp.org>
80136
80137         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80138         problem on Solaris 2.5.1.
80139
80140 2006-06-16  Eric Blake  <ebb9@byu.net>
80141
80142         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80143         * lib/unicodeio.c [!defined errno]: Likewise.
80144         * lib/strtol.c [!defined errno]: Likewise.
80145         * lib/strtod.c [!defined errno]: Likewise.
80146
80147 2006-06-15  Eric Blake  <ebb9@byu.net>
80148
80149         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80150
80151 2006-06-15  Eric Blake  <ebb9@byu.net>
80152
80153         * config/srclist.txt (ssize_t.m4): Lose sync.
80154
80155 2006-06-15  Bruno Haible  <bruno@clisp.org>
80156
80157         * modules/stdint (Files): Include m4/full-header-path.m4,
80158         m4/size_max.m4, m4/wchar_t.m4.
80159         (Makefile.am): Many more substitutions.
80160         * modules/stdint-tests: New file.
80161         * tests/test-stdint.c: New file.
80162
80163 2006-06-15  Bruno Haible  <bruno@clisp.org>
80164
80165         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80166         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80167         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80168         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80169         gl_CHECK_TYPE_SAME): New macros.
80170
80171 2006-06-15  Bruno Haible  <bruno@clisp.org>
80172
80173         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80174
80175 2006-06-15  Bruno Haible  <bruno@clisp.org>
80176
80177         * lib/stdint_.h: Rewritten to be fully auto-configured.
80178         Fixes bug on HP-UX/IA64.
80179
80180 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * lib/getdate.y (__attribute__): Don't define if already defined.
80183         Problem reported by Larry Jones.
80184         * lib/utimens.c (__attribute__): Likewise.
80185
80186 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80189         reported by Andreas Schwab.
80190
80191 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80192             Bruno Haible  <bruno@clisp.org>
80193
80194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80195         check for the declaration of strnlen and a run test that exposes the
80196         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80197         rpl_strndup.
80198
80199 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80200             Bruno Haible  <bruno@clisp.org>
80201
80202         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80203
80204 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80205
80206         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80207         compile test, for Tru64 4.0D.
80208
80209 2006-05-28  Karl Berry  <karl@gnu.org>
80210
80211         * config/srclist.txt (printf-args.c): lose sync.
80212
80213 2006-05-26  Martin Lambers  <marlam@marlam.de>
80214
80215         * lib/getpass.c: Updates the test for the native W32 API, and adds
80216         missing includes, thus fixing compilation warnings.
80217
80218 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80219
80220         * lib/exclude.c (exclude_fnmatch): New function.
80221         (excluded_file_name): Call exclude_fnmatch.
80222         * lib/exclude.h (excluded_file_name): New prototype
80223
80224 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         * lib/tempname.c (small_open, large_open): New macros.
80227         (__open, __open64) [!_LIBC]: Remove.
80228         (__gen_tempname): Use small_open and large_open instead of __open
80229         and __open64.  This fixes a portability bug on HP-UX 11.11i
80230         reported by Simon Wing-Tang in
80231         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80232
80233 2006-05-24  Bruno Haible  <bruno@clisp.org>
80234
80235         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80236         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80237         Reported by Thorsten Maerz <torte@netztorte.de> via
80238         Aaron Stone <aaron@serendipity.cx>.
80239
80240 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80243         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80244         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80245         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80246         not really conditional on the cache.
80247         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80248
80249 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80252         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80253         (my_usleep): Don't mishandle maximum value.
80254
80255 2006-05-19  Jim Meyering  <jim@meyering.net>
80256
80257         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80258
80259 2006-05-17  Bruno Haible  <bruno@clisp.org>
80260
80261         Cygwin portability.
80262         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80263
80264 2006-05-17  Bruno Haible  <bruno@clisp.org>
80265
80266         * lib/stdint_.h: Fix recognition of Cygwin.
80267
80268 2006-05-15  Bruno Haible  <bruno@clisp.org>
80269
80270         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80271         on libtool patch by Ralf Wildenhues.
80272
80273 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80274
80275         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80276         test for C99 conformance; (bool) 0.5 is an integer constant
80277         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80278         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80279
80280 2006-05-11  Simon Josefsson  <jas@extundo.com>
80281
80282         * m4/xvasprintf.m4: Fix obvious typo.
80283
80284 2006-05-11  Jim Meyering  <jim@meyering.net>
80285
80286         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80287         James Lemley.
80288
80289 2006-05-10  Simon Josefsson  <jas@extundo.com>
80290
80291         * lib/md4.c: Typo fix, update copyright years.
80292         (K1, K2): Don't use L because it turn computations into 64-bit on
80293         64-bit platforms.
80294
80295 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80298         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80299         unwanted sign propagation, e.g., on hosts with 64-bit int.
80300         There still are some problems with reeelly weird theoretical hosts
80301         (e.g., 33-bit int) but it's not worth worrying about now.
80302         * lib/sha1.c (rol): Likewise.
80303         (K1, K2, K3, K4): Remove unnecessary L suffix.
80304
80305 2006-05-10  Bruno Haible  <bruno@clisp.org>
80306
80307         * lib/des.c: Cast to avoid warnings.
80308
80309 2006-05-09  Bruno Haible  <bruno@clisp.org>
80310
80311         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80312         (Depends-on): Depend also on xsize, stdarg.
80313         (configure.ac): Add gl_XVASPRINTF.
80314
80315 2006-05-09  Bruno Haible  <bruno@clisp.org>
80316
80317         * m4/xvasprintf.m4: New file.
80318
80319 2006-05-09  Bruno Haible  <bruno@clisp.org>
80320
80321         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80322         (EOVERFLOW): Define fallback value.
80323         (xstrcat): New function.
80324         (xvasprintf): Recognize the special case of a string concatenation.
80325
80326 2006-05-08  Eric Blake  <ebb9@byu.net>
80327
80328         * gnulib-tool (func_version): Base copyright year on CVS date.
80329         (func_emit_copyright_notice): New function.
80330         (func_emit_lib_Makefile_am): Use it.
80331         (func_emit_tests_Makefile_am): Likewise.
80332         (func_import): Likewise.
80333
80334 2006-05-08  Bruno Haible  <bruno@clisp.org>
80335
80336         * modules/stdarg: New file.
80337         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80338
80339 2006-05-08  Bruno Haible  <bruno@clisp.org>
80340
80341         * m4/stdarg.m4: New file, from GNU gettext.
80342
80343 2006-05-08  Bruno Haible  <bruno@clisp.org>
80344
80345         * config/srclist.txt (build-aux/config.rpath): different from latest
80346         release.
80347
80348 2006-05-08  Bruno Haible  <bruno@clisp.org>
80349
80350         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80351
80352 2006-05-05  Jim Meyering  <jim@meyering.net>
80353
80354         * m4/warning.m4: New file, derived from bison's file by the same name.
80355
80356 2006-05-03  Bruno Haible  <bruno@clisp.org>
80357
80358         * lib/stdint_.h: Shorter URL.
80359         * lib/inttypes.h: Likewise.
80360
80361 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80364
80365 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * lib/verify.h: Document the internals better.  Most of this change
80368         was written by Bruno Haible.
80369
80370 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         * doc/verify.texi: New file, partly based on a proposal by
80373         Bruno Haible.
80374
80375 2006-05-02  Bruno Haible  <bruno@clisp.org>
80376
80377         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80378         test from here...
80379         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80380
80381 2006-04-29  Bruno Haible  <bruno@clisp.org>
80382
80383         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80384         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80385
80386 2006-04-29  Bruno Haible  <bruno@clisp.org>
80387
80388         * gnulib-tool: Make --update option actually work.
80389
80390 2006-04-29  Bruno Haible  <bruno@clisp.org>
80391
80392         * doc/gcd.texi: New file.
80393         * doc/gnulib.texi: Include it.
80394
80395 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80396
80397         * lib/getdate.y (get_date): When adding relative date, start with the
80398         initial time, not with the result of the first mktime call.
80399
80400 2006-04-25  Bruno Haible  <bruno@clisp.org>
80401
80402         * gnulib-tool (func_import): Output the include directives in three
80403         blocks, sorted separately.
80404         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80405
80406 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80407
80408         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80409         to define main with arguments, for C++.  Reported by Eric Blake.
80410         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80411         Prefer 'int main ()' to 'int main (void)', for C++.
80412         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80414         for 'main', for C99 and C++.
80415
80416 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80419         Don't assume that exit status -1 is valid.
80420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80421         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80422         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80423         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80424         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80425         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80426         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80427         functions can be used without declaring them, or that you can
80428         exit with status -1.
80429         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80430
80431 2006-04-24  Karl Berry  <karl@gnu.org>
80432
80433         * config/srclist.txt (longdouble.m4): sync lost.
80434
80435 2006-04-24  Eric Blake  <ebb9@byu.net>
80436
80437         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80438
80439 2006-04-24  Bruno Haible  <bruno@clisp.org>
80440
80441         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80442         poll() implementation in AIX.
80443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80444
80445 2006-04-24  Bruno Haible  <bruno@clisp.org>
80446
80447         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80448         assigned exactly once.
80449
80450 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80451             Bruno Haible  <bruno@clisp.org>
80452
80453         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80454         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80455         for AM_CPPFLAGS.
80456
80457 2006-04-23  Bruno Haible  <bruno@clisp.org>
80458
80459         * modules/copy-file: Depend on unistd.
80460         * modules/execute: Likewise.
80461         * modules/fatal-signal: Likewise.
80462         * modules/findprog: Likewise.
80463         * modules/mkdtemp : Likewise.
80464         * modules/pipe: Likewise.
80465         * modules/wait-process: Likewise.
80466
80467 2006-04-23  Bruno Haible  <bruno@clisp.org>
80468
80469         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80470         condition was already detected.
80471         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80472
80473 2006-04-23  Bruno Haible  <bruno@clisp.org>
80474
80475         * lib/copy-file.c: Include <unistd.h> unconditionally.
80476         * lib/execute.c: Likewise.
80477         * lib/fatal-signal.c: Likewise.
80478         * lib/findprog.c: Likewise.
80479         * lib/mkdtemp.c: Likewise.
80480         * lib/pipe.h: Likewise.
80481         * lib/pipe.c: Likewise.
80482         * lib/wait-process.h: Likewise.
80483
80484 2006-04-23  Bruno Haible  <bruno@clisp.org>
80485
80486         * gnulib-tool (func_usage): Fix --import description. Document
80487         --update.
80488         (func_import): Create temporary file in a temporary directory, if
80489         --dry-run is specified. Silence errors from 'grep' when there are no
80490         m4 files in $m4dir.
80491         (func_create_testdir): Silence errors from 'grep' when there are no
80492         m4 files in $m4dir.
80493         Reported by Karl Berry <karl@freefriends.org>.
80494
80495 2006-04-20  Bruno Haible  <bruno@clisp.org>
80496
80497         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80498         one argument, so that the code will be portable to Autoconf 2.60.
80499         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80500         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80501         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80502
80503 2006-04-19  Derek Price  <derek@ximbiot.com>
80504             Eric Blake  <ebb9@byu.net>
80505
80506         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80507         rather than "/full/path.h".  Update comment to match.  Shorten &
80508         generalize m4_translit call via AS_TR_CPP.
80509
80510 2006-04-19  Derek Price  <derek@ximbiot.com>
80511             Eric Blake  <ebb9@byu.net>
80512
80513         * lib/inttypes.h: Correct grammar in comment.
80514
80515 2006-04-18  Derek Price  <derek@ximbiot.com>
80516             Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * modules/inttypes: New file.
80519         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80520
80521 2006-04-18  Derek Price  <derek@ximbiot.com>
80522             Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80525         New files.
80526
80527 2006-04-18  Derek Price  <derek@ximbiot.com>
80528             Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * lib/inttypes.h: New file.
80531         * lib/strtoimax.c: Assume <inttypes.h>.
80532
80533 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80536         isn't mounted.  Problem reported by Kir Kolyshkin.
80537
80538 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80539
80540         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80541         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80542         Derek R. Price.
80543         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80544         implementation.
80545
80546 2006-04-12  Eric Blake  <ebb9@byu.net>
80547
80548         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80549         is now done automatically by the corresponding Autoconf macro.
80550
80551 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80554         time_r.h.
80555
80556 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         Merge regex changes from libc, removing some of our
80559         POSIX-conformance changes that were rejected and redoing them in a
80560         less-intrusive way.
80561
80562         * lib/regcomp.c (re_compile_internal, init_dfa):
80563         Length arg is now size_t, not Idx.  All uses changed.
80564         (peek_token): Forward decl now says internal_function.
80565         (__re_error_msgid, __re_error_msgid_idx):
80566         Now static rather than extern with attribute_hidden.
80567         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80568         For some reason libc prefers K&R style defns for external functions.
80569         (regerror) [!defined _LIBC]: Likewise.
80570         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80571         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80572         (build_range_exp, build_collating_symbol):
80573         Use K&R-style defn.
80574         (re_compile_fastmap): Use '\0' to memset, not 0.
80575         (utf8_sb_map): Make the calculations more obvious.
80576         (init_dfa, parse_bracket_exp, build_charclass_op):
80577         Call calloc and cast result, as glibc does.
80578         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80579         (build_range_exp, build_collating_symbol):
80580         Now internal functions.
80581
80582         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80583
80584         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80585         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80586         Don't depend on VMS; depend on __VMS instead, for POSIX
80587         namespace cleanness.
80588         (regoff_t): Define to ssize_t, not long int.
80589
80590         Remove the REG_ macros named below.  Instead, make the old names
80591         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80592         __USE_GNU_REGEX.
80593         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80594         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80595         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80596         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80597         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80598         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80599         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80600         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80601         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80602         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80603         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80604         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80605         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80606         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80607         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80608         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80609         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80610         (REG_NREGS):
80611         Remove.  All uses replaced by the old RE_* names.
80612         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80613         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80614         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80615         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80616         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80617         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80618         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80619         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80620         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80621         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80622         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80623         Don't bother having these macros be independent of each others'
80624         values, since they no longer exist in the POSIX name space.
80625
80626         Rename the following member names back to their old names,
80627         unless !__USE_GNU_REGEX.  All uses changed back.
80628         (buffer): Renamed from re_buffer.
80629         (allocated): Renamed from re_allocated.
80630         (used): Renamed from re_used.
80631         (syntax): Renamed from re_syntax.
80632         (fastmap): Renamed from re_fastmap.
80633         (translate): Renamed from re_translate.
80634         (can_be_null): Renamed from re_can_be_null.
80635         (regs_allocated): Renamed from re_regs_allocated.
80636         (fastmap_accurate): Renamed from re_fastmap_accurate.
80637         (no_sub): Renamed from re_no_sub.
80638         (not_bol): Renamed from re_not_bol.
80639         (not_eol): Renamed from re_not_eol.
80640         (newline_anchor): Renamed from re_newline_anchor.
80641         (num_regs): Renamed from rm_num_regs.
80642         (start): Renamed from rm_start.
80643         (end): Renamed from rm_end.
80644
80645         (free_state): Move up a bit.
80646
80647         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80648         #define to be empty.
80649         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80650         when that is what is intended.
80651         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80652         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80653         (MAX): New macro.
80654         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80655         All uses changed back to re_malloc, etc.  It's now the caller's
80656         responsibility to check for overflow; all callers changed.
80657         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80658         (re_x2nrealloc): Remove.
80659         (free_state): Remove decl.
80660
80661         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80662         (re_set_registers, re_exec):
80663         Use K&R-style defn.
80664
80665         2006-01-31  Roland McGrath  <roland@redhat.com>
80666
80667         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80668         Reported by Mike Frysinger <vapier@gentoo.org>.
80669
80670         2006-01-15  Andreas Jaeger  <aj@suse.de>
80671
80672         [BZ #1950]
80673         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80674         build_wcs_upper_buffer change.
80675         (build_wcs_upper_buffer): Change return type.
80676
80677         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80678
80679         * lib/regex_internal.h: Include <stdint.h> if available.
80680
80681         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80682
80683         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80684
80685         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80686
80687         * lib/regcomp.c: Adjust for changed secondary hash function.
80688
80689         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80690
80691         * lib/regex.h: Pretty printing.
80692         Clean up namespace a bit.
80693
80694         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80695
80696         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80697         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80698
80699         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80700                     Ulrich Drepper  <drepper@redhat.com>
80701
80702         [BZ #1302]
80703         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80704         changed.
80705         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80706
80707         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80708
80709         [BZ #281]
80710         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80711         * lib/regcomp.c: Remove unnecessary uses of
80712         unsigned RE_TRANSLATE_TYPE.
80713         * lib/regex_internal.h: Likewise.
80714         * lib/regex_internal.c: Likewise.
80715         * lib/regexec.c: Likewise.
80716         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80717
80718         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80719
80720         * lib/regexec.c (find_recover_state): Remove unnecessary
80721         initialization.
80722         (transit_state_bkref): Make DFA a const pointer.
80723         (get_subexp): Likewise.
80724         (check_arrival): Likewise.
80725         (update_cur_sifted_state): Likewise.
80726         (re_search_internal): Likewise.
80727         (prune_impossible_nodes): Likewise.
80728         (acquire_init_state_context): Likewise.
80729         (proceed_next_node): Likewise.
80730         (set_regs): Likewise.
80731         (free_fail_stack_return): Likewise.
80732         (check_arrival_expand_ecl): Mark DFA parameter as const.
80733         (check_arrival_expand_ecl_sub): Likewise.
80734         (check_subexp_limits): Likewise.
80735         (sub_epsilon_src_nodes):  Likewise.
80736         (add_epsilon_src_nodes):  Likewise.
80737         (merge_state_array): Likewise.
80738         (update_regs): Likewise.
80739         (build_trtable): Likewise.
80740         (sift_states_backward): Mark MCTX parameter as const.
80741         (build_sifted_states): Likewise.
80742         (update_cur_sifted_state): Likewise.
80743         (sift_states_mkref): Likewise.
80744         (check_arrival_expand_ecl): Mark eclosure as const.
80745         (check_dst_limits_calc_pos_1): Likewise.
80746         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80747         pointer.
80748
80749         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80750
80751         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80752         (transit_state_sb): Likewise.
80753         (transit_state_mb): Likewise.
80754         (sift_states_iter_mb): Likewise.
80755         (check_arrival_add_next_nodes): Likewise.
80756         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80757         [_LIBC] (re_search_2_stub): Use mempcpy.
80758
80759         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80760         mbrtowc for very simple UTF-8 case.
80761
80762         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80763         a pointer-to-const.
80764         (re_acquire_state_context): Likewise.
80765         * lib/regex_internal.h: Adjust prototypes.
80766
80767         * lib/regex.c: Prevent using C++ compilers.
80768
80769         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80770         (re_acquire_state_context): Likewise.
80771
80772 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * modules/regex (Depends-on): Add ssize_t.
80775
80776 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80779         translation table.
80780
80781 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80782
80783         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80784
80785 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80786             Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80789         <sys/types.h> and <inttypes.h>.
80790
80791 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80792
80793         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80794         `__error_t_defined', so argp.h will not typedef the former.
80795
80796 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80797
80798         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80799         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80800         glibc names.  Even if glibc is changed to conform to POSIX, the
80801         traditional names will be available anyway, since regex depends on
80802         the extensions module.  Also, fix a longstanding typo in the
80803         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80804         reported by Emanuele Giaquinta.  Also, change sense of cached
80805         variable, so that the message makes sense.
80806
80807 2006-03-24  Simon Josefsson  <jas@extundo.com>
80808
80809         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80810         including some doc fixes.
80811         (base64_encode_alloc): Fix +1 bug on allocation failures.
80812
80813 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80814
80815         * lib/base64.c (base64_encode): Do not read past end of array with
80816         unsanitized input on systems with CHAR_BIT > 8.
80817
80818 2006-03-24  Eric Blake  <ebb9@byu.net>
80819
80820         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80821
80822 2006-03-22  Karl Berry  <karl@gnu.org>
80823
80824         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80825         * config/srclistvars.sh (COREUTILS): new var.
80826
80827 2006-03-17  Jim Meyering  <jim@meyering.net>
80828
80829         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80830         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80831
80832 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80835         no longer needs it.  Instead, check that regoff_t is as least
80836         as wide as ptrdiff_t.
80837
80838         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80839         so that our regex.h stays compatible with the installed regex.
80840         This is helpful for installers who configure --without-included-regex.
80841         Problem reported by Emanuele Giaquinta.
80842
80843 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80844
80845         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80846         Typedef to long int, not to off_, as POSIX will likely change
80847         in that direction.
80848
80849 2006-03-15  Eric Blake  <ebb9@byu.net>
80850
80851         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80852
80853 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80854
80855         * lib/argp-help.c (validate_uparams): Fix typo
80856         * lib/argp-parse.c (argp_default_options): Consistently begin help
80857         messages with a lowercase letter.
80858
80859 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80860
80861         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80862         overrun buffers and shouldn't be used (much as gets shouldn't be
80863         used).
80864         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80865
80866 2006-03-08  Simon Josefsson  <jas@extundo.com>
80867
80868         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80869         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80870
80871 2006-03-08  Simon Josefsson  <jas@extundo.com>
80872
80873         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80874         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80875
80876 2006-03-08  Simon Josefsson  <jas@extundo.com>
80877
80878         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80879         signal that configure disabled the device.
80880
80881 2006-03-08  Simon Josefsson  <jas@extundo.com>
80882
80883         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80884         languages.
80885
80886 2006-03-07  Simon Josefsson  <jas@extundo.com>
80887
80888         * modules/getopt (Depends-on): Add unistd.
80889
80890         * modules/unistd: New file.
80891
80892 2006-03-07  Simon Josefsson  <jas@extundo.com>
80893
80894         * modules/gc-random: New file.
80895
80896 2006-03-07  Simon Josefsson  <jas@extundo.com>
80897
80898         * m4/unistd_h.m4: New file.
80899
80900 2006-03-07  Simon Josefsson  <jas@extundo.com>
80901
80902         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80903         test to be side-effect free by storing the result in the cache
80904         variable gl_cv_lib_readline, and moving the assignment of
80905         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80906         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80907
80908 2006-03-07  Simon Josefsson  <jas@extundo.com>
80909
80910         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80911         error on missing devices (the functions will return an error).
80912
80913         * m4/gc.m4: Move random stuff to gc-random.m4
80914
80915 2006-03-07  Simon Josefsson  <jas@extundo.com>
80916
80917         * lib/unistd_.h: New file.
80918
80919 2006-03-07  Simon Josefsson  <jas@extundo.com>
80920
80921         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80922
80923 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80924
80925         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80926         Problem reported by Juan Manuel Guerrero.
80927
80928 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80929
80930         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80931         the unistd module.
80932         * lib/getlogin_r.c: Likewise.
80933         * lib/getlogin_r.h: Likewise.
80934         * lib/glob.c: Likewise.
80935         * lib/pagealign_alloc.c: Likewise.
80936         * lib/unistd_.h: Remove; no longer needed.
80937
80938 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80941         Add unistd.
80942         * modules/c-stack (Depends-on): Add unistd.
80943         * modules/getlogin_r: Likewise.
80944         * modules/glob: Likewise.
80945         * modules/pagealign_alloc: Likewise.
80946         * modules/unistd (Files): Remove lib/unistd_.h.
80947         (EXTRA_DIST): Remove.
80948         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80949         need unistd_.h.
80950         (MOSTLYCLEANFILES): Remove unistd.h-t.
80951
80952 2006-03-03  Simon Josefsson  <jas@extundo.com>
80953
80954         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80955
80956 2006-03-03  Simon Josefsson  <jas@extundo.com>
80957
80958         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80959         libidn and bison.
80960
80961 2006-03-03  Simon Josefsson  <jas@extundo.com>
80962
80963         * build-aux/maint.mk: Add indent target.
80964
80965 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80966
80967         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80968         our replacement poll.h in any case, to avoid a differing
80969         declaration from a system header.  Seen on AIX.
80970
80971 2006-03-01  Simon Josefsson  <jas@extundo.com>
80972
80973         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80974         <kasal@ucw.cz>.
80975
80976 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80977
80978         * modules/gettime (Depends-on): Add extensions module.
80979         * modules/nanosleep (Depends-on): Likewise.
80980         * modules/settime (Depends-on): Likewise.
80981
80982 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80985         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80986         pedantically.
80987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80988         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80989
80990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80991         not "==".  Reported by Ralf Wildenhues.
80992
80993 2006-03-01  Karl Berry  <karl@gnu.org>
80994
80995         * doc/Copyright/request-*: new files, synced from gnuorg.
80996
80997 2006-03-01  Karl Berry  <karl@gnu.org>
80998
80999         * config/srclist.txt (Copyright/*): new entries.
81000
81001 2006-02-28  Simon Josefsson  <jas@extundo.com>
81002
81003         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81004
81005 2006-02-27  Simon Josefsson  <jas@extundo.com>
81006
81007         * lib/base64.h: Indent #define's.  From Jim Meyering
81008         <jim@meyering.net>.
81009
81010 2006-02-27  Jim Meyering  <jim@meyering.net>
81011
81012         Revert the change of 2006-02-24, so these files can continue
81013         to be sync'd from gettext.
81014         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81015         of `config.h'.
81016
81017 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * modules/intprops: New file.
81020         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81021         Add intprops.
81022         * modules/getloadavg (Files): Remove lib/intprops.h.
81023         (Depends-on): Add intprops.
81024         * modules/human: Likewise.
81025         * modules/inttostr: Likewise.
81026         * modules/openat: Likewise.
81027         * modules/sig2str: Likewise.
81028         * modules/userspec: Likewise.
81029         * modules/utimecmp: Likewise.
81030         * modules/xnanosleep: Likewise.
81031         * modules/xstrtol: Likewise.
81032
81033 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81034
81035         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81036         * modules/lock-tests (TESTS): Use $(EXEEXT).
81037         * modules/tls-tests: Likewise.
81038         * modules/argp-tests: Likewise.
81039         (check_PROGRAMS): New var, replacing...
81040         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81041
81042 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81043
81044         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81045         `config.h'.
81046
81047 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81050
81051 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81052
81053         Sync from coreutils.
81054         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81055         gl_CHDIR_SAFER.
81056
81057 2006-02-22  Jim Meyering  <jim@meyering.net>
81058
81059         Sync from coreutils.
81060         * m4/chdir-safer.m4: New file.
81061
81062 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81063
81064         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81065         AT_FDCWD exceeds INT_MAX.
81066         * lib/openat.h (AT_FDCWD): Likewise.
81067
81068 2006-02-17  Eric Blake  <address@hidden>
81069
81070         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81071
81072 2006-02-16  Simon Josefsson  <jas@extundo.com>
81073
81074         * modules/getaddrinfo (Depends-on): Add sys_socket.
81075
81076 2006-02-15  Simon Josefsson  <jas@extundo.com>
81077
81078         * build-aux/maint.mk: Add dsyntax-check rule.
81079
81080 2006-02-15  Eric Blake  <ebb9@byu.net>
81081
81082         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81083         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81084         'present but cannot compile' warnings on cygwin.
81085         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81086         use ws2tcpip.h if sys/socket.h works.
81087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81088         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81089
81090 2006-02-14  Simon Josefsson  <jas@extundo.com>
81091
81092         * modules/maintainer-makefile (Files): Rename.
81093
81094         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81095         and (the local) Makefile.cfg to maint-cfg.mk.
81096
81097         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81098         to the latter.
81099
81100         * modules/maintainer-makefile: New module.
81101
81102         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81103         severaly stripped to make it possible to build it up from scratch
81104         with reliable tests.
81105
81106         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81107         fixes to permit overriding the default actions when configure and
81108         makefile are not available.
81109
81110 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         Sync from coreutils.
81113         * modules/lstat (Depends-on): Don't depend on xalloc.
81114         (License): Change from GPL to LGPL, since this is now simply a
81115         replacement for a libc function.
81116
81117 2006-02-14  Jim Meyering  <jim@meyering.net>
81118
81119         Sync from coreutils.
81120
81121         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81122         failure on deficient systems, and simplify gnulib lgpl dependencies.
81123         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81124         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81125
81126         * lib/xalloc-die.c: Remove unused definition of N_.
81127
81128 2006-02-14  Jim Meyering  <jim@meyering.net>
81129
81130         Sync from coreutils.
81131         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81132         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81133         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81134         double-quote uses of that variable, to accommodate the rare case in
81135         which getmntent is available in none of the libraries checked.  This
81136         happens at least on FreeBSD 5.0.
81137
81138 2006-02-13  Simon Josefsson  <jas@extundo.com>
81139
81140         * gnulib-tool (Usage): Fix --import, from
81141         karl@freefriends.org (Karl Berry).
81142
81143 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81144
81145         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81146
81147 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81148
81149         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81150         "autoupdate" on 2005-12-12.
81151
81152 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * modules/closeout (Depends-on): Remove atexit.
81155
81156 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81159         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81160
81161 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81164         __EXTENSIONS__ if this causes compilation to fail.  Problem
81165         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81166         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81167
81168 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81171         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81173         All uses changed.
81174
81175 2006-01-26  Simon Josefsson  <jas@extundo.com>
81176
81177         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81178         prototype is visible on mingw32.
81179
81180         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81181         for mingw32.
81182
81183         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81184         mingw32).
81185
81186 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81189         attempt to open for write; this always fails, at least on POSIX
81190         hosts.  This reinstates the 2006-01-09 change, which was
81191         inadvertently removed.
81192
81193 2006-01-26  Bruno Haible  <bruno@clisp.org>
81194
81195         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81196         Reported by Paul Eggert.
81197
81198 2006-01-26  Bruno Haible  <bruno@clisp.org>
81199             Paul Eggert  <eggert@cs.ucla.edu>
81200
81201         * lib/stdbool_.h (_Bool)
81202         [(! (defined __cplusplus || defined __BEOS__)
81203           && !defined __GNUC__
81204           && !(defined __HP_cc || defined __xlc__
81205                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81206                || defined __sgi))]:
81207         #define to signed char in these cases too; this simplifies
81208         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81209         etc., separately) and makes it more conservative.
81210
81211 2006-01-25  Simon Josefsson  <jas@extundo.com>
81212
81213         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81214         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81215         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81216
81217 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81218
81219         * lib/argp-namefrob.h: Bugfix. Remove stray #
81220
81221 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81222
81223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81224         so that we test the test.
81225         Check for yet another HP-UX cc bug involving *bool |= bool.
81226
81227 2006-01-25  Karl Berry  <karl@gnu.org>
81228
81229         * config/srclist.txt (vasnprintf.c): sync lost.
81230
81231 2006-01-25  Jim Meyering  <jim@meyering.net>
81232
81233         Sync from the stable (b5) branch of coreutils:
81234
81235         * lib/fts.c (fts_children): Don't let close() clobber errno from
81236         failed fchdir().
81237
81238         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81239         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81240         a dangling symlink.  That can also happen at least for ELOOP.
81241         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81242         FYI, this bug predates the inclusion of fts.c in coreutils.
81243
81244         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81245         in their own block, so pre-c99 compilers don't object.
81246
81247         Avoid the double-free (first in fts_read, second in fts_close) that
81248         would occur when an `active' directory is made inaccessible (e.g.,
81249         via chmod a-x) during a traversal.
81250         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81251         before returning.  Reproduce this failure by
81252         mkdir -p a/b; cd a; chmod a-x . b
81253         Reported by Stavros Passas.
81254
81255 2006-01-25  Jim Meyering  <jim@meyering.net>
81256
81257         * lib/fileblocks.c: Remove more useless parentheses.
81258         * lib/readutmp.h: Likewise.
81259
81260 2006-01-25  Bruno Haible  <bruno@clisp.org>
81261
81262         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81263         warnings.
81264         Reported by Paul Eggert.
81265
81266 2006-01-25  Bruno Haible  <bruno@clisp.org>
81267
81268         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81269         rid of a trap command. For Solaris sh.
81270         Reported by Mark D. Baushke <mdb@gnu.org>.
81271
81272 2006-01-24  Simon Josefsson  <jas@extundo.com>
81273
81274         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81275         Bruno.
81276
81277 2006-01-24  Karl Berry  <karl@gnu.org>
81278
81279         * config/srclist.txt (argp-namefrob.h): sync lost.
81280
81281 2006-01-24  Jim Meyering  <jim@meyering.net>
81282
81283         * modules/openat (Files): Add lib/intprops.h.
81284         From Mark D. Baushke.
81285
81286 2006-01-24  Jim Meyering  <jim@meyering.net>
81287
81288         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81289         Reported by Mark D. Baushke.
81290
81291 2006-01-24  Jim Meyering  <jim@meyering.net>
81292
81293         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81294
81295 2006-01-24  Bruno Haible  <bruno@clisp.org>
81296
81297         * modules/strnlen (Maintainer): Change from glibc to all.
81298
81299 2006-01-24  Bruno Haible  <bruno@clisp.org>
81300
81301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81302         Patch by Paul Eggert.
81303
81304 2006-01-24  Bruno Haible  <bruno@clisp.org>
81305
81306         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81307         already has it.
81308         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81309         2005-11-26.
81310
81311         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81312         'signed char' to avoid problems with the built-in _Bool type.
81313         Reported by Paul Eggert on 2005-11-26.
81314
81315 2006-01-24  Bruno Haible  <bruno@clisp.org>
81316
81317         * gnulib-tool (func_import): Avoid constructing complicated sed
81318         expressions inside backquote.
81319         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81320
81321 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81322
81323         These changes imported from libc.
81324         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81325         test and two separate function calls.
81326         * lib/strndup.c (__strndup): Add libc_hidden_def.
81327
81328 2006-01-23  Simon Josefsson  <jas@extundo.com>
81329
81330         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81331         Remove the test_*_SOURCES variable: automake infers it by default.
81332         * modules/tls-tests: Likewise.
81333
81334 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81335
81336         Work around porting bugs reported by Dieter in
81337         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81338         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81339         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81340         Include "getopt.h" first, to check interface.
81341         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81342         !HAVE_DECL_GETENV.
81343         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81344         (__strndup): Revert to K&R-style function dfns, the glibc style.
81345         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81346         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81347         Include strnlen.h first, to get prototype properly.
81348         (strnlen): Renamed from __strnlen.
81349         Remove weak alias.
81350
81351 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81354
81355 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81356
81357         * config/srclist.txt: Adjust to reflect glibc reorganization.
81358         This affects only comments.
81359
81360 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81361
81362          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81363          Reported by Bruce Korb <bkorb@gnu.org>.
81364
81365 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81368         to pacify gcc -Wswitch-default.
81369
81370 2006-01-22  Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81373         temporary buffer for sprintf, take into account the precision also
81374         for 'd', 'i', 'u', 'o', 'x', 'X'.
81375
81376 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81377
81378         * modules/argp-tests: New module
81379         * tests/test-argp.c: New file
81380         * tests/test-argp-2.sh: New file
81381
81382 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81383
81384         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81385         (__argp_base_name): Removed
81386         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81387         typo.
81388         (__argp_base_name): Provide macro definition or extern declaration
81389         depending on the configuration
81390
81391 2006-01-20  Simon Josefsson  <jas@extundo.com>
81392
81393         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81394
81395 2006-01-20  Simon Josefsson  <jas@extundo.com>
81396
81397         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81398
81399 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81400
81401         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81402         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81403         Suggested by Bruno Haible.
81404
81405 2006-01-20  Karl Berry  <karl@gnu.org>
81406
81407         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81408         until changes propagate, I guess.
81409
81410 2006-01-19  Simon Josefsson  <jas@extundo.com>
81411
81412         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81413
81414 2006-01-19  Simon Josefsson  <jas@extundo.com>
81415
81416         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81417
81418 2006-01-19  Simon Josefsson  <jas@extundo.com>
81419
81420         * gnulib-tool: Set check_PROGRAMS.
81421
81422         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81423         modules/des-tests, modules/gc-arcfour-tests,
81424         modules/gc-arctwo-tests, modules/gc-des-tests,
81425         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81426         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81427         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81428         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81429         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81430         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81431         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81432         test_*_SOURCES.
81433
81434 2006-01-18  Simon Josefsson  <jas@extundo.com>
81435
81436         * modules/socklen (Depends-on): Depend on sys_socket.
81437
81438 2006-01-18  Simon Josefsson  <jas@extundo.com>
81439
81440         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81441         modules/des-tests, modules/gc-arcfour-tests,
81442         modules/gc-arctwo-tests, modules/gc-des-tests,
81443         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81444         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81445         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81446         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81447         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81448         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81449         $(EXEEXT) to automake TESTS variable, for mingw32.
81450
81451 2006-01-17  Simon Josefsson  <jas@extundo.com>
81452
81453         * modules/socklen (Include): Need sys/socket.h.
81454
81455 2006-01-17  Bruno Haible  <bruno@clisp.org>
81456
81457         * modules/ssize_t (Include): Add <sys/types.h>.
81458
81459 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81460
81461         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81462         it's not portable and it doesn't work with cross-compiles.
81463         Problem reported by Bruno Haible.  Fix missing-$ typo in
81464         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81465         -zignore from being used with Sun's C compiler.
81466
81467 2006-01-12  Simon Josefsson  <jas@extundo.com>
81468
81469         * lib/base64.c: Fix warning, reported by Bruno Haible
81470         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81471
81472 2006-01-12  Bruno Haible  <bruno@clisp.org>
81473
81474         * modules/ldd: New file.
81475         * build-aux/ldd.sh.in: New file.
81476         * MODULES.html.sh (Support for building libraries and executables): Add
81477         ldd.
81478
81479 2006-01-12  Bruno Haible  <bruno@clisp.org>
81480
81481         * m4/ldd.m4: New file.
81482
81483 2006-01-12  Bruno Haible  <bruno@clisp.org>
81484
81485         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81486         endless loop while replacing $auxdir with build-aux.
81487
81488 2006-01-11  Simon Josefsson  <jas@extundo.com>
81489
81490         * lib/stdint_.h (SIZE_MAX): Add missing (.
81491
81492 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81493
81494         Sync from coreutils.
81495         * lib/md5.c: Fix commentary typos.
81496         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81497         * lib/md5.h (__attribute__): Remove; unused.
81498         * lib/sha1.c: Fix commentary to match md5 better.
81499         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81500         so that we don't need to worry about alignment.  All uses changed.
81501         This merges the 2005-10-28 md5 change into sha1.
81502
81503 2006-01-11  Jim Meyering  <jim@meyering.net>
81504
81505         Sync from coreutils.
81506         * lib/md5.c (OP): Fix spacing.
81507
81508 2006-01-11  Bruno Haible  <bruno@clisp.org>
81509
81510         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81511         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81512         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81513
81514 2006-01-11  Bruno Haible  <bruno@clisp.org>
81515
81516         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81517         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81518         the "early" section as well.
81519
81520 2006-01-11  Bruno Haible  <bruno@clisp.org>
81521
81522         Avoid "ar: no archive members specified" error on MacOS X.
81523         * gnulib-tool (func_modules_add_dummy): New function.
81524         (func_import, func_create_testdir): Invoke it.
81525
81526 2006-01-11  Bruno Haible  <bruno@clisp.org>
81527
81528         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81529         with $auxdir in AC_CONFIG_FILES statements.
81530
81531 2006-01-11  Bruno Haible  <bruno@clisp.org>
81532
81533         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81534         Initialize also noinst_HEADERS to empty.
81535
81536 2006-01-11  Bruno Haible  <bruno@clisp.org>
81537
81538         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81539         variables.
81540         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81541         autoreconf.
81542
81543 2006-01-11  Bruno Haible  <bruno@clisp.org>
81544
81545         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81546         overridable by the user.
81547         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81548
81549 2006-01-10  Simon Josefsson  <jas@extundo.com>
81550
81551         * modules/sys_socket: New file.
81552
81553 2006-01-10  Simon Josefsson  <jas@extundo.com>
81554
81555         * m4/sys_socket_h.m4: New file.
81556
81557 2006-01-10  Simon Josefsson  <jas@extundo.com>
81558
81559         * lib/socket_.h: New file.
81560
81561 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         * modules/readutmp (Maintainer): Add myself.
81564
81565 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81566
81567         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81568         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81569         People who are still concerned with buggy memcmp implementations
81570         can invoke gl_FUNC_MEMCMP themselves.
81571
81572 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         * lib/regex_internal.h (BITSET_WORD_BITS):
81575         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81576         preprocessor mishandles large unsigned values as if they were signed.
81577         Problem reported by Claudio Fontana in
81578         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81579
81580 2006-01-10  Jim Meyering  <jim@meyering.net>
81581
81582         Avoid the double-free (first in fts_read, second in fts_close) that
81583         would occur when an `active' directory is made inaccessible (e.g.,
81584         via chmod a-x) during a traversal.
81585         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81586         before returning.  Reproduce this failure by
81587         mkdir -p a/b; cd a; chmod a-x . b
81588         Reported by Stavros Passas.
81589
81590         Sync from coreutils.
81591         * lib/sha1.c: Tweak grammar in a comment.
81592
81593 2006-01-10  Jim Meyering  <jim@meyering.net>
81594
81595         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81596         Patch by Joerg Sonnenberger.
81597
81598 2006-01-10  Bruno Haible  <bruno@clisp.org>
81599
81600         * modules/readutmp: Depend on module free.
81601         * modules/strtok_r: Depend on module restrict.
81602
81603 2006-01-10  Bruno Haible  <bruno@clisp.org>
81604
81605         * modules/gettext (configure.ac): Add an invocation of
81606         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81607
81608 2006-01-10  Bruno Haible  <bruno@clisp.org>
81609
81610         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81611         Reported by Werner Lemberg <wl@gnu.org>.
81612
81613 2006-01-10  Bruno Haible  <bruno@clisp.org>
81614
81615         * lib/localcharset.c: Update from GNU gettext.
81616
81617 2006-01-10  Bruno Haible  <bruno@clisp.org>
81618
81619         * lib/argp.h (__const): Remove macro. Use const instead.
81620         * lib/argp-fmtstream.h (__const): Likewise.
81621         * lib/glob_.h (__const): Remove macro.
81622         * lib/glob-libc.h: Use const instead of __const.
81623
81624 2006-01-10  Bruno Haible  <bruno@clisp.org>
81625
81626         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81627         variable.
81628         Needed to avoid an automake error regarding the 'gettext' module.
81629
81630 2006-01-09  Simon Josefsson  <jas@extundo.com>
81631
81632         * modules/inet_ntop (Depends-on): Add restrict.
81633
81634 2006-01-09  Simon Josefsson  <jas@extundo.com>
81635
81636         * modules/gc-rijndael-tests (License): Put under LGPL.
81637
81638         * modules/gc-des-tests (License): Likewise.
81639
81640         * modules/gc-arcfour-tests (License): Likewise.
81641
81642         * modules/gc-arctwo-tests (License): Likewise.
81643
81644         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81645
81646         * modules/gc-hmac-sha1-tests (Files): Likewise.
81647
81648         * modules/gc-hmac-md5-tests (License): Likewise.
81649
81650         * modules/gc-sha1-tests (License): Likewise.
81651
81652         * modules/gc-md5-tests (License): Likewise.
81653
81654         * modules/gc-md4-tests (License): Likewise.
81655
81656         * modules/gc-md2-tests (License): Likewise.
81657
81658         * modules/gc-tests (License): Likewise.
81659
81660         * modules/des-tests (License): Likewise.
81661
81662         * modules/md4-tests (License): Likewise.
81663
81664         * modules/md2-tests (License): Likewise.
81665
81666 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         Sync from coreutils:
81669
81670         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81671         * modules/lib-ignore: New file.
81672         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81673         chdir-safer.m4, lchmod.m4.
81674         * modules/openat: Add mkdirat.c, openat-priv.h.
81675
81676 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         Sync from coreutils.
81679         * m4/lib-ignore.m4: New file.
81680         * m4/lchmod.m4: New file.
81681
81682 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81683
81684         Sync from coreutils.
81685         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81686         for write access: POSIX says that must fail.
81687         * lib/fts.c (diropen): Likewise.
81688         * lib/save-cwd.c (save_cwd): Likewise.
81689         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81690         well, for minor improvements on hosts that lack O_DIRECTORY.
81691         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81692         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81693         Fall back on chown if open failed with EACCES.
81694
81695         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81696         Report an error at compile-time if only a 1-second nominal clock
81697         resolution is found.
81698
81699         * lib/lchmod.h: New file.
81700         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81701         (make_dir_parents): Use lchown rather than chown, and
81702         lchmod rather than chmod.
81703
81704         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81705         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81706         "proc" reported by n0dalus.
81707
81708         * lib/mountlist.c: Include <limits.h>.
81709         (dev_from_mount_options)
81710         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81711         New function.  It no longer assumes "dev=" has the System V meaning
81712         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81713         (read_file_system_list)
81714         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81715         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81716         dev= in that case.
81717
81718         * lib/posixtm.h (PDS_PRE_2000): New macro.
81719         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81720         allow_century.  All usages changed.  Reject dates outside the range
81721         1969-1999 if PDS_PRE_2000 is used.
81722
81723 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81724
81725         Sync from coreutils.
81726         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81727         (Time of day items): Mention the possibility of leap seconds.
81728         Problem reported by Dr. David Alan Gilbert.
81729
81730 2006-01-09  Jim Meyering  <jim@meyering.net>
81731
81732         Sync from coreutils.
81733
81734         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81735
81736         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81737
81738         * lib/modechange.c (mode_compile): Reject an invalid mode string
81739         that starts with an octal digit.  From Andreas Gruenbacher.
81740
81741         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81742         and dup to open_safer and dup_safer, respectively.
81743         (openat_permissive): Fix typo in comment.
81744
81745         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81746         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81747         (_): Remove; no longer needed.
81748         (openat): Renamed from rpl_openat; no need for rpl_openat
81749         since openat.h renames openat for us.
81750         Replace most of the body with a call to openat_permissive,
81751         to avoid duplicate code.
81752         Port to (probably hypothetical) environments were mode_t is
81753         wider than int.
81754         (openat_permissive): Require mode arg, so that we can check
81755         types better.  Put it just after flags.  Change cwd failure
81756         indicator from pointer-to-bool to pointer-to-errno-value.
81757         All callers changed.
81758         Invoke openat_save_fail and/or openat_restore_fail if
81759         cwd_errno is null, so that openat can call us.
81760         (openat_permissive, fdopendir, fstatat, unlinkat):
81761         Simplify errno handling to avoid some duplicate code,
81762         as it's OK to set errno on success.
81763         * lib/openat.h: Revamp code so that function macros depend on
81764         __OPENAT_PREFIX only, not also on AT_FDCWD.
81765         (openat_ro): Remove.  Caller changed to use openat_permissive.
81766         (openat_permissive): Now a macro, if not a function.
81767         (openat_restore_fail, openat_save_fail): Now always functions,
81768         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81769
81770         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81771         and openat.c.
81772         * lib/mkdirat.c: Include openat-priv.h.
81773         Remove definitions of macros defined therein.
81774         * lib/openat.c: Likewise.
81775
81776         * lib/mkdirat.c (mkdirat): New file and function.
81777         * lib/openat.h (mkdirat): Declare.
81778
81779         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81780
81781         * lib/openat.h (openat_permissive): Declare.
81782         (openat_ro): Define.
81783
81784         * lib/openat.c (EXPECTED_ERRNO): New macro.
81785         (openat_permissive): New function -- used in remove.c rewrite.
81786         (all functions): Set errno just before returning, only if there
81787         was an actual failure.
81788         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81789
81790         Emulate openat-family functions using Linux's procfs, if possible.
81791         Idea and some code based on Ulrich Drepper's glibc changes.
81792
81793         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81794         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81795         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81796         before falling back on save_cwd and restore_cwd.
81797         (fdopendir, fstatat, unlinkat): Likewise.
81798
81799         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81800         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81801
81802         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81803         as second argument to va_arg.  Otherwise, some versions of gcc
81804         warn that `if this code is reached, the program will abort'.
81805
81806 2006-01-09  Jim Meyering  <jim@meyering.net>
81807
81808         Sync from coreutils.
81809         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81810         Require openat-priv.h.
81811
81812 2006-01-09  Bruno Haible  <bruno@clisp.org>
81813
81814         * modules/strnlen (Include): Use strnlen.h.
81815
81816 2006-01-09  Bruno Haible  <bruno@clisp.org>
81817
81818         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81819
81820 2006-01-09  Bruno Haible  <bruno@clisp.org>
81821
81822         * lib/sysexit_.h (EX_OK): New macro.
81823         Suggested by Martin Lambers <marlam@marlam.de>.
81824
81825 2006-01-09  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81828         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81829
81830 2006-01-09  Bruno Haible  <bruno@clisp.org>
81831
81832         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81833         numbers.
81834
81835 2006-01-09  Bruno Haible  <bruno@clisp.org>
81836
81837         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81838         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81839         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81840         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81841
81842 2006-01-09  Bruno Haible  <bruno@clisp.org>
81843
81844         * build-aux/javacomp.sh.in: New file, moved from lib/.
81845         * modules/javacomp-script (Files): Update.
81846         (configure.ac): Add AC_CONFIG_FILES invocation.
81847         (EXTRA_DIST): Remove variable.
81848
81849         * build-aux/javaexec.sh.in: New file, moved from lib/.
81850         * modules/javaexec (Files): Update.
81851         (configure.ac): Add AC_CONFIG_FILES invocation.
81852         (EXTRA_DIST): Remove javaexec.sh.in.
81853
81854         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81855         * modules/csharpcomp-script (Files): Update.
81856         (configure.ac): Add AC_CONFIG_FILES invocation.
81857         (EXTRA_DIST): Remove variable.
81858
81859         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81860         * modules/csharpexec (Files): Update.
81861         (configure.ac): Add AC_CONFIG_FILES invocation.
81862         (EXTRA_DIST): Remove csharpexec.sh.in.
81863
81864 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81865
81866         Sync from coreutils.
81867
81868         Add POSIX ACL support
81869         * lib/acl.h (copy_acl, set_acl): Add declarations.
81870         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81871         systems other than Linux.
81872         (chmod_or_fchmod): New function: use fchmod when possible,
81873         and chmod otherwise.
81874         (file_has_acl): Add a POSIX ACL implementation, with a
81875         Linux-specific subcase.
81876         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81877         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81878         acls are unsupported.
81879         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81880         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81881         are unsupported.
81882
81883 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81884
81885         Sync from coreutils.
81886         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81887
81888 2006-01-07  Bruno Haible  <bruno@clisp.org>
81889
81890         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81891         gl_EARLY.
81892
81893 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81894
81895         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81896         Problem reported for Mingw by Mark Junker.
81897
81898 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * README: Gnulib normally doesn't generate a tarball.
81901
81902 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81905         long int, not int, for nanosecond counts, so that people who are
81906         used to POSIX struct timespec won't be surprised.  Reported by Jim
81907         Meyering.
81908
81909 2005-12-28  Bruno Haible  <bruno@clisp.org>
81910
81911         * build-aux/config.rpath: Update from GNU gettext.
81912
81913 2005-12-16  Jim Meyering  <jim@meyering.net>
81914
81915         * modules/fprintftime: New module.
81916         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81917
81918 2005-12-16  Jim Meyering  <jim@meyering.net>
81919
81920         * m4/fprintftime.m4: New file.
81921
81922 2005-12-16  Jim Meyering  <jim@meyering.net>
81923
81924         * lib/fprintftime.c, lib/fprintftime.h: New files.
81925
81926 2005-12-15  Simon Josefsson  <jas@extundo.com>
81927
81928         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81929         new m4/socklen.m4.
81930
81931 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81932
81933         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81934         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81935
81936 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81937
81938         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81939         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81940         struct uparams is valid. Fall back to the default values if it is
81941         not.
81942
81943 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81944
81945         * modules/argp (Files): Add argp-pin.c
81946         (Depends-on): dirname
81947         (lib_SOURCES): Add argp-pin.c
81948
81949 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81950
81951         * m4/argp.m4:  Check if program_invocation_name and
81952         program_invocation_short_name are declared and define appropriate
81953         macros if they are not.
81954
81955 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81956
81957         * lib/argp-help.c (__argp_base_name): New function
81958         (__argp_short_program_name): Rewrite using __argp_base_name
81959         * lib/argp-namefrob.h: Define program_invocation_name and
81960         program_invocation_short_name if requested
81961         (__argp_base_name): Add prototype
81962         * lib/argp-parse.c (argp_def): Use gettext wrappers
81963         (argp_default_parser): Use __argp_base_name
81964         * lib/argp-pin.c: New file. Defines program_invocation_name and
81965         program_invocation_short_name on systems that lack them.
81966
81967 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81968
81969         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81970         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81971         porting problem reported by Georg Schwarz in
81972         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81973
81974 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81977         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81978         porting problem reported by Georg Schwarz in
81979         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81980
81981 2005-12-05  Bruno Haible  <bruno@clisp.org>
81982
81983         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81984         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81985         Reported by Mark Junker <mjscod@gmx.de>.
81986
81987 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81990         Use implementation from Albert Chin, with some
81991         comments/corrections by Stepan Kasal and myself.
81992
81993 2005-12-02  Bruno Haible  <bruno@clisp.org>
81994
81995         * gnulib-tool (func_import): Accept GPLed build tool modules when
81996         --lgpl is given.
81997         * modules/csharpcomp-script: New file.
81998         * modules/csharpcomp: Depend on it.
81999         * modules/javacomp-script: New file.
82000         * modules/javacomp: Depend on it.
82001         Suggested by Simon Josefsson.
82002
82003 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82006         statement, to work around an HP-UX 10.20 compiler bug reported by
82007         Peter O'Gorman.
82008
82009 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         * modules/savedir (Depends-on): Add openat.
82012
82013 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82014
82015         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82016         (uintmax_t) [defined uintmax_t]: Do not declare.
82017         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82018         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82019         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82020         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82021         sake of portability to weird hosts that C allows (though we don't
82022         know of any practical examples).
82023
82024         * lib/savedir.h (fdsavedir): New decl.
82025         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82026         contains most of the former guts of savedir.
82027         (savedir): Use savedirstream.
82028         Include "openat.h".
82029
82030 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * modules/obstack (Files): Add m4/ulonglong.m4.
82033         Problem reported by Davide Angelocola.
82034
82035 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82036
82037         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82038         coreutils no longer futzes with rounding modes.
82039
82040 2005-11-14  Jim Meyering  <jim@meyering.net>
82041
82042         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82043         replacement of mkstemp.
82044
82045 2005-11-10  Simon Josefsson  <jas@extundo.com>
82046
82047         * lib/readline.c: Remove EOL.
82048
82049 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82050
82051         * modules/gethrxtime (Depends-on): Add gettime.
82052
82053 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82054
82055         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82056         or gettimeofday; no longer needed.
82057
82058 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82059
82060         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82061         time business.
82062         (gethrxtime) [! (HAVE_NANOUPTIME
82063         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82064         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82065         our own approximation.
82066
82067 2005-11-08  Eric Blake  <ebb9@byu.net>
82068
82069         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82070
82071 2005-11-08  Eric Blake  <ebb9@byu.net>
82072
82073         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82074
82075 2005-11-04  Bruno Haible  <bruno@clisp.org>
82076
82077         * gnulib-tool: Implement --update mode.
82078
82079 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         Fix porting problem reported by Theodoros V. Kalamatianos.
82082         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82083         Don't assume that futimes failing means we must fail.
82084
82085 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82088         variables to suggest the intended function of the PATH_MAX check.
82089
82090 2005-10-30  Kean Johnston  <jkj@sco.com>
82091
82092         Trivial changes to support SCO systems.
82093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82094         as PATH_MAX.
82095         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82096         where __ptr is null when no I/O is pending.
82097
82098 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82101         leave errno alone.  Problem reported by Dmitry V. Levin.
82102
82103 2005-10-28  Simon Josefsson  <jas@extundo.com>
82104
82105         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82106         Test more.
82107
82108         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82109
82110         * modules/md2, modules/md2-tests: New files.
82111
82112 2005-10-28  Simon Josefsson  <jas@extundo.com>
82113
82114         * m4/inet_ntop.m4: More tests.
82115
82116         * m4/gc-md2.m4, md2.m4: New file.
82117
82118 2005-10-28  Simon Josefsson  <jas@extundo.com>
82119
82120         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82121         "restrict" keywords, as per POSIX.  Protect the function
82122         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82123         Don't use K&R prototypes.  Check the sprintf return values.
82124         Re-define EAFNOSUPPORT if not present.  Indent.
82125
82126         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82127         suggested by Bruno Haible <bruno@clisp.org>.
82128
82129         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82130
82131         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82132
82133         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82134         libgcrypt).
82135
82136         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82137
82138         * lib/md2.h, lib/md2.c: New files.
82139
82140 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82143         errno alone.  Problem reported by Frederic Jolliton.
82144
82145 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         * modules/verify (License): Change from GPL to LGPL.  This is a
82148         tiny module and there are apparently near-equivalents that are
82149         under the BSD license.
82150
82151 2005-10-24  Simon Josefsson  <jas@extundo.com>
82152
82153         * modules/sha1: Relicense to LGPL.
82154
82155 2005-10-24  Simon Josefsson  <jas@extundo.com>
82156
82157         * lib/md4.h: Shrink buffer size, now that we changed the type.
82158
82159 2005-10-23  Simon Josefsson  <jas@extundo.com>
82160
82161         * gnulib-tool (func_import): Fix --tests-base.
82162
82163 2005-10-22  Simon Josefsson  <jas@extundo.com>
82164
82165         * modules/arcfour (Depends-on): Need stdint.
82166
82167 2005-10-22  Simon Josefsson  <jas@extundo.com>
82168
82169         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82170         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82171
82172 2005-10-22  Simon Josefsson  <jas@extundo.com>
82173
82174         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82175         suggested by Bruno Haible <bruno@clisp.org>.
82176
82177 2005-10-22  Simon Josefsson  <jas@extundo.com>
82178
82179         * lib/crc.h: Include stddef.h, for size_t.
82180
82181 2005-10-22  Simon Josefsson  <jas@extundo.com>
82182
82183         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82184         arcfour_context struct (simplify test vector testing in GNU
82185         Shishi).
82186
82187 2005-10-21  Simon Josefsson  <jas@extundo.com>
82188
82189         * modules/des, modules/des-tests: New files.
82190
82191         * modules/gc-des, modules/gc-des-tests: New files.
82192
82193         * tests/test-des.c, tests/test-gc-des.c: New file.
82194
82195 2005-10-21  Simon Josefsson  <jas@extundo.com>
82196
82197         * modules/arctwo, modules/arctwo-tests: New files.
82198
82199         * tests/test-arctwo.c: New file.
82200
82201         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82202
82203         * tests/test-gc-arctwo.c: New file.
82204
82205 2005-10-21  Simon Josefsson  <jas@extundo.com>
82206
82207         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82208         Bruno Haible <bruno@clisp.org>.
82209
82210         * m4/gc-des.m4: New file.
82211
82212 2005-10-21  Simon Josefsson  <jas@extundo.com>
82213
82214         * m4/arctwo.m4: New file.
82215
82216         * m4/gc-arctwo.m4: New file.
82217
82218 2005-10-21  Simon Josefsson  <jas@extundo.com>
82219
82220         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82221         block.
82222
82223 2005-10-21  Simon Josefsson  <jas@extundo.com>
82224
82225         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82226         <bruno@clisp.org>.
82227
82228         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82229
82230         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82231         Bruno Haible <bruno@clisp.org>.
82232
82233         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82234         <bruno@clisp.org>.
82235
82236 2005-10-21  Simon Josefsson  <jas@extundo.com>
82237
82238         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82239
82240 2005-10-21  Simon Josefsson  <jas@extundo.com>
82241
82242         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82243
82244 2005-10-21  Simon Josefsson  <jas@extundo.com>
82245
82246         * lib/des.h, lib/des.c: New files.
82247
82248         * lib/gc-gnulib.c: Support DES.c
82249
82250 2005-10-21  Simon Josefsson  <jas@extundo.com>
82251
82252         * lib/arctwo.h, lib/arctwo.c: New files.
82253
82254         * lib/gc-gnulib.c: Support ARCTWO.
82255
82256 2005-10-21  Simon Josefsson  <jas@extundo.com>
82257
82258         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82259         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82260
82261 2005-10-21  Simon Josefsson  <jas@extundo.com>
82262
82263         * gnulib-tool (func_import, func_create_testdir): Define automake
82264         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82265         Makefile.am snippet),
82266         suggested by Bruno Haible <bruno@clisp.org>.
82267
82268         * modules/gc (Makefile.am): Use it.
82269
82270 2005-10-21  Bruno Haible  <bruno@clisp.org>
82271
82272         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82273         patch.
82274
82275 2005-10-19  Simon Josefsson  <jas@extundo.com>
82276
82277         * tests/test-gc-rijndael.c: New file.
82278
82279         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82280
82281 2005-10-19  Simon Josefsson  <jas@extundo.com>
82282
82283         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82284         interface too.
82285
82286 2005-10-19  Simon Josefsson  <jas@extundo.com>
82287
82288         * tests/test-gc-arcfour.c: New file.
82289
82290         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82291
82292 2005-10-19  Simon Josefsson  <jas@extundo.com>
82293
82294         * modules/gc-md4, modules/gc-md4-tests: New file.
82295
82296         * tests/test-gc-md4.c: New file.
82297
82298 2005-10-19  Simon Josefsson  <jas@extundo.com>
82299
82300         * m4/gc-md4.m4: New file.
82301
82302 2005-10-19  Simon Josefsson  <jas@extundo.com>
82303
82304         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82305         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82306         <kasal@ucw.cz>.
82307
82308 2005-10-19  Simon Josefsson  <jas@extundo.com>
82309
82310         * m4/gc-arcfour.m4: New file.
82311
82312         * m4/gc-rijndael.m4: New file.
82313
82314 2005-10-19  Simon Josefsson  <jas@extundo.com>
82315
82316         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82317
82318 2005-10-19  Simon Josefsson  <jas@extundo.com>
82319
82320         * lib/gc-gnulib.c: Support ARCFOUR.
82321
82322 2005-10-19  Simon Josefsson  <jas@extundo.com>
82323
82324         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82325         support.
82326
82327         * lib/gc.h: Add ECB enum type.
82328
82329         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82330
82331 2005-10-18  Simon Josefsson  <jas@extundo.com>
82332
82333         * tests/test-md5.c: New file.
82334
82335         * modules/md5-tests: New file.
82336
82337 2005-10-18  Simon Josefsson  <jas@extundo.com>
82338
82339         * tests/test-md4.c: New file.
82340
82341         * modules/md4, modules/md4-tests: New files.
82342
82343 2005-10-18  Simon Josefsson  <jas@extundo.com>
82344
82345         * m4/md4.m4: New file.
82346
82347 2005-10-18  Simon Josefsson  <jas@extundo.com>
82348
82349         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82350
82351 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82352
82353         * gnulib-tool (func_create_testdir): Omit the second check whether
82354         BUILT_SOURCES in nonempty.
82355
82356 2005-10-17  Simon Josefsson  <jas@extundo.com>
82357
82358         * tests/test-rijndael.c: New file.
82359
82360 2005-10-17  Simon Josefsson  <jas@extundo.com>
82361
82362         * modules/sha1: Depend on stdint instead of md5.
82363
82364         * modules/md5: Depend on stdint, remove uint32_t.
82365
82366 2005-10-17  Simon Josefsson  <jas@extundo.com>
82367
82368         * modules/gc-sha1-tests: New file.
82369
82370         * tests/test-gc-sha1.c: New file.
82371
82372 2005-10-17  Simon Josefsson  <jas@extundo.com>
82373
82374         * m4/md5.m4: Remove call to uint32_t.m4.
82375
82376 2005-10-17  Simon Josefsson  <jas@extundo.com>
82377
82378         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82379
82380         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82381         md5.h.
82382
82383         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82384
82385         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82386
82387 2005-10-17  Simon Josefsson  <jas@extundo.com>
82388
82389         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82390
82391 2005-10-17  Simon Josefsson  <jas@extundo.com>
82392
82393         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82394
82395 2005-10-17  Simon Josefsson  <jas@extundo.com>
82396
82397         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82398
82399         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82400
82401 2005-10-17  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82404         that it can also be used in a test.
82405
82406 2005-10-16  Bruno Haible  <bruno@clisp.org>
82407
82408         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82409         TESTS_ENVIRONMENT, so that individual tests can augment it.
82410
82411         * gnulib-tool (func_create_testdir): Use an intermediate target for
82412         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82413         macros, like $(ALLOCA_H), which cannot be passed through the command
82414         line.
82415
82416 2005-10-15  Simon Josefsson  <jas@extundo.com>
82417
82418         * modules/rijndael-tests: New file.
82419
82420         * modules/rijndael: New file.
82421
82422 2005-10-15  Simon Josefsson  <jas@extundo.com>
82423
82424         * m4/rijndael.m4: New file.
82425
82426 2005-10-15  Simon Josefsson  <jas@extundo.com>
82427
82428         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82429
82430         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82431
82432 2005-10-14  Simon Josefsson  <jas@extundo.com>
82433
82434         * tests/test-arcfour.c: New file.
82435
82436         * modules/arcfour, modules/arcfour-tests: New files.
82437
82438 2005-10-14  Simon Josefsson  <jas@extundo.com>
82439
82440         * m4/arcfour.m4: New file.
82441
82442 2005-10-14  Simon Josefsson  <jas@extundo.com>
82443
82444         * lib/arcfour.h, lib/arcfour.c: New files.
82445
82446 2005-10-14  Roland McGrath  <roland@redhat.com>
82447
82448         Import from libc.  [BZ #1331]
82449         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82450         macro argument.
82451         Reported by Matej Vela <vela@debian.org>.
82452
82453 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82454
82455         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82456         include <wchar.h>; no longer needed.
82457
82458 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82459
82460         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82461
82462 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82463         and  Ulrich Drepper  <drepper@redhat.com>
82464
82465         Import from libc.
82466         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82467         instead of inline stream orientation test and two separate
82468         function calls.  Pay no attention to USE_IN_LIBIO.
82469
82470 2005-10-13  Simon Josefsson  <jas@extundo.com>
82471
82472         * modules/gc-hmac-md5-tests: New file.
82473
82474         * tests/test-gc-hmac-sha1.c: New file.
82475
82476         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82477
82478         * modules/gc-hmac-md5-tests: New file.
82479
82480         * tests/test-gc-md5.c: New file.
82481
82482         * modules/gc-md5-tests: New file.
82483
82484 2005-10-13  Simon Josefsson  <jas@extundo.com>
82485
82486         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82487         Move memory allocation outside of loop.
82488
82489 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82492         intermediate directory is in a read-only file system.  Problem
82493         reported by Eric Blake.
82494
82495 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82496
82497         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82498
82499 2005-10-12  Simon Josefsson  <jas@extundo.com>
82500
82501         * tests/test-hmac-sha1.c: New file.
82502
82503         * modules/hmac-sha1-tests: New file.
82504
82505         * modules/hmac-sha1: New file.
82506
82507 2005-10-12  Simon Josefsson  <jas@extundo.com>
82508
82509         * modules/gc-sha1: New file.
82510
82511 2005-10-12  Simon Josefsson  <jas@extundo.com>
82512
82513         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82514
82515         * tests/test-gc-pbkdf2-sha1.c: New file.
82516
82517 2005-10-12  Simon Josefsson  <jas@extundo.com>
82518
82519         * modules/gc-md5, modules/gc-hmac-md5: New files.
82520
82521         * modules/gc (Files): Remove md5, memxor and hmac files.
82522
82523 2005-10-12  Simon Josefsson  <jas@extundo.com>
82524
82525         * m4/gc-pbkdf2-sha1.m4: New file.
82526
82527         * m4/gc-hmac-sha1.m4: New file.
82528
82529         * m4/gc-sha1: New file.
82530
82531         * m4/hmac-sha1.m4: New file.
82532
82533 2005-10-12  Simon Josefsson  <jas@extundo.com>
82534
82535         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82536
82537         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82538
82539 2005-10-12  Simon Josefsson  <jas@extundo.com>
82540
82541         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82542         suggested by Bruno Haible <bruno@clisp.org>.
82543
82544 2005-10-12  Simon Josefsson  <jas@extundo.com>
82545
82546         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82547
82548 2005-10-12  Simon Josefsson  <jas@extundo.com>
82549
82550         * lib/gc-pbkdf2-sha1.c: New file.
82551
82552         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82553
82554 2005-10-12  Simon Josefsson  <jas@extundo.com>
82555
82556         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82557
82558         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82559
82560 2005-10-12  Simon Josefsson  <jas@extundo.com>
82561
82562         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82563         GC_USE_HMAC_MD5, respectively.
82564
82565         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82566         (gc_md5): Fix typo.
82567
82568         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82569
82570         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82571
82572         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82573
82574 2005-10-12  Bruno Haible  <bruno@clisp.org>
82575
82576         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82577         Reported by Stepan Kasal <kasal@ucw.cz>.
82578
82579 2005-10-11  Simon Josefsson  <jas@extundo.com>
82580
82581         * tests/test-crc.c: New file.
82582
82583         * modules/crc, modules/crc-tests: New files.
82584
82585 2005-10-11  Simon Josefsson  <jas@extundo.com>
82586
82587         * m4/crc.m4: New file.
82588
82589 2005-10-11  Simon Josefsson  <jas@extundo.com>
82590
82591         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82592
82593         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82594
82595         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82596
82597 2005-10-11  Simon Josefsson  <jas@extundo.com>
82598
82599         * lib/crc.h, lib/crc.c: New files.
82600
82601         * lib/gc.h (gc_hash_buffer): Add doc.
82602
82603 2005-10-11  Bruno Haible  <bruno@clisp.org>
82604
82605         * modules/c-strcasestr: New file.
82606         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82607
82608 2005-10-11  Bruno Haible  <bruno@clisp.org>
82609
82610         * modules/c-strcase: New file.
82611         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82612
82613 2005-10-11  Bruno Haible  <bruno@clisp.org>
82614
82615         * lib/strcasecmp.c: Include limits.h.
82616         (strcasecmp): Avoid integer overflow on exotic platforms.
82617         * lib/strncasecmp.c: Include limits.h.
82618         (strncasecmp): Avoid integer overflow on exotic platforms.
82619         Reported by Paul Eggert.
82620
82621 2005-10-11  Bruno Haible  <bruno@clisp.org>
82622
82623         * lib/c-strcasestr.h: New file, from GNU gettext.
82624         * lib/c-strcasestr.c: New file, from GNU gettext.
82625
82626 2005-10-11  Bruno Haible  <bruno@clisp.org>
82627
82628         * lib/c-strcase.h: New file, from GNU gettext.
82629         * lib/c-strcasecmp.c: New file, from GNU gettext.
82630         * lib/c-strncasecmp.c: New file, from GNU gettext.
82631
82632 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82633
82634         * modules/mempcpy (License): GPL -> LGPL.
82635         * modules/strchrnul (License): Likewise.
82636         * modules/sysexits (License): Likewise.
82637
82638 2005-10-08  Simon Josefsson  <jas@extundo.com>
82639
82640         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82641
82642 2005-10-07  Simon Josefsson  <jas@extundo.com>
82643
82644         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82645
82646 2005-10-06  Simon Josefsson  <jas@extundo.com>
82647
82648         * tests/test-hmac-md5.c: New file.
82649
82650         * modules/hmac-md5-tests: New file.
82651
82652         * modules/hmac-md5: New file.
82653
82654 2005-10-06  Simon Josefsson  <jas@extundo.com>
82655
82656         * m4/hmac-md5.m4: New file.
82657
82658         * m4/memxor.m4: Require gl_C_RESTRICT.
82659
82660 2005-10-06  Simon Josefsson  <jas@extundo.com>
82661
82662         * lib/memxor.c (memxor): Avoid casts and warnings.
82663
82664 2005-10-06  Simon Josefsson  <jas@extundo.com>
82665
82666         * lib/hmac-md5.c: New file.
82667
82668         * lib/hmac.h: New file.
82669
82670 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82671
82672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82673         promotes to int, not unsigned int, to catch the AIX 5.3
82674         compiler bug.
82675
82676 2005-10-05  Simon Josefsson  <jas@extundo.com>
82677
82678         * modules/memxor: New file.
82679
82680         * modules/iconv (Files): Move config.rpath to havelib, it is used
82681         there.
82682
82683         * modules/havelib (Files): Add config.rpath.
82684
82685 2005-10-05  Simon Josefsson  <jas@extundo.com>
82686
82687         * m4/memxor.m4: New file.
82688
82689 2005-10-05  Simon Josefsson  <jas@extundo.com>
82690
82691         * lib/memxor.c (memxor): Fix compiler error.
82692
82693         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82694         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82695
82696         * lib/memxor.h, lib/memxor.c: New files.
82697
82698         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82699         we assume all systems have it, suggested by Jim Meyering
82700         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82701         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82702         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82703         same reasons.
82704
82705 2005-10-05  Simon Josefsson  <jas@extundo.com>
82706
82707         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82708
82709 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82712         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82713         needed, since the source code now assumes these .h files.
82714
82715 2005-10-05  Derek Price  <derek@ximbiot.com>
82716
82717         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82718
82719 2005-10-05  Bruno Haible  <bruno@clisp.org>
82720
82721         * modules/stdint (License): Change to LGPL.
82722
82723 2005-10-04  Simon Josefsson  <jas@extundo.com>
82724
82725         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82726         D. Baushke" <mdb@gnu.org>.
82727
82728 2005-10-04  Bruno Haible  <bruno@clisp.org>
82729
82730         * lib/verify.h (verify_true): Provide alternative definition for C++.
82731
82732 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82733
82734         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82735         (SSIZE_MAX): New macro, if not already defined.
82736         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82737         than 2 GiB.
82738
82739 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82740
82741         Sync from coreutils.
82742         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82743         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82744         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82745         ULLONG_MAX doesn't work with 2.7.2.1.
82746
82747 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82750         From Ben Pfaff.
82751
82752         * modules/exclude (Depends-on): Depend on verify.
82753         * modules/strtoimax (Depends-on): Likewise.
82754         * modules/utimecmp (Depends-on): Likewise.
82755
82756 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * lib/exclude.c: Include verify.h.
82759         (verify): Remove.  All callers changed to use verify.h's version.
82760         * lib/strtoimax.c: Likewise.
82761         * lib/utimecmp.c: Likewis.e
82762
82763         Sync from coreutils.
82764         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82765         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82766         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82767         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82768         bother returning ENOSYS if settimeofday or stime fails; just let
82769         them return whatever errno they want to return.
82770         * lib/utimens.c: Include unistd.h, for dup2.
82771         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82772         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82773
82774 2005-10-02  Jim Meyering  <jim@meyering.net>
82775
82776         Sync from coreutils.
82777         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82778         from glibc-2.2.5 that fails for read-only files.
82779
82780 2005-10-02  Jim Meyering  <jim@meyering.net>
82781
82782         Sync from coreutils.
82783         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82784         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82785         `#if HAVE_CONFIG_H'.
82786         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82787         Remove AT_FDCWD test.
82788         Do not consume the fd unless successful.
82789         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82790         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82791         block, so that we don't even try to compile it if settimeofday is
82792         available.  This works around a compilation failure on OSF1 V5.1,
82793         due to stime requiring a `long int*' while tv_sec is `int'.
82794
82795 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82796
82797         Sync from coreutils.
82798         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82799         against `yes', rather than just testing for nonempty.
82800
82801 2005-10-01  Simon Josefsson  <jas@extundo.com>
82802
82803         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82804         and Darwin.
82805
82806         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82807         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82808         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82809         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82810         Check if struct addrinfo is declared.
82811
82812 2005-10-01  Simon Josefsson  <jas@extundo.com>
82813
82814         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82815         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82816         AI_* and EAI_* definitions.  Protect function declarations.
82817
82818 2005-10-01  Jim Meyering  <jim@meyering.net>
82819
82820         Sync from coreutils.
82821
82822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82823         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82824         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82826         in the inet and nsl libraries.  Required on Solaris 5.7.
82827
82828 2005-10-01  Jim Meyering  <jim@meyering.net>
82829
82830         Sync from coreutils.
82831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82832         in the inet and nsl libraries.  Required on Solaris 5.7.
82833
82834 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82835
82836         * lib/getdelim.c (getdelim): Remove unused variables.
82837
82838 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82839
82840         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82841         so that the code works even with ancient cpp.  Portability problem
82842         with GCC 2.7.2.1 reported by Thomas M.Ott.
82843
82844 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         * modules/regex (Depends-on): Add strcase.
82847
82848         * modules/gethostname (Licence): Change from GPL to LGPL, since
82849         gethostname.c is a trivial implementation of a standard library
82850         function.
82851         * modules/poll (License): Change from GPL to LGPL, since it's
82852         derived from LGPL code.
82853
82854 2005-09-27  Jim Meyering  <jim@meyering.net>
82855
82856         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82857         HAVE_CONFIG_H.
82858
82859         * lib/intprops.h (signed_type_or_expr__): Define.
82860         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82861         for unsigned types.
82862
82863 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82864
82865         * lib/verify.h (verify_expr): Remove, replacing with:
82866         (verify_true): New macro that returns true instead of void.
82867         (verify_type__): Remove.
82868         (verify): Use verify_true rather than verify_type__.
82869
82870 2005-09-26  Bruno Haible  <bruno@clisp.org>
82871
82872         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82873         is necessary.
82874         (lib_SOURCES): Remove mbchar.c.
82875         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82876         (Files): Add m4/mbrtowc.m4.
82877         * modules/mbiter: Likewise.
82878         * modules/mbuiter: Likewise.
82879
82880 2005-09-26  Bruno Haible  <bruno@clisp.org>
82881
82882         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82883         compile mbchar.c if they are not both present.
82884         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82885         * m4/mbiter.m4 (gl_MBITER): Likewise.
82886         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82887         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82888         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82889
82890 2005-09-25  Jim Meyering  <jim@meyering.net>
82891
82892         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82893         also uses socklen_t.
82894
82895 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         * lib/utimens.c (ENOSYS): Define if not already defined.
82898         (futimens): Support having a null PATH if the file descriptor
82899         is nonnegative.
82900
82901         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82902         Remove.
82903         (__attribute): Define to empty unless GCC 3.1 or later.
82904         This works around a core dump on OpenBSD 3.4, which has GCC
82905         2.95.3, which dumps core when given __attribute__(()).  It also
82906         simplifies other tests, since we really don't want to bother with
82907         worrying about which ancient version of GCC supported what.
82908         Original problem reported by Yoann Vandoorselaere, with part of
82909         the fix suggested by Derek Price.
82910
82911 2005-09-24  Jim Meyering  <jim@meyering.net>
82912
82913         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82914         so we can once again use a positive bitfield width of 1 -- now we
82915         don't have to explain why we were using a bitfield width of 2.
82916
82917 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82920         and similarly for the other external symbols.  Problem reported
82921         by James Gallager.
82922
82923         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82924         bug reported by Jim Meyering.
82925
82926         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82928         not needed, since socklen is a prerequisite module.
82929
82930 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82933         Problem reported by Eric Blake.
82934         (getaddrinfo): Initialize se so that it's not garbage.
82935         Redo internal storage allocation so that it doesn't make unportable
82936         assumptions about alignment.
82937         Fix a memory leak.
82938
82939         * lib/utimens.c (futimens): Use futimesat if available.
82940         Prefer it to futimes since it doesn't have the futimes bug.
82941
82942         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82943         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82944         Instead, declare a function that returns a pointer to an array,
82945         and use verify_type__ to declare the size of the array.
82946         Problem and germ of a solution reported by Bruno Haible.
82947         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82948         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82949
82950 2005-09-23  Jim Meyering  <jim@meyering.net>
82951
82952         Sync from coreutils.
82953         Correct build failure (socklen_t not defined) on at least
82954         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82956
82957 2005-09-23  Jim Meyering  <jim@meyering.net>
82958
82959         * modules/getaddrinfo (Depends-on): Add socklen.
82960
82961 2005-09-23  Bruno Haible  <bruno@clisp.org>
82962
82963         * tests/test-verify.c: New file.
82964
82965 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82966
82967         Sync from coreutils.
82968
82969         * modules/argmatch (Depends-on): Add verify.
82970         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82971         unistd-safer.
82972         * modules/save-cwd (Depends-on): Likewise.
82973
82974         * modules/openat (Files): Add lib/openat-die.c.
82975         (Depends-on): Remove error, exitfail.
82976         Add dirname.
82977
82978         * modules/verify: New file.
82979         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82980         with "verify" module.
82981
82982 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         Sync from coreutils.
82985
82986         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82987         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82988         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82989         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82990         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82991         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82992         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82993         Don't bother checking for string.h, stdlib.h, unistd.h.
82994         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82995         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82996         module's job.
82997         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82998         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82999
83000         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83001         (gl_GETDATE): Use it.
83002
83003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83004
83005 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83006
83007         Sync from coreutils.
83008
83009         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83010         stat-time.h.
83011         * lib/argmatch.h: Include verify.h
83012         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83013         (ARGMATCH_ASSERT): Remove; unused.
83014         * lib/canonicalize.c: Assume STDC_HEADERS.
83015         * lib/exclude.c: Include "strcase.h".
83016         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83017         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83018         and stdio-safer.h.
83019         (getusershell): Call fopen, not fopen_safer.
83020         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83021         Do not include unistd-safer.h.
83022         (save_cwd): Don't call fd_safer; no longer needed
83023         now that we include fcntl--.h.
83024
83025         * lib/getdate.y (relative_time): New type.
83026         (RELATIVE_TIME_0): New constant.
83027         (parser_control): Use relative_time instead of doing it ourselves.
83028         (%union): Add new relative_time rel member.
83029         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83030         Now typeless.
83031         (relunit, relunit_snumber): Now of type rel.
83032         (zone, rel, relunit, get_date): Adjust to above changes.
83033
83034         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83035         Do not include unistd-safer.h.
83036         (getloadavg): Don't call fd_safer; no longer needed
83037         now that we include fcntl--.h.
83038
83039         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83040         (make_dir_parents): Treat ENOSYS like EEXIST.
83041
83042         Improve quality of diagnostics on restore_cwd failure.
83043         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83044         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83045         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83046         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83047         each time through the loop.  Do not diagnose restore_cwd failure;
83048         that is the caller's job (and perhaps the caller does not care).
83049
83050         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83051         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83052         If the file already exists but is not a directory, don't bother
83053         to try to make its parents.
83054         Close potential file descriptor leak if we can't chdir("/") (!).
83055         Don't always return true if chdir($PWD) fails; return true only
83056         if the requested action was done successfully (except for the
83057         chdir($PWD)).
83058         Don't log final directory unless we actually made it.
83059         Refactor to avoid duplicate code to fix up permissions.
83060         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83061
83062         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83063         to make it a bit faster and (I hope) clearer.
83064         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83065         Fix bug in formats like %2N.
83066
83067         * lib/verify.h: New file.
83068
83069 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83070
83071         Sync from coreutils.
83072         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83073
83074 2005-09-22  Jim Meyering  <jim@meyering.net>
83075
83076         Sync from coreutils.
83077
83078         * m4/lstat.m4 (gl_FUNC_LSTAT):
83079         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83080         Remove obsolete comment.
83081         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83082         * m4/xstrtod.m4: Likewise.
83083
83084         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83085
83086 2005-09-22  Jim Meyering  <jim@meyering.net>
83087
83088         Sync from coreutils.
83089
83090         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83091
83092         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83093         the .tm_year member, since otherwise gcc-4.0 would now warn about
83094         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83095
83096         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83097         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83098
83099         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83100         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83101         when run in a time zone for which daylight savings time is in effect
83102         for the starting date.
83103
83104         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83105         stop us from restricting permissions of just-created absolute-named
83106         directories.
83107         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83108         to restore initial working directory.
83109         * lib/mkdir-p.c (make_dir_parents): New parameter:
83110         different_working_dir, to tell caller if/when we change the working
83111         directory and are unable to return to the initial one.
83112         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83113         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83114         `return false'.  This fixes a bug introduced on 2004-07-30.
83115
83116         * lib/openat.c (fdopendir): Be sure to close the supplied
83117         file descriptor before returning.  This makes our replacement
83118         implementation a little closer to Solaris's, where fdopendir
83119         ties the file descriptor to the returned DIR* pointer.
83120         * lib/openat.c (unlinkat): New function.
83121         * lib/openat.h (unlinkat): Add prototype.
83122         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83123         (openat_restore_fail): Rename from openat_restore_die.
83124         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83125
83126         Provide an alternative to exiting immediately upon save_cwd or
83127         restore_cwd failure.  Now, an application can arrange e.g.,
83128         to perform a longjump in that case.
83129         * lib/openat.c: Include dirname.h.
83130         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83131         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83132         and openat_restore_die rather than calling error directly.
83133         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83134
83135         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83136         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83137         define.
83138
83139         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83140         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83141                             int utc, int nanoseconds);
83142         Background:
83143         date should not have to allocate a megabyte of virtual memory to
83144         handle a format argument like +%1048575T.  When implemented with
83145         strftime, it must allocate such a buffer, use strftime to fill it
83146         in, print it, then free it.
83147         With fprintftime, it simply prints everything and exits.
83148         With no need for memory allocation, that's one fewer way to fail.
83149         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83150         optional field width, not before, so we accept %9:z, not %:9z.
83151         (my_strftime): Be sure to use L_('x') for literals.
83152
83153         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83154         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83155         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83156         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83157         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83158         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83159         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83160         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83161         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83162         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83163         * lib/xgethostname.c, lib/xreadlink.c:
83164         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83165
83166         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83167         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83168         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83169         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83170         and don't include <sys/file.h>).
83171
83172 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83173
83174         Sync from coreutils.
83175
83176         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83177         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83178         [!LDAV_DONE]: Avoid unused variable warning.
83179
83180 2005-09-21  Bruno Haible  <bruno@clisp.org>
83181
83182         * lib/unicodeio.h (unicode_to_mb): New declaration.
83183
83184 2005-09-20  Derek Price  <derek@ximbiot.com>
83185
83186         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83187         getaddrinfo.h.
83188
83189 2005-09-20  Bruno Haible  <bruno@clisp.org>
83190
83191         * gnulib-tool: Remove trailing slashes from the values specified for
83192         --source-base, --m4-base, --tests-base, --aux-dir.
83193         Suggested by Simon Josefsson <jas@extundo.com>.
83194
83195 2005-09-20  Bruno Haible  <bruno@clisp.org>
83196
83197         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83198         func_modules_to_filelist, func_import, func_create_testdir): Make all
83199         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83200         change when gnulib-tool is invoked in a different locale.
83201
83202 2005-09-19  Simon Josefsson  <jas@extundo.com>
83203
83204         * m4/socklen.m4: Fix typo.
83205
83206 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83207
83208         Use a consistent style for including <config.h>.
83209         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83210         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83211         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83212         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83213         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83214         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83215         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83216         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83217         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83218         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83219         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83220         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83221         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83222         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83223         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83224         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83225         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83226         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83227         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83228         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83229         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83230         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83231         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83232         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83233         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83234         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83235         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83236         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83237         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83238         lib/xstrtoumax.c, lib/yesno.c:
83239         Standardize inclusion of config.h.
83240         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83241         lib/inttostr.h:  Removed inclusion of config.h from header files.
83242         * lib/inttostr.c:  Adjusted in-tree users.
83243         * lib/timespec.h: Remove superfluous warning to include config.h.
83244         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83245         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83246         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83247         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83248         config.h with HAVE_CONFIG_H.
83249
83250 2005-09-19  Jim Meyering  <jim@meyering.net>
83251
83252         * modules/pathmax (License): Change to LGPL.
83253
83254 2005-09-19  Derek Price  <derek@ximbiot.com>
83255
83256         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83257
83258 2005-09-19  Bruno Haible  <bruno@clisp.org>
83259
83260         * gnulib-tool (import): Provide default for --tests-base.
83261
83262 2005-09-19  Bruno Haible  <bruno@clisp.org>
83263
83264         * doc/quote.texi: New file, extracted from gnulib.texi.
83265         * doc/ctime.texi: New file, extracted from gnulib.texi.
83266         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83267         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83268         * doc/gnulib.texi: Include them.
83269
83270 2005-09-18  Bruno Haible  <bruno@clisp.org>
83271
83272         Portability fix.
83273         * gnulib-tool (func_readlink): New function.
83274         (func_ln_if_changed): Use it.
83275
83276 2005-09-18  Bruno Haible  <bruno@clisp.org>
83277
83278         * gnulib-tool: Support --with-tests also with --import.
83279         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83280         (func_import): Use variables $testsbase and $inctests. Emit a
83281         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83282         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83283         SUBDIRS += $testsdir.
83284         (func_create_testdir): Update.
83285
83286 2005-09-18  Bruno Haible  <bruno@clisp.org>
83287
83288         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83289         instead of $dry_run.
83290         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83291         (func_ln_if_changed): Don't handle dry-run here.
83292         (func_import): In dry-run mode, detect more precisely which actions
83293         would be performed, and don't use "...ing" verbs.
83294
83295 2005-09-18  Bruno Haible  <bruno@clisp.org>
83296
83297         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83298         (func_import): Use join on two temporary files instead of three nested
83299         loops, in order to determine which files are new or old.
83300
83301 2005-09-18  Bruno Haible  <bruno@clisp.org>
83302
83303         * gnulib-tool (func_import): Comment out code that spits out the
83304         new files with --dry-run.
83305
83306 2005-09-18  Bruno Haible  <bruno@clisp.org>
83307
83308         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83309
83310 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         * lib/stat-time.h: New file.
83313         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83314         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83315         in a different way.
83316         (timespec_cmp): New function.
83317         * lib/utimecmp.c: Include stat-time.h.
83318         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83319         members exist, not on the obsolescent ST_MTIM_NSEC.
83320         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83321
83322 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83323
83324         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83325
83326 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83327
83328         * MODULES.html.sh (File system functions): Add stat-time.
83329         * modules/stat-time: New file.
83330         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83331         is now done in a different way, by the stat-time module.
83332         * modules/utimecmp (Depends-on): Add stat-time.
83333
83334 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83335
83336         * m4/st_mtim.m4: Remove.  Superseded by...
83337         * m4/stat-time.m4: New file.
83338         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83339         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83340
83341 2005-09-15  Derek Price  <derek@ximbiot.com>
83342
83343         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83344
83345 2005-09-15  Derek Price  <derek@ximbiot.com>
83346
83347         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83348         * lib/regex_internal.c: Ditto, using this...
83349         (__GNUC_PREREQ): ...new macro.
83350         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83351         using...
83352         (__GNUC_PREREQ): ...this new macro.
83353
83354         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83355
83356 2005-09-15  Derek Price  <derek@ximbiot.com>
83357             Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83360         changes, consolidating in...
83361         * lib/regex_internal.h: ...this file.
83362
83363 2005-09-13  Jim Meyering  <jim@meyering.net>
83364
83365         * lib/canon-host.c: Filter through gnu indent and reword comments
83366         slightly.
83367         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83368
83369 2005-09-13  Derek Price  <derek@ximbiot.com>
83370
83371         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83372         failure.
83373         Reported by Jim Meyering  <jim@meyering.net>.
83374
83375 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83376
83377         * lib/base64.c: Typo.
83378         (base64_encode): Put b64str in initialized data section.
83379
83380 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83381
83382         Merge glibc and coreutils changes into gnulib, plus a few
83383         extra fixes.
83384         * lib/md5.c: Use #error rather than a string.
83385         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83386         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83387         (__attribute__): Define to empty for non recent-GCC.
83388         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83389         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83390         Renamed from their non-__ counterparts, with new macros replacing
83391         them if not _LIBC.  Add __THROW attribute.
83392         (rol): Remove.
83393         (struct md5_ctx): Align buffer if using GCC.
83394         * lib/sha1.h (struct sha1_ctx): Likewise.
83395         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83396         The old name was backwards.
83397         (NOTSWAP): Remove; not used.
83398         (rol): New macro, moved here from md5.h.
83399         (sha1_process_block): Remove a FIXME that doesn't make sense.
83400
83401 2005-09-12  Derek Price  <derek@ximbiot.com>
83402
83403         Return usable errors from canon-host.
83404         * lib/canon-host.h: New file.
83405         * lib/canon-host.c (canon_host): Wrap...
83406         (canon_host_r): ...this new function, which now relies exclusively on
83407         getaddrinfo.
83408         (ch_strerror): New function.
83409         (last_cherror): New global.
83410         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83411         interface.
83412         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83413         void *.
83414         (freeaddrinfo): Free ai->ai_canonname when set.
83415
83416 2005-09-12  Derek Price  <derek@ximbiot.com>
83417
83418         Make canon-host require getaddrinfo.
83419         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83420         AC_LIBSOURCE canon-host.h.  Call...
83421         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83422         gl_GETADDRINFO.
83423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83424
83425 2005-09-12  Derek Price  <derek@ximbiot.com>
83426
83427         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83428         LGPL.
83429         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83430
83431 2005-09-12  Derek Price  <derek@ximbiot.com>
83432
83433         * lib/gai_strerror.c: Include config.h when available.  Include
83434         getaddrinfo.h before other headers to test interface.
83435         Reported by Larry Jones <lawrence.jones@ugs.com>.
83436
83437 2005-09-12  Derek Price  <derek@ximbiot.com>
83438             Paul Eggert  <eggert@cs.ucla.edu>
83439
83440         * modules/glob (Files): Add glob-libc.h.
83441
83442 2005-09-12  Derek Price  <derek@ximbiot.com>
83443             Paul Eggert  <eggert@cs.ucla.edu>
83444
83445         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83446         glob_.h, glob-libc.h.
83447         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83448
83449 2005-09-12  Derek Price  <derek@ximbiot.com>
83450             Paul Eggert  <eggert@cs.ucla.edu>
83451
83452         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83453         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83454         protecting things that should be done only in gnulib contexts.
83455         * lib/glob_.h: New file, containing only the glob things needed for
83456         gnulib.
83457         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83458         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83459         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83460         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83461         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83462         and to respect the namespace rules better.
83463
83464 2005-09-08  Simon Josefsson  <jas@extundo.com>
83465
83466         * modules/socklen: New file.
83467
83468 2005-09-08  Simon Josefsson  <jas@extundo.com>
83469
83470         * m4/socklen.m4: New file.
83471
83472 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83473
83474         * modules/utimens (Files): Add m4/utimbuf.m4, since
83475         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83476         Reported by Sergey Poznyakoff.
83477
83478 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83479
83480         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83481         definitions, since that's the preferred style in glibc.
83482         Fix a minor spacing issue, and update copyright notice to match
83483         glibc's.
83484
83485 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83488
83489 2005-09-06  Simon Josefsson  <jas@extundo.com>
83490
83491         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83492         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83493
83494 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83495
83496         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83497         warning.
83498
83499 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83500
83501         * config/srclist.txt: Add glibc bug 1302.
83502
83503 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         Change bitset word type from unsigned int to unsigned long int,
83506         as this has better performance on typical 64-bit hosts.
83507         Port bitset code to hosts with unusual word sizes.
83508         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83509         (build_collating_symbol):
83510         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83511         argument is a bitset.  This is merely a style issue, but it makes
83512         it clearer that an entire array is expected.
83513         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83514         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83515         Port to the case where bitset_word is not the same as unsigned int.
83516         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83517         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83518         Likewise.
83519         * lib/regexec.c (check_dst_limits_calc_pos_1,
83520         check_subexp_matching_top):
83521         (build_trtable, group_nodes_into_DFAstates):
83522         Likewise.
83523         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83524         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83525         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83526         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83527         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83528         * lib/regcomp.c (optimize_subexps, lower_subexp):
83529         Work even if bitset_word has holes in its bitwise representation.
83530         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83531         * lib/regexec.c (check_dst_limits_calc_pos_1,
83532         check_subexp_matching_top):
83533         Likewise.
83534         * lib/regex_internal.c (re_string_reconstruct):
83535         Don't assume UCHAR_MAX == 255.
83536         * lib/regex_internal.h (bitset_set_all): Likewise.
83537         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83538         All uses changed.
83539         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83540         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83541         All uses changed.
83542         (BITSET_WORD_MAX): New macro.
83543         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83544         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83545         (bitset_empty, bitset_copy):
83546         Prefer sizeof (bitset) to multiplying it out ourselves.
83547         (bitset_not_merge): Remove; unused.
83548         (bitset_contain): Return bool, not unsigned int with one bit on.
83549         All callers changed.
83550         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83551         alignment than re_node_set; do this by defining a new internal
83552         type struct dests_alloc and using it to allocate memory.
83553
83554 2005-09-05  Bruno Haible  <bruno@clisp.org>
83555
83556         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83557         links.
83558
83559 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83560
83561         * modules/size_max (Makefile.am): Add size_max.h
83562
83563 2005-09-04  Derek Price  <derek@ximbiot.com>
83564
83565         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83566
83567 2005-09-03  Simon Josefsson  <jas@extundo.com>
83568
83569         * gnulib-tool: Fix typo.
83570
83571 2005-09-03  Simon Josefsson  <jas@extundo.com>
83572
83573         * config/srclist.txt: Add glibc bug 1293.
83574
83575 2005-09-03  Derek Price  <derek@ximbiot.com>
83576
83577         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83578         From Larry Jones <lawrence.jones@ugs.com>.
83579
83580 2005-09-02  Simon Josefsson  <jas@extundo.com>
83581
83582         * modules/socklen: New file.
83583
83584 2005-09-02  Simon Josefsson  <jas@extundo.com>
83585
83586         * modules/havelib: New module.
83587
83588         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83589         Use havelib.
83590
83591 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83592
83593         Check for arithmetic overflow when calculating sizes, to prevent
83594         some buffer-overflow issues.  These patches are conservative, in the
83595         sense that when I couldn't determine whether an overflow was possible,
83596         I inserted a run-time check.
83597         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83598         macros.
83599         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83600         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83601         (re_xnrealloc, re_x2nrealloc): New inline functions.
83602         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83603         parse_bracket_exp):
83604         (build_equiv_class, build_charclass): Check for arithmetic overflow
83605         in size expression calculations.
83606         * lib/regex_internal.c (re_string_realloc_buffers):
83607         (build_wcs_upper_buffer, re_node_set_add_intersect):
83608         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83609         (re_dfa_add_node, register_state): Likewise.
83610         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83611         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83612         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83613         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83614
83615 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83616
83617         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83618         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83619
83620 2005-09-02  Bruno Haible  <bruno@clisp.org>
83621
83622         Support for lib vs. lib64 distinction on biarch platforms.
83623         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83624         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83625         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83626
83627 2005-09-02  Bruno Haible  <bruno@clisp.org>
83628
83629         * gnulib-tool (import): In the other first-use case, provide defaults
83630         as well.
83631
83632 2005-09-02  Bruno Haible  <bruno@clisp.org>
83633
83634         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83635         patches not yet found in the latest gettext release.
83636
83637 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83638
83639         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83640         to avoid a collision with bits/local_lim.h in glibc.
83641         All uses changed.  Problem reported by Dmitry V. Levin in
83642         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83643
83644         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83645         bugs in int versus size_t comparisons.
83646         (re_string_context_at): Fix bug where the code assumed that
83647         Idx is signed.
83648
83649         Use bool where appropriate.
83650         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83651         All callers changed.
83652         (calc_eclosure_iter): Likewise, for ROOT arg.
83653         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83654         (build_charclass_op): Likewise, for NON_MATCH arg.
83655         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83656         (re_string_construct_common): Likewise, for ICASE arg.
83657         * lib/regexec.c (re_search_2_stub, re_search_stub):
83658         Likewise, for RET_LEN arg.
83659         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83660         (set_regs): Likewise, for FL_BACKTRACK arg.
83661         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83662         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83663         (calc_eclosure_iter, parse_bracket_exp):
83664         Use bool for internal variables that are booleans.
83665         * lib/regexec.c (re_search_internal, check_matching,
83666         proceed_next_node):
83667         (set_regs, build_sifted_states, sift_states_bkref):
83668         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83669         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83670         (find_collation_sequence_value):
83671         Likewise.
83672         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83673         (re_node_set_compare):
83674         Return bool, not int. All callers changed.
83675         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83676         (build_trtable, check_node_accept): Likewise.
83677         * lib/regex_internal.h: Include stdbool.h.
83678
83679         Fix bugs uncovered when converting to bool.
83680         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83681         failure instead of charging ahead blindly.
83682         * lib/regex_internal.c (register_state): Likewise.
83683         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83684         for freeing internal storage.
83685         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83686         bitset pieces used as boolean, to avoid undefined behavior
83687         on hosts that do int overflow checking.
83688
83689 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83690
83691         * config/srclist.txt: Add glibc bugs 1285-1287.
83692
83693 2005-09-01  Jim Meyering  <jim@meyering.net>
83694
83695         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83696         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83697         Require gl_STAT_MACROS, too.
83698
83699 2005-09-01  Bruno Haible  <bruno@clisp.org>
83700
83701         * gnulib-tool (import): In the first-use case, provide defaults.
83702
83703 2005-09-01  Bruno Haible  <bruno@clisp.org>
83704
83705         * gnulib-tool (func_import): Remove the .tmp files.
83706
83707 2005-09-01  Bruno Haible  <bruno@clisp.org>
83708
83709         * gnulib-tool (func_import): Fix handling of symbolic links.
83710
83711 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83712
83713         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83714         old glibc regex code mishandles strings longer than 2**31 bytes.
83715         This patch fixes this when the regex code is used in gnulib
83716         (i.e., outside glibc).
83717
83718         This patch should not affect the use of the regex code inside
83719         glibc.  No doubt this problem also needs to be handled for glibc
83720         as well, but the result will be an incompatible change to the
83721         glibc ABI, and the old ABI will have to be supported too.  That
83722         can be the the subject for another patch.
83723
83724         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83725         governing whether the rest of this patch is active.  By default,
83726         the macro is disabled and the patch has no effect.
83727         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83728         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83729         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83730         (re_match_2, re_set_registers): Use the new types.
83731         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83732         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83733         New macros.
83734         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83735         (re_string_context_at, bin_tree_t, re_dfastate_t):
83736         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83737         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83738         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83739         (re_string_char_size_at, re_string_wchar_at):
83740         (re_string_elem_size_at):
83741         Use the new types and macros to port to 64-bit hosts.
83742         Use unsigned types for internal values, so that the code
83743         mostly works even for arrays larger than SSIZE_MAX.
83744         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83745         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83746         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83747         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83748         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83749         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83750         (calc_inveclosure, parse_dup_op, build_range_exp):
83751         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83752         (fetch_number, create_token_tree, mark_opt_subexp):
83753         Likewise.
83754         * lib/regex_internal.c (re_string_construct_common,
83755         create_ci_newstate):
83756         (create_cd_newstate, re_string_allocate, re_string_construct):
83757         (re_string_realloc_buffers, build_wcs_upper_buffer):
83758         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83759         (re_string_reconstruct, re_string_peek_byte_case):
83760         (re_string_fetch_byte_case, re_string_context_at):
83761         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83762         (re_node_set_init_copy, re_node_set_add_intersect):
83763         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83764         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83765         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83766         (re_acquire_state, re_acquire_state_context, register_state):
83767         Likewise.
83768         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83769         search_cur_bkref_entry):
83770         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83771         (re_search_internal, re_search_2_stub, re_search_stub)
83772         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83773         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83774         (update_cur_sifted_state, check_dst_limits):
83775         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83776         (check_subexp_limits, sift_states_bkref, merge_state_array):
83777         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83778         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83779         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83780         (expand_bkref_cache, check_node_accept_bytes):
83781         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83782         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83783         (acquire_init_state_context, check_halt_node_context):
83784         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83785         (sift_states_backward, clean_state_log_if_needed):
83786         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83787         (find_recover_state, transit_state_sb, transit_state_mb):
83788         (transit_state_bkref, build_trtable, match_ctx_clean):
83789         Likewise.
83790         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83791         to work around an assumption that REG_MISSING is negative.
83792
83793         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83794         (seek_collating_symbol_entry) [defined _LIBC]:
83795         (lookup_collation_sequence_value) [defined _LIBC]:
83796         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83797         Use prototypes rather than old-style function definitions.
83798         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83799         (transit_state_sb) [0]:
83800         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83801
83802         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83803         rm_eo.
83804
83805         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83806         (optimize_subexps, lower_subexp):
83807         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83808         since the signed shift might overflow.  Use 1u<<31 instead.
83809         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83810         Likewise.
83811         * lib/regexec.c (check_dst_limits_calc_pos_1,
83812         check_subexp_matching_top): Likewise.
83813
83814         * lib/regcomp.c (optimize_subexps, lower_subexp):
83815         Use CHAR_BIT rather than 8, for clarity.
83816         * lib/regexec.c (check_dst_limits_calc_pos_1):
83817         (check_subexp_matching_top): Likewise.
83818         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83819         have to worry about portability issues when shifting it left.
83820         Remove no-longer-needed test for table_size > 0.
83821         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83822         in a word, as the resulting behavior is undefined.
83823         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83824         in one case, a <= should have been an <, and in another case the
83825         whole test was missing.
83826         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83827         the standard name CHAR_BIT.
83828         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83829         this is not true on one's complement and signed-magnitude hosts.
83830
83831         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83832         next_last_offset.
83833         (struct re_dfa_t): Remove unused member states_alloc.
83834         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83835
83836 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83837
83838         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83839         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83840         and large-file glibc and in 32-bit large-file Solaris.
83841
83842 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83843
83844         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83845         lengths fit in regoff_t; this isn't true if regoff_t is the same
83846         width as size_t.
83847         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83848         (= START + RANGE) instead of RANGE.  This avoids overflow
83849         problems when regoff_t is the same width as size_t.
83850         All callers changed.
83851         (re_search_2_stub): Check for overflow when adding the
83852         sizes of the two strings.
83853         (re_search_stub): Check for overflow when adding START
83854         to RANGE; if it occurs, substitute the extreme value.
83855
83856 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83857
83858         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83859
83860 2005-08-31  Jim Meyering  <jim@meyering.net>
83861
83862         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83863         a pointer-to-const.
83864         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83865         (register_state): Likewise.
83866         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83867         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83868         (group_nodes_into_DFAstates): Likewise.
83869
83870 2005-08-31  Jim Meyering  <jim@meyering.net>
83871
83872         * check-module: Add a FIXME comment.
83873
83874 2005-08-31  Eric Blake  <ebb9@byu.net>
83875
83876         * modules/unistd-safer (Files): Add unistd--.h.
83877         * modules/stdio-safer (Files): Add stdio--.h.
83878
83879 2005-08-31  Derek Price  <derek@ximbiot.com>
83880
83881         * lib/getdelim.c (getdelim): Return EOF on EOF.
83882         Reported by Larry Jones <lawrence.jones@ugs.com>.
83883
83884 2005-08-31  Bruno Haible  <bruno@clisp.org>
83885
83886         Avoid unnecessary diffs in the generated lib/Makefile.am.
83887         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83888         the generated files.
83889         (func_import): Don't set cmd.
83890
83891 2005-08-31  Bruno Haible  <bruno@clisp.org>
83892
83893         * lib/strstr.c: Include <stddef.h>, for NULL.
83894         * lib/strcasestr.c: Likewise.
83895         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83896
83897 2005-08-31  Bruno Haible  <bruno@clisp.org>
83898
83899         * gnulib-tool: New option --macro-prefix.
83900         (func_import): Use macro_prefix.
83901         (import): Handle option --macro-prefix.
83902
83903 2005-08-31  Bruno Haible  <bruno@clisp.org>
83904
83905         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83906         Also use new variables cached_lgpl, cached_libtool.
83907
83908 2005-08-31  Bruno Haible  <bruno@clisp.org>
83909
83910         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83911         always instantiating them.
83912
83913 2005-08-31  Bruno Haible  <bruno@clisp.org>
83914
83915         * gnulib-tool (func_import): Read the previous cached settings
83916         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83917         earlier added by gnulib but are now dropped. Warn when a gnulib file
83918         overwrites a non-gnulib file.
83919
83920 2005-08-31  Bruno Haible  <bruno@clisp.org>
83921
83922         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83923         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83924         projects that don't keep autogenerated files in CVS. Put into
83925         actioncmd only the specified modules, not the transitive closure.
83926
83927 2005-08-31  Bruno Haible  <bruno@clisp.org>
83928
83929         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83930         Create directories that shall be filled.
83931         (import): Don't look for gl_* macros in configure.ac. Recurse across
83932         all directories containing a gnulib-cache.m4 files, if meaningful.
83933
83934 2005-08-31  Bruno Haible  <bruno@clisp.org>
83935
83936         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83937         (import): Set seen_libtool when we see gl_LIBTOOL.
83938
83939 2005-08-31  Bruno Haible  <bruno@clisp.org>
83940
83941         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83942         declaration macro definitions from generated gnulib.m4.
83943
83944 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83945
83946         * lib/iconvme.h: Add prototype for iconv_alloc.
83947
83948 2005-08-29  Simon Josefsson  <jas@extundo.com>
83949
83950         * lib/iconvme.c: Fix errno.
83951
83952 2005-08-29  Bruno Haible  <bruno@clisp.org>
83953
83954         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83955         that it works when the directory contains spaces.
83956
83957 2005-08-29  Bruno Haible  <bruno@clisp.org>
83958
83959         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83960
83961 2005-08-29  Bruno Haible  <bruno@clisp.org>
83962
83963         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83964         Emit more advice.
83965
83966 2005-08-29  Bruno Haible  <bruno@clisp.org>
83967         and Stepan Kasal  <kasal@ucw.cz>
83968
83969         * check-module: If more parameters are given, check each of them
83970         separately; add more exceptions, as noted by Jim Meyering.
83971         (check_module): New procedure.
83972         (%exempt_header): Now contains all exceptions.
83973
83974 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83975
83976         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83977
83978 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83979
83980         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83981
83982 2005-08-28  Bruno Haible  <bruno@clisp.org>
83983
83984         * m4/gnulib-tool.m4: New file.
83985
83986 2005-08-27  Jim Meyering  <jim@meyering.net>
83987
83988         * modules/unistd-safer (Files): Add pipe-safer.c.
83989         * modules/fcntl-safer (Files): Add creat-safer.c.
83990
83991 2005-08-27  Jim Meyering  <jim@meyering.net>
83992
83993         * m4/stdlib-safer.m4: New file.  From coreutils.
83994         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83995         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83996         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83997         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83998         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83999
84000 2005-08-27  Jim Meyering  <jim@meyering.net>
84001
84002         * lib/fopen-safer.c: Merge minor changes from coreutils.
84003         * lib/dup-safer.c: Likewise.
84004         * lib/fd-safer.c: Likewise.
84005
84006         Merge from coreutils.
84007         * lib/stdio--.h: New file.
84008         * lib/stdlib--.h: New file.
84009         * lib/mkstemp-safer.c: New file.
84010
84011         GNU tar needs these.
84012         * lib/pipe-safer.c: New file.
84013         * lib/creat-safer.c: New file.
84014         * lib/fcntl--.h (creat): Define to creat_safer.
84015         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84016         * lib/unistd--.h (pipe): Define to pipe_safer.
84017         * lib/unistd-safer.h: Declare pipe_safer.
84018
84019 2005-08-26  Simon Josefsson  <jas@extundo.com>
84020
84021         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84022         Haible <bruno@clisp.org>.
84023
84024 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84025
84026         * lib/regex_internal.h: Remove all references to
84027         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84028         or better.
84029         (bitset_not, bitset_merge, bitset_not_merge):
84030         (bitset_mask, re_string_allocate, re_string_construct):
84031         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84032         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84033         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84034         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84035         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84036         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84037         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84038         (re_acquire_state_context):
84039         Remove unnecessary forward decls.
84040         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84041         Put __attribute at function definition,
84042         now that the function decl has been removed.
84043         * lib/regex_internal.c (re_string_peek_byte_case):
84044         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84045         Likewise.
84046
84047 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84048
84049         * m4/regex.m4: Add AC_PREREQ(2.50).
84050         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84051
84052 2005-08-25  Simon Josefsson  <jas@extundo.com>
84053
84054         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84055         __fsetlocking.
84056
84057 2005-08-25  Simon Josefsson  <jas@extundo.com>
84058
84059         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84060         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84061         GLIBC specific code.
84062
84063 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         Make regex safe for g++.  This fixes one real bug (an "err"
84066         that should have been "*err").  g++ problem reported by
84067         Sam Steingold.
84068         * lib/regex_internal.h (re_calloc): New macro, consistent with
84069         re_malloc etc.  All callers of calloc changed to use re_calloc.
84070         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84071         not int.  All callers changed.
84072         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84073         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84074         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84075         (find_recover_state): Change "err" to "*err"; this fixes what
84076         appears to be a real bug.
84077         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84078         versus int.
84079
84080 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         * modules/regex (Depends-on): Add malloc, since the code
84083         assumes that !malloc(0) means failure.
84084
84085 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84086
84087         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84088
84089         alloca modernization/simplification for regex.
84090         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84091         needs to be at the start of the file, and can be moved into
84092         regex_internal.h and simplified.
84093         * lib/regex_internal.h: Include <alloca.h>.
84094         (__libc_use_alloca) [!defined _LIBC]: New macro.
84095         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84096         now works outside glibc.
84097
84098 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84099
84100         * config/srclist.txt: Add glibc bugs 1241, 1245.
84101
84102 2005-08-25  Jim Meyering  <jim@meyering.net>
84103
84104         * lib/open-safer.c: Include <config.h>.
84105         Otherwise, we'd lose LARGEFILE support in any file using
84106         e.g. "fcntl--.h"
84107
84108 2005-08-25  Bruno Haible  <bruno@clisp.org>
84109
84110         * m4/minmax.m4: Require autoconf 2.52.
84111         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84112         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84113         alternatives of translit over the alphabet.
84114         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84115
84116 2005-08-24  Simon Josefsson  <jas@extundo.com>
84117
84118         * tests/test-getpass.c: New file.
84119
84120 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84123         for GNU regex features.
84124
84125 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84126
84127         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84128         * lib/regex.h (regerror): Likewise.
84129
84130         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84131         requires this.  (The code never needed it.)
84132
84133         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84134         All uses of recently-renamed identifiers changed to use the new,
84135         POSIX-compliant names.  The code will build and run just fine
84136         without these changes, but it's better to eat our own dog food
84137         and use the standard-conforming names.
84138
84139         * lib/regex.h: Fix a multitude of POSIX name space violations.
84140         These changes have an effect only for programs that define
84141         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84142         do not change anything for programs compiled in the normal way.
84143         Also, there is no effect on the ABI.
84144
84145         (_REGEX_SOURCE): New macro.
84146         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84147         defined and _GNU_SOURCE is not; this fixes a name space violation.
84148
84149         Rename the following macros to obey POSIX requirements.
84150         The old names are still visible as macros if _REGEX_SOURCE is defined.
84151         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84152         RE_BACKSLASH_ESCAPE_IN_LISTS.
84153         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84154         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84155         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84156         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84157         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84158         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84159         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84160         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84161         (REG_INTERVALS): renamed from RE_INTERVALS.
84162         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84163         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84164         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84165         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84166         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84167         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84168         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84169         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84170         RE_UNMATCHED_RIGHT_PAREN_ORD.
84171         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84172         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84173         (REG_DEBUG): renamed from RE_DEBUG.
84174         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84175         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84176         unusual, since we can't clash with the POSIX REG_ICASE.
84177         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84178         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84179         (REG_NO_SUB): renamed from RE_NO_SUB.
84180         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84181         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84182         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84183         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84184         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84185         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84186         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84187         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84188         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84189         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84190         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84191         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84192         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84193         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84194         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84195         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84196         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84197         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84198         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84199         (REG_FIXED): Renamed from REGS_FIXED.
84200         (REG_NREGS): Renamed from RE_NREGS.
84201
84202         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84203         of other REG_* macros, since POSIX says the user is allowed to
84204         #undef these macros selectively.
84205
84206         (reg_errcode_t): Update comment stating what other tables need
84207         to be consistent.
84208
84209         Rename the following enum values to obey POSIX requirements.
84210         The old names are still visible as macros.
84211         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84212         is not defined, since GNU is supposed to be a superset of POSIX as
84213         much as possible, and since we want reg_errcode_t to be a signed
84214         type for implementation consistency.
84215         (_REG_NOERROR): Renamed from REG_NOERROR.
84216         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84217         (_REG_BADPAT): Renamed from REG_BADPAT.
84218         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84219         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84220         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84221         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84222         (_REG_EBRACK): Renamed from REG_EBRACK.
84223         (_REG_EPAREN): Renamed from REG_EPAREN.
84224         (_REG_EBRACE): Renamed from REG_EBRACE.
84225         (_REG_BADBR): Renamed from REG_BADBR.
84226         (_REG_ERANGE): Renamed from REG_ERANGE.
84227         (_REG_ESPACE): Renamed from REG_ESPACE.
84228         (_REG_BADRPT): Renamed from REG_BADRPT.
84229         (_REG_EEND): Renamed from REG_EEND.
84230         (_REG_ESIZE): Renamed from REG_ESIZE.
84231         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84232         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84233         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84234         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84235         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84236
84237         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84238         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84239         changed.  But support the old name if the new one is not defined
84240         and if _REGEX_SOURCE.
84241
84242         Change the following member names in struct re_pattern_buffer.
84243         The old names are still supported if !_REGEX_SOURCE.
84244         The new names are always supported, regardless of _REGEX_SOURCE.
84245         (re_buffer): Renamed from buffer.
84246         (re_allocated): Renamed from allocated.
84247         (re_used): Renamed from used.
84248         (re_syntax): Renamed from syntax.
84249         (re_fastmap): Renamed from fastmap.
84250         (re_translate): Renamed from translate.
84251         (re_can_be_null): Renamed from can_be_null.
84252         (re_regs_allocated): Renamed from regs_allocated.
84253         (re_fastmap_accurate): Renamed from fastmap_accurate.
84254         (re_no_sub): Renamed from no_sub.
84255         (re_not_bol): Renamed from not_bol.
84256         (re_not_eol): Renamed from not_eol.
84257         (re_newline_anchor): Renamed from newline_anchor.
84258
84259         Change the following member names in struct re_registers.
84260         The old names are still supported if !_REGEX_SOURCE.
84261         The new names are always supported, regardless of _REGEX_SOURCE.
84262         (rm_num_regs): Renamed from num_regs.
84263         (rm_start): Renamed from start.
84264         (rm_end): Renamed from end.
84265
84266         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84267         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84268         Prepend __ to parameter names.
84269
84270         Undo yesterday's changes.
84271
84272 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84273
84274         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84275         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84276         lib/regex.c.
84277
84278 2005-08-24  Jim Meyering  <jim@meyering.net>
84279
84280         Sync from coreutils.
84281         * m4/fcntl-safer.m4: New file.
84282
84283         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84284         and object files for this module.
84285
84286 2005-08-24  Jim Meyering  <jim@meyering.net>
84287
84288         Sync from coreutils.
84289         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84290
84291 2005-08-24  Jim Meyering  <jim@meyering.net>
84292
84293         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84294         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84295
84296 2005-08-24  Jim Meyering  <jim@meyering.net>
84297
84298         * modules/fcntl-safer: New module.
84299         * modules/fts (Depends-on): Add fcntl-safer.
84300         * MODULES.html.sh (File descriptor based Input/Output):
84301         Add fcntl-safer.
84302
84303 2005-08-24  Bruno Haible  <bruno@clisp.org>
84304
84305         Support for unit test modules.
84306         * modules/README: Mention tests modules.
84307         * modules/TEMPLATE-TESTS: New file.
84308         * gnulib-tool: New options --extract-tests-module, --with-tests and
84309         --tests-base (unused for the moment).
84310         (testsbase, inctests): New variables.
84311         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84312         (func_verify_module): Exclude TEMPLATE-TESTS.
84313         (func_verify_nontests_module, func_verify_tests_module): New functions.
84314         (func_get_dependencies): Add implicit dependency for tests modules.
84315         (func_get_tests_module): New function.
84316         (func_modules_transitive_closure): When --with-tests was specified,
84317         include the unit tests as well, unless explicitly avoided.
84318         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84319         (func_emit_tests_Makefile_am): New function.
84320         (func_create_testdir): When --with-tests was specified, emit a
84321         tests/ directory.
84322         * MODULES.html.sh (Future developments): Update.
84323
84324 2005-08-24  Bruno Haible  <bruno@clisp.org>
84325
84326         * modules/tls-tests: New file.
84327         * tests/test-tls.c: New file, from GNU gettext.
84328
84329 2005-08-24  Bruno Haible  <bruno@clisp.org>
84330
84331         * modules/lock-tests: New file.
84332         * tests/test-lock.c: New file, from GNU gettext.
84333
84334 2005-08-24  Bruno Haible  <bruno@clisp.org>
84335
84336         * lib/lock.h: Add multiple inclusion guard.
84337         * lib/tls.h: Add multiple inclusion guard.
84338
84339 2005-08-24  Bruno Haible  <bruno@clisp.org>
84340
84341         * gnulib-tool: Add support for the --aux-dir option to
84342         --create-testdir, --create-megatestdir, --test, --megatest.
84343         (func_create_testdir, func_create_megatestdir): Optionally emit a
84344         AC_CONFIG_AUX_DIR directive.
84345         (create-testdir, create-megatestdir, test, megatest): Provide a
84346         default value for $auxdir.
84347
84348 2005-08-24  Bruno Haible  <bruno@clisp.org>
84349
84350         * gnulib-tool (import): Use compound statement instead of subshell
84351         where possible.
84352
84353 2005-08-24  Bruno Haible  <bruno@clisp.org>
84354
84355         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84356
84357 2005-08-24  Bruno Haible  <bruno@clisp.org>
84358
84359         * gnulib-tool (func_version): Update.
84360
84361 2005-08-24  Bruno Haible  <bruno@clisp.org>
84362
84363         * gnulib-tool (func_import, func_create_testdir,
84364         func_create_megatestdir): Quote all autoconf macro arguments.
84365
84366 2005-08-24  Bruno Haible  <bruno@clisp.org>
84367
84368         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84369         option --force, because --force causes the aclocal.m4 of each
84370         subdirectory to be newer than the corresponding config.h.in.
84371
84372 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84375         All contents moved to gl_REGEX.
84376         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84377         assume that it does.
84378
84379 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84380
84381         * lib/regex.h (REG_NOSYS)
84382         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84383         Define, since POSIX requires it as of 2001.
84384         (_REG_ENOSYS)
84385         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84386         New private symbol, used to keep the enum signed in all cases.
84387         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84388         Youngman in
84389         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84390
84391         * lib/regex_internal.c (re_string_skip_chars, register_state):
84392         (calc_state_hash):
84393         Remove forward decls; no longer needed now that we use prototypes.
84394         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84395         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84396         (clean_state_log_if_needed): Likewise.
84397
84398 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84399
84400         * config/srclist.txt: Add glibc bugs 1231-1233.
84401
84402 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         Fix problems reported by Sam Steingold in
84405         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84406         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84407         assumed that reg_errcode_t is a signed type, which is not
84408         necessarily true if _XOPEN_SOURCE is not defined.
84409         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84410         since some compilers warn about it otherwise.
84411
84412 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84413
84414         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84415         (init_word_char, create_initial_state, duplicate_node_closure):
84416         (fetch_token, peek_token_bracket, build_range_exp):
84417         (build_collating_symbol): Remove forward decls; no longer needed
84418         now that we use prototypes.
84419
84420         * lib/regcomp.c:
84421         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84422         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84423         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84424         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84425         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84426         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84427         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84428         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84429         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84430         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84431         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84432         (build_charclass, build_charclass_op, fetch_number, create_tree):
84433         (create_token_tree, mark_opt_subexp, duplicate_tree):
84434         Use prototypes rather than old-style definitions.
84435
84436         * lib/regex_internal.c:
84437         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84438         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84439         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84440         (re_string_reconstruct, re_string_peek_byte_case):
84441         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84442         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84443         (re_node_set_init_copy, re_node_set_add_intersect):
84444         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84445         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84446         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84447         (re_acquire_state, re_acquire_state_context, register_state):
84448         (create_ci_newstate, create_cd_newstate, free_state):
84449         Likewise.
84450         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84451         re_search_2):
84452         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84453         (re_search_internal, prune_impossible_nodes):
84454         (acquire_init_state_context, check_matching, static):
84455         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84456         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84457         (update_regs, sift_states_backward, build_sifted_states):
84458         (clean_state_log_if_needed, merge_state_array):
84459         (update_cur_sifted_state, add_epsilon_src_nodes):
84460         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84461         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84462         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84463         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84464         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84465         (check_arrival, check_arrival_add_next_nodes):
84466         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84467         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84468         (check_node_accept_bytes, check_node_accept, extend_buffers):
84469         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84470         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84471         (sift_ctx_init):
84472         Likewise.
84473
84474         * lib/regex_internal.h:
84475         (re_string_allocate, re_string_construct, re_string_reconstruct):
84476         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84477         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84478         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84479         (re_string_context_at, re_string_peek_byte_case):
84480         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84481         is defined, since we now use prototypes always.
84482
84483         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84484         C89 or better.  All uses removed.
84485
84486 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * config/srclist.txt: Add glibc bugs 1220-1227.
84489
84490 2005-08-20  Jim Meyering  <jim@meyering.net>
84491
84492         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84493         of unused local, dfa.
84494
84495 2005-08-20  Bruno Haible  <bruno@clisp.org>
84496
84497         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84498
84499 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84502         (re_node_set_insert_last, re_dfa_add_node):
84503         Rename local variables to avoid GCC shadowing warnings.
84504
84505 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84508         [defined lint]: Suppress bogus uninitialized-variable warnings.
84509
84510         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84511         and let the caller return REG_ESPACE if out of space.  This
84512         removes an uninitialied-variable warning with GCC 4.0.1, and also
84513         avoids taking the address of a local variable.  All callers
84514         changed.
84515
84516 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84519         $LIBCSRC/posix/regexec.c.
84520         Add glibc bug 1217 for regcomp.c.
84521
84522 2005-08-19  Jim Meyering  <jim@meyering.net>
84523
84524         * lib/regexec.c (proceed_next_node): Redo local variables to
84525         avoid GCC shadowing warnings.
84526
84527 2005-08-18  Bruno Haible  <bruno@clisp.org>
84528
84529         * lib/strstr.c (strstr): Fix return value in multibyte case.
84530         * lib/strcasestr.c (strcasestr): Likewise.
84531
84532 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84533
84534         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84535
84536 2005-08-17  Jim Meyering  <jim@meyering.net>
84537
84538         Make the %s format (seconds since the epoch) work for a negative
84539         number and when used with a zero-padded field width, e.g. %015s.
84540
84541         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84542         label so that it precedes the code to set `digits'.  Otherwise,
84543         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84544         print `00-22'.  Now, it prints `-0022', as it should.
84545
84546 2005-08-17  Bruno Haible  <bruno@clisp.org>
84547
84548         * modules/strstr (Files): Add m4/mbrtowc.m4.
84549         (Depends-on): Add mbuiter.
84550
84551 2005-08-17  Bruno Haible  <bruno@clisp.org>
84552
84553         * modules/strcasestr: New file.
84554         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84555         strcasestr.
84556
84557 2005-08-17  Bruno Haible  <bruno@clisp.org>
84558
84559         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84560
84561 2005-08-17  Bruno Haible  <bruno@clisp.org>
84562
84563         * modules/mbuiter: New file.
84564         * MODULES.html.sh (Extended multibyte and wide character utilities):
84565         Add mbuiter.
84566
84567 2005-08-17  Bruno Haible  <bruno@clisp.org>
84568
84569         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84570         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84571
84572 2005-08-17  Bruno Haible  <bruno@clisp.org>
84573
84574         * m4/strcasestr.m4: New file.
84575
84576 2005-08-17  Bruno Haible  <bruno@clisp.org>
84577
84578         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84579         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84580
84581 2005-08-17  Bruno Haible  <bruno@clisp.org>
84582
84583         * lib/strcasestr.h: New file.
84584         * lib/strcasestr.c: New file.
84585
84586 2005-08-17  Bruno Haible  <bruno@clisp.org>
84587
84588         * lib/strcasecmp.c: Use mbuiter.h.
84589
84590 2005-08-17  Bruno Haible  <bruno@clisp.org>
84591
84592         * lib/mbuiter.h: New file.
84593
84594 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84597         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84598         and gl_GETOPT are both invoked via different paths (as happens
84599         with GNU tar CVS because it uses both argp and getopt), the former
84600         wins.
84601
84602 2005-08-16  Bruno Haible  <bruno@clisp.org>
84603
84604         * modules/tls: New file.
84605         * MODULES.html.sh (Multithreading): Add tls.
84606
84607 2005-08-16  Bruno Haible  <bruno@clisp.org>
84608
84609         * modules/strnlen1: New file.
84610         * MODULES.html.sh (String handling): Add strnlen1.
84611
84612 2005-08-16  Bruno Haible  <bruno@clisp.org>
84613
84614         * modules/strcase (Files): Add m4/mbrtowc.m4.
84615         (Depends-on): Add strnlen1, mbchar.
84616
84617 2005-08-16  Bruno Haible  <bruno@clisp.org>
84618
84619         * modules/mbiter: New file.
84620         * MODULES.html.sh (Extended multibyte and wide character utilities):
84621         Add mbiter.
84622
84623 2005-08-16  Bruno Haible  <bruno@clisp.org>
84624
84625         * modules/mbfile: New file.
84626         * MODULES.html.sh (Extended multibyte and wide character utilities):
84627         Add mbfile.
84628
84629 2005-08-16  Bruno Haible  <bruno@clisp.org>
84630
84631         * modules/mbchar: New file.
84632         * MODULES.html.sh (Extended multibyte and wide character utilities):
84633         New section.
84634
84635 2005-08-16  Bruno Haible  <bruno@clisp.org>
84636
84637         * m4/tls.m4: New file, from GNU gettext.
84638
84639 2005-08-16  Bruno Haible  <bruno@clisp.org>
84640
84641         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84642         always.
84643         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84644
84645 2005-08-16  Bruno Haible  <bruno@clisp.org>
84646
84647         * m4/mbiter.m4: New file.
84648
84649 2005-08-16  Bruno Haible  <bruno@clisp.org>
84650
84651         * m4/mbfile.m4: New file.
84652
84653 2005-08-16  Bruno Haible  <bruno@clisp.org>
84654
84655         * m4/mbchar.m4: New file.
84656
84657 2005-08-16  Bruno Haible  <bruno@clisp.org>
84658
84659         * lib/tls.h: New file, from GNU gettext.
84660         * lib/tls.c: New file, from GNU gettext.
84661
84662 2005-08-16  Bruno Haible  <bruno@clisp.org>
84663
84664         * lib/strnlen1.h: New file.
84665         * lib/strnlen1.c: New file.
84666
84667 2005-08-16  Bruno Haible  <bruno@clisp.org>
84668
84669         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84670         (mbi_init): Update.
84671         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84672         NUL byte, not after it.
84673
84674 2005-08-16  Bruno Haible  <bruno@clisp.org>
84675
84676         * lib/strcase.h (strcasecmp): Add note in comments.
84677         * lib/strncasecmp.c: Use code from strcasecmp.c.
84678         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84679         (strcasecmp): Work correctly in multibyte locales.
84680
84681 2005-08-16  Bruno Haible  <bruno@clisp.org>
84682
84683         * lib/mbiter.h: New file.
84684
84685 2005-08-16  Bruno Haible  <bruno@clisp.org>
84686
84687         * lib/mbfile.h: New file.
84688
84689 2005-08-16  Bruno Haible  <bruno@clisp.org>
84690
84691         * lib/mbchar.h: New file.
84692         * lib/mbchar.c: New file.
84693
84694 2005-08-16  Bruno Haible  <bruno@clisp.org>
84695
84696         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84697         the valid ones. Makes the comparison operations transitive:
84698         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84699         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84700
84701 2005-08-15  Simon Josefsson  <jas@extundo.com>
84702
84703         * modules/ssize_t (License): Change to 'unlimited'.
84704
84705         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84706
84707 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84708
84709         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84710         Add comments for each pending glibc patch.
84711
84712 2005-08-15  Bruno Haible  <bruno@clisp.org>
84713
84714         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84715         __cplusplus is defined.
84716
84717 2005-08-14  Jim Meyering  <jim@meyering.net>
84718
84719         Sync from coreutils.
84720
84721         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84722         Use the hash-table-based cycle-detection code not just when
84723         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84724         Reported by James Youngman in
84725         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84726         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84727         FTS_TIGHT_CYCLE_CHECK.
84728         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84729         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84730         once again.
84731         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84732         * lib/fts.c (fd_safer): Remove decl.
84733         Include fcntl--.h rather than unistd-safer.h
84734         (fts_safe_changedir): Don't call fd_safer; no longer needed
84735         now that we include fcntl--.h.
84736
84737 2005-08-12  Simon Josefsson  <jas@extundo.com>
84738
84739         * modules/getndelim2: Use ssize_t module.
84740         * modules/getnline: Likewise.
84741         * modules/safe-read: Likewise.
84742         * modules/xreadlink: Likewise.
84743
84744         * modules/ssize_t: New file.
84745
84746 2005-08-12  Simon Josefsson  <jas@extundo.com>
84747
84748         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84749
84750 2005-08-12  Simon Josefsson  <jas@extundo.com>
84751
84752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84753         ssize_t.
84754
84755 2005-08-12  Simon Josefsson  <jas@extundo.com>
84756
84757         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84758         readline, getdelim and check_version.
84759         (Support for systems lacking ISO C 99: Sizes of integer types):
84760         Add size_max.
84761
84762 2005-08-12  Bruno Haible  <bruno@clisp.org>
84763
84764         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84765
84766 2005-08-11  Simon Josefsson  <jas@extundo.com>
84767
84768         * modules/readline: New file.
84769
84770         * modules/strnlen (Files): Add strnlen.h.
84771
84772 2005-08-11  Simon Josefsson  <jas@extundo.com>
84773
84774         * m4/readline.m4: New file.
84775
84776 2005-08-11  Simon Josefsson  <jas@extundo.com>
84777
84778         * lib/readline.h, readline.c: New file.
84779
84780 2005-08-11  Simon Josefsson  <jas@extundo.com>
84781
84782         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84783         gl_AVOID.
84784
84785 2005-08-11  Bruno Haible  <bruno@clisp.org>
84786
84787         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84788
84789 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84790
84791         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84792
84793 2005-08-10  Simon Josefsson  <jas@extundo.com>
84794
84795         * tests/test-iconvme.c: New file.
84796
84797 2005-08-10  Simon Josefsson  <jas@extundo.com>
84798
84799         * m4/strnlen.m4: New file.
84800
84801         * m4/strndup.m4: Don't check for strnlen declaration, done in
84802         strnlen.m4.
84803
84804 2005-08-10  Simon Josefsson  <jas@extundo.com>
84805
84806         * lib/strndup.c: Use strnlen.h.
84807
84808         * lib/strnlen.h: New file.
84809
84810 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84811
84812         * README: Typos.
84813
84814 2005-08-02  Simon Josefsson  <jas@extundo.com>
84815
84816         * modules/readline: New file.
84817
84818 2005-08-02  Simon Josefsson  <jas@extundo.com>
84819
84820         * modules/getdelim: New file.
84821
84822         * modules/getline: Rewrite, don't use getndelim2.
84823
84824 2005-08-02  Simon Josefsson  <jas@extundo.com>
84825
84826         * m4/getline.m4: Separate out getdelim stuff into separate module.
84827
84828         * m4/getdelim.m4: New file.
84829
84830 2005-08-02  Simon Josefsson  <jas@extundo.com>
84831
84832         * lib/getline.h, getline.c: Rewrite.
84833
84834         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84835
84836 2005-07-31  Bruno Haible  <bruno@clisp.org>
84837
84838         * lib/lock.h (gl_lock_initializer): New macro.
84839         (gl_lock_define_initialized): Use it.
84840         (gl_rwlock_initializer): New macro.
84841         (gl_rwlock_define_initialized): Use it.
84842         (gl_recursive_lock_initializer): New macro.
84843         (gl_recursive_lock_define_initialized): Use it.
84844
84845 2005-07-30  Karl Berry  <karl@gnu.org>
84846
84847         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84848         Report from Ben Pfaff, regarding getopt.
84849
84850 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84853         normal way.
84854         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84855         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84856         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84857         (gl_GETOPT): Use the new macros.  Most of the implementation
84858         is moved to the new macros.  This is for programs like Emacs
84859         that don't want all the functionality of gl_GETOPT.
84860
84861 2005-07-26  Bruno Haible  <bruno@clisp.org>
84862
84863         * m4/lock.m4: Update from GNU gettext.
84864
84865 2005-07-26  Bruno Haible  <bruno@clisp.org>
84866
84867         * lib/lock.h: Update from GNU gettext.
84868         * lib/lock.c: Update from GNU gettext.
84869
84870 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84871
84872         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84873         obsolescent AC_TRY_RUN.  Include the default includes files, for
84874         'exit'.
84875
84876 2005-07-24  Bruno Haible  <bruno@clisp.org>
84877
84878         * modules/visibility: New file.
84879         * MODULES.html.sh (Misc): Add visibility.
84880
84881 2005-07-24  Bruno Haible  <bruno@clisp.org>
84882
84883         * m4/visibility.m4: New file.
84884
84885 2005-07-24  Bruno Haible  <bruno@clisp.org>
84886
84887         * doc/visibility.texi: New file.
84888
84889 2005-07-22  Bruno Haible  <bruno@clisp.org>
84890
84891         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84892         $(ALLOCA_H), redundant through BUILT_SOURCES.
84893         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84894         redundant through BUILT_SOURCES.
84895         * modules/byteswap (Makefile.am): Remove explicit dependency on
84896         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84897         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84898         $(FNMATCH_H), redundant through BUILT_SOURCES.
84899         * modules/getopt (Makefile.am): Remove explicit dependency on
84900         $(GETOPT_H), redundant through BUILT_SOURCES.
84901         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84902         redundant through BUILT_SOURCES.
84903         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84904         redundant through BUILT_SOURCES.
84905         * modules/stdbool (Makefile.am): Remove explicit dependency on
84906         $(STDBOOL_H), redundant through BUILT_SOURCES.
84907         * modules/stdint (Makefile.am): Remove explicit dependency on
84908         $(STDINT_H), redundant through BUILT_SOURCES.
84909         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84910         Remove explicit dependency on $(SYSEXITS_H).
84911         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84912
84913 2005-07-18  Simon Josefsson  <jas@extundo.com>
84914
84915         * lib/check-version.c (check_version): Accept identical versions too.
84916
84917 2005-07-18  Bruno Haible  <bruno@clisp.org>
84918
84919         * modules/lock: New file.
84920         * MODULES.html.sh (Multithreading): New section.
84921
84922 2005-07-18  Bruno Haible  <bruno@clisp.org>
84923
84924         * m4/lock.m4: New file, from GNU gettext.
84925
84926 2005-07-18  Bruno Haible  <bruno@clisp.org>
84927
84928         * lib/lock.h: New file, from GNU gettext.
84929         * lib/lock.c: New file, from GNU gettext.
84930
84931 2005-07-18  Bruno Haible  <bruno@clisp.org>
84932
84933         * lib/lock.h (gl_once_t): New type.
84934         (gl_once_define, gl_once): New macros.
84935         * lib/lock.c (fresh_once): New variable.
84936         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84937         functions.
84938
84939 2005-07-16  Simon Josefsson  <jas@extundo.com>
84940
84941         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84942         workaround, suggested by Bruno.
84943
84944 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84945
84946         * modules/xalloc (Depends-on): Add xalloc-die.
84947         * modules/xvasprintf (Depends-on): Add xalloc-die.
84948
84949 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84950
84951         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84952         with a minor change.
84953
84954 2005-07-15  Bruno Haible  <bruno@clisp.org>
84955
84956         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84957         When using lib/poll.c, define poll as rpl_poll.
84958
84959 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84960
84961         * modules/argp (Depends-on): Remove unlocked-io.
84962
84963 2005-07-14  Derek Price  <derek@ximbiot.com>
84964
84965         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84966         for glob symlink bug.
84967
84968 2005-07-14  Bruno Haible  <bruno@clisp.org>
84969
84970         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84971         Instead, test for *_unlocked function declarations directly.
84972
84973 2005-07-11  Simon Josefsson  <jas@extundo.com>
84974
84975         * modules/size_max: New file.
84976
84977         * modules/xsize: Depend on size_max module for size_max.m4.
84978
84979 2005-07-11  Simon Josefsson  <jas@extundo.com>
84980
84981         * lib/size_max.h: New file.
84982
84983 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84986         copyright symbol and the year.
84987         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84988         (version_etc_va): Use parameterized copyright notice.
84989         Reword to conform to the current GNU coding standards.
84990
84991 2005-07-11  Karl Berry  <karl@gnu.org>
84992
84993         * doc/gnulib.texi (Quoting): new node.
84994         (Initial import): more info, from Patrice.
84995
84996 2005-07-11  Bruno Haible  <bruno@clisp.org>
84997
84998         * gnulib-tool (func_usage): Document option --avoid.
84999         (Command line options): Handle --avoid.
85000         (func_acceptable): New function.
85001         (func_modules_transitive_closure): Use it.
85002
85003 2005-07-11  Bruno Haible  <bruno@clisp.org>
85004
85005         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85006         Reported by Jim Meyering.
85007
85008 2005-07-10  Bruno Haible  <bruno@clisp.org>
85009
85010         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85011         Needed when size_t is smaller than 'unsigned int'.
85012         Reported by Paul Eggert.
85013
85014 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85015
85016         * modules/argp (Depends-on): Add unlocked-io
85017
85018 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85019
85020         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85021         block of defines.
85022
85023 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85026         fix now.
85027
85028 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85029         and Paul Eggert  <eggert@cs.ucla.edu>
85030
85031         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85032         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85033
85034 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85035
85036         * modules/regex (Files): Add lib/regex_internal.c,
85037         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85038         (Depends-on): Add extensions.
85039         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85040
85041 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85042
85043         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85044         pathconf.
85045         * m4/same.m4 (gl_SAME): Likewise.
85046         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85047
85048         * m4/regex.m4: Adjust to new libc regex implementation.
85049         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85050         all the .c and .h parts of (the new) regex.
85051         Quote the m4 stuff better.
85052         Check for RE_ICASE bug of old gnulib.
85053         Check for REG_STARTEND of recent libc.
85054         Rename local variables from jm_* to gl_*.
85055         Quote operand of "test -f".
85056         Say "recent enough" version of libc, not "version 2".
85057         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85058         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85059         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85060         Remove check for btowc, isascii.
85061         Require AM_LANGINFO_CODESET.
85062
85063 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85064
85065         * lib/regex.c, regex.h: Sync from libc.
85066         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85067         * lib/regexec.c:
85068         New files, synced from libc, except that regex_internal.h
85069         currently has a small porting fix.
85070
85071 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85072
85073         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85074         regex_internal.c, regexec.c.
85075         Add regex_internal.h too, but as a comment, since the libc version
85076         is currently broken in gnulib mode.
85077
85078 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85079
85080         Support programs like Emacs that use gnulib but not gettext.
85081         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85082         * modules/gettext-h: New file.
85083         * modules/gettext (Files): Remove lib/gettext.h.
85084         (Depends-on): Add gettext-h.
85085         (Makefile.am): Remove lib_SOURCES.
85086         * modules/argmatch, modules/c-stack, modules/closeout:
85087         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85088         * modules/execute, modules/file-type, modules/getaddrinfo:
85089         * modules/getopt, modules/human, modules/javacomp:
85090         * modules/javaexec, modules/mkdir-p, modules/obstack:
85091         * modules/openat, modules/pagealign_alloc, modules/pipe:
85092         * modules/quotearg, modules/regex, modules/rpmatch:
85093         * modules/unicodeio, modules/userspec, modules/version-etc:
85094         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85095         * modules/xsetenv:
85096         Depend on gettext-h, not gettext.
85097
85098 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * gnulib-tool (func_import): Add support for 'public domain' license.
85101         * modules/alloca, modules/atexit, modules/memmove:
85102         Now public domain, not GPL.
85103         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85104         * modules/realloc, modules/strerror, modules/strtod:
85105         Now LGPL, not GPL.
85106
85107 2005-07-05  Bruno Haible  <bruno@clisp.org>
85108
85109         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85110         autoconf CVS. Needed for mingw.
85111
85112 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85113
85114         Remove the dependency of the strftime module on the tzset module.
85115         * modules/strftime (Depends-on): Remove dependency on tzset.
85116
85117 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85118
85119         Remove the dependency of the strftime module on the tzset module.
85120         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85121         gl_FUNC_TZSET_CLOBBER.
85122
85123 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85124
85125         Remove the dependency of the strftime module on the tzset module.
85126         * lib/strftime.c (my_strftime)
85127         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85128         Copy the input structure, to work around some of the bug with
85129         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85130         Solaris releases, you should also use the tzset module, but we won't
85131         require it as a dependency any more since we don't want LGPLed code
85132         to depend on GPLed code.
85133
85134 2005-07-02  Jim Meyering  <jim@meyering.net>
85135
85136         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85137         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85138         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85139         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85140
85141 2005-07-02  Jim Meyering  <jim@meyering.net>
85142
85143         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85144
85145 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85146
85147         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85148         declares only 'struct timespec;' (!).
85149
85150 2005-07-01  Jim Meyering  <jim@meyering.net>
85151
85152         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85153         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85154         * lib/save-cwd.c, tempname.c:
85155         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85156         and don't include <sys/file.h>).
85157
85158 2005-06-29  Jim Meyering  <jim@meyering.net>
85159
85160         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85161         type name.  Use the variable name instead.
85162         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85163         Likewise.
85164
85165 2005-06-28  Simon Josefsson  <jas@extundo.com>
85166
85167         * modules/check-version (Files): Add check-version.m4.
85168
85169 2005-06-28  Simon Josefsson  <jas@extundo.com>
85170
85171         * m4/check-version.m4: New file, suggested by Jim Meyering
85172         <jim@meyering.net>.
85173
85174 2005-06-28  Simon Josefsson  <jas@extundo.com>
85175
85176         * lib/check-version.h, lib/check-version.c: New files.
85177
85178 2005-06-28  Simon Josefsson  <jas@extundo.com>
85179
85180         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85181         collision with global variable.  Better indentation.  Don't
85182         increment buffer pointer beyond buffer end.  Based on comments
85183         from Paul Eggert <eggert@cs.ucla.edu>.
85184
85185         * lib/base64.h: Indent.
85186
85187 2005-06-28  Simon Josefsson  <jas@extundo.com>
85188
85189         * doc/gnulib.texi (Library version handling): New section.
85190
85191 2005-06-28  Jim Meyering  <jim@meyering.net>
85192
85193         * check-module (find_included_lib_files): Hard-code another
85194         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85195         but modules/fts-lgpl (correctly) does not list those files.
85196
85197         * modules/canonicalize (Files): Add lib/pathmax.h.
85198
85199 2005-06-25  Simon Josefsson  <jas@extundo.com>
85200
85201         * modules/check-version: New file.
85202
85203 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85206         initializer of struct addrinfo, as an indication that we don't
85207         care how many members the structure has.
85208
85209 2005-06-24  Derek Price  <derek@ximbiot.com>
85210         and Bruno Haible  <bruno@clisp.org>
85211
85212         Remove stat module & update lstat.
85213         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85214         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85215         * m4/stat.m4: Remove this file.
85216
85217 2005-06-24  Derek Price  <derek@ximbiot.com>
85218         and Bruno Haible  <bruno@clisp.org>
85219
85220         Remove stat module & update lstat.
85221         * lib/stat.c: Remove this file...
85222         (slash_aware_lstat): ...moving this content and its support...
85223         * lib/lstat.c (rpl_lstat): ...into here.
85224         * lib/lstat.h: New file.
85225
85226 2005-06-24  Derek Price  <derek@ximbiot.com>
85227         and Bruno Haible  <bruno@clisp.org>
85228
85229         Remove stat module & update lstat.
85230         * config/srclist.txt (libc sources): Remove stat.
85231
85232 2005-06-24  Derek Price  <derek@ximbiot.com>
85233         and Bruno Haible  <bruno@clisp.org>
85234
85235         Remove stat module & update lstat.
85236         * MODULES.html.sh (stat): Remove.
85237         * MODULES.html: Regenerated.
85238         * modules/lstat (Description): Correct function name.
85239         (Files): Add "lstat.h".
85240         (Depends-on): Remove stat, add xalloc, stat-macros.
85241         * modules/stat: Remove this file.
85242         (Include): Add "lstat.h", remove <sys/stat.h>.
85243
85244 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85245
85246         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85247         (ranged_convert): Don't save conversion in a temporary struct.
85248         This causes a warning with GCC 4.0.0, and anyway in the typical
85249         case it's not worth the extra 100 bytes or so of code.
85250         (ranged_convert, __mktime_internal): When calling a function via a
85251         pointer P, use P () rather than (*P) (), as we now assume C89 or
85252         better.
85253
85254 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85255
85256         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85257         "who -r" failed to give output.  Problem reported by Tim Waugh.
85258
85259         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85260         (xcalloc): Use it to avoid needless tests.
85261         Problem reported by Jim Meyering.
85262
85263 2005-06-20  Derek Price  <derek@ximbiot.com>
85264
85265         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85266         unnecessary for Autoconfs > 2.59c.
85267
85268 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85269
85270         * lib/argp.h (__option_is_short): Check upper limit of
85271         __key. Isprint() requires its argument to have the value
85272         of an unsigned char or EOF.
85273
85274 2005-06-16  Jim Meyering  <jim@meyering.net>
85275
85276         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85277         when either N or S is zero.
85278
85279 2005-06-16  Derek Price  <derek@ximbiot.com>
85280
85281         * m4/bison.m4: Declare YACC & YFLAGS precious.
85282
85283 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85284
85285         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85286         multibyte string or pattern, fall back on unibyte matching.
85287         Problem reported by James Youngman.
85288
85289 2005-06-08  Bruno Haible  <bruno@clisp.org>
85290
85291         * modules/csharpcomp: New file.
85292         * MODULES.html.sh (C#): Add csharpcomp.
85293
85294 2005-06-08  Bruno Haible  <bruno@clisp.org>
85295
85296         * m4/csharpcomp.m4: New file, from GNU gettext.
85297
85298 2005-06-08  Bruno Haible  <bruno@clisp.org>
85299
85300         * lib/csharpcomp.h: New file, from GNU gettext.
85301         * lib/csharpcomp.c: New file, from GNU gettext.
85302         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85303
85304 2005-06-08  Bruno Haible  <bruno@clisp.org>
85305
85306         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85307         warning on mingw.
85308
85309 2005-06-07  Derek Price  <derek@ximbiot.com>
85310
85311         Sync from CVS.
85312         * lib/glob_.h: Indent nested #ifdef.
85313
85314 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85315
85316         Sync from coreutils.
85317         Use "file name" when talking about file names, instead of "filename"
85318         or "path", as per the GNU coding standards.
85319         * lib/mkdir-p.c: Renamed from makepath.c.
85320         (make_dir_parents): Renamed from make_path.  All callers changed.
85321         * lib/mkdir-p.h: Likewise.  All includers changed.
85322         * lib/filenamecat.c: Renamed from path-concat.c.
85323         (file_name_concat): Renamed from path_concat.  All callers changed.
85324         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85325         * lib/filenamecat.h: Likewise.  All includers changed.
85326         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85327         in comments or local variable names.
85328         * lib/basename.c: Likewise.
85329         * lib/canonicalize.c, canonicalize.h: Likewise.
85330         * lib/dirname.c, dirname.h: Likewise.
85331         * lib/euidaccess.c: Likewise.
85332         * lib/exclude.c: Likewise
85333         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85334         * lib/fsusage.c, fsuage.h: Likewise.
85335         * lib/fts.c, fts_.h: Likewise.
85336         * lib/getcwd.c: Likewise.
85337         * lib/getloadavg.c: Likewise.
85338         * lib/mkstemp.c: Likewise.
85339         * lib/mountlist.c, mountlist.h: Likewise.
85340         * lib/openat.c, openat.h: Likewise.
85341         * lib/readlink-stub.c: Likewise.
85342         * lib/readutmp.c, readutmp.h: Likewise.
85343         * lib/rename.c: Likewise.
85344         * lib/rmdir.c: Likewise.
85345         * lib/same.c: Likewise.
85346         * lib/savedir.c: Likewise.
85347         * lib/stripslash.c: Likewise.
85348         * lib/tempname.c: Likewise.
85349         * lib/xreadlink.c: Likewise.
85350         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85351         All uses changed.
85352         * lib/exclude.h: Likewise.
85353
85354         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85355         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85356         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85357         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85358         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85359         files have been getting away with it for years (MORE/BSD 4.3
85360         is extinct now).
85361         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85362         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85363
85364         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85365         Define to 256, not 255, as per modern POSIX.
85366
85367 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         Sync from coreutils.
85370         Use "file name" when talking about file names, instead of "filename"
85371         or "path", as per the GNU coding standards.
85372         * MODULES.html.sh: mkdir-p renamed from makepath.
85373         filenamecat renamed from path-concat.
85374         * modules/filenamecat: Renamed from modules/path-concat.
85375         (Files): filenamecat.h and filenamecat.c renamed from
85376         path-concat.h and path-concat.c.
85377         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85378         (Include): filenamecat.h, not path-concat.h.
85379         * modules/mkdir-p: Renamed from modules/makepath.
85380         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85381         makepath.c.
85382         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85383         (Include): mkdir-p.h, not makepath.h.
85384
85385 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         Sync from coreutils.
85388         * m4/mkdir-p.m4: Renamed from makepath.m4.
85389         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85390         Rename files from makepath.c to mkdir-p.c, and from
85391         makepath.h to mkdir-p.h.
85392         * m4/filenamecat.m4: Renamed from path-concat.m4.
85393         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85394         Rename files from path-concat.c to filenamecat.c,
85395         and from path-concat.h to filenamecat.h.
85396         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85397         "file name" in local variables or comments.
85398         * m4/rename.m4: Likewise.
85399
85400 2005-06-01  Bruno Haible  <bruno@clisp.org>
85401
85402         * modules/csharpexec: New file.
85403         * MODULES.html.sh (C#): New section.
85404
85405 2005-06-01  Bruno Haible  <bruno@clisp.org>
85406
85407         * m4/csharp.m4: New file, from GNU gettext.
85408         * m4/csharpexec.m4: New file, from GNU gettext.
85409
85410 2005-06-01  Bruno Haible  <bruno@clisp.org>
85411
85412         * lib/csharpexec.h: New file, from GNU gettext.
85413         * lib/csharpexec.c: New file, from GNU gettext.
85414         * lib/csharpexec.sh.in: New file, from GNU gettext.
85415
85416 2005-05-31  Derek Price  <derek@ximbiot.com>
85417             Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         Sync from cvs.
85420         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85421
85422 2005-05-31  Derek Price  <derek@ximbiot.com>
85423             Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         Sync from cvs.
85426         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85427
85428 2005-05-29  Derek Price  <derek@ximbiot.com>
85429
85430         * config/srclist.txt (glob_.h, glob.c): Add these files.
85431
85432 2005-05-29  Derek Price  <derek@ximbiot.com>
85433
85434         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85435         * modules/glob: New file.
85436         * modules/getlogin_r: Add link to POSIX spec in description.
85437
85438 2005-05-29  Derek Price  <derek@ximbiot.com>
85439             Paul Eggert  <eggert@cs.ucla.edu>
85440
85441         * m4/glob.m4: New file.
85442
85443 2005-05-29  Derek Price  <derek@ximbiot.com>
85444             Paul Eggert  <eggert@cs.ucla.edu>
85445
85446         * lib/glob_.h, lib/glob.c: New files.
85447
85448 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85449
85450         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85451         * modules/fts-lgpl (Depends-on): Remove gettext.
85452
85453 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85456         and don't require gt_INTTYPES_PRI.
85457
85458 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85459
85460         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85461
85462         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85463         the configuration hassle isn't worth it.
85464         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85465         (LONGEST_MODIFIER, PRIuMAX): Remove.
85466
85467 2005-05-27  Bruno Haible  <bruno@clisp.org>
85468
85469         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85470
85471 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85474         _POSIX_PTHREAD_SEMANTICS for Solaris.
85475
85476 2005-05-25  Derek Price  <derek@ximbiot.com>
85477
85478         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85479
85480 2005-05-25  Derek Price  <derek@ximbiot.com>
85481             Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85484         * lib/getlogin_r.c, getlogin_r.h: New files.
85485
85486 2005-05-25  Bruno Haible  <bruno@clisp.org>
85487             Derek Price  <derek@ximbiot.com>
85488
85489         * lib/getlogin_r.h: Simplify API documentation.
85490
85491 2005-05-23  Derek Price  <derek@ximbiot.com>
85492
85493         * modules/minmax (Files): Add m4/minmax.m4.
85494         (configure.ac): Add gl_MINMAX.
85495
85496 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85497
85498         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85499         so that unistd-safer.h (GPL'ed code) need not be included.
85500
85501 2005-05-22  Bruno Haible  <bruno@clisp.org>
85502
85503         * m4/minmax.m4: New file.
85504         Based on a patch by Derek Price <derek@ximbiot.com>.
85505
85506 2005-05-22  Bruno Haible  <bruno@clisp.org>
85507
85508         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85509         (INT64_MIN): Fix definition.
85510         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85511
85512         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85513         NEED_SIGNED_INT_TYPES.
85514
85515         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85516         HAVE_SYSTEM_INTTYPES.
85517
85518 2005-05-22  Bruno Haible  <bruno@clisp.org>
85519
85520         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85521         Also include <sys/param.h> if it defines MIN, MAX.
85522         Based on a patch by Derek Price <derek@ximbiot.com>.
85523
85524 2005-05-21  Jim Meyering  <jim@meyering.net>
85525
85526         * modules/fts (Files): Add m4/inttypes-pri.m4.
85527         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85528
85529 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         New fts module.
85532         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85533         (setup_dir, free_dir): New functions.
85534         (enter_dir, leave_dir): Define trivial
85535         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85536         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85537         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85538         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85539         Move to fts-cycle.c.
85540         (fts_open): Use setup_dir.
85541         (fts_close): Use free_dir.
85542         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85543         This adds a label and some gotos, but the alternatives were messier.
85544         Check for memory allocation failure when entering a dir.
85545         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85546         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85547         (FTS): New member fts_cycle, that is a union that contains the
85548         old active_dir_ht and cycle_state.  All uses changed to mention
85549         fts_cycle.ht and fts_cycle.state.
85550         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85551         fts.c, with the following changes:
85552         (setup_dir, free_dir): New functions.
85553         (enter_dir): Now returns bool.  Return true if successful, false
85554         if memory exhausted.  All callers changed.
85555         Do not bother partly cleaning up on
85556         memory allocation failure; that is free_dir's job.
85557         However, free ad if hash_insert fails, to avoid memory leak.
85558         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85559         fts->fts_options to see which union member to use.
85560
85561 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85562
85563         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85564         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85565
85566 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85567
85568         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85569
85570 2005-05-20  Jim Meyering  <jim@meyering.net>
85571
85572         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85573         Now a macro, to pacify GCC.
85574
85575 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85576
85577         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85578         of -1.
85579
85580 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85581
85582         * lib/chown.c (rpl_chown): Return -1 on failure.
85583
85584 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85585
85586         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85587         Don't check for stddef.h.
85588         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85589         don't use its results.
85590         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85591         since we include them unconditionally.  Don't require
85592         AM_STDBOOL_H, since stdbool is a prerequisite.
85593         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85594         since we assume C89 or better.
85595         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85596         as we don't use their results.
85597         Don't check for fchdir, memmove, memset, strrchr, as we use
85598         them unconditionally.
85599         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85600         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85601
85602 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85603
85604         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85605         Include <stddef.h> unconditionally, since we assume C89 now.
85606         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85607         * lib/fts.c: Include fts_.h first, to check interface.
85608         Do not include intprops.h; no longer needed.
85609         Include cycle-check.h and hash.h, since fts_.h no longer does.
85610         Remove unnecessary casts of closedir to void.
85611         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85612         decide whether to decrement nlinks.
85613         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85614         (FTS): Use struct hash_table * instead of Hash_table, so that
85615         we no longer need to include hash.h here.
85616
85617 2005-05-18  Jim Meyering  <jim@meyering.net>
85618
85619         * modules/dirfd (License): Change to LGPL.  Most of the code
85620         is already in the public domain.
85621
85622 2005-05-18  Jim Meyering  <jim@meyering.net>
85623
85624         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85625         Reported by Yoann Vandoorselaere.
85626
85627 2005-05-17  Jim Meyering  <jim@meyering.net>
85628
85629         * m4/fts.m4: New file, from coreutils.
85630
85631 2005-05-17  Jim Meyering  <jim@meyering.net>
85632
85633         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85634
85635 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85636
85637         Sync from coreutils.
85638         * m4/unlinkdir.m4: New file.
85639
85640 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85641
85642         Sync from coreutils.
85643         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85644         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85645         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85646         White space changes only.
85647         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85648         special.
85649         * lib/yesno.c: Include getline.h, not ctype.h.
85650         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85651         Use getline to remove arbitrary restriction on response length.
85652
85653 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85654
85655         * config/srclist-update: Spell out "Street" in FSF postal
85656         mail address; this is the style the FSF seems to prefer.
85657
85658         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85659         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85660         this updates FSF postal mail address.
85661
85662         Sync from coreutils.
85663         * modules/unlinkdir: New file.
85664         * modules/yesno (Depends-on): Add getline.
85665         * MODULES.html.sh (File system functions): Add unlinkdir.
85666
85667 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85668
85669         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85670         lib/strsep.h:
85671         Change the initial comment to refer to GPL, not LGPL.
85672         gnulib-tool will change it to LGPL as needed.
85673
85674         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85675         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85676         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85677         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85678         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85679         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85680         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85681         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85682         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85683         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85684         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85685         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85686         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85687         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85688         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85689         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85690         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85691         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85692         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85693         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85694         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85695         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85696         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85697         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85698         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85699         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85700         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85701         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85702         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85703         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85704         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85705         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85706         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85707         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85708         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85709         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85710         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85711         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85712         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85713         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85714         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85715         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85716         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85717         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85718         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85719         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85720         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85721         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85722         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85723         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85724         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85725         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85726         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85727         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85728         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85729         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85730         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85731         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85732         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85733         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85734         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85735         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85736         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85737         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85738         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85739         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85740         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85741         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85742         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85743         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85744         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85745         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85746         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85747         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85748         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85749         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85750         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85751         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85752         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85753         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85754         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85755         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85756         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85757         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85758         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85759         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85760         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85761         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85762         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85763         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85764         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85765         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85766         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85767         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85768         lib/yesno.c, lib/yesno.h:
85769         Update FSF postal mail address.
85770
85771 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85772
85773         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85774         tests/test-memmem.c, tests/test-stpncpy.c:
85775         Update FSF postal mail address.
85776
85777 2005-05-13  Bruno Haible  <bruno@clisp.org>
85778
85779         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85780         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85781         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85782         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85783         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85784         Add support for 64-bit integers in the MSVC compiler.
85785
85786 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85787
85788         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85789
85790 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85791
85792         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85793
85794 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         * doc/getdate.texi (General date syntax): Don't say that date
85797         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85798         Problem reported by Nic Ferrier.
85799
85800 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85801
85802         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85803         specified in ai_socktype. Fix invalid ai_protocol
85804         check. ai_protocol is usually set to 0 or depending on
85805         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85806         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85807         ai_socktype / ai_protocol in the returned addrinfo structure.
85808
85809 2005-05-10  Simon Josefsson  <jas@extundo.com>
85810
85811         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85812         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85813
85814 2005-05-10  Karl Berry  <karl@gnu.org>
85815
85816         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85817         (from http://www.gnu.org/licenses).
85818         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85819         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85820         fdl.texi suffices.
85821
85822 2005-05-10  Karl Berry  <karl@gnu.org>
85823
85824         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85825         (COPYING.DOC): remove.
85826
85827         * config/srclist-update: new FSF address.
85828
85829 2005-05-10  Derek Price  <derek@ximbiot.com>
85830
85831         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85832         possible.
85833
85834 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85835             Bruno Haible  <bruno@clisp.org>
85836
85837         * modules/inet_ntop: New file.
85838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85839         inet_ntop.
85840
85841 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85842             Bruno Haible  <bruno@clisp.org>
85843
85844         * m4/inet_ntop.m4: New file.
85845
85846 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85847             Bruno Haible  <bruno@clisp.org>
85848
85849         * lib/inet_ntop.h: New file.
85850         * lib/inet_ntop.c: New file, from glibc with modifications.
85851
85852 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * modules/time_r (License): Change to LGPL.
85855         * modules/extensions (License): Change to LGPL.  Actually,
85856         the license is more permissive than that, but currently gnulib-tool
85857         doesn't know how to handle more-permissive licenses.
85858
85859         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85860         Problem reported by Dave Love.
85861
85862 2005-05-08  Jim Meyering  <jim@meyering.net>
85863
85864         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85865         blank.
85866
85867 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         * modules/argmatch (Depends-on): Add stdbool.
85870         * modules/backupfile (Depends-on): Likewise.
85871         * modules/chdir-long (Depends-on): Likewise.
85872         * modules/closeout (Depends-on): Likewise.
85873         * modules/cycle-check (Depends-on): Likewise.
85874         * modules/dirname (Depends-on): Likewise.
85875         * modules/fnmatch (Depends-on): Likewise.
85876         * modules/fsusage (Depends-on): Likewise.
85877         * modules/fwriteerror (Depends-on): Likewise.
85878         * modules/getcwd (Depends-on): Likewise.
85879         * modules/getloadavg (Depends-on): Likewise.
85880         * modules/hard-locale (Depends-on): Likewise.
85881         * modules/makepath (Depends-on): Likewise.
85882         * modules/mountlist (Depends-on): Likewise.
85883         * modules/nanosleep (Depends-on): Likewise.
85884         * modules/posixtm (Depends-on): Likewise.
85885         * modules/quotearg (Depends-on): Likewise.
85886         * modules/readtokens (Depends-on): Likewise.
85887         * modules/readtokens0 (Depends-on): Likewise.
85888         * modules/readutmp (Depends-on): Likewise.
85889         * modules/save-cwd (Depends-on): Likewise.
85890         * modules/strftime (Depends-on): Likewise.
85891         * modules/userspec (Depends-on): Likewise.
85892         * modules/utimecmp (Depends-on): Likewise.
85893         * modules/xgetcwd (Depends-on): Likewise.
85894         * modules/xnanosleep (Depends-on): Likewise.
85895         * modules/xstrtod (Depends-on): Likewise.
85896         * modules/yesno (Depends-on): Likewise.
85897
85898 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85901         needless checks.
85902
85903 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85904
85905         Merge from coreutils.  Among other things,
85906         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85907         * lib/fd-safer.c: New file.
85908         * lib/fcntl-safer.h, open-safer.c: Remove.
85909         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85910         * lib/dup-safer.c: Include unistd-safer.h first.
85911         Don't include errno.h.
85912         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85913         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85914         * lib/file-type.c: Rely on file-type.h change.
85915         * lib/getloadavg.c: Include unistd-safer.h.
85916         (getloadavg): Use safer open.
85917         * lib/getusershell.c: Include "stdio-safer.h".
85918         (getusershell): Use safer fopen.
85919         * lib/long-options.c (long_options): Use NULL rather than 0.
85920         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85921         'free'.
85922         * lib/modechange.c: Likewise.
85923         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85924         (MODE_DONE): New constant.
85925         (struct mode_change): Remove 'next' member.
85926         (make_node_op_equals): New function; like the old one of the
85927         same name, except it allocates an array.
85928         (mode_compile, mode_create_from_ref): Use it.
85929         (mode_compile): Allocate result as an array, not a linked list.
85930         Parse octal string ourself, so that we catch mistakes like "+0".
85931         (mode_adjust): Arg is an array, not a linked list.
85932         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85933         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85934         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85935         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85936         Remove.  This is now stat-macros.h's job.
85937         (talloc): Remove.  All callers replaced by xalloc, so that
85938         our invokers don't have to worry about reporting memory failures.
85939         (make_node_op_equals): Remove.
85940         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85941         New constants.
85942         (struct mode_change): Moved here from modechange.h.
85943         (mode_append_entry): Remove.
85944         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85945         apps to have incorrect behavior.  Use simpler algorithm for head
85946         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85947         Detect more invalid usages rather than having somewhat-random behavior.
85948         Don't insert an "a=" action, as that leads to incorrect behavior.
85949         (mode_compile, mode_create_from_ref): Return NULL on error instead
85950         of an enum, since now there's only one way to have an error.  All
85951         callers changed.
85952         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85953         at the correct time.  Simplify calculation of "+u" and its ilk.
85954         Don't mishandle "+X".
85955         (mode_free): Remove "register" and localize decls.
85956         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85957         (struct mode_change): Move to modechange.c; callers don't
85958         need to see this stuff.
85959         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85960         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85961         (mode_change, mode_adjust): Reflect the new signatures noted above.
85962         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85963         that might redefine system include files.
85964         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85965         (my_usleep): Use NULL rather than (void *) 0.
85966         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85967         Use siginterrupt to specify that system calls should be interrupted.
85968         (rpl_nanosleep): Move initialization of suspended closer to call of
85969         my_usleep.
85970         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85971         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85972         (desirable_utmp_entry): New function.
85973         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85974         using x2nrealloc, to simplify logic.
85975         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85976         size calculation.  Do not assume utmp file is a regular file.
85977         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85978         (READ_UTMP_CHECK_PIDS): New constant.
85979         * lib/save-cwd.c: Include unistd-safer.h.
85980         (save_cwd): Use fd_safer.
85981         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85982         [!_LIBC] Include "stat-macros.h" instead.
85983         * lib/unistd-safer.h (fd_safer): New decl.
85984
85985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85986
85987         * modules/getloadavg (Depends-on): Add unistd-safer.
85988         * modules/getusershell (Depends-on): Add stdio-safer.
85989         * modules/lstat (Depends-on): Remove xalloc.
85990         * modules/mkstemp (Depends-on): Add stat-macros.
85991         * modules/modechange (Depends-on): Remove xstrtol.
85992         Add stat-macros, xalloc.
85993         * modules/save-cwd (Depends-on): Add unistd-safer.
85994         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85995         * modules/unistd-safer (Files): Add lib/fd-safer.c
85996         (Makefile.am): Remove lib_SOURCES.
85997
85998         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85999         Remove fcntl-safer; unistd-safer supersedes it.
86000
86001 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86002
86003         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86004         AC_HEADER_STAT.
86005         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86006         (gl_PREREQ_CHOWN): Remove.
86007         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86008         it.  Don't require AC_HEADER_STAT.
86009         (gl_PREREQ_LSTAT): Remove.
86010         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86011         Don't require AC_HEADER_STAT.
86012         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86013         (gl_PREREQ_RMDIR): Remove.
86014         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86015         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86016         the stat-macros module a prerequisite.
86017         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86018         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86019         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86020         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86021         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86022         variable names.
86023         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86024         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86025         variable prefixes.
86026         * m4/fcntl-safer.m4: Remove.
86027         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86028         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86029         Invoke gl_PREREQ_FD_SAFER.
86030         (gl_PREREQ_FD_SAFER): New macro.
86031         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86032         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86033         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86034         Remove duplicate call to AC_LIBOBJ(readutmp).
86035         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86036
86037         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86038         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86039
86040 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         * MODULES.html.sh (Misc): Add byteswap.
86043
86044 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86045
86046         * modules/getcwd (Depends-on): Add extensions.
86047         * modules/openat (Depends-on): Likewise.
86048
86049 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86050
86051         * modules/byteswap: New file.
86052
86053 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86054
86055         * m4/byteswap.m4: New file.
86056
86057 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86058
86059         * lib/byteswap_.h: New file.
86060
86061 2005-04-25  Karl Berry  <karl@gnu.org>
86062
86063         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86064
86065 2005-04-25  Albert Chin  <china@thewrittenword.com>
86066
86067         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86068         Toolkit C bug.
86069
86070 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86071
86072         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86073         (func_ln_if_changed): Remove forcibly for no error message
86074         in case file does not exist.
86075
86076 2005-04-19  Simon Josefsson  <jas@extundo.com>
86077
86078         * gnulib-tool (Options): Make --symlink mean --symbolic.
86079
86080 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86081
86082         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86083
86084 2005-04-16  Simon Josefsson  <jas@extundo.com>
86085
86086         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86087
86088 2005-04-15  Simon Josefsson  <jas@extundo.com>
86089
86090         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86091
86092 2005-04-15  Simon Josefsson  <jas@extundo.com>
86093
86094         * gnulib-tool: Rename --symlink to --symbolic.
86095
86096 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86097
86098         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86099         symbolic links to files instead of copying/moving.  Add --aux-dir,
86100         specifying directory relative --dir where auxiliary build tools
86101         are placed.
86102
86103 2005-04-14  Bruno Haible  <bruno@clisp.org>
86104
86105         * modules/allocsa (License): Change to LGPL.
86106         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86107
86108 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86109
86110         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86111         that "UTC +1 second" continues to work.  Problem reported
86112         by Dmitry V. Levin.
86113         (relunit_snumber): New rule.
86114         (relunit): Use it.
86115
86116 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86117
86118         * lib/getdate.y (universal_time_zone_table): New constant.
86119         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86120         universal_time_zone_table.
86121         (lookup_zone): Prefer universal_time_zone_table to
86122         local_time_zone_table, so that "GMT" time stamps are allowed in
86123         London during the summer.  Problem reported by Ian Abbott.
86124
86125 2005-04-12  Jim Meyering  <jim@meyering.net>
86126
86127         * lib/human.c (humblock): Set *options even when returning due to
86128         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86129         warning from gcc-4.
86130
86131 2005-04-09  Jim Meyering  <jim@meyering.net>
86132
86133         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86134         -Wuninitialized: initialize tm0.tm_year.
86135
86136 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86137
86138         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86139         count, since there's no maximum.  All uses changed.
86140         Add member dsts_seen.
86141         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86142         not being INT_MAX.
86143         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86144         Use pc_rels_seen to decide whether a date is absolute.
86145
86146         * lib/getdate.y (number): Don't overwrite year.
86147         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86148         check.
86149
86150 2005-04-02  Simon Josefsson  <jas@extundo.com>
86151
86152         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86153         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86154
86155 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86156
86157         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86158         where no absolute path name can be longer than PATH_MAX.
86159
86160 2005-03-27  Jim Meyering  <jim@meyering.net>
86161
86162         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86163
86164 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86165
86166         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86167         "one's complement" -> "ones' complement" in comment, as per Knuth.
86168         "value of type" -> "type or expression" in comment.
86169         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86170
86171 2005-03-26  Jim Meyering  <jim@meyering.net>
86172
86173         Comment nits.
86174         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86175         Correct typos: s/or/of/.
86176
86177 2005-03-26  Jim Meyering  <jim@meyering.net>
86178
86179         * modules/check-include-files: Move to ../ and rename to...
86180         * check-module: ...this.
86181
86182 2005-03-25  Jim Meyering  <jim@meyering.net>
86183
86184         * modules/xvasprintf (Files): Add xalloc.h.
86185
86186 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86187
86188         * modules/gettext (Files): config/config.rpath ->
86189         build-aux/config.rpath
86190         * modules/iconv (Files): Likewise.
86191         Problem reported by Oskar Liljeblad.
86192
86193 2005-03-23  Jim Meyering  <jim@meyering.net>
86194
86195         * modules/check-include-files: New script to check for
86196         missing dependencies, multiple includes, etc.
86197
86198         * modules/c-strtold (Depends-on): Add xalloc.
86199         * modules/c-strtod (Depends-on): Add xalloc.
86200         * modules/hash (Depends-on): Add xalloc.
86201         (Files): Remove lib/xalloc.h.
86202
86203         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86204         * modules/userspec (Files): Add lib/inttostr.h.
86205
86206 2005-03-23  Jim Meyering  <jim@meyering.net>
86207
86208         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86209
86210 2005-03-22  Jim Meyering  <jim@meyering.net>
86211
86212         * modules/stat-macros: New module.
86213         * modules/canonicalize, modules/euidaccess, modules/file-type,
86214         * modules/filemode, modules/lchown, modules/makepath,
86215         * modules/rmdir, modules/stat: Depend on new stat-macros module
86216         rather than listing lib/stat-macros.h manually.
86217         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86218
86219 2005-03-22  Jim Meyering  <jim@meyering.net>
86220
86221         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86222
86223 2005-03-22  Bruno Haible  <bruno@clisp.org>
86224
86225         * config/srclist.txt: Replace target directory 'config' with
86226         'build-aux'.
86227         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86228         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86229         ../build-aux/.
86230
86231 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86232
86233         * modules/chdir-long (Depends-on): Add mempcpy.
86234
86235         * modules/acl, modules/backupfile, modules/c-strtod,
86236         modules/c-strtold, modules/canon-host, modules/canonicalize,
86237         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86238         modules/exclude, modules/exitfail, modules/file-type,
86239         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86240         modules/getdate, modules/getline, modules/getpagesize,
86241         modules/getpass, modules/getugroups, modules/group-member,
86242         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86243         modules/inttostr, modules/long-options, modules/makepath,
86244         modules/md5, modules/memcasecmp, modules/memcoll,
86245         modules/modechange, modules/mountlist, modules/path-concat,
86246         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86247         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86248         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86249         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86250         modules/strftime, modules/strndup, modules/strverscmp,
86251         modules/timespec, modules/unlocked-io, modules/userspec,
86252         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86253         modules/yesno:
86254         Remove lib_SOURCES line from Makefile.am section, as this is now
86255         done automatically by the corresponding Autoconf macro.
86256
86257 2005-03-21  Jim Meyering  <jim@meyering.net>
86258
86259         Changes imported from coreutils.
86260
86261         * lib/cycle-check.c: Don't include xalloc.h.
86262
86263         * lib/path-concat.c: Don't include assert.h.
86264         (path_concat): Remove assertion that would have triggered
86265         for ABASE starting with more than one slash.
86266         Reported by Andreas Schwab.
86267
86268         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86269         properly when ABASE is an absolute file name.
86270         Correct the description of this function.
86271         Include <assert.h>.
86272         Add an assertion and a test driver.
86273         This fixes a bug introduced on 2004-07-02.
86274         Andreas Schwab reported the resulting failure of cp --parents:
86275         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86276
86277 2005-03-21  Jim Meyering  <jim@meyering.net>
86278
86279         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86280         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86281
86282 2005-03-21  Jim Meyering  <jim@meyering.net>
86283         and  Paul Eggert  <eggert@cs.ucla.edu>
86284
86285         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86286         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86287         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86288         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86289         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86290         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86291         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86292         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86293         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86294         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86295         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86296         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86297         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86298         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86299         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86300         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86301         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86302         for these modules.
86303
86304 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86305
86306         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86307         (which shouldn't happen), generate nothing instead of returning 0
86308         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86309
86310 2005-03-16  Bruno Haible  <bruno@clisp.org>
86311
86312         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86313         HAVE_LONGLONG_64BIT.
86314
86315 2005-03-16  Bruno Haible  <bruno@clisp.org>
86316
86317         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86318         HAVE_LONGLONG_64BIT.
86319
86320 2005-03-16  Bruno Haible  <bruno@clisp.org>
86321
86322         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86323         HAVE_LONGLONG_64BIT.
86324
86325 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86326
86327         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86328         reliably distinguish strftime failure from empty output on POSIX
86329         hosts.
86330
86331 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86332
86333         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86334         (iconv_string): Don't guess a size-zero buffer, as that might cause
86335         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86336         result would be 'too large', where 'too large' is (heuristically)
86337         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86338         overflow concerns.  This will prevent some unwanted malloc failures
86339         when the inputs are very large.
86340
86341 2005-03-15  Karl Berry  <karl@gnu.org>
86342
86343         * config/srclist.txt (config.rpath): from gettext.
86344         * config/config.rpath: update.
86345
86346 2005-03-15  Bruno Haible  <bruno@clisp.org>
86347
86348         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86349         to 'negate'.
86350
86351         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86352         variable.
86353
86354         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86355         results.
86356
86357 2005-03-14  Simon Josefsson  <jas@extundo.com>
86358
86359         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86360         <fx@gnu.org>.
86361
86362 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86363
86364         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86365         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86366         intprops.h.
86367         * lib/strtol.c: Likewise.
86368
86369 2005-03-14  Jim Meyering  <jim@meyering.net>
86370
86371         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86372         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86373         to be nonzero so that we (and caller) can detect the difference
86374         between a valid zero-length expansion and an error return, even
86375         when the underlying strftime fails before writing anything into
86376         that location.
86377
86378 2005-03-14  Bruno Haible  <bruno@clisp.org>
86379
86380         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86381         Update from GNU gettext 0.14.3.
86382
86383 2005-03-10  Jim Meyering  <jim@meyering.net>
86384
86385         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86386
86387 2005-03-10  Jim Meyering  <jim@meyering.net>
86388
86389         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86390         so that this module works on systems without fchdir.
86391
86392 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         Factor int-properties macros into a single file, except for
86395         glibc-related files.
86396         * lib/intprops.h: New file.
86397         * lib/getloadavg.c: Include it instead of limits.h.
86398         (INT_STRLEN_BOUND): Remove.
86399         * lib/human.c: Include intprops.h.
86400         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86401         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86402         302/1000.
86403         * lib/inttostr.h: Include intprops.h instead of limits.h.
86404         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86405         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86406         for consistency with intprops.h.
86407         (time_t_is_integer, twos_complement_arithmetic): Use them.
86408         * lib/sig2str.h: Include <signal.h>, intprops.h.
86409         (INT_STRLEN_BOUND): Remove.
86410         * lib/strftime.c (TYPE_SIGNED): Remove.
86411         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86412         * lib/strtol.c: Adjust comments to match intprops.h.
86413         * lib/userspec.c: Include intprops.h.
86414         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86415         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86416         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86417         instead of rolling our own expressions.
86418         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86419
86420         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86421         instead of int.
86422         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86423         the right thing even if adding 1900 would overflow.  Similarly
86424         for tm_mon + 1 and tm_yday + 1.
86425         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86426         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86427         (DO_SIGNED_NUMBER): New macro.
86428         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86429
86430 2005-03-07  Bruno Haible  <bruno@clisp.org>
86431
86432         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86433
86434 2005-03-07  Bruno Haible  <bruno@clisp.org>
86435
86436         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86437
86438 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86439
86440         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86441         (func_import): Only replace files via --import when they have actually
86442         changed.
86443
86444 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86445
86446         * m4/mmap-anon.m4: New file.
86447         * m4/pagealign_alloc.m4: New file.
86448
86449 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86450             Bruno Haible  <bruno@clisp.org>
86451
86452         * modules/pagealign_alloc: New file.
86453         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86454
86455 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86456             Bruno Haible  <bruno@clisp.org>
86457
86458         * lib/pagealign_alloc.h: New file.
86459         * lib/pagealign_alloc.c: New file.
86460
86461 2005-03-03  Bruno Haible  <bruno@clisp.org>
86462
86463         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86464         Use an all-permissive copyright notice, recommended by RMS.
86465
86466 2005-03-02  Bruno Haible  <bruno@clisp.org>
86467
86468         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86469         of AIX, the replacement has to be done only after <string.h> is
86470         included, therefore not in config.h. stpncpy.h does the replacement,
86471         and stpncpy.c uses it.
86472
86473 2005-03-02  Bruno Haible  <bruno@clisp.org>
86474
86475         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86476         stpncpy.c uses it.
86477
86478 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86479
86480         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86481         The workaround isn't strictly needed for POSIX conformance, and
86482         it's too much of a pain to configure and maintain.  We'll ask
86483         people to fix their kernels instead.
86484         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86485         (NANOSLEEP_BUG_WORKAROUND): Remove.
86486         (xnanosleep): Remove the workaround.
86487
86488 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86489
86490         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86491         Reported by Derek Price.
86492         (Include): Add "timespec.h".
86493
86494         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86495
86496 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86499         to detect nanosleep bug.
86500
86501 2005-03-01  Bruno Haible  <bruno@clisp.org>
86502
86503         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86504
86505 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86506
86507         * modules/gethrxtime: New file.
86508         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86509         (Depends-on): Add gethrxtime.
86510         (configure.ac): Add gl_XNANOSLEEP.
86511         (Makefile.am): Remove lib_SOURCES line.
86512
86513 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86514
86515         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86516         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86517
86518 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86519
86520         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86521         * lib/timespec.h (gettime): Return void, since it always
86522         succeeds now.  All uses changed.
86523         * lib/gettime.c (gettime): Likewise.
86524         [HAVE_NANOTIME]: Prefer nanotime.
86525         Assume gettimeofday succeeds, as POSIX requires.
86526         Assime time () succeeds, since other code already does.
86527         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86528         (timespec_subtract): Remove.
86529         (NANOSLEEP_BUG_WORKAROUND): New constant.
86530         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86531         things considerably.  Use it only on GNU/Linux hosts, since the
86532         workaround shouldn't be needed elsewhere.
86533
86534 2005-02-24  Bruno Haible  <bruno@clisp.org>
86535
86536         * modules/gettext (Files): Add m4/glibc2.m4.
86537
86538 2005-02-24  Bruno Haible  <bruno@clisp.org>
86539
86540         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86541         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86542         * m4/progtest.m4:
86543         Update from GNU gettext 0.14.2.
86544         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86545
86546 2005-02-24  Bruno Haible  <bruno@clisp.org>
86547
86548         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86549         * lib/config.charset: Update from GNU gettext 0.14.2.
86550
86551 2005-02-24  Bruno Haible  <bruno@clisp.org>
86552
86553         * lib/gettext.h: Update from GNU gettext 0.14.2.
86554
86555 2005-02-23  Simon Josefsson  <jas@extundo.com>
86556
86557         * m4/iconvme.m4: New file.
86558
86559 2005-02-23  Jim Meyering  <jim@meyering.net>
86560
86561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86562         change.
86563         Thanks to Bruno Haible for catching it.
86564
86565 2005-02-22  Simon Josefsson  <jas@extundo.com>
86566
86567         * modules/iconvme: New file.
86568
86569         * MODULES.html.sh: Add iconvme.
86570
86571 2005-02-22  Simon Josefsson  <jas@extundo.com>
86572
86573         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86574
86575 2005-02-22  Simon Josefsson  <jas@extundo.com>
86576
86577         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86578
86579 2005-02-22  Jim Meyering  <jim@meyering.net>
86580
86581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86582         s/ifndef/ifdef/.
86583
86584 2005-02-20  Neil Conway  <neilc@samurai.com>
86585
86586         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86587         returned by OSX/Darwin if the specified buffer is not large
86588         enough for the hostname.
86589
86590 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86591
86592         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86593         pass it to _help, otherwise the latter coredumps trying to
86594         dereference state.root_argp.
86595
86596 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86597
86598         * modules/chdir-long (Depends-on): Add memrchr.
86599         * modules/memrchr (Files): Add lib/memrchr.h.
86600         (Include): "memrchr.h".
86601
86602 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86603
86604         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86605
86606 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86607
86608         * lib/memrchr.h: New file.
86609         * lib/chdir-long.c: Include it.
86610         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86611         Don't bother including stddef.h.
86612
86613 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86614
86615         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86616         inclusion.
86617         Include <sys/types.h>, for dev_t.
86618         (ME_DUMMY, ME_REMOTE): Move from here....
86619         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86620         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86621         Dmitry V. Levin.
86622         Include mountlist.h first, to test the interface.
86623
86624 2005-01-29  Bruno Haible  <bruno@clisp.org>
86625
86626         * lib/progname.c (program_name): Initialize.
86627         Needed when linking statically on MacOS X.
86628
86629 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86630
86631         Sync from coreutils.
86632         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86633         (Depends-on): Add c-strtod.
86634         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86635
86636 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86637
86638         Sync from coreutils.
86639         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86640
86641         Remove files that are specific to coreutils.
86642         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86643
86644 2005-01-28  Bruno Haible  <bruno@clisp.org>
86645
86646         * modules/javacomp: New file.
86647         * MODULES.html.sh (Java): Add javacomp.
86648
86649 2005-01-28  Bruno Haible  <bruno@clisp.org>
86650
86651         * m4/javacomp.m4: New file, from GNU gettext.
86652
86653 2005-01-28  Bruno Haible  <bruno@clisp.org>
86654
86655         * lib/javacomp.sh.in: New file, from GNU gettext.
86656         * lib/javacomp.h: New file, from GNU gettext.
86657         * lib/javacomp.c: New file, from GNU gettext.
86658
86659 2005-01-26  Simon Josefsson  <jas@extundo.com>
86660
86661         * lib/gai_strerror.c: Use GPL in header.
86662
86663 2005-01-26  Bruno Haible  <bruno@clisp.org>
86664
86665         * modules/javaexec: New file.
86666         * MODULES.html.sh (Java): Add javaexec.
86667
86668 2005-01-26  Bruno Haible  <bruno@clisp.org>
86669
86670         * m4/javaexec.m4: New file, from GNU gettext.
86671
86672 2005-01-26  Bruno Haible  <bruno@clisp.org>
86673
86674         * lib/javaexec.sh.in: New file, from GNU gettext.
86675         * lib/javaexec.h: New file, from GNU gettext.
86676         * lib/javaexec.c: New file, from GNU gettext.
86677
86678 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86679
86680         * modules/lchown (Depends-on): Remove lchown.h
86681
86682 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86683
86684         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86685         must be defined if the header file was not found, in order
86686         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86687
86688 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86689
86690         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86691         initializers for struct pentry_state.
86692         (__argp_error): Check return value of __asprintf
86693         (__argp_failure): Translate error message
86694
86695         * lib/argp-parse.c: Removed braces around the expansion of N_()
86696
86697 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86698
86699         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86700         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86701         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86702         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86703         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86704         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86705         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86706         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86707         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86708         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86709         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86710         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86711         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86712         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86713         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86714         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86715         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86716         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86717         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86718         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86719         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86720         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86721         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86722         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86723         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86724         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86725         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86726         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86727         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86728         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86729         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86730         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86731         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86732         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86733         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86734         Use an all-permissive copyright notice, recommended by RMS.
86735
86736 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86737
86738         * modules/chdir-long (Depends-on): Remove mempcpy.
86739
86740 2005-01-21  Jim Meyering  <jim@meyering.net>
86741
86742         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86743         same value as for Solaris 9.
86744
86745         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86746         component length.  This included changing the parameter to be
86747         of type `char *' rather than `char const *'.
86748         * lib/chdir-long.h (chdir_long): Update prototype.
86749
86750         * lib/openat.c (fdopendir, fstatat): New functions.
86751         * lib/openat.h: Include headers required for use of DIR and struct
86752         stat.
86753         [AT_SYMLINK_NOFOLLOW]: Define.
86754         (fdopendir, fstatat): Add prototypes.
86755
86756 2005-01-21  Bruno Haible  <bruno@clisp.org>
86757
86758         * modules/classpath: New file.
86759         * MODULES.html.sh (Java): Add classpath.
86760
86761 2005-01-21  Bruno Haible  <bruno@clisp.org>
86762
86763         * lib/classpath.h: New file, from GNU gettext.
86764         * lib/classpath.c: New file, from GNU gettext.
86765
86766 2005-01-20  Simon Josefsson  <jas@extundo.com>
86767
86768         * modules/version-etc-fsf: New file.
86769
86770 2005-01-20  Simon Josefsson  <jas@extundo.com>
86771
86772         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86773         * lib/version-etc.c: Remove version_etc_copyright.
86774         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86775         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86776
86777 2005-01-20  Simon Josefsson  <jas@extundo.com>
86778
86779         * lib/base64.h (isbase64): Add.
86780
86781         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86782         using a unsigned prototype, don't inline.
86783         (base64_decode): Use it.
86784
86785 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86786
86787         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86788         it.
86789
86790 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86791
86792         * lib/save-cwd.c (save_cwd): Remove code to support the case
86793         where fchdir is missing or flaky.
86794
86795 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86796
86797         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86798
86799 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86800
86801         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86802         AC_LIBSOURCES now does this.
86803         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86804         with new ullong_max module.
86805
86806 2005-01-19  Bruno Haible  <bruno@clisp.org>
86807
86808         * modules/sh-quote: New file.
86809         * MODULES.html.sh (Executing programs): Add sh-quote.
86810
86811 2005-01-19  Bruno Haible  <bruno@clisp.org>
86812
86813         * lib/sh-quote.h: New file, from GNU gettext.
86814         * lib/sh-quote.c: New file, from GNU gettext.
86815
86816 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86817
86818         Merge from coreutils.
86819         * m4/ullong_max.m4: New file.
86820         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86821         (gl_MACROS): Assume localeconv exists.
86822
86823 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86824
86825         Merge changes from coreutils, as described below in several
86826         changelogs dated today.
86827
86828         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86829         (O_DIRECTORY): Remove; not needed here, since "." must be
86830         a directory.  All uses removed.
86831         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86832         universal on Suns, and we also need to test for IRIX.
86833         Revamp code to use 'if' rather than '#if'.
86834         Avoid unnecessary comparison of cwd->desc to 0.
86835
86836         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86837         for known valid error numbers rather than observed invalid ones.
86838
86839 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86840
86841         * modules/ullong_max: New file.
86842
86843         * modules/chdir-long, modules/openat: New files.
86844         * modules/save-cwd (Depends-on): Depend on chdir-long.
86845         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86846
86847 2005-01-18  Jim Meyering  <jim@meyering.net>
86848
86849         Merge from coreutils.
86850         * m4/chdir-long.m4, m4/openat.m4: New files.
86851         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86852         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86853         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86854         is sane and DOES follow symlinks.  Besides, testing 20 different
86855         systems found no broken chown implementations.
86856         Prompted by a change in rsync's copy of this macro.
86857         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86858
86859         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86860
86861         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86862         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86863         NULL-means-set-to-current-time semantics.
86864         Remove temporary file immediately, rather than waiting
86865         for configure's at-exit trap code to do it.
86866
86867 2005-01-18  Jim Meyering  <jim@meyering.net>
86868
86869         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86870
86871         * lib/utimens.c (futimens): Account for the fact that futimes
86872         can also fail with errno == ENOSYS or errno == ENOENT.
86873         Patch from Dmitry V. Levin.
86874
86875         Change the name of the robust chdir function from chdir to chdir_long.
86876         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86877         (restore_cwd): Use chdir_long, not chdir.
86878         * lib/chdir-long.c: Renamed from chdir.c.
86879         * lib/chdir-long.h: Renamed from chdir.h.
86880         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86881         Hurd.
86882
86883 2005-01-18  Bruno Haible  <bruno@clisp.org>
86884
86885         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86886         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86887         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86888         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86889         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86890         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86891         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86892         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86893         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86894         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86895         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86896         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86897         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86898         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86899         Use an all-permissive copyright notice, recommended by RMS.
86900
86901 2005-01-18  Bob Proulx  <bob@proulx.com>
86902
86903         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86904         simplify offsetof() macro construct to avoid compile failure with
86905         native HP-UX 11.0 ANSI C compiler.
86906
86907 2005-01-17  Bruno Haible  <bruno@clisp.org>
86908
86909         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86910         redundant because stpncpy.m4 takes care of it.
86911
86912 2005-01-17  Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86915
86916 2005-01-17  Bruno Haible  <bruno@clisp.org>
86917
86918         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86919         used.
86920
86921 2005-01-17  Bruno Haible  <bruno@clisp.org>
86922
86923         * lib/fwriteerror.h (fwriteerror): Change specification to include
86924         fclose.
86925         * lib/fwriteerror.c: Include <stdbool.h>.
86926         (fwriteerror): At the end, close the file stream. Record whether
86927         stdout was already closed.
86928
86929 2005-01-17  Bruno Haible  <bruno@clisp.org>
86930
86931         * lib/execute.c (environ): Declare if needed.
86932         * lib/pipe.c (environ): Likewise.
86933         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86934
86935 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86936
86937         * modules/argp: Depend on vsnprintf
86938
86939 2005-01-10  Jim Meyering  <jim@meyering.net>
86940
86941         * modules/closeout (Depends-on): Add atexit.
86942
86943 2005-01-06  Bruno Haible  <bruno@clisp.org>
86944
86945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86946
86947 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86950         definitions to be after all include files, to avoid collisions.
86951         Problem reported by Bob Proulx.
86952
86953 2005-01-04  Jim Meyering  <jim@meyering.net>
86954
86955         Changes imported from coreutils.
86956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86957         as the mkstemp template, use a temporary directory and an
86958         8.3-friendly template to avoid trouble on systems like DJGPP.
86959         Reported by Juan M. Guerrero via Stepan Kasal.
86960         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86961         close. Remove the temporary directory right away, rather than waiting
86962         for configure's at-exit trap code to do it.
86963         Suggestion from Stepan Kasal.
86964
86965 2005-01-01  Simon Josefsson  <jas@extundo.com>
86966
86967         * gnulib-tool: Print #include directives when --import'ing.
86968
86969 2004-12-28  Simon Josefsson  <jas@extundo.com>
86970
86971         * tests/test-base64.c: Include required header files.  Remove
86972         unused variables.
86973
86974 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86975
86976         * modules/error (Depends-on): Remove gettext.
86977
86978 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86981         not needed.  This removes a dependency on the gettext module.
86982         [defined _LIBC]: Do not include <libintl.h>; not needed.
86983
86984 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86985
86986         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86987         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86988
86989 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86990
86991         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86992         HAVE_DECL_STRTOLD.
86993
86994 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86995
86996         * modules/getdate (Depends-on): Remove alloca-opt.
86997
86998 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86999
87000         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87001
87002 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87003
87004         * lib/argp-parse.c: Include <stddef.h>.
87005         (alignof, alignto): New macros.
87006         (parser_init): Don't assume that void * is aligned sufficiently
87007         for struct option.
87008
87009         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87010         need to extend the stack.
87011         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87012         large.
87013
87014 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87015
87016         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87017
87018 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87019
87020         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87021         (2004-10-24) change.  Apparently this was a false alarm.
87022
87023         * modules/getdate: Depend on alloca-opt, not alloca.
87024
87025 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87026
87027         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87028         Remove now-obsolete comment about AIX.
87029         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87030         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87031         (YYMAXDEPTH): New macro.
87032
87033 2004-12-18  Simon Josefsson  <jas@extundo.com>
87034
87035         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87036
87037 2004-12-18  Bruno Haible  <bruno@clisp.org>
87038
87039         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87040
87041 2004-12-18  Bruno Haible  <bruno@clisp.org>
87042
87043         * lib/fatal-signal.c (fatal_signals): Make non-const.
87044         (init_fatal_signals): New function.
87045         (uninstall_handlers, install_handlers): Ignore signals that were set to
87046         SIG_IGN.
87047         (at_fatal_signal): Call init_fatal_signals.
87048         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87049         SIG_IGN.
87050         Reported by Paul Eggert.
87051
87052 2004-12-18  Bruno Haible  <bruno@clisp.org>
87053
87054         * doc/alloca.texi: New file.
87055         * doc/alloca-opt.texi: New file.
87056
87057 2004-12-17  Jim Meyering  <jim@meyering.net>
87058
87059         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87060         Otherwise, install-sh could exit with improper exit status when
87061         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87062
87063 2004-12-16  Simon Josefsson  <jas@extundo.com>
87064
87065         * tests/test-base64.c: Add license.
87066
87067 2004-12-15  Stepan Kasal  <address@hidden>
87068
87069         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87070
87071 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87072
87073         * modules/getcwd (Files): Add m4/d-ino.m4.
87074         Suggested by Mark D. Baushke.
87075
87076 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87077
87078         * lib/getdate.y (textint): New member "negative".
87079         (time_zone_hhmm): New function.
87080         Expect 14 shift-reduce conflicts, not 13.
87081         (o_colon_minutes): New rule.
87082         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87083         (yylex): Set the "negative" member of signed numbers.
87084
87085 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87086
87087         * doc/getdate.texi (Time of day items, Time zone items):
87088         Describe new formats +00:00, UTC+00:00.
87089
87090 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87091
87092         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87093         spurious "-l"s.  Problem reported by Stepan Kasal.
87094
87095 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87096
87097         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87098         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87099
87100 2004-12-04  Simon Josefsson  <jas@extundo.com>
87101
87102         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87103         Vandoorselaere <yoann@prelude-ids.org>.
87104
87105 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87106
87107         Changes imported from coreutils.
87108         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87109         exist.
87110         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87111
87112 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87113
87114         Changes imported from coreutils.
87115         * lib/hard-locale.c: Assume <locale.h> exists.
87116         Include "strdup.h".
87117         (GLIBC_VERSION): New macro.
87118         (hard_locale): Assume setlocale exists.
87119         Rewrite to avoid #ifdef.
87120         Use strdup rather than malloc + strcpy.
87121         * lib/human.c: Assume <locale.h> exists.
87122         (human_readable): Assume localeconv exists.
87123
87124 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87125
87126         * modules/hard-locale (Depends-on): Add strdup.
87127
87128 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87129
87130         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87131         convert T2, not T.  (Imported from libc.)
87132
87133 2004-11-30  Simon Josefsson  <jas@extundo.com>
87134
87135         * modules/restrict (License): Change to LGPL.
87136
87137 2004-11-30  Simon Josefsson  <jas@extundo.com>
87138
87139         * m4/restrict.m4: Add copyright and copying conditions.
87140
87141 2004-11-30  Simon Josefsson  <jas@extundo.com>
87142
87143         * m4/base64.m4: New file.
87144
87145 2004-11-30  Simon Josefsson  <jas@extundo.com>
87146
87147         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87148         base64.
87149
87150         * tests/test-base64.c: New file.
87151
87152         * modules/base64: New file.
87153
87154 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87155
87156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87157         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87158
87159         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87160
87161 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87162
87163         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87164         (__getcwd.c): Don't restore errno; glibc doesn't.
87165         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87166         first, falling back to our code only if its results look suspicious.
87167         Ensure that the resulting buffer is only as large as necessary.
87168
87169         * lib/readutmp.c: Include readutmp.h first.
87170         Include <errno.h>, since readutmp.h no longer does that.
87171         * lib/readutmp.h: Don't include <errno.h>,
87172         <sys/param.h>, <time.h>; not needed to establish interface.
87173         (errno): Remove decl.
87174         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87175         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87176         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87177
87178 2004-11-28  Simon Josefsson  <jas@extundo.com>
87179
87180         * lib/base64.h, base64.c: New file.
87181
87182 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87185
87186 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87187
87188         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87189         (Depends-on): Remove pathmax, same.  Add mempcpy.
87190         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87191         (Makefile.am): Append getcwd.h to lib_SOURCES.
87192         (Include): Add getcwd.h.
87193         (Maintainer): Change from Jim Meyering to "all, glibc",
87194         since getdate now uses intended-for-glibc code.
87195         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87196         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87197
87198 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87199
87200         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87201         HP's ANSI C compiler.
87202         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87203         Declaring int functions causes warnings on some modern systems and
87204         shouldn't be needed to compile on ancient ones.
87205         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87206         defined.
87207
87208         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87209         with the following changes.
87210         (__set_errno): Parenthesize properly.
87211         Include <stdbool.h>.
87212         (MIN, MAX, MATCHING_INO): New macros.
87213         (__getcwd): Define with prototype, not K&R form.
87214         Use heuristics to allocate default buffer on stack if possible.
87215         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87216         behavior, and to avoid the PATH_MAX limit when computing
87217         ../../../../...
87218         Use MATCHING_INO to compare inode number to file.
87219         Check for arithmetic overflow in size calculations.
87220         Fix bug in reallocation of dot array that caused getcwd to fail
87221         on directories nested deeper than 75.
87222         Be more careful about saving errno on error.
87223         Do not use realloc; use only free+malloc, as this is a bit
87224         more flexible and avoids a needless copy operation.
87225         Do not inspect st_dev and st_ino for symbolic links; POSIX
87226         doesn't specify the latter.
87227         Check for closedir errors.
87228         Avoid needless casts.
87229         Use "#ifdef weak_alias" around weak_alias, to be like other
87230         glibc code.
87231         The following changes to getcwd.c have effect only when used in
87232         gnulib; they have no effect inside glibc proper.
87233         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87234         as alloca isn't used.
87235         (alloca, __alloca): Likewise.
87236         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87237         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87238         unconditionally, as gnulib assumes C89 or better.
87239         Do not include <sys/param.h>.
87240         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87241         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87242         better.
87243         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87244         Include <dirent.h> in a way that is compatible with modern Autoconf.
87245         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87246         New macros, if not already defined.
87247         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87248         Use "_LIBC", not "defined _LIBC", for consistency.
87249         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87250         a mempcpy module.
87251         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87252         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87253         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87254         credit only to Jim Meyering and adjust the copyright dates.
87255         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87256         <stdlib.h>, <unistd.h>, "pathmax.h".
87257         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87258         (INITIAL_BUFFER_SIZE): Remove.
87259         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87260
87261 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87262
87263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87264         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87265         Use the _ONCE methods, for efficiency.
87266         Check for fcntl.h.  In test program, include <errno.h>
87267         and <fcntl.h> if available.  Remove old K&R cruft from
87268         test program.  Check for common errors in GNU/Linux,
87269         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87270         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87271         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87272         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87273         name accordingly.
87274         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87275         accommodate new getcwd.c.
87276         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87277         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87278         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87279         that's all we need now.
87280
87281 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87282
87283         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87284         argp-parse.c depends on getopt internals, that means we should
87285         always use our getopt, to be on the safe side.
87286         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87287         order not to spoil the result of an eventual previous invocation
87288         of gl_GETOPT_SUBSTITUTE.
87289
87290 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87291
87292         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87293         redefinition warnings. To avoid them, include the defines
87294         in `#if !defined __need_getopt ... #endif'. The only place
87295         where __getopt_argv_const is used is in definitions
87296         of getopt_long and getopt_long_only below, which are as well
87297         protected by `#ifndef __need_getopt'.
87298         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87299         __need_getopt after including <stdio.h> and <unistd.h> These
87300         headers might have defined it.
87301
87302 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87303
87304         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87305
87306 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87307
87308         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87309         (futimens): New function, which uses futimes if available.
87310         (futimens, utimens): Support timespec==NULL, with same semantics
87311         as utime and utimens.
87312         * lib/utimens.h (futimens): New decl.
87313
87314 2004-11-23  Jim Meyering  <jim@meyering.net>
87315
87316         * lib/getopt_.h: Remove trailing blanks.
87317
87318 2004-11-23  Jim Meyering  <jim@meyering.net>
87319
87320         * lib/__fpending.c: Add comment.
87321
87322 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87323
87324         * modules/canonicalize (Depends-on): Add xreadlink.
87325         Problem reported by James Youngman.
87326
87327 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87328
87329         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87330         New macros.
87331         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87332         optopt): Use them instead of invoking ## directly; otherwise, the
87333         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87334
87335 2004-11-19  Bruno Haible  <bruno@clisp.org>
87336
87337         * lib/strtok_r.c: Move comments from here...
87338         * lib/strtok_r.h: ... to here.
87339
87340 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87341
87342         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87343         implementations that mishandle size_t overflow.
87344
87345 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87346
87347         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87348         might fail.  Problem reported by Yoann Vandoorselaere.
87349         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87350         implementations that mishandle size_t overflow.
87351
87352 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87353
87354         * modules/canon-host (Depends-on): Add strdup.
87355
87356 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87357
87358         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87359
87360 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87361
87362         * lib/canon-host.c: Include "strdup.h".
87363         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87364         Use strdup instead of malloc/strcpy to duplicate strings.
87365
87366         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87367         (human_space_before_unit): New constant.
87368         * lib/human.c (human_readable): Support it.
87369
87370         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87371         (xgetcwd): Set errno correctly when failing.
87372         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87373         the failure is actually due to a PATH_MAX problem.
87374
87375         Further getopt changes to make it more likely that glibc will
87376         buy the changes back.
87377         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87378         (getopt): Use it, so to preserve glibc semantic
87379         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87380         when compiling for libc.
87381         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87382         (getopt_long, getopt_long_only): Use it.
87383
87384         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87385         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87386         (getopt): Argv is now char * const *, as per standard.
87387         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87388         not char *__getopt_argv_const *.
87389         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87390         _getopt_long_only_r): Likewise.
87391         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87392         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87393         _getopt_long_r, _getopt_long_only_r): Likewise.
87394         * lib/getopt_.h (__getopt_argv_const): Remove.
87395         (getopt): Argv is now char * const *, as per standard.
87396
87397         * lib/getdate.y (tORDINAL): New token.
87398         (day, relunit): Allow it for relative times.
87399         (relative_time_table): Use tORDINAL for ordinals.
87400
87401 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87402
87403         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87404         Document that "second" isn't allowed as an ordinal number.
87405
87406 2004-11-16  Jim Meyering  <jim@meyering.net>
87407
87408         * modules/closeout (Depends-on): Add fpending.
87409
87410 2004-11-15  Jim Meyering  <jim@meyering.net>
87411
87412         * lib/closeout.c: Include "__fpending.h" once again.
87413         Include <stdbool.h>.
87414         (close_stdout): Don't fail just because stdout was closed initially,
87415         since some programs don't write to stdout in the normal course of
87416         operation (other than --version and --help), and we don't want this
87417         function to make e.g. `touch file >&-' fail.
87418         But do fail if it was closed and someone has tried to write to it.
87419         E.g., `printf foo >&-' must fail.
87420
87421 2004-11-13  Jim Meyering  <jim@meyering.net>
87422
87423         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87424
87425 2004-11-12  Simon Josefsson  <jas@extundo.com>
87426
87427         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87428         small doc fix is still pending.
87429
87430 2004-11-11  Simon Josefsson  <jas@extundo.com>
87431
87432         * modules/strtok_r: New file.
87433
87434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87435         strtok_r.
87436
87437 2004-11-11  Simon Josefsson  <jas@extundo.com>
87438
87439         * m4/strtok_r.m4: New file.
87440
87441         * m4/getopt.m4: Replace opterr.
87442
87443 2004-11-11  Simon Josefsson  <jas@extundo.com>
87444
87445         * lib/strtok_r.h, strtok_r.c: New file.
87446
87447 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87450         of replacing opterr, getopt, etc.  This should handle the
87451         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87452
87453 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87454
87455         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87456         we can stop lying to compilers about the constness of argv when we
87457         are compiled outside glibc.
87458         (getopt, getopt_long, getopt_long_only): Use it.
87459         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87460         _getopt_internal, getopt): Likewise.
87461         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87462         _getopt_long_only_r): Likewise.
87463         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87464         _getopt_long_r, _getopt_long_only_r): Likewise.
87465
87466         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87467         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87468         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87469         the other external symbols.
87470         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87471         declaration, since the above renaming now works around collisions.
87472
87473 2004-11-11  Jim Meyering  <jim@meyering.net>
87474
87475         * lib/linebreak.c: Remove trailing blanks.
87476         * lib/alloca_.h: Likewise.
87477         * lib/acosl.c: Likewise.
87478         * lib/euidaccess.c: Likewise.
87479         * lib/allocsa.h: Likewise.
87480
87481 2004-11-10  Simon Josefsson  <jas@extundo.com>
87482
87483         * m4/getaddrinfo.m4: New file.
87484
87485 2004-11-10  Simon Josefsson  <jas@extundo.com>
87486
87487         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87488
87489 2004-11-10  Simon Josefsson  <jas@extundo.com>
87490
87491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87492         getaddrinfo.
87493
87494         * modules/getaddrinfo: New file.
87495
87496 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87497
87498         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87499
87500 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87501
87502         * lib/mktime.c (SHR): New macro, which is a portable
87503         substitute for >> that should work even on Crays.
87504         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87505         Problem reported by Mark D. Baushke in
87506         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87507         * lib/getdate.y (SHR): Likewise.
87508         (tm_diff): Use it.
87509         * lib/strftime.c (SHR): Likewise.
87510         (tm_diff): Use it.
87511         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87512         quote_these_too, so that right shifts are well defined.  All uses
87513         changed.
87514
87515 2004-11-10  Jim Meyering  <jim@meyering.net>
87516
87517         Ensure that no close failure goes unreported.
87518         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87519         return early when it seems there's nothing to flush.
87520         Don't include __fpending.h.
87521
87522 2004-11-10  Jim Meyering  <jim@meyering.net>
87523
87524         * modules/closeout (Depends-on): Remove fpending.
87525
87526 2004-11-10  Jim Meyering  <jim@meyering.net>
87527
87528         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87529
87530 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87531
87532         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87533         gl_FUNC_STRFTIME.
87534         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87535         and AC_REQUIRE when possible, to avoid duplicate checks.
87536         Check for <wchar.h>.
87537
87538 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87539
87540         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87541
87542 2004-11-09  Bruno Haible  <bruno@clisp.org>
87543
87544         * m4/sockpfaf.m4: New file.
87545
87546 2004-11-05  Bruno Haible  <bruno@clisp.org>
87547
87548         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87549         Reported by Mark D. Baushke <mdb@cvshome.org>.
87550
87551 2004-11-04  Bruno Haible  <bruno@clisp.org>
87552
87553         2004-09-11  Bruno Haible  <bruno@clisp.org>
87554                 * allocsa.valgrind: New file.
87555         2004-02-06  Bruno Haible  <bruno@clisp.org>
87556                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87557                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87558                 Reported by Christopher Seip <chris.seip@hp.com>.
87559
87560 2004-11-04  Bruno Haible  <bruno@clisp.org>
87561
87562         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87563         (Makefile.am): Distribute it.
87564
87565 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87566
87567         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87568         with errno == ERANGE if the buffer is too small.
87569         Problem reported by Mark D. Baushke.
87570
87571 2004-11-03  Albert Chin  <china@thewrittenword.com>
87572             Paul Eggert  <eggert@cs.ucla.edu>
87573
87574         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87575         equivalent, substitute $ac_type for equivalent type rather than
87576         blindly using uint32_t *always* which won't work if uint32_t is not
87577         available.  Define _UINT32_T to work around typedef of uint32_t if
87578         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87579         2.5.1.
87580
87581 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87582
87583         * m4/jm-macros.m4: Sync from coreutils.
87584         (gl_MACROS): Check for mbrlen, for pathchk.
87585         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87586
87587 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87588
87589         * lib/xreadlink.c (MAXSIZE): New macro.
87590         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87591         size does not exceed MAXSIZE.  Avoid cast.
87592         As suggested by Mark D. Baushke in
87593         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87594         if readlink fails with buffer size just under MAXSIZE, try again
87595         with MAXSIZE.
87596
87597 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87598
87599         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87600
87601 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87602         and  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87605         (get_date): Overparenthesize to avoid GCC warning.
87606
87607 2004-11-02  Bruno Haible  <bruno@clisp.org>
87608
87609         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87610         returns void.
87611
87612 2004-11-02  Bruno Haible  <bruno@clisp.org>
87613
87614         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87615         function returns void.
87616
87617 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87618
87619         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87620         fflush_unlocked, flockfile, funlockfile, funlockfile,
87621         fputs_unlocked, putc_unlocked.
87622
87623 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87624
87625         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87626         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87627         already declared.
87628
87629 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87630
87631         * modules/getdate (Files): Add doc/getdate.texi.
87632         (Depends-on): Add setenv, xalloc.
87633
87634 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87635
87636         * lib/getdate.y: Add support for TZ="foo" within a date string.
87637         Fix some bugs near time_t boundaries.  Reject dates with
87638         out-of-range components, e.g., "Sept 31".
87639         Include <stdlib.h>, "setenv.h", "xalloc.h".
87640         (ISDIGIT_LOCALE): Remove; unused.
87641         Note that the TZ and time functions used here are not reentrant.
87642         (mktime_ok, get_tz): New functions.
87643         (TZBUFSIZE): New constant.
87644         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87645         This requires that we sometimes generate our own TZ="XXX..." setting.
87646
87647 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87648
87649         * doc/getdate.texi: New file, from coreutils with modifications for
87650         the new TZ parsing.
87651
87652 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87653
87654         * lib/mktime.c (not_equal_tm): Remove redundant check.
87655
87656 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87657
87658         * modules/regex (lib_SOURCES): Add regex.c.
87659         Reported by James Youngman in
87660         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87661
87662 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87663
87664         * lib/getdate.y: Use Bison 1.875 features, and some minor
87665         code cleanups.  This change does not affect semantics.
87666         Don't include <stdlib.h>; no longer needed.
87667         Don't include unlocked-io.h; only the "#if TEST" code uses
87668         stdio, and performance isn't crucial there.
87669         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87670         Bison 1.875 features as described below.
87671         All uses of "PC." replaced by "pc->".
87672         (YYSTYPE): Add a forward declaration.
87673         (yylex, yyerror): Use full prototypes in forward decls.
87674         Use "%pure-parser" rather than obsolescent "%pure_parser".
87675         Use %parse-param and %lex-param instead of obsolescent
87676         YYPARSE_PARAM and YYLEX_PARAM.
87677         (meridian_table, month_and_day_table, time_units_table,
87678         relative_time_table, time_zone_table, military_table,
87679         lookup_zone, lookup_word, get_date):
87680         Use NULL instead of 0 where appropriate.
87681         (to_hour): Avoid abort (), to avoid a dependency on
87682         stdlib.h.
87683         (yyerror, yylex): Now accepts parser_control * arg.
87684         (main) [TEST]: Use '\0' rather than 0 for char.
87685
87686 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87687
87688         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87689
87690 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87691
87692         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87693         It's now the caller's responsibility to handle the case where
87694         !HAVE_GETPAGESIZE && !defined getpagesize.
87695
87696         * lib/mktime.c (leapyear): Arg is long int, not int.
87697
87698 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87699
87700         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87701
87702 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87703
87704         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87705         missing.  Problem reported by James Youngman.
87706
87707 2004-10-16  Simon Josefsson  <jas@extundo.com>
87708
87709         * gnulib-tool: Fix comments.  Fix parse problem.
87710         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87711
87712 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87713
87714         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87715         implementation of getopt_long.  Problem reported by Alexander Taler in:
87716         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87717
87718 2004-10-15  Bruno Haible  <bruno@clisp.org>
87719
87720         * gnulib-tool: Untabify. Initialize supplied_libname.
87721         (func_usage): More homogenous output.
87722         (func_modules_transitive_closure, func_modules_to_filelist,
87723         func_emit_lib_Makefile_am): New functions.
87724         (func_import): New function, extracted from big case statement. Use
87725         func_get_license, func_modules_transitive_closure,
87726         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87727         opt_lgpl. Don't use test -a, as it's not portable.
87728         (func_create_testdir): Use func_modules_transitive_closure,
87729         func_modules_to_filelist, func_emit_lib_Makefile_am.
87730
87731 2004-10-15  Bruno Haible  <bruno@clisp.org>
87732
87733         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87734
87735 2004-10-15  Bruno Haible  <bruno@clisp.org>
87736
87737         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87738         the portions belonging to each module.
87739         Suggested by Derek Robert Price <derek@ximbiot.com>.
87740
87741 2004-10-12  Simon Josefsson  <jas@extundo.com>
87742
87743         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87744         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87745         to real functions.
87746
87747 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87748
87749         * modules/vsnprintf: New file.
87750
87751 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87752
87753         * m4/vsnprintf.m4: New file.
87754
87755 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87756
87757         * lib/vsnprintf.h: New file.
87758         * lib/vsnprintf.c: New file.
87759
87760 2004-10-11  Bruno Haible  <bruno@clisp.org>
87761
87762         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87763         vsnprintf.
87764
87765 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87766
87767         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87768
87769 2004-10-07  Bruno Haible  <bruno@clisp.org>
87770
87771         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87772         fits into the provided buffer.
87773
87774 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87775
87776         * lib/diacrit.c, diacrit.h: Add GPL notice.
87777
87778         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87779         notice.
87780         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87781         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87782         This avoids a potential constant-folding bug.
87783
87784 2004-10-05  Bruno Haible  <bruno@clisp.org>
87785
87786         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87787         for the declaration of strsep.
87788
87789 2004-10-05  Bruno Haible  <bruno@clisp.org>
87790
87791         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87792
87793 2004-10-04  Simon Josefsson  <jas@extundo.com>
87794
87795         * modules/memmem: New file.
87796         * tests/test-memmem.c: New file.
87797         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87798
87799 2004-10-04  Simon Josefsson  <jas@extundo.com>
87800
87801         * m4/memmem.m4: New file.
87802
87803 2004-10-04  Simon Josefsson  <jas@extundo.com>
87804
87805         * lib/memmem.h: New file.
87806         * lib/memmem.c: New file, taken from glibc.
87807
87808 2004-10-04  Simon Josefsson  <jas@extundo.com>
87809
87810         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87811         '#ifdef USE_UNLOCKED_IO'.
87812
87813 2004-10-04  Simon Josefsson  <jas@extundo.com>
87814
87815         * config/srclist.txt: Add memmem from glibc.
87816
87817 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87818
87819         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87820
87821         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87822         modules/exclude, modules/getdate, modules/getline,
87823         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87824         modules/getusershell, modules/linebuffer, modules/md5,
87825         modules/mountlist, modules/posixtm, modules/readtokens,
87826         modules/readutmp, modules/regex, modules/sha1,
87827         modules/version-etc, modules/yesno:
87828         Remove dependency on unlocked-io.
87829
87830 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87831
87832         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87833
87834         * m4/unlocked-io.m4: Add copyright notice.
87835         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87836
87837 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87838
87839         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87840         * lib/xmalloc.c (xmemdup): Likewise.
87841         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87842         XFREE): Remove these long-obsolescent macros.
87843         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87844         * lib/xstrdup.c: Remove.
87845
87846         * lib/regex.c (re_comp): Cast gettext return value to char *,
87847         Problem reported by Martin Neitzel via Mark D. Baushke.
87848
87849 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87850
87851         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87852         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87853         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87854         regex.c, sha1.c, version-etc.c, yesno.c:
87855         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87856         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87857         the includer's responsibility.
87858
87859         Sync from coreutils.
87860
87861         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87862         points to the start of a string, as the C Standard says the
87863         resulting behavior is undefined.
87864
87865         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87866         simple -> simple_backups, numbered_existing ->
87867         numbered_existing_backups, numbered -> numbered_backups
87868         to avoid shadowing problems.  All uses changed.
87869         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87870         * lib/backupfile.c (check_extension, numbered_backup):
87871         Rename locals to avoid shadowing 'basename'.
87872         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87873         once.
87874
87875         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87876         * lib/.cvsignore: Add getopt.h.
87877
87878 2004-10-04  Bruno Haible  <bruno@clisp.org>
87879
87880         * modules/README: New file.
87881         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87882         not a module.
87883
87884 2004-10-02  Jim Meyering  <jim@meyering.net>
87885
87886         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87887
87888 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87889
87890         * modules/strsep: New file.
87891
87892 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87893
87894         * m4/strsep.m4: New file.
87895
87896 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87897
87898         * lib/strsep.h: New file.
87899         * lib/strsep.c: New file.
87900
87901 2004-10-01  Simon Josefsson  <jas@extundo.com>
87902
87903         * lib/snprintf.c (snprintf): Handle size==0.
87904
87905 2004-10-01  Simon Josefsson  <jas@extundo.com>
87906             Bruno Haible  <bruno@clisp.org>
87907
87908         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87909         (snprintf): Declare 'args'.
87910
87911 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87912
87913         * lib/snprintf.c: Remove comments as to why each header is needed.
87914
87915 2004-10-01  Bruno Haible  <bruno@clisp.org>
87916
87917         * MODULES.html.sh: Add strsep.
87918
87919 2004-09-30  Simon Josefsson  <jas@extundo.com>
87920
87921         * modules/snprintf: New file.
87922
87923 2004-09-30  Simon Josefsson  <jas@extundo.com>
87924
87925         * m4/snprintf.m4: New file.
87926
87927 2004-09-30  Simon Josefsson  <jas@extundo.com>
87928
87929         * lib/snprintf.h, lib/snprintf.c: New files.
87930
87931 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87932
87933         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87934         (hol_entry_help): Never translate an empty string.
87935         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87936         * lib/argp.h (OPTION_NO_TRANS): New option.
87937
87938 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87939
87940         * modules/argp (Maintainer): Replace Simon Josefsson
87941         by Sergey Poznyakoff.
87942
87943 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87944
87945         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87946         changes merged back into glibc.
87947
87948 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87949
87950         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87951
87952 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87953
87954         * lib/xvasprintf.c: Include xalloc.h.
87955         (xvasprintf): Use xalloc_die, not xmalloc_die.
87956
87957 2004-09-29  Bruno Haible  <bruno@clisp.org>
87958
87959         * modules/alloca-opt: New file, derived from modules/alloca.
87960         * modules/allocsa: Depend on alloca-opt instead of alloca.
87961         * modules/setenv: Likewise.
87962         * modules/vasnprintf: Likewise.
87963         * MODULES.html.sh: Add alloca-opt.
87964
87965 2004-09-28  Simon Josefsson  <jas@extundo.com>
87966
87967         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87968         LGPL, and to replace license template from GPL to LGPL.
87969
87970 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87971
87972         * modules/dummy: Change license to LGPL.
87973
87974 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87975
87976         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87977
87978 2004-09-24  Simon Josefsson  <jas@extundo.com>
87979
87980         * modules/minmax (License): Change from GPL to LGPL.
87981
87982 2004-09-23  Simon Josefsson  <jas@extundo.com>
87983
87984         * gnulib-tool (--import): Typo.
87985
87986 2004-09-23  Simon Josefsson  <jas@extundo.com>
87987
87988         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87989
87990 2004-09-22  Bruno Haible  <bruno@clisp.org>
87991
87992         * modules/*: Add 'License' field.
87993         * gnulib-tool: Accept --extract-license option.
87994         (func_get_license): New function.
87995
87996 2004-09-21  Bruno Haible  <bruno@clisp.org>
87997
87998         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87999         Reported by Simon Josefsson.
88000
88001 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88002
88003         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88004         gl_AC_TYPE_LONG_LONG.
88005
88006 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88007
88008         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88009
88010 2004-09-18  Simon Josefsson  <jas@extundo.com>
88011         and  Paul Eggert  <eggert@cs.ucla.edu>
88012
88013         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88014         calls with autoreconf.  Define GL_LIB.
88015
88016 2004-09-14  Karl Berry  <karl@gnu.org>
88017
88018         * config/srclist.txt: unsync setenv.c, sigh.
88019
88020 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88021
88022         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88023         Problem reported by Bruno Haible in:
88024         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88025
88026 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88027
88028         * config/srclist.txt: Comment out argp-pvh.c.
88029
88030 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88031
88032         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88033         in case some system header has #define'd it.  Problem reported by
88034         Soeren D. Schulze in
88035         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88036
88037 2004-09-09  Karl Berry  <karl@gnu.org>
88038
88039         * regex.[ch]: delete from the root.  These were supposed to be
88040                 synced with emacs cvs, but this has not happened for about
88041                 a year, and anyway nothing else uses emacs regex.[ch].
88042                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88043                 lib/regex[.ch] is untouched.
88044
88045 2004-09-09  Bruno Haible  <bruno@clisp.org>
88046
88047         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88048
88049 2004-09-09  Bruno Haible  <bruno@clisp.org>
88050
88051         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88052         modifications.
88053         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88054
88055 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88056
88057         * modules/xvasprintf: New file.
88058         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88059
88060 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88061
88062         * lib/xvasprintf.h: New file.
88063         * lib/xvasprintf.c: New file.
88064         * lib/xasprintf.c: New file.
88065
88066 2004-09-08  Bruno Haible  <bruno@clisp.org>
88067
88068         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88069
88070 2004-09-08  Bruno Haible  <bruno@clisp.org>
88071
88072         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88073         length is > INT_MAX.
88074         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88075         more.
88076
88077 2004-09-08  Bruno Haible  <bruno@clisp.org>
88078
88079         * lib/stdint_.h: New file, taken from GNU clisp.
88080
88081 2004-09-08  Bruno Haible  <bruno@clisp.org>
88082             Oskar Liljeblad  <oskar@osk.mine.nu>
88083
88084         * modules/stdint: New file.
88085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88086
88087 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88088
88089         Import from coreutils.
88090         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88091         strings on unbounded length.  alloca's performance benefits aren't
88092         that important here.
88093         (V_STRDUP): Remove.
88094         (parse_with_separator): New function, with most of the internals
88095         of the old parse_user_spec.  Allow user to omit both user and group,
88096         for compatibility with FreeBSD.
88097         Clone only the user name, not the entire spec.
88098         Do not set *uid, *gid unless entirely successful.
88099         Avoid memory leak in some failing cases.
88100         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88101         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88102         (parse_user_spec): Rewrite to use parse_with_separator.
88103
88104 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88105
88106         * modules/userspec: Don't depend on alloca.
88107
88108 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88109
88110         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88111
88112 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88113
88114         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88115         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88116         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88117
88118 2004-08-16  Simon Josefsson  <jas@extundo.com>
88119
88120         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88121         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88122         Add --dry-run for --import.
88123         Let user provided command line parameters override configure.ac
88124         settings.
88125
88126 2004-08-12  Simon Josefsson  <jas@extundo.com>
88127
88128         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88129         as discussed with Paul Eggert in threads rooted at
88130         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88131         and
88132         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88133         Before, the test was empty, and relied on ELIDE_CODE in source
88134         code.)
88135         (gl_PREREQ_GETOPT): New macro.
88136         (gl_GETOPT): Use them.
88137
88138 2004-08-12  Simon Josefsson  <jas@extundo.com>
88139
88140         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88141         * lib/getopt_.h: Renamed from getopt.h.
88142
88143 2004-08-12  Simon Josefsson  <jas@extundo.com>
88144
88145         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88146         Change default library name from libfoo to libgnu.
88147         Now, if you have a configure.ac that says:
88148                 gl_SOURCE_BASE(gl)
88149                 gl_M4_BASE(gl/m4)
88150                 gl_MODULES(error getopt etcetera)
88151                 gl_INIT
88152         you can import all you need by running:
88153                 ../gnulib/gnulib-tool --import
88154
88155         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88156         (Makefile.am): Rewrite, use logic from argz.
88157         (Include): Use <getopt.h> instead of "getopt.h".
88158
88159 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88160
88161         * modules/argp (Files): Add m4/unlocked-io.m4.
88162         (Depends-on): Add extensions.
88163
88164 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88165
88166         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88167         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88168         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88169         Check for program_invocation_name, program_invocation_short_name,
88170         flockfile, funlockfile, features.h, _getopt_long_only_r.
88171
88172 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88173
88174         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88175         its complicated substitute.
88176         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88177         and program_invocation_name.
88178         (__argp_basename) [!_LIBC]: Remove; the only use was
88179         replaced by its body.
88180         (__argp_short_program_name): Change condition from
88181         !defined __argp_short_program_name to
88182         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88183         to match argp-namefrob.h.
88184         (__argp_failure): Don't assume strerror_r returns char *.
88185         * lib/argp-parse.c (N_): Define unconditionally.
88186         (argp_default_options): Fill out initializers with 0 to avoid
88187         gcc warnings.
88188
88189 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88190
88191         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88192         getopt1.c.
88193
88194 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88195
88196         Merge from coreutils.
88197
88198         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88199
88200         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88201         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88202
88203 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88204
88205         Merge from coreutils.
88206
88207         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88208         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88209         for Reliant Unix 5.43.
88210
88211         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88212         (union fooround): Use uintmax_t, not long int.
88213         The rest is a merge from libc:
88214         [defined _LIBC]: Include <shlib-compat.h>.
88215         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88216
88217         * lib/settime.c (settime): Recode to avoid warning with
88218         Sun Forte C 6U2.
88219
88220         * lib/strverscmp.c: Convert to UTF-8.
88221
88222 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88223
88224         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88225         m4/uintmax_t.m4.
88226
88227 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88228
88229         * modules/xalloc-die: New file.
88230         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88231
88232         * modules/md5 (Files): Add m4/uint32_t.m4.
88233         * modules/sha1: Renamed from modules/sha.
88234         (Files):
88235         Rename lib/sha.h to lib/sha1.h.
88236         Rename lib/sha.c to lib/sha1.c.
88237         Rename m4/sha.m4 to m4/sha1.m4.
88238         (lib_SOURCES): Likewise.
88239         (configure.ac): Rename gl_SHA to gl_SHA1.
88240         (Include): sha.h -> sha1.h.
88241
88242 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88243
88244         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88245         * m4/sha1.m4: Renamed from sha.m4.
88246         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88247
88248 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88249
88250         * lib/obstack.h (obstack_empty_p):
88251         Don't assume that chunk->contents is suitably aligned.
88252         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88253         Likewise. Problem reported by Benno in
88254         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88255
88256         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88257         readable.  This could be improved further but it'd take some work.
88258
88259 2004-08-08  Simon Josefsson  <jas@extundo.com>
88260
88261         * modules/xgethostname (Depends-on): Remove exit and error (not
88262         used).
88263
88264         * modules/getpass-gnu: Add getpass.h.
88265         (Depends-on): Add stdbool.
88266         * modules/getpass: Add getpass.h.
88267
88268 2004-08-08  Simon Josefsson  <jas@extundo.com>
88269
88270         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88271         Check getpass declaration.
88272
88273 2004-08-08  Simon Josefsson  <jas@extundo.com>
88274
88275         * lib/xgethostname.c: Don't include error.h (not used).
88276
88277         * lib/getpass.h: Add.
88278         * lib/getpass.c: Include getpass.h first.
88279
88280 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88281
88282         * lib/xalloc-die.c: New file.
88283         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88284         All uses removed.
88285         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88286         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88287         xalloc-die.c.
88288         (_, N_, xalloc_die): Move to xalloc-die.c.
88289         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88290         so that we needn't mess with xalloc_msg_memory_exhausted.
88291
88292         * lib/sha1.h: Renamed from sha.h.
88293         (SHA1_H): Renamed from _SHA_H.
88294         (sha1_ctx): Renamed from sha_ctx.
88295         (sha1_init_ctx): Renamed from sha_init_ctx.
88296         (sha1_process_block): Renamed from sha_process_block.
88297         (sha1_process_bytes): Renamed from sha_process_bytes.
88298         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88299         (sha1_read_ctx): Renamed from sha_read_ctx.
88300         (sha1_stream): Renamed from sha_stream.
88301         (sha1_buffer): Renamed from sha_buffer.
88302         * lib/sha1.c: Likewise; renamed from sha.c.
88303         Do not include <sys/types.h>.
88304         Include <stddef.h> rather than <stdlib.h>.
88305
88306 2004-08-08  Bruno Haible  <bruno@clisp.org>
88307
88308         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88309         FILESYSTEM_PREFIX_LEN.
88310         * lib/progreloc.c: Likewise.
88311         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88312
88313 2004-08-06  Simon Josefsson  <jas@extundo.com>
88314
88315         * modules/progname (Depends-on): Don't depend on stdbool.
88316
88317 2004-08-06  Simon Josefsson  <jas@extundo.com>
88318
88319         * modules/getsubopt: New file.
88320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88321         getsubopt.
88322
88323 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88324
88325         More merge from coreutils.
88326
88327         * m4/utimens.m4, m4/utimecmp.m4: New files.
88328         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88329         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88330         prereq.m4, sha.m4: Import changes from coreutils.
88331
88332 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88333
88334         More merge from coreutils.
88335         * modules/raise, modules/readtokens0, modules/utimens:
88336         * modules/utimecmp, module/xnanosleep: New files.
88337         * modules/strftime: Add lib/strftime.h.
88338         Change include from <time.h> to "strftime.h".
88339         * modules/yesno: Add lib/yesno.h.
88340         * modules/backupfile: Remove lib/addext.c.
88341         * modules/euidaccess: Add stat-macros.h.
88342         * modules/canonicalize, modules/euidaccess,
88343         modules/filemode, modules/lchown, modules/makepath,
88344         modules/rmdir, modules/stat: Likewise.
88345
88346 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         Merge from tar.
88349         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88350         SIZE_MAX is a valid preprocessor constant.
88351         (__argp_basename): Change from "#ifndef _LIBC"
88352         to "#ifndef __argp_short_program_name", so that
88353         we don't compile these functions for tar.
88354
88355         More merges from coreutils.
88356         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88357         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88358         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88359         * lib/addext.c: Remove; no longer needed.
88360         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88361         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88362         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88363         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88364         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88365         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88366         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88367         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88368         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88369         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88370         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88371         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88372         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88373         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88374         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88375         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88376         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88377         Import changes from coreutils.
88378
88379 2004-08-05  Simon Josefsson  <jas@extundo.com>
88380
88381         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88382
88383 2004-08-05  Simon Josefsson  <jas@extundo.com>
88384
88385         * m4/getsubopt.m4: New file.
88386
88387 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88388
88389         Merge from coreutils.
88390
88391         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88392         * m4/getcwd-path-max.m4: New files.
88393
88394         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88395         FILESYSTEM_PREFIX_LEN ->
88396         FILE_SYSTEM_PREFIX_LEN.
88397         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88398         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88399         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88400         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88401
88402         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88403         prerequisite modules now handle the DOS stuff.
88404         Don't check for unistd.h.
88405
88406 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88407
88408         Merge from coreutils.
88409
88410         * lib/.gdb-history: Remove; this doesn't belong here.
88411
88412         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88413         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88414         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88415         * lib/getcwd.c: New files.
88416
88417         * lib/dirname.h: Include <stdbool.h>.
88418         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88419         for consistency with POSIX terminology.  All uses changed.
88420         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88421         (strip_trailing_slashes): Use bool for booleans.
88422         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88423
88424         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88425         sometimes returns a positive errno value even when it succeeds.
88426         (print_errno_message) [!LIBC]: Fall back on strerror if
88427         __strerror_r fails.
88428
88429         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88430         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88431         (longest_relative_suffix): New function.
88432         (path_concat): Use it.  Assume first argument is not NULL.
88433         Port to DOS.  Omit redundant separators.
88434         Report an error instead of returning NULL.
88435         Use mempcpy instead of memcpy.
88436         (xpath_concat): Remove: not declared or used.
88437
88438         * lib/same.h: Include <stdbool.h>
88439         (same_name): Return bool, not int.
88440         * lib/same.c (same_name): Likewise.
88441         (errno): Don't declare; we assume C89 or better now.
88442
88443         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88444         if not already defined.
88445
88446         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88447         * lib/dup-safer.c (errno): Likewise.
88448
88449 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88450
88451         Merge from coreutils.
88452         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88453         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88454         * modules/path-concat: Don't depend on strdup.
88455
88456 2004-08-03  Simon Josefsson  <jas@extundo.com>
88457
88458         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88459         * lib/progname.h: Don't include stdbool.h.
88460
88461 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88462
88463         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88464         * MODULES.html.sh (func_all_modules): Remove fatal.
88465
88466 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88467
88468         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88469
88470 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88471
88472         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88473         working.
88474
88475 2004-08-02  Simon Josefsson  <jas@extundo.com>
88476
88477         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88478         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88479         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88480
88481 2004-08-01  Simon Josefsson  <jas@extundo.com>
88482
88483         * lib/xgetdomainname.c: Include stdlib.h, for free().
88484
88485 2004-07-19  Bruno Haible  <bruno@clisp.org>
88486
88487         * MODULES.html.sh (func_all_modules): Add dummy.
88488
88489 2004-07-16  Simon Josefsson  <jas@extundo.com>
88490
88491         * modules/dummy: New file.
88492
88493 2004-07-16  Simon Josefsson  <jas@extundo.com>
88494
88495         * lib/dummy.c: New file.
88496
88497 2004-07-16  Bruno Haible  <bruno@clisp.org>
88498
88499         * lib/backupfile.h: Add extern "C" for C++.
88500         * lib/closeout.h: Likewise.
88501         * lib/copy-file.h: Likewise.
88502         * lib/findprog.h: Likewise.
88503         * lib/full-write.h: Likewise.
88504         * lib/pathname.h: Likewise.
88505         * lib/progname.h: Likewise.
88506         * lib/stpcpy.h: Likewise.
88507         * lib/stpncpy.h: Likewise.
88508         * lib/strcase.h: Likewise.
88509         * lib/strstr.h: Likewise.
88510         * lib/xalloc.h: Likewise.
88511
88512         * lib/mbswidth.h: Add extern "C" for C++.
88513         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88514
88515 2004-07-13  Robert Millan  <robertmh@gnu.org>
88516
88517         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88518
88519 2004-07-09  Simon Josefsson  <jas@extundo.com>
88520
88521         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88522         failed without this.)
88523
88524 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88525
88526         * modules/chown (Files): Add lib/fchown-stub.c, since
88527         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88528
88529 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88530
88531         * lib/fchown-stub.c: New file.
88532
88533 2004-06-24  Jim Meyering  <jim@meyering.net>
88534
88535         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88536
88537 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88538
88539         * modules/argz: Omit "#include".
88540
88541         * MODULES.html.sh (func_all_modules): Add calloc, to match
88542         2004-06-01 addition of calloc module.
88543
88544 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88545
88546         * m4/argz.m4: New file, which is autoupdated from libtool.
88547
88548 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88549
88550         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88551         libtool.
88552
88553 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88554
88555         * config/srclist-update: Don't insist on "USA." before the
88556         close-comment, as libtool omits the period and puts the */ on a
88557         separate line.
88558         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88559         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88560
88561 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88562
88563         * modules/argz: New file.
88564         * MODULES.html.sh (func_all_modules): Add argz.
88565
88566 2004-06-12  Jim Meyering  <jim@meyering.net>
88567         and  Paul Eggert  <eggert@cs.ucla.edu>
88568
88569         * modules/hash (Files): Add lib/xalloc.h.
88570         * modules/pipe (Depends-on): Add wait-process.
88571         * modules/stat (Depends-on): Add xalloc.
88572         * modules/userspec (Files): Add lib/userspec.h.
88573         * modules/xstrto
88574
88575         Upgrade from gettext-0.13.
88576         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88577         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88578         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88579
88580 2004-06-10  Jim Meyering  <jim@meyering.net>
88581
88582         * lib/calloc.c: New file.
88583
88584 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88585
88586         * lib/getdate.y (yylex): Allow space between sign and number.
88587         Problem reported by Dan Jacobson.
88588
88589 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88590
88591         Merge from coreutils CVS.
88592
88593         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88594         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88595         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88596         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88597         xstrtol.m4: Fix copyright date and/or serial number.
88598
88599         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88600         See if we need an fchown replacement.
88601         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88602         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88603         and use the replacement function if we detect either defect.
88604
88605         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88606         gl_UTIMECMP.
88607
88608 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88609         and  Jim Meyering  <jim@meyering.net>
88610
88611         Merge from coreutils CVS.
88612
88613         * lib/stat-macros.h: New file, with contents from file-type.h
88614         and coreutils' system.h.
88615         * lib/file-type.c: Include "stat-macros.h".
88616         * lib/file-type.h (file_type): Move all macro definitions to new file,
88617         stat-macros.h.
88618
88619         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88620         Wrap old code with this conditional.
88621         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88622         function that does not dereference symlinks.
88623         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88624
88625         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88626         dependency problems.
88627         (xreadlink): Accept new arg SIZE, for efficiency.
88628         All decls and uses changed.
88629         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88630
88631         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88632         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88633
88634         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88635         sysexits.h.
88636
88637 2004-06-01  Jim Meyering  <jim@meyering.net>
88638
88639         * m4/calloc.m4: New file.
88640
88641 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88642
88643         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88644         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88645         Also, fix a typo in a diagnostic.
88646
88647 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88648
88649         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88650         or AC_FUNC_REALLOC.
88651
88652 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88653
88654         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88655         macros to be defined.
88656         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88657         the allocator returns NULL because the requested size is zero.
88658
88659 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88660
88661         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88662         var.  Add comment explaining why libc still defines it.  This
88663         merges the following patch from glibc:
88664         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88665
88666 2004-05-20  Andreas Schwab  <schwab@suse.de>
88667
88668         * m4/free.m4: Replace free if it not known to work, not the other
88669         way round.
88670
88671 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88672
88673         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88674         present in glibc since revision 1.1 of this file.
88675         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88676         obstack_alignment_mask, obstack_alloc, obstack_base,
88677         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88678         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88679         obstack_grow0, obstack_init, obstack_int_grow,
88680         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88681         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88682         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88683         nonexistent functions.
88684
88685 2004-05-18  Karl Berry  <karl@gnu.org>
88686
88687         * config/srclist.txt: break link for vasnprintf.c.
88688
88689 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88690
88691         Port obstack to the AS/400, where pointers are 16 bytes wide and
88692         you cannot cast an integer to a valid pointer.  This patch is
88693         currently waiting to be integrated into glibc; see
88694         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88695
88696         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88697         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88698         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88699         (struct obstack): temp member is now a union of a pointer and
88700         an integer, instead of an integer.  All integer uses changed.
88701         This does not affect the physical layout of struct obstack,
88702         except on hosts (like the AS/400) where the size or alignment of
88703         void * is greater than that of ptrdiff_t.
88704         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88705         __STDC__)]: Store temporary in pointer member of union, not
88706         integer member.
88707         * lib/obstack.c: Include <stddef.h>, for offsetof.
88708         (struct fooalign): Remove; it doesn't need a name.
88709         (union fooround): Change double to long double, and add void *.
88710         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88711         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88712         not a macro.  Hence the values are always int; so remove all
88713         casts-to-int in uses.
88714
88715 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88716
88717         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88718         we can get this patch merged into glibc.
88719
88720 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88721             Paul Eggert  <eggert@cs.ucla.edu>
88722
88723         * m4/argp: Depend on alloca.
88724
88725 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88726             Paul Eggert  <eggert@cs.ucla.edu>
88727
88728         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88729         freecoding.
88730
88731 2004-05-17  Bruno Haible  <bruno@clisp.org>
88732
88733         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88734         precision that consists of a '.' followed by an empty digit string.
88735         Patch by Tor Lillqvist <tml@iki.fi>.
88736
88737 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88738
88739         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88740         for backward compatibility with older code.  We need our own
88741         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88742         it under some other name, and our alloca.h will define it.
88743
88744 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88745             Derek Price  <derek@ximbiot.com>
88746
88747         * lib/alloca.c: Include <alloca.h>, to get our interface.
88748         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88749         include <alloca.h> first.  Use C89 prototype for alloca; this
88750         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88751         Use #elif for simplicity, since we can assume C89 now.
88752         Don't try to source the system alloca.h since it will not be found
88753         and to prevent recursively including its replacement.
88754         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88755         * lib/regex.c: Likewise.
88756
88757 2004-05-16  Derek Price  <derek@ximbiot.com>
88758             Paul Eggert  <eggert@cs.ucla.edu>
88759
88760         getline cleanup.  This changes the getndelim2 API: both order of
88761         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88762         no delimiter).
88763
88764         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88765         interface does that.
88766         (getline): Always use getdelim, so that we don't have two
88767         copies of this code.
88768         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88769         if available.
88770         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88771         (GETNDELIM2_MAXIMUM): New macro.
88772         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88773         instead of the old practice of delim2==0.  All callers changed.
88774         Return -1 on overflow, instead of returning junk.
88775         Do not set *linesize unless allocation succeeds.
88776         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88777         that we include sys/types.h.
88778         * lib/getnline.h: Likewise.
88779         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88780         (getndelim2): Reorder arguments.
88781         * lib/getnline.c (getnline, getndelim):
88782         Don't discard the NMAX argument.
88783         (getnline): Invoke getndelim, to avoid code duplication.
88784         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88785         of (size_t) -1 by callers of the getnline family.
88786
88787 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88788
88789         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88790         Check for gettimeofday.
88791         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88792         Check for settimeofday, stime.
88793
88794 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88795
88796         * lib/nanosleep.c (suspended): Change its type from int to
88797         sig_atomic_t volatile.
88798         (first_call): Make it private to rpl_nanosleep, and have it
88799         be zero initially as that's a bit faster.
88800         (my_usleep): Round up fractional times instead of truncating them,
88801         as this is the usual meaning for 'sleep'.
88802
88803         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88804         doesn't work.
88805         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88806         (ENOSYS): Define if not defined.
88807         (settime): Fall back on stime if it exists and settimeofday fails.
88808         But don't bother with fallbacks if a method fails with errno == EPERM.
88809
88810 2004-05-11  Jim Meyering  <jim@meyering.net>
88811
88812         Prior to this change, the save_cwd caller required read access to the
88813         current directory on most systems (ones with the fchdir function).
88814
88815         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88816         fails, try write-only, and finally, resort to using xgetcwd.
88817
88818 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88819
88820         * lib/obstack.c, obstack.h: Import changes from libc.
88821
88822 2004-04-28  Bruno Haible  <bruno@clisp.org>
88823
88824         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88825         also implicitly appends .exe to executables.
88826         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88827         accepts Windows pathnames.
88828         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88829         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88830         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88831         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88832         Reported by Derek Robert Price <derek@ximbiot.com>.
88833
88834 2004-04-21  Karl Berry  <karl@gnu.org>
88835
88836         * config/srclist.txt (localcharset.c): break sync.
88837
88838 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88839
88840         * m4/host-os.m4: Add a copyright notice.
88841
88842 2004-04-20  Jim Meyering  <jim@meyering.net>
88843
88844         Change UTILS_ to gl_ in AC_DEFINE'd names.
88845         Change utils_- and jm_-prefixed variables, too.
88846         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88847         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88849
88850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88851         Don't emit trailing blanks.
88852         Also rename jm_-prefixed variables to have gl_ prefix.
88853
88854         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88855         Also rename jm_-prefixed variables to have gl_ prefix.
88856
88857         * m4/jm-macros.m4: Reflect the renamings.
88858         * m4/prereq.m4: Likewise.
88859
88860 2004-04-20  Jim Meyering  <jim@meyering.net>
88861
88862         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88863         memory.
88864
88865 2004-04-20  Jim Meyering  <jim@meyering.net>
88866             Bruno Haible  <bruno@clisp.org>
88867
88868         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88869         memory when realloc fails.
88870
88871 2004-04-19  Jim Meyering  <jim@meyering.net>
88872
88873         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88874         now that readutmp.c may call `free (0)'.
88875
88876 2004-04-19  Bruno Haible  <bruno@clisp.org>
88877
88878         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88879         * m4/inttypes_h.m4: Likewise.
88880         * m4/stdint_h.m4: Likewise.
88881         * m4/intmax_t.m4: Likewise.
88882         * m4/uintmax_t.m4: Likewise.
88883
88884 2004-04-18  Jim Meyering  <jim@meyering.net>
88885
88886         * m4/prereq.m4: Don't forbid jm_ prefix.
88887
88888         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88889         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88890         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88891         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88892         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88893         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88894         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88895         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88896         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88897         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88898         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88899         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88900         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88901         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88902         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88903         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88904         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88905         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88906         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88907
88908 2004-04-18  Jim Meyering  <jim@meyering.net>
88909
88910         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88911         failure, don't leak memory and do call END_UTMP_ENT.
88912
88913 2004-04-16  Jim Meyering  <jim@meyering.net>
88914
88915         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88916         coreutils' stat program.
88917         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88918
88919 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88920
88921         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88922         C89.
88923         (CHAR_BIT): Remove, since we assume C89.
88924         Include <stdint.h> if available, as per current Autoconf CVS advice.
88925
88926 2004-03-31  Jim Meyering  <jim@meyering.net>
88927
88928         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88929         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88930         * m4/xalloc.m4: Likewise.
88931
88932 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88933
88934         Merge from coreutils.
88935
88936         * m4/inttostr.m4: New file.
88937         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88938         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88939         Require gl_CLOCK_TIME.
88940         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88941
88942 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88943
88944         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88945         not bool, to be more consistent with Unix conventions.
88946         Suggested by Bruno Haible.
88947
88948         Merge from coreutils.
88949
88950         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88951         * lib/umaxtostr.c: New files.
88952
88953         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88954         the usual <time.h> dance.
88955         (get_date): Change signature to support fractional time stamps.
88956         All callers changed.
88957         * lib/getdate.y: Include "getdate.h" first, as we can now
88958         assume C89 and don't need to worry about 'const'.
88959         Similarly, include "unlocked-io.h" near start, not in middle.
88960         Include <limits.h>.
88961         (textint.value): Use long int rather than int.
88962         (textint.digits): Use size_t rather than int.
88963         (BILLION, LOG10_BILLION): New constants.
88964         (parser_control): New member rel_ns.  Members day_ordinal,
88965         time_zone, month, day, hour, minutes, rel_year, rel_month,
88966         rel_day, rel_hour, rel_minutes, rel_seconds
88967         are now long int, not int.  Member seconds is now struct timespec,
88968         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88969         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88970         not int.
88971         (%union.intval): Now long int, not int.
88972         New member timespec.
88973         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88974         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88975         (spec): Now is a timespec or an item list.
88976         (timespec, items): New nonterminals.
88977         (time, rel, relunit, number, get_date):
88978         Add support for fractional seconds.
88979         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88980         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88981         (to_hour): First arg is now long int, not int.
88982         (to_year): Returns long int, not int.
88983         Don't treat year -70 like 70.
88984         (tm_diff): Returns long int, not int.
88985         (lookup_word): Use bool instead of int when appropriate.
88986         (yylex): Use size_t for count, not int.
88987         Detect overflow when parsing large integer constants.
88988         Add support for fractions.
88989         (get_date): Make pointers 'const' if possible.
88990         Use more-portable code to detect integer overflow.
88991         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88992         Don't use ctime; it's not reliable if the year has >4 digits.
88993
88994         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88995         This is for compatibility with BSD.
88996
88997         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88998         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88999         From coreutils' system.h.
89000
89001         * lib/userspec.c: Don't include "posixver.h".
89002         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89003         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89004         compatible extension.  Simplify code by removing a boolean int
89005         that was always nonzero if a string was nonnull.
89006
89007 2004-03-30  Jim Meyering  <jim@meyering.net>
89008
89009         Merge from coreutils.
89010
89011         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89012         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89013         on some systems one must include <grp.h> before it.
89014         Reported by Christian Krackowizer.
89015
89016 2004-03-30  Jim Meyering  <jim@meyering.net>
89017
89018         Merge from coreutils.
89019
89020         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89021
89022         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89023         an empty input stream.
89024
89025         * lib/readtokens.c: Include <stdbool.h>.
89026         (readtoken): Use `size_t' rather than int/long.
89027         All callers adjusted.
89028         Use `bool' rather than `int' where appropriate.
89029         Use memset rather than an explicit loop.
89030         Use x2nrealloc rather than xrealloc.
89031         Allow the use of `\0' as a delimiter.
89032         (readtokens): Likewise.
89033         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89034
89035 2004-03-30  Jim Meyering  <jim@meyering.net>
89036
89037         * m4/realloc.m4: Remove file, since now it does no more than
89038         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89039         the `configure.ac' section of module/realloc.
89040         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89041
89042 2004-03-30  Bruno Haible  <bruno@clisp.org>
89043
89044         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89045         nonnull.
89046
89047 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89048
89049         Merge changes to getloadavg.c from coreutils and Emacs.
89050
89051         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89052         Define to an expression, not to the empty string.
89053         Include cloexec.h and xalloc.h.
89054         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89055         Use set_cloexec_flag rather than rolling our own.
89056         * lib/cloexec.c, lib/cloexec.h: New files.
89057
89058 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89059
89060         * m4/cloexec.m4: New file.
89061
89062 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89063
89064         * lib/getopt.h: Sync with libc CVS.
89065
89066 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89067             Bruno Haible  <bruno@clisp.org>
89068
89069         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89070         mbswidth.
89071
89072 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89073             Bruno Haible  <bruno@clisp.org>
89074
89075         * lib/mbswidth.h: Include <wchar.h> only if
89076         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89077         <wchar.h>.
89078         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89079
89080 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89081
89082         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89083         Sync with libc CVS.
89084         * lib/getopt_int.h: New file, also synced from libc.
89085
89086 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89087
89088         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89089         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89090         Bring back getopt.c, getopt.h, getopt1.c.
89091
89092 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89093
89094         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89095         All uses changed.  Check for sa_sigaction member; this fixes
89096         a bug first reported by Jason Andrade in
89097         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89098
89099 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89100
89101         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89102         '#if' expressions.  Unlike the code it replaces, it does not
89103         depend on (defined _SC_PAGESIZE).  However, it does depend on
89104         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89105         first reported by Jason Andrade in
89106         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89107
89108 2004-02-25  Simon Josefsson  <jas@extundo.com>
89109
89110         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89111
89112 2004-02-25  Simon Josefsson  <jas@extundo.com>
89113
89114         * lib/strdup.h: New file.
89115         * lib/strdup.c: Include it.
89116         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89117         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89118
89119 2004-02-23  Karl Berry  <karl@gnu.org>
89120
89121         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89122         (from fencepost.gnu.org:/gd/gnuorg).
89123
89124 2004-02-23  Karl Berry  <karl@gnu.org>
89125
89126         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89127         * config/srclist.txt: add maintain/standards documents.
89128
89129 2004-02-18  Bruno Haible  <bruno@clisp.org>
89130
89131         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89132         Reported by Derek Robert Price <derek@ximbiot.com>.
89133
89134 2004-02-16  Karl Berry  <karl@gnu.org>
89135
89136         * config/mkinstalldirs, install-sh: update from automake.
89137
89138 2004-02-06  Karl Berry  <karl@gnu.org>
89139
89140         * m4/po.m4: update from gettext 0.14.1.
89141
89142 2004-02-06  Karl Berry  <karl@gnu.org>
89143
89144         * lib/config.charset: update from gettext 0.14.1.
89145
89146 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89147
89148         Add comments and code, prompted by suggestions from Bruno Haible
89149         for sh-quote.
89150         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89151         describing the enum quoting_style values.
89152         * lib/quotearg.c (quotearg_alloc): New function.
89153         (quotearg_buffer_restyled): Treat lone { and } as special.
89154         Treat = as special.  Work around bug with older shells
89155         that "see" a '\' that is really the 2nd byte of a multibyte char.
89156         Quote empty string with shell_quoting_style.
89157
89158 2004-02-03  Bruno Haible  <bruno@clisp.org>
89159
89160         * m4/pipe.m4: New file, from GNU gettext.
89161
89162 2004-02-03  Bruno Haible  <bruno@clisp.org>
89163
89164         * lib/pipe.h: New file, from GNU gettext.
89165         * lib/pipe.c: New file, from GNU gettext.
89166
89167 2004-01-27  Bruno Haible  <bruno@clisp.org>
89168
89169         * m4/execute.m4: New file, from GNU gettext.
89170
89171 2004-01-27  Bruno Haible  <bruno@clisp.org>
89172
89173         * lib/execute.h: New file, from GNU gettext.
89174         * lib/execute.c: New file, from GNU gettext.
89175         * lib/w32spawn.h: New file, from GNU gettext.
89176
89177 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89178
89179         Merge from diffutils.
89180
89181         * lib/file-type.c (file_type): Add typed memory objects.
89182         * lib/file-type.h (S_TYPEISTMO): New macro.
89183
89184         * lib/c-stack.h (c_stack_action): Remove argv argument.
89185         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89186         (die): Don't calculate message unless segv_action returns.
89187         (get_stack_location, min_address_from_argv, max_address_from_argv,
89188         volatile stack_base, volatile_stack_size): Remove.
89189         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89190         that every segmentation violation is a stack overflow.  (Ouch!)
89191         See Debian bug 136249 (still outstanding) for more info about why
89192         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89193
89194 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89195
89196         Exit-status fix from coreutils.
89197
89198         Use exit_failure consistently in place of EXIT_FAILURE,
89199         so that program exit statuses are consistent on failure.
89200
89201         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89202         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89203         * lib/argmatch.h: Comment fix to match the above.
89204         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89205         Now a macro referring to exit_failure, instead of a separate
89206         variable.  Include "exitfail.h" to get it.
89207         * lib/xstrtol.h: Include "exitfail.h".
89208         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89209
89210         * lib/long-options.c (parse_long_options): Use prototype
89211         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89212         for clarity.
89213
89214 2004-01-21  Jim Meyering  <jim@meyering.net>
89215
89216         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89217         so as not to conflict with a different-sized __mktime_internal
89218         function in GNU libc.
89219         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89220         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89221
89222 2004-01-20  Karl Berry  <karl@gnu.org>
89223
89224         * config/config.guess: update from config.
89225
89226         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89227
89228 2004-01-20  Bruno Haible  <bruno@clisp.org>
89229
89230         Safer stack allocation.
89231         * lib/setenv.c: Include allocsa.h.
89232         (alloca): Remove fallback definition.
89233         (freea): Remove macro.
89234         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89235         instead of freea.
89236
89237 2004-01-20  Bruno Haible  <bruno@clisp.org>
89238
89239         * m4/eealloc.m4: New file, from GNU gettext.
89240
89241 2004-01-20  Bruno Haible  <bruno@clisp.org>
89242
89243         * m4/allocsa.m4: New file, from GNU gettext.
89244
89245 2004-01-20  Bruno Haible  <bruno@clisp.org>
89246
89247         * lib/xallocsa.h: New file, from GNU gettext.
89248         * lib/xallocsa.c: New file, from GNU gettext.
89249
89250 2004-01-20  Bruno Haible  <bruno@clisp.org>
89251
89252         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89253
89254 2004-01-20  Bruno Haible  <bruno@clisp.org>
89255
89256         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89257         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89258         specially.
89259
89260 2004-01-20  Bruno Haible  <bruno@clisp.org>
89261
89262         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89263         patch.
89264
89265 2004-01-20  Bruno Haible  <bruno@clisp.org>
89266
89267         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89268
89269 2004-01-20  Bruno Haible  <bruno@clisp.org>
89270
89271         * lib/eealloc.h: New file.
89272
89273 2004-01-20  Bruno Haible  <bruno@clisp.org>
89274
89275         * lib/binary-io.h: Avoid warnings on Cygwin.
89276
89277 2004-01-20  Bruno Haible  <bruno@clisp.org>
89278
89279         * lib/allocsa.h: New file, from GNU gettext.
89280         * lib/allocsa.c: New file, from GNU gettext.
89281
89282 2004-01-18  Karl Berry  <karl@gnu.org>
89283
89284         * doc/gpl.texi, doc/lgpl.texi: new files.
89285
89286 2004-01-18  Karl Berry  <karl@gnu.org>
89287
89288         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89289         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89290
89291 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89292
89293         Merge from coreutils.
89294
89295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89296         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89297         (gl_DEFAULT_POSIX2_VERSION): Move
89298         the documentation from 'configure' into 'config.hin',
89299         so that 'configure --help' isn't burdened by it and
89300         we don't have to worry about its formatting there.
89301         Reword the documentation so that it's more succinct
89302         and can be run together into a single paragraph.
89303         * m4/same.m4 (gl_SAME): Check for pathconf.
89304
89305 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89306
89307         Merge from coreutils.
89308
89309         * lib/posixver.c: Include posixver.h.
89310
89311         * lib/same.c: Include <stdbool.h>, <limits.h>.
89312         (_POSIX_NAME_MAX): Define if not defined.
89313         (MIN): New macro.
89314         (same_name): If file names are silently truncated, report
89315         that the file names are the same if they are the same after
89316         the silent truncation.
89317
89318         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89319         conversion function.
89320         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89321         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89322         longer needed.
89323
89324 2004-01-15  Jim Meyering  <jim@meyering.net>
89325
89326         Merge from coreutils.
89327
89328         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89329         if no library is required.
89330         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89331         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89332         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89333         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89334         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89335         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89336         value, $ac_cv_search_crypt, if it's "none required".
89337         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89338         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89339         not gl_FUNC_GETLOADAVG.
89340         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89341         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89342
89343 2004-01-15  Jim Meyering  <jim@meyering.net>
89344
89345         Merge from coreutils.
89346
89347         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89348         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89349         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89350
89351         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89352         optional configure-time default.
89353
89354         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89355
89356         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89357
89358 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89359
89360         Merge from coreutils.
89361
89362         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89363         value, $ac_cv_search_nanosleep, if it's "none required".
89364
89365 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89366
89367         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89368         with like-named macro in fnmatch.c.
89369         (EXT): Use an internal constant instead.
89370
89371         Merge fnmatch patches from glibc.
89372         * lib/fnmatch.c (mbsinit): Remove define.
89373         Add libc_hidden_ver (__fnmatch, fnmatch).
89374         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89375         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89376
89377 2004-01-14  Karl Berry  <karl@gnu.org>
89378
89379         * config/install-sh: update from automake.
89380
89381 2004-01-13  Karl Berry  <karl@gnu.org>
89382
89383         * config/install-sh: update from automake.
89384
89385 2004-01-09  Karl Berry  <karl@gnu.org>
89386
89387         * config/install-sh: update from automake.
89388
89389 2004-01-05  Karl Berry  <karl@gnu.org>
89390
89391         * config/config.{sub,guess}: update from config.
89392
89393 2003-12-31  Karl Berry  <karl@gnu.org>
89394
89395         * config/depcomp: update from automake.
89396
89397 2003-12-14  Karl Berry  <karl@gnu.org>
89398
89399         * lib/config.charset: update from gettext-runtime.
89400
89401 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89402
89403         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89404         Bug reported by Alfred M. Szmidt.
89405
89406 2003-12-03  Bruno Haible  <bruno@clisp.org>
89407
89408         * m4/gettext.m4: Upgrade from gettext-0.13.
89409         * m4/po.m4: Upgrade from gettext-0.13.
89410         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89411         * m4/intmax.m4: New file, from gettext-0.13.
89412         * m4/printf-posix.m4: New file, from gettext-0.13.
89413
89414 2003-11-29  Karl Berry  <karl@gnu.org>
89415
89416         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89417
89418 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89419             Bruno Haible  <bruno@clisp.org>
89420
89421         * lib/printf-parse.h: Don't include sys/types.h.
89422         (ARG_NONE): New macro.
89423         (char_directive): Change type of *arg_index fields to size_t.
89424         * lib/printf-parse.c: Don't include sys/types.h.
89425         (SSIZE_MAX): Remove macro.
89426         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89427         Remove unnecessary overflow check.
89428         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89429         fields.
89430
89431 2003-11-25  Bruno Haible  <bruno@clisp.org>
89432
89433         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89434
89435 2003-11-25  Bruno Haible  <bruno@clisp.org>
89436
89437         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89438         gt_TYPE_SSIZE_T.
89439
89440 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89441
89442         * modules/alloca: Remove dependency on xalloc.
89443
89444 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89445
89446         * lib/alloca.c: Remove dependency on xalloc module.
89447         (xalloc_die): Remove.
89448         (memory_full) [!defined emacs]: New macro.
89449         [!defined emacs]: Don't include xalloc.h.
89450         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89451         address arithmetic overflows.  Change datatypes a bit to avoid
89452         unnecessary casts.
89453
89454 2003-11-22  Jim Meyering  <jim@meyering.net>
89455
89456         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89457         s/size/size_t/.
89458
89459 2003-11-21  Karl Berry  <karl@gnu.org>
89460
89461         * config/config.{sub,guess}: update from config.
89462
89463 2003-11-18  Karl Berry  <karl@gnu.org>
89464
89465         * config/config.{sub,guess}: update from config.
89466
89467         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89468
89469 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89470
89471         * README: Mention that S+T cannot overflow if S is the size of
89472         an existing object and T is sufficiently small.
89473
89474 2003-11-17  Jim Meyering  <jim@meyering.net>
89475
89476         On systems without utime and without a utimes function capable of
89477         dealing with a NULL struct utimbuf* argument, this utime replacement
89478         could -- in unusual circumstances -- leak a file descriptor.
89479         * lib/utime.c: Include <unistd.h> and <errno.h>.
89480         (utime_null): Be sure to close `fd' and to preserve errno.
89481         Reported by Geoff Collyer via Arnold Robbins.
89482
89483 2003-11-17  Bruno Haible  <bruno@clisp.org>
89484
89485         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89486         (Depends-on): Add xsize.
89487
89488 2003-11-17  Bruno Haible  <bruno@clisp.org>
89489
89490         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89491
89492 2003-11-17  Bruno Haible  <bruno@clisp.org>
89493
89494         * lib/vasnprintf.c (alloca): Remove fallback definition.
89495         (freea): Remove definition.
89496         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89497         Reported by Paul Eggert.
89498
89499 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89500             Bruno Haible  <bruno@clisp.org>
89501
89502         Protect against address arithmetic overflow.
89503         * lib/printf-args.h: Include stddef.h.
89504         (arguments): Change type of field 'count' to size_t.
89505         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89506         'unsigned int' where appropriate.
89507         * lib/printf-parse.h: Include sys/types.h.
89508         (char_directive): Change type of *arg_index fields to ssize_t.
89509         (char_directives): Change type of fields 'count', max_*_length to
89510         size_t.
89511         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89512         (SSIZE_MAX): Define fallback value.
89513         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89514         instead of 'int' where appropriate. Check a_allocated, d_allocated
89515         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89516         * lib/vasnprintf.c: Include xsize.h.
89517         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89518         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89519         overflow. Avoid wraparound when converting a width or precision from
89520         decimal to binary.
89521
89522 2003-11-16  Bruno Haible  <bruno@clisp.org>
89523
89524         Update from GNU gettext.
89525         * lib/printf-parse.c: Generalize to it can be compiled for wide
89526         strings.
89527         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89528         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89529         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89530         SNPRINTF): New macros.
89531         Don't include <alloca.h> if the file is used inside libintl.
89532         (local_wcslen): New function, for Solaris 2.5.1.
89533         (VASNPRINTF): Use it instead of wcslen.
89534
89535 2003-11-16  Bruno Haible  <bruno@clisp.org>
89536
89537         * lib/xsize.h (xmax): New function.
89538         (xsum, xsum3, xsum4): Declare as "pure" functions.
89539
89540 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89541
89542         * modules/xalloc (Files): Undo latest change, since xalloc.h
89543         no longer needs SIZE_MAX or PTRDIFF_MAX.
89544
89545 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89546
89547         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89548         gl_PTRDIFF_MAX.
89549
89550 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89551
89552         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89553         "return", to pacify some unknown compiler.  Problem reported
89554         by Joerg Schilling.
89555
89556 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89557
89558         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89559         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89560         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89561         heuristic is just as accurate as far as we know, and it removes a
89562         dependency on size_max.m4 and ptrdiff_max.m4.
89563
89564 2003-11-11  Bruno Haible  <bruno@clisp.org>
89565
89566         * modules/xsize (Files): Add m4/size_max.m4.
89567         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89568
89569 2003-11-11  Bruno Haible  <bruno@clisp.org>
89570
89571         * m4/size_max.m4: New file.
89572         * m4/ptrdiff_max.m4: New file.
89573         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89574         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89575         (gl_XALLOC): Invoke it.
89576
89577 2003-11-11  Bruno Haible  <bruno@clisp.org>
89578
89579         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89580         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89581         defined.
89582
89583 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89584
89585         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89586         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89587         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89588         From Bruno Haible.
89589         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89590         not (size_t) -1, since it's defined here.
89591
89592 2003-11-09  Karl Berry  <karl@gnu.org>
89593
89594         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89595
89596 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89597
89598         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89599         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89600         Reject sizes of exactly SIZE_MAX bytes.
89601         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89602         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89603
89604 2003-11-05  Bruno Haible  <bruno@clisp.org>
89605
89606         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89607         SIZE_MAX defined in <limits.h> on Solaris.
89608
89609 2003-11-04  Jim Meyering  <jim@meyering.net>
89610
89611         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89612         variable names, rather than @VAR@.
89613         * modules/poll: Likewise.
89614
89615 2003-11-04  Bruno Haible  <bruno@clisp.org>
89616
89617         * modules/xsize: New file.
89618         * modules/linebreak: Depend on xsize.
89619         * MODULES.html.sh (func_all_modules): Add xsize.
89620
89621 2003-11-04  Bruno Haible  <bruno@clisp.org>
89622
89623         * m4/xsize.m4: New file.
89624
89625 2003-11-04  Bruno Haible  <bruno@clisp.org>
89626
89627         * lib/xsize.h: New file.
89628         * lib/linebreak.c: Include xsize.h.
89629         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89630         argument for overflow.
89631         Suggested by Paul Eggert.
89632
89633 2003-11-03  Karl Berry  <karl@gnu.org>
89634
89635         * config/config.{guess,sub}: update from config.
89636
89637 2003-11-03  Jim Meyering  <jim@meyering.net>
89638
89639         * modules/userspec (lib_SOURCES): Add userspec.h.
89640         (Include): Add "userspec.h".
89641         Improve description.
89642
89643 2003-11-03  Jim Meyering  <jim@meyering.net>
89644
89645         * lib/userspec.c: Include "userspec.h".
89646         * lib/userspec.h: New file.
89647
89648 2003-11-03  Bruno Haible  <bruno@clisp.org>
89649
89650         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89651
89652 2003-11-03  Bruno Haible  <bruno@clisp.org>
89653
89654         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89655         available, to avoid (extremely rare) race condition.
89656         Suggested by Paul Eggert.
89657
89658 2003-11-02  Karl Berry  <karl@gnu.org>
89659
89660         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89661
89662 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89663
89664         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89665         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89666         (read_filesystem_list): Set and use me_type_malloced.
89667         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89668         whatever the type happens to be), for brevity and consistency.
89669         Check for size calculation overflow on Alphas running OSF/1.
89670
89671 2003-10-31  Jim Meyering  <jim@meyering.net>
89672
89673         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89674
89675         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89676
89677 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89678             Bruno Haible  <bruno@clisp.org>
89679
89680         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89681         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89682
89683 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89684
89685         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89686         netbsd*-gnu*.  Suggested by Robert Millan.
89687
89688 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89689
89690         * modules/group-member: Depend on stdbool.
89691
89692 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89693
89694         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89695
89696 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89697
89698         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89699         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89700         after the 'gnu' in these cases.  This fixes some bugs in the
89701         previous change, and is based on suggestions by Robert Millan.
89702
89703 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89704
89705         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89706         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89707         no longer needed.
89708         * lib/quotearg.c (quotearg_n_options): Use it.
89709         * lib/group-member.c: Include <stdbool.h>.
89710         (free_group_info): Arg is now const *; don't free arg.
89711         (get_group_info): Now returns bool and accepts struct group_info *,
89712         rather than returning a malloc'ed struct group_info *.
89713         All uses changed.  Check for overflow in internal size calculation.
89714
89715         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89716         rather than xmalloc/xrealloc.
89717         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89718         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89719         conformance bug: the old code used a pointer after freeing the
89720         storage that it addressed.
89721         * lib/hash.c (hash_initialize): Simplify the code by using
89722         xalloc_oversized rather than doing it by hand.
89723         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89724         the buffer preserved.  Use free and xmalloc instead.
89725         * lib/quotearg.c (quotearg_n_options): Likewise.
89726         Use a simpler test for size overflow.  Don't use xalloc_oversized
89727         because unsigned int might be wider than size_t (!); this suggests
89728         that we should switch from unsigned int to size_t for slot numbers.
89729
89730 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89731
89732         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89733         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89734         NetBSD kernels.  Requested by Richard Stallman.
89735
89736 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89737
89738         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89739         to allocate the returned structure.  Do not allocate a subarray,
89740         as x2nrealloc will do that.
89741         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89742         instead of xnrealloc.
89743         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89744
89745 2003-10-27  Bruno Haible  <bruno@clisp.org>
89746
89747         * lib/stdbool_.h: Better support for BeOS.
89748
89749 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89750
89751         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89752         now uses inline.
89753
89754 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89755
89756         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89757         callers that want to do their own size-overflow checking.  Include
89758         <stdbool.h>, since xalloc_oversized returns bool.
89759         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89760         to use xalloc_oversized.
89761
89762         Add two functions x2realloc, x2nrealloc, for programs that grow
89763         arrays dynamically by doubling their sizes.
89764         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89765         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89766         New functions.
89767
89768         Port to C99 semantics for 'inline' of external functions.
89769         Bug reported by Bruno Haible.
89770         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89771         with the old contents of xnmalloc.
89772         (xnmalloc, xmalloc): Use it.
89773         (xnrealloc_inline): New static inline function,
89774         with the old contents of xnrealloc.
89775         (xnrealloc, xrealloc): Use it.
89776
89777         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89778         that.
89779
89780 2003-10-26  Karl Berry  <karl@gnu.org>
89781
89782         * config/srclist.txt (COPYING.DOC): no longer available from
89783         /gd/gnuorg; don't know where the ultimate source is.
89784
89785 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89786
89787         Fix several address-calculation bugs in the hash modules,
89788         plus some minor code cleanup.
89789
89790         * lib/hash.h: Include <stdbool.h>, for bool.
89791         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89792         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89793         hash_get_n_entries, hash_get_max_bucket_length,
89794         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89795         hash_rehash): Use size_t rather than unsigned.
89796         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89797         hash_get_n_buckets_used, hash_get_n_entries,
89798         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89799         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89800         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89801         Likewise.
89802         (SIZE_MAX): Define if not defined.
89803         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89804         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89805         hash_print):
89806         Use const * when possible.
89807         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89808         (check_tuning): Fix bug: if tuning parameters were very close to
89809         0 or 1, rounding errors could have caused subscript violations.
89810         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89811         (hash_initialize): Add 'fail:' label
89812         to free table and return NULL, and use it to simplify code.
89813         Use calloc rather than clearing the storage ourself.
89814         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89815         buffer size calculations.
89816         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89817         Include <stddef.h>, for size_t.
89818         * lib/hash-pjw.c (hash_pjw): Likewise.
89819         Switch to method described by Bruno Haible.
89820         Include <limits.h>, for CHAR_BIT.
89821         (SIZE_BITS): New macro.
89822
89823 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89824
89825         * m4/getline.m4 (AM_FUNC_GETLINE):
89826         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89827         hosts.  Problem reported by Derek Robert Price in
89828         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89829         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89830         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89831
89832 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89833
89834         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89835         ceiling the allocation at NMAX bytes rather than silently
89836         discarding input bytes before NMAX is reached.  This makes
89837         a difference only if NMAX exceeds SIZE_MAX / 2.
89838
89839         * lib/obstack.c: Merge from glibc.
89840         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89841         Add libc_hidden_def (_obstack_newchunk).
89842         (_obstack_free) [! defined _LIBC]: Remove.
89843         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89844         a clone of the function body.
89845         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89846         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89847
89848         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89849         glibc.
89850         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89851         arg to memcpy.
89852
89853         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89854         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89855         Don't use lvalue casts, as GCC plans to remove support for them
89856         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89857         was also present in the non-GCC version, indicating that this
89858         code had always been buggy and had never been widely used.
89859         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89860         Use the fast variant of each macro, rather than copying the
89861         definiens of the fast variant; that way, we'll be more likely to
89862         catch future bugs in the fast variants.
89863
89864 2003-10-20  Bruno Haible  <bruno@clisp.org>
89865
89866         * modules/wait-process: New file.
89867         * MODULES.html.sh (func_all_modules): Add wait-process.
89868
89869 2003-10-20  Bruno Haible  <bruno@clisp.org>
89870
89871         * m4/wait-process.m4: New file.
89872
89873 2003-10-20  Bruno Haible  <bruno@clisp.org>
89874
89875         * lib/wait-process.h: New file, from GNU gettext.
89876         * lib/wait-process.c: New file, from GNU gettext.
89877
89878 2003-10-19  Jim Meyering  <jim@meyering.net>
89879
89880         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89881         HPUX 10.20.
89882
89883 2003-10-18  Karl Berry  <karl@gnu.org>
89884
89885         * config/config.guess: update from config.
89886
89887 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89888
89889         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89890         (getgroups): First arg is int, not size_t.
89891         Don't let 'free' mangle errno.
89892
89893 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89894
89895         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89896
89897 2003-10-16  Karl Berry  <karl@gnu.org>
89898
89899         * config/config.{guess,sub}: update from config.
89900
89901 2003-10-16  Jim Meyering  <jim@meyering.net>
89902
89903         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89904         memcpy.
89905
89906 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89907
89908         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89909         (SIZE_MAX): Remove.
89910         (new_exclude, add_exclude_file): Initial size no longer needs to
89911         be a power of 2.
89912         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89913         our own address arithmetic overflow checking.
89914
89915         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89916         (fnmatch): Do not alloca more than 2000 wide characters;
89917         instead, use malloc for large buffers.
89918         Check for address arithmetic overflow, and return -1
89919         with errno set to ENOMEM in that case.
89920         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89921         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89922         instead, return -1.  Check for address arithmetic overflow.
89923
89924 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89925
89926         Handle invalid suffixes and overflow independently, so that
89927         callers can treat them independently as needed.  Fix some bugs in
89928         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89929         suffix for a human-readable blocksize.  The major caller-visible
89930         change is the addition of a new
89931         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89932         that both overflow and suffix chars were found.
89933
89934         * lib/human.c (humblock): Don't check separately for invalid suffix
89935         char; that is xstrtoumax's job (now that its bug is fixed).
89936         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89937         INTMAX_MAX]: New macros.
89938         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89939         TYPE_MAXIMUM): New macros.
89940         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89941         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89942         if overflow occurs, as it's what __strtol does and it's more useful
89943         in practice.
89944         (__xstrtol): If __strtol reports some error other than ERANGE,
89945         reflect it to the caller as LONGINT_INVALID.  If it reports
89946         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89947         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89948         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89949         value.
89950         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89951         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89952         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89953         [defined UINTMAX_MAX]: New macros.
89954
89955 2003-10-14  Bruno Haible  <bruno@clisp.org>
89956
89957         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89958
89959 2003-10-14  Bruno Haible  <bruno@clisp.org>
89960
89961         * m4/sig_atomic_t: New file, from GNU gettext.
89962         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89963
89964 2003-10-14  Bruno Haible  <bruno@clisp.org>
89965
89966         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89967         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89968         Also use volatile where needed.
89969
89970 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89971
89972         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89973         Change maintainer from Bruno Haible to 'all'.
89974
89975 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89976
89977         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89978
89979 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89980
89981         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89982         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89983         and define in terms of the other primitives.
89984         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89985         (SIZE_MAX): Define if not already defined.
89986         (array_size_overflow): New function.
89987         (xalloc_die): Abort instead of exiting if 'error' returns.
89988         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89989         (xmalloc, xrealloc): Use them.
89990         (xcalloc): Check for address arithmetic overflow.
89991         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89992         a bit faster than strcpy.
89993
89994 2003-10-10  Simon Josefsson  <jas@extundo.com>
89995
89996         * modules/argp (Depends-on): Add restrict and strcase.
89997
89998 2003-10-10  Simon Josefsson  <jas@extundo.com>
89999
90000         * m4/argp.m4: Add AC_C_INLINE.
90001
90002 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90003
90004         Merge getpass from libc, plus a few fixes.
90005
90006         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90007         Include <stdbool.h>.
90008         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90009         __fsetlocking to empty.
90010         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90011         do include <bits/libc-lock.h>.
90012         Do not include <fcntl.h>; not needed.
90013         [_LIBC]: Include <wchar.h>.
90014         (NOTCANCEL_MODE): New macro.
90015         (flockfile, funlockfile) [_LIBC]: New macros.
90016         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90017         [!_LIBC]: New macros.
90018         (call_fclose): New function.
90019         (getpass): Use it.  Save tty stream separately; this simplifies the
90020         code and makes it more reliable if stdin happens to equal stdout.
90021         Invoke __fsetlocking on tty.
90022         Handle thread cancellation if needed.
90023         Namespace cleanup (use __tcgetattr, __getline).
90024         Use bool for Booleans.
90025         [USE_IN_LIBIO]: Handle wide streams.
90026         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90027         stream might go where.
90028
90029         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90030         doesn't have to include <stdio.h> before us.
90031         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90032         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90033         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90034         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90035         if not declared, so that we can use getpass.c code from libc without
90036         rewriting it.
90037         (flockfile, ftrylockfile, funlockfile): New macros.
90038
90039 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90040
90041         * modules/getpass: Depend on stdbool.
90042
90043 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90044
90045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90046
90047 2003-10-07  Karl Berry  <karl@gnu.org>
90048
90049         * config/config.{guess,sub}: update from config.
90050
90051 2003-10-06  Jim Meyering  <jim@meyering.net>
90052             Bruno Haible  <bruno@clisp.org>
90053
90054         This lets translators provide better translations for the
90055         "Written by ..." part of --version output.
90056         * lib/version-etc.h: Include stdarg.h.
90057         (version_etc_copyright): Declare as readonly.
90058         (version_etc): Make this function variadic with a NULL-terminated list
90059         of author name strings.
90060         (version_etc_va): New declaration.
90061         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90062         (version_etc_copyright): Declare as readonly.
90063         (version_etc_va): New function. Provide a different translatable string
90064         for each possible number of authors < 10. Abbreviate when there are 10
90065         authors or more.
90066         (version_etc): Make this function variadic. Call version_etc_va.
90067         Suggestion from Gary V. Vaughan.
90068
90069         * lib/long-options.h (parse_long_options): Change prototype: the
90070         authors string is moved to the end and becomes variadic.
90071         * lib/long-options.c: Include stdarg.h.
90072         (parse_long_options): Make this function variadic, too.
90073         Call version_etc_va, not version_etc.
90074
90075 2003-10-06  Bruno Haible  <bruno@clisp.org>
90076
90077         * modules/version-etc-2: Remove file.
90078         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90079
90080 2003-10-06  Bruno Haible  <bruno@clisp.org>
90081
90082         * modules/fatal-signal: New file.
90083         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90084
90085 2003-10-06  Bruno Haible  <bruno@clisp.org>
90086
90087         * m4/fatal-signal.m4: New file.
90088         * m4/signalblocking.m4: New file, from GNU gettext.
90089
90090 2003-10-06  Bruno Haible  <bruno@clisp.org>
90091
90092         * lib/version-etc-2.h: Remove file.
90093         * lib/version-etc-2.c: Remove file.
90094
90095 2003-10-06  Bruno Haible  <bruno@clisp.org>
90096
90097         * lib/fatal-signal.h: New file, from GNU gettext.
90098         * lib/fatal-signal.c: New file, from GNU gettext.
90099
90100 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90101
90102         * README: Rework advice for preventing empty .o files.
90103         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90104         not <sys/types.h>.
90105
90106 2003-10-04  Karl Berry  <karl@gnu.org>
90107
90108         * lib/argp*: update from libc.
90109
90110 2003-10-04  Karl Berry  <karl@gnu.org>
90111
90112         * config/config.{guess,sub}: update from config.
90113
90114 2003-10-02  Bruno Haible  <bruno@clisp.org>
90115
90116         * modules/lchown (Include): Add lchown.h.
90117         * modules/time_r (Include): Use "..." syntax.
90118         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90119
90120 2003-10-01  Simon Josefsson  <jas@extundo.com>
90121
90122         * MODULES.html.sh (func_all_modules): Move gethostname from section
90123         'based on' to section 'lacking' POSIX:2001.
90124
90125 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90126
90127         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90128         to output mode on the same stream.
90129
90130 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90131
90132         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90133         Fix arg typo in previous patch.
90134
90135 2003-09-28  Jim Meyering  <jim@meyering.net>
90136
90137         * lib/error.c: Correct cpp indentation.
90138
90139 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90140
90141         * modules/free: New file.
90142
90143 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90144
90145         * m4/free.m4: New file.
90146
90147 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90148
90149         * lib/minmax.h (MIN, MAX)
90150         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90151         Omit the special code that used __typeof__, since we worry that
90152         it could be more trouble than it's worth.  See:
90153         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90154         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90155
90156         * lib/free.c: New file.
90157
90158 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90159
90160         Trivial fixes to Makefile.am parts of module listings.
90161         * modules/strstr: Append strstr.h to lib_SOURCES.
90162         * modules/strcase: Likewise, for strcase.h.
90163
90164 2003-09-27  Karl Berry  <karl@gnu.org>
90165
90166         * config/mkinstalldirs: update from automake.
90167
90168 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90169
90170         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90171         (error_tail): Do not loop, reallocating temporary buffer, since
90172         the output cannot contain more wide characters than the input
90173         contains bytes, the size must be big enough already.  This avoids
90174         one potential size overflow calculation.  Check for size overflow
90175         when calculating temporary buffer size.  Free temporary buffer
90176         when done, if it was allocated with malloc; this plugs a memory
90177         leak.  Remove casts from void * to pointers, that are no longer
90178         needed now that we're assuming C89 or better.
90179
90180         Merge error changes from glibc.
90181
90182         * lib/error.c, error.h: Update copyright notice header to match glibc.
90183         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90184         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90185         Disable cancellation while printing error.
90186         * lib/error.h: Prepend __ to parameter names.
90187
90188 2003-09-26  Jim Meyering  <jim@meyering.net>
90189
90190         * lib/error.c (error_tail): Move some declarations
90191         into inner scope where the local variables are used.
90192
90193 2003-09-26  Bruno Haible  <bruno@clisp.org>
90194
90195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90196         stpncpy().
90197         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90198
90199 2003-09-26  Bruno Haible  <bruno@clisp.org>
90200
90201         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90202         (stpncpy): Define as alias for gnu_stpncpy.
90203         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90204
90205 2003-09-25  Simon Josefsson  <jas@extundo.com>
90206
90207         * lib/xgetdomainname.h: New file.
90208         * lib/xgetdomainname.c: New file.
90209
90210 2003-09-25  Simon Josefsson  <jas@extundo.com>
90211             Bruno Haible  <bruno@clisp.org>
90212
90213         * modules/getdomainname: New file.
90214         * modules/xgetdomainname: New file.
90215         * MODULES.html.sh (func_all_modules): Add getdomainname,
90216         xgetdomainname.
90217
90218 2003-09-25  Simon Josefsson  <jas@extundo.com>
90219             Bruno Haible  <bruno@clisp.org>
90220
90221         * m4/getdomainname.m4: New file.
90222
90223 2003-09-25  Simon Josefsson  <jas@extundo.com>
90224             Bruno Haible  <bruno@clisp.org>
90225
90226         * lib/getdomainname.h: New file.
90227         * lib/getdomainname.c: New file.
90228
90229 2003-09-25  Karl Berry  <karl@gnu.org>
90230
90231         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90232
90233 2003-09-25  Karl Berry  <karl@gnu.org>
90234
90235         * config/install-sh: update from automake.
90236
90237 2003-09-25  Bruno Haible  <bruno@clisp.org>
90238
90239         * modules/version-etc-2: New file, from modules/version-etc with
90240         modifications.
90241         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90242
90243 2003-09-25  Bruno Haible  <bruno@clisp.org>
90244
90245         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90246         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90247
90248 2003-09-24  Simon Josefsson  <jas@extundo.com>
90249
90250         * modules/xgethostname: Add xgethostname.h.
90251
90252 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90253
90254         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90255         the buffer associated with the argument.  Bug reported by
90256         Simon Josefsson.
90257
90258 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90259
90260         * README: Document assumptions that 'int' is at least 32 bits
90261         wide, that integer arithmetic is 2's complement without overflow,
90262         that there are no holes in integer values, that adding sizes of
90263         two nonoverlapping objects can't overflow, and that all-bits-zero
90264         yields scalar zero.  Fix spelling and capitalization typos.
90265
90266 2003-09-19  Karl Berry  <karl@gnu.org>
90267
90268         * lib/argp.h: update from libc.
90269
90270 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90271
90272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90273         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90274         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90275
90276 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90277
90278         * gnulib-tool: Use "test -h", not "test -L", for portability
90279         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90280         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90281         (sed_extract_prog): Issue s commands one-by-one, rather than
90282         using \| in one s command.
90283
90284 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90285
90286         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90287         input error, instead of returning NULL the next time we are called
90288         (and therefore losing track of errno).
90289
90290 2003-09-16  Bruno Haible  <bruno@clisp.org>
90291
90292         * gnulib-tool (func_create_testdir): Warn about duplicated
90293         dependencies.
90294
90295 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90296
90297         * modules/argmatch, modules/fatal, modules/obstack,
90298         modules/xalloc, modules/xgethostname: Sort dependencies by
90299         importance, not alphabetically.
90300
90301 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90302
90303         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90304         fails, so that the caller gets the proper errno.
90305
90306         * lib/readutmp.c (read_utmp): Likewise.
90307         Check for fstat error.  Close stream and free storage
90308         when failing.
90309
90310 2003-09-14  Karl Berry  <karl@gnu.org>
90311
90312         * config/srclist.txt (strdup.c): disable for c89 changes.
90313
90314 2003-09-14  Jim Meyering  <jim@meyering.net>
90315
90316         * lib/getloadavg.c: Correct cpp indentation.
90317         * lib/strdup.c: Likewise.
90318         * lib/vasnprintf.c: Likewise.
90319
90320 2003-09-14  Bruno Haible  <bruno@clisp.org>
90321
90322         * modules/fwriteerror: New file.
90323         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90324
90325 2003-09-14  Bruno Haible  <bruno@clisp.org>
90326
90327         * lib/fwriteerror.h: New file.
90328         * lib/fwriteerror.c: New file.
90329
90330 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90331
90332         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90333         modules/xgethostname, modules/xalloc: Depend on exit.
90334
90335 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90336
90337         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90338
90339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90340         and AC_MINIX, too, so that their extensions are available.
90341
90342         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90343         This macro has been superseded by gl_BACKUPFILE.
90344
90345         More patches to assume C89 or better.
90346
90347         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90348
90349         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90350         unconditionally.
90351         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90352         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90353         Include <string.h>, <stdlib.h> unconditionally.
90354         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90355         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90356         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90357         headers or for string.h.
90358         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90359         or strtoul.
90360
90361         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90362         headers.
90363         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90364         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90365         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90366         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90367         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90368         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90369         memcpy, memset.
90370         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90371         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90372         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90373         strtol.
90374         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90375         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90377         strtoul.
90378
90379 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90380
90381         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90382         * lib/obstack.c [!defined _LIBC]: Likewise.
90383         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90384         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90385         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90386
90387         More changes to assume C89 or better.
90388
90389         * lib/error.c (error_tail): Assume vprintf.
90390
90391         * lib/argmatch.c (getenv): Remove decl.
90392         * lib/progreloc.c (get_full_program_name): Define via prototype.
90393         * lib/setenv.c (clearenv): Likewise.
90394         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90395         needed.
90396         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90397         (malloc, memcpy): Remove decls.
90398         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90399         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90400         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90401         (memcpy): Remove macro.
90402         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90403         (__P): Remove.  All uses removed.
90404         (PTR): Remove.  All uses changed to void *.
90405         (CHAR_BIT, NULL): Remove.
90406         (spaces, zeros, memset_space, memset_zero)
90407         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90408         Remove.
90409         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90410         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90411         Define with prototype.
90412         Remove now-unnecessary prototype decl.
90413         (extra_args_spec): Assume ANSI C.  All uses changed.
90414         (extra_args_spec_iso): Remove.
90415         (my_strftime, emacs_strftimeu): Define via prototype.
90416         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90417         unconditionally.
90418         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90419         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90420         (strtoul, strtol): Remove decls.
90421         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90422         LONG_MAX): Remove.
90423         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90424         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90425         (LOCALE_PARAM_PROTO): New macro.
90426         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90427         (INTERNAL (strtol), strtol): Define with a prototype.
90428         (PARAMS): Remove.  All uses removed.
90429         * lib/tempname.c: Include <string.h> unconditionally.
90430         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90431         * lib/xgethostname.c (main): Define with a prototype.
90432         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90433         Include <stdlib.h> unconditionally.
90434         (calloc, malloc, realloc, free): Remove decls.
90435         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90436         Include <stdlib.h> unconditionally.  Sort include file names.
90437         (strtod): Remove.
90438         (xstrtod): Define with a prototype.
90439         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90440         (strtol, strtoul): Remove decls.
90441
90442 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90443
90444         More patches to assume C89 or better.
90445         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90446         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90447         string.h, memchr, STDC_HEADERS.
90448
90449 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90450
90451         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90452         Include <stdlib.h>, <string.h> unconditionally.
90453         Remove now-unnecessary cast to char *.
90454         * lib/strnlen.c: Include <string.h> unconditionally.
90455         * lib/yesno.c (yesno): Define with a prototype.
90456
90457 2003-09-11  Bruno Haible  <bruno@clisp.org>
90458
90459         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90460
90461 2003-09-10  Jim Meyering  <jim@meyering.net>
90462
90463         * lib/error.c: Correct indentation of cpp directives.
90464
90465 2003-09-10  Bruno Haible  <bruno@clisp.org>
90466
90467         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90468         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90469         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90470         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90471         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90472         <stdlib.h> and <string.h> checks.
90473         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90474         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90475
90476 2003-09-10  Bruno Haible  <bruno@clisp.org>
90477
90478         * lib/strcspn.c: Include <string.h> unconditionally.
90479         * lib/strpbrk.c: Include <string.h> unconditionally.
90480         * lib/strstr.c: Include <string.h> unconditionally.
90481         * lib/unicodeio.c: Include <string.h> unconditionally.
90482         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90483         * lib/unsetenv.c: Likewise.
90484         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90485         * lib/yesno.c: Include <stdlib.h> unconditionally.
90486         (rpmatch): Add prototype.
90487
90488 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90489
90490         More patches to assume C89 or better.
90491         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90492         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90493         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90494         or for string.h.
90495         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90496         stdlib.h.
90497         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90498         C headers.
90499         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90500         string.h.
90501         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90502         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90503         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90504         or for string.h.
90505         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90506         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90507         C headers.
90508         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90509         memcpy.
90510         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90511         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90512         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90513         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90514         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90515         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90516         string.h, free.
90517         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90518         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90519         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90520         C headers, or for string.h.
90521         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90522         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90523         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90524         headers, memory.h, stdlib.h, string.h, strings.h.
90525         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90526         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90527         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90528         strchr.
90529         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90530         headers, memory.h, string.h.
90531         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90532         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90533         free.
90534         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90535         headers.
90536         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90537         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90538         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90539         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90540         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90541
90542 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90543
90544         More K&R removal.
90545
90546         * lib/acosl.c (main): Use a prototype.
90547         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90548         tanl.c: Likewise.
90549
90550         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90551
90552         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90553         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90554         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90555         with a prototype.
90556         * lib/getopt.c (const): Remove macro.
90557         Include <string.h> unconditionally.
90558         (my_index): Remove; all uses changed to strchr.
90559         (strlen): Remove decl.
90560         (exchange): Remove forward decl; no longer needed.
90561         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90562         Define with prototype.
90563         * lib/getopt1.c (const): Remove macro.
90564         (getopt_long, getopt_long_only, main): Define with prototype.
90565
90566         * lib/getugroups.c: Include <string.h> unconditionally.
90567
90568         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90569         (getusershell, setusershell, endusershell, readname, main):
90570         Define with prototypes.
90571
90572         * lib/group-member.c: Include group-member.h first.
90573         Include <stdlib.h> unconditionally.
90574
90575         * lib/hard-locale.c: Include hard-locale.h first.
90576         Include <stdlib.h>, <string.h> unconditionally.
90577
90578         * lib/hash.c (free, malloc): Remove decls.
90579         Include <stdlib.h> unconditionally.
90580
90581         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90582         (getenv): Do not declare.
90583
90584         * lib/idcache.c: Include <string.h> unconditionally.
90585
90586         * lib/long-options.c: Include long-options.h first, to test interface.
90587         Include <stdlib.h> unconditionally.
90588
90589         * lib/makepath.c: Include makepath.h first, to test interface.
90590         Include <stdlib.h> and <string.h> unconditionally.
90591
90592         * lib/linebuffer.c: Include <stdlib.h>.
90593         (free): Remove decl.
90594
90595         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90596         stddef.h. rpl_malloc returns void *, not char *.
90597         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90598         prototype.
90599
90600         * lib/md5.h: Include <limits.h> unconditionally.
90601         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90602         (__P): Remove; all uses removed.
90603         * lib/md5.c: Include "md5.h" first.
90604         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90605         md5_buffer, md5_process_bytes, md5_process_block):
90606         Define with prototypes.
90607         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90608         * lib/sha.c: Include "sha.h" first.
90609         Include <stdlib.h>, <string.h> unconditionally.
90610
90611         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90612         * lib/memcmp.c (__ptr_t): Likewise.
90613         * lib/memrchr.c (__ptr_t): Likewise.
90614         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90615         Include <string.h> unconditionally.
90616         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90617         * lib/memchr.c: Include <stdlib.h> unconditionally.
90618         * lib/memchr.c (LONG_MAX): Remove.
90619         * lib/memrchr.c (LONG_MAX): Likewise.
90620         * lib/memchr.c (__memchr): Define via a prototype.
90621         * lib/memrchr.c (__memrchr): Likewise.
90622         * lib/memcmp.c (__P): Remove, and remove all uses.
90623         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90624         Remove forward decls; no longer needed.
90625         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90626         Use types required by C89 in prototype.
90627
90628         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90629         * lib/savedir.c: Likewise.
90630         * lib/mkdir.c (free): Remove decl.
90631         * lib/rmdir.c (rmdir): Define with a prototype.
90632         * lib/savedir.c: Include savedir.h first, to test interface.
90633
90634         * lib/mktime.c (STDC_HEADERS): Remove.
90635         Include <stdlib.h>, <string.h> unconditionally.
90636
90637         * lib/modechange.c: Include <stdlib.h> unconditionally.
90638         (malloc): Remove decl.
90639
90640         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90641         (free): Remove decl.
90642
90643         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90644         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90645         (This type really should be intptr_t, but that's a C99ism.)
90646         (_obstack_memcpy): Remove: all uses changed to memcpy.
90647         Include <string.h> unconditionally.
90648         (struct obstack): Assume __STDC__ for types of members
90649         chunkfun, freefun, extra_arg.
90650         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90651         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90652         obstack_begin, obstack_specify_allocation,
90653         obstack_specify_allocation_with_arg, obstack_chunkfun,
90654         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90655         Remove unprototyped decls and the macros that use them.
90656         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90657         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90658         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90659         (defined __STDC__ && __STDC__)]:
90660         Remove nonprototyped code.
90661         Include <stdlib.h> unconditionally.
90662         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90663         _obstack_allocated_p, _obstack_free, obstack_free,
90664         _obstack_memory_used, print_and_abort):
90665         Define using prototypes.
90666         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90667         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90668         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90669         obstack_next_free, obstack_object_size, obstack_room) [0]:
90670         Remove unused, unprototyped code.
90671
90672         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90673
90674         * lib/physmem.c (physmem_total, physmem_available, main): Define
90675         with prototypes.
90676
90677         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90678         (main): Define with a prototype.
90679
90680         * lib/posixver.c (getenv): Remove decl.
90681
90682         * lib/putenv.c (malloc): Returns void *, not char *.
90683         Include <string.h> unconditionally.
90684         (strchr, memcpy, NULL): Do not define.
90685
90686         * lib/readtokens.c: Include readtokens.h first, to test interface.
90687         Include <stdlib.h>, <string.h> unconditionally.
90688         (init_tokenbuffer): Define with a prototype.
90689
90690         * lib/regex.c (PARAMS): Remove.  All uses removed.
90691         All uses of _RE_ARGS removed, too.
90692         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90693         unconditionally.
90694         (bzero): Assume memset exists.
90695         (memcmp, memcpy, NULL): Remove.
90696         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90697         char, or assignments to local vars of type signed char.
90698         (init_syntax_once, PREFIX(extract_number_and_incr),
90699         PREFIX(print_partial_compiled_pattern),
90700         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90701         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90702         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90703         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90704         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90705         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90706         wcs_compile_range, byte_compile_range, truncate_wchar,
90707         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90708         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90709         count_mbs_length, wcs_re_match_2_internal,
90710         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90711         PREFIX(alt_match_null_string_p),
90712         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90713         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90714         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90715         now-unnecessary declaration, if any.
90716         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90717         regcomp, regexec):
90718         Remove now-unnecessary casts among pointer types.
90719         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90720
90721         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90722         (free): Remove decl.
90723
90724         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90725
90726         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90727         (free): Remove decl.
90728
90729         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90730         * lib/xgetcwd.c: Likewise.
90731
90732         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90733         (free): Remove decl.
90734
90735         * lib/strchrnul.c (strchrnul): Define with a prototype.
90736         Fix bug: c_in was not converted to char before searching.
90737
90738         The following changes are not K&R related:
90739
90740         * lib/group-member.h: Include <sys/types.h>, so that this file is
90741         self-contained.
90742         * lib/makepath.h: Likewise.
90743
90744         * lib/getusershell.c (readname, default_index, line_size, readname):
90745         Use size_t, not int, for sizes.
90746         (readname): If the size overflows, report an error instead of
90747         looping forever.
90748
90749 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90750
90751         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90752         libc.
90753
90754 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90755
90756         * README: New section: portability guidelines.
90757
90758 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90759
90760         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90761         C89 spec.
90762
90763 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90764
90765         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90766
90767 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90768
90769         Assume C89 or better; remove K&R cruft.
90770         A few of these changes were first proposed by Derek Robert Price
90771         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90772
90773         * lib/addext.c: Include <string.h> unconditionally.
90774         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90775         Don't declare getenv or malloc.
90776
90777         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90778         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90779         (NULL): Remove.
90780         (find_stack_direction, alloca): Use prototypes.
90781
90782         * lib/atexit.c (atexit): Define using a prototype.
90783
90784         * lib/basename.c, dirname.c, stripslash.c:
90785         Include <string.h> unconditionally.
90786
90787         * lib/bcopy.c: Include <stddef.h>.
90788         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90789
90790         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90791
90792         * lib/error.h (error, error_at_line, error_print_progname)
90793         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90794         * lib/error.c: Include error.h first, to check interface.
90795         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90796         (VA_START): Remove; all uses changeed to va_start.
90797         (exit, strerror): Remove decls.
90798         (error_print_progname): Prototype uncondionally.
90799         Don't include <errno.h>; no longer needed.
90800         (private_strerror): Remove.
90801         (error_tail): Always define.
90802         (error, error_at_line): Assume C89 or better; always use prototypes.
90803         * lib/fatal.c: Include "fatal.h" first, to test interface.
90804         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90805         (VA_START): Remove; all uses changed to va_start.
90806         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90807         this case.
90808         (exit): Remove decl.
90809         (fatal): Prototype unconditionally.  Assume va_start works.
90810         Abort at end, to pacify gcc.
90811
90812         * lib/euidaccess.c (main): Define with a prototype.
90813
90814         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90815
90816         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90817
90818         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90819         prototypes.
90820         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90821         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90822         (getenv): Remove decl.
90823         (fnmatch): Define using a prototype.
90824         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90825         (FCT): Define using a prototype.
90826
90827         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90828
90829         * lib/gethostname.c: Include <stddef.h>.
90830         (gethostname): Define with prototype.  Length is size_t, not int.
90831
90832 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90833
90834         Assume C89 or better; remove K&R cruft.
90835         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90836         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90837         string.h, getenv, malloc.
90838         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90839         headers.
90840         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90841         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90842         do not check for strerror.
90843         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90844         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90845         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90846         do not check for doprnt or vprintf.
90847         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90848         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90849
90850 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90851
90852         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90853         getversion.c should have been removed then, but was accidentally
90854         preserved.
90855
90856         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90857         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90858
90859 2003-09-08  Karl Berry  <karl@gnu.org>
90860
90861         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90862                 config, forget about prep.
90863
90864         * config/depcomp, missing: update from automake.
90865
90866 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90867
90868         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90869         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90870
90871 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90872
90873         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90874         copy_tm_result.  Bug reported by Simon Josefsson in
90875         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90876
90877 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90878
90879         * m4/time_r.m4: New file.
90880         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90881         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90882         is. Check for timegm declaration.
90883         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90884         Do not check for gmtime_r.
90885         Replace mktime if __mktime_internal does not exist and if mktime
90886         hasn't been replaced already.
90887
90888 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90889
90890         * lib/time_r.c, lib/time_r.h: New files.
90891
90892         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90893         __localtime_r.
90894         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90895         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90896
90897         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90898         __gmtime_r.
90899         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90900         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90901         Include <time_r.h>.
90902
90903         * lib/timegm.c: Switch to glibc implementation, with the following
90904         changes:
90905         [defined HAVE_CONFIG_H]: Include <config.h>.
90906         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90907         (__mktime_internal) [!defined _LIBC]: New decl.
90908         (__gmtime_r) [!defined _LIBC]: New macro and function.
90909         (timegm): Use a prototype, since gnulib assumes C89.
90910         Do not bother declaring tmp to be const, as it's not really usefu.
90911         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90912         (timegm): Declare only if HAVE_DECL_TIMEGM.
90913
90914 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90915
90916         * MODULES.html.sh (func_all_modules): Add time_r.
90917         * modules/time_r: New file.
90918         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90919         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90920
90921 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90922
90923         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90924         Bug reported by Lute Kamstra in
90925         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90926
90927         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90928         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90929         course with correspondingly smaller numbers for tomorrow and
90930         yesterday.  From Tadayoshi Funaba.  Originally installed into
90931         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90932         coreutils merge?).
90933
90934 2003-08-31  Simon Josefsson  <jas@extundo.com>
90935
90936         * modules/timegm: New file.
90937         * MODULES.html.sh (func_all_modules): Add timegm.
90938
90939 2003-08-31  Simon Josefsson  <jas@extundo.com>
90940
90941         * m4/timegm.m4: New file.
90942
90943 2003-08-31  Simon Josefsson  <jas@extundo.com>
90944
90945         * lib/timegm.h: New file.
90946         * lib/timegm.c: New file.  Based on
90947         wget-1.8.2/src/http.c:mktime_from_utc.
90948
90949 2003-08-31  Karl Berry  <karl@gnu.org>
90950
90951         * lib/argp.h: update from libc.
90952
90953 2003-08-28  Bruno Haible  <bruno@clisp.org>
90954
90955         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90956         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90957         followed by '#define fnmatch fnmatch_posix' gives an error.
90958
90959 2003-08-28  Bruno Haible  <bruno@clisp.org>
90960
90961         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90962         warning on QNX, which defines O_BINARY to 000000.
90963
90964 2003-08-27  Jim Meyering  <jim@meyering.net>
90965
90966         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90967         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90968         would fail after 32.  Reported by Danny Levinson.  Details here:
90969         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90970
90971 2003-08-24  Bruno Haible  <bruno@clisp.org>
90972
90973         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90974         MSVC7 <stdio.h> is included later.
90975
90976 2003-08-22  Simon Josefsson  <jas@extundo.com>
90977
90978         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90979
90980 2003-08-20  Karl Berry  <karl@gnu.org>
90981
90982         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90983
90984 2003-08-20  Bruno Haible  <bruno@clisp.org>
90985
90986         * modules/progname: New file.
90987         * MODULES.html.sh (func_all_modules): Add progname.
90988
90989 2003-08-20  Bruno Haible  <bruno@clisp.org>
90990
90991         * lib/progname.h: New file, from GNU gettext.
90992         * lib/progname.c: New file, from GNU gettext.
90993         * lib/progreloc.c: New file, from GNU gettext.
90994
90995 2003-08-19  Jim Meyering  <jim@meyering.net>
90996
90997         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90998         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90999
91000 2003-08-19  Bruno Haible  <bruno@clisp.org>
91001
91002         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91003         more.
91004
91005 2003-08-19  Bruno Haible  <bruno@clisp.org>
91006
91007         * lib/xstrdup.c: Assume <string.h> exists.
91008
91009 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91010
91011         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91012         in makefile rules.
91013
91014 2003-08-18  Jim Meyering  <jim@meyering.net>
91015
91016         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91017         * m4/lib-ld.m4: Likewise.
91018
91019 2003-08-18  Jim Meyering  <jim@meyering.net>
91020
91021         * lib/setenv.h: Indent nested cpp directive.
91022         * lib/vasnprintf.c: Remove trailing blanks.
91023
91024 2003-08-17  Simon Josefsson  <jas@extundo.com>
91025
91026         * modules/xstrndup: New file.
91027         * MODULES.html.sh (func_all_modules): Add xstrndup.
91028
91029 2003-08-17  Simon Josefsson  <jas@extundo.com>
91030
91031         * modules/argp: Fix autoconf macro name. Add more dependencies.
91032
91033 2003-08-17  Simon Josefsson  <jas@extundo.com>
91034
91035         * m4/xstrndup.m4: New file.
91036
91037 2003-08-17  Simon Josefsson  <jas@extundo.com>
91038
91039         * m4/argp.m4: New file.
91040
91041 2003-08-17  Simon Josefsson  <jas@extundo.com>
91042             Bruno Haible  <bruno@clisp.org>
91043
91044         * lib/xstrndup.h: New file.
91045         * lib/xstrndup.c: New file.
91046
91047 2003-08-17  Bruno Haible  <bruno@clisp.org>
91048
91049         * modules/strndup (Files, Include): Add lib/strndup.h.
91050
91051 2003-08-17  Bruno Haible  <bruno@clisp.org>
91052
91053         * modules/euidaccess (Files): Add lib/euidaccess.h.
91054
91055 2003-08-17  Bruno Haible  <bruno@clisp.org>
91056
91057         * lib/strndup.h: New file.
91058
91059 2003-08-17  Bruno Haible  <bruno@clisp.org>
91060
91061         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91062         like AC_GNU_SOURCE.
91063         * modules/extensions (configure.ac): Comment out the invocation of
91064         gl_USE_SYSTEM_EXTENSIONS.
91065
91066 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91067
91068         Merges from coreutils, etc.
91069         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91070         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91071         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91072         fixing a typo.
91073         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91074         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91075
91076 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91077
91078         Document merge from coreutils.
91079         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91080         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91081         * modules/utime: Add m4/utimes-null.m4.
91082
91083 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91084
91085         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91086         space, undoing this 2003-08-12 change:
91087         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91088
91089 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91090
91091         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91092         strtoul.c from libc, undoing this 2003-08-12 change:
91093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91094
91095 2003-08-16  Jim Meyering  <jim@meyering.net>
91096
91097         Merges from coreutils.
91098         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91099         prefix.  Adjust cache variables similarly.  Create 500 rather than
91100         just 300 files, to exercise bug on Darwin6.5, too.
91101         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91102         $missing_dir.
91103         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91104         AM_SYS_POSIX_TERMIOS.
91105         Reported by mkc@mathdogs.com.
91106         Also change use of $am_cv_sys_posix_termios
91107         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91108         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91109         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91110         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91111         in /proc/mounts until it finds one with matching device number.  This
91112         is unnecessary when the FILE argument *is* a mount point.  No stat call
91113         is necessary in that case.  So, disable the statvfs-testing code on
91114         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91115         as RedHat bug# 84846.
91116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91117         to 1MB, so as not to render systems with no stack size limit (e.g.,
91118         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91119         Include <unistd.h>.  On some systems,
91120         it is required for the definition of _SC_PAGESIZE.
91121
91122 2003-08-16  Jim Meyering  <jim@meyering.net>
91123
91124         Merge from coreutils.
91125         * lib/xstrtoimax.c: #else #if -> #elif.
91126         * lib/xstrtoumax.c: Likewise.
91127
91128 2003-08-16  Jim Meyering  <jim@meyering.net>
91129
91130         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91131         * m4/utimes.m4: Removed.
91132         * m4/utimes-null.m4: Renamed from utimes.m4.
91133
91134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91135         to 1MB, so as not to render systems with no stack size limit (e.g.,
91136         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91137         Include <unistd.h>.  On some systems,
91138         it is required for the definition of _SC_PAGESIZE.
91139
91140 2003-08-16  Jim Meyering  <jim@meyering.net>
91141         and Paul Eggert  <eggert@cs.ucla.edu>
91142
91143         Merges from coreutils, etc.
91144
91145         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91146         using the latest version from cvs.  This avoids problems with #line
91147         directives using a vendor (Sun) compiler.
91148         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91149         Don't set GETGROUPS_LIB here; now it's
91150         done via getgroups.m4's wrapper function.
91151         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91152         rather than just in sh-util/configure.in, so that the
91153         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91154         same.
91155         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91156         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91157         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91158         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91159         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91160         Remove code that is now done by the newly-required macros.
91161         Append $(EXEEXT) to DF_PROG.
91162         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91163         Do not invoke or require the following here,
91164         since prereq.m4 or some gnulib .m4 now does this for us:
91165         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91166         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91167         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91168         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91169         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91170         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91171         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91172         AC_FUNC_OBSTACK.
91173         Do not replace the following functions, as this is now the job
91174         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91175         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91176         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91177         atexit getpass, strdup, getpagesize.
91178         Replace 'raise'.
91179         Do not check for the following functions, as this is now the job
91180         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91181         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91182         setregid.
91183         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91184         Check for sys/sysctl.h.
91185         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91186         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91187         of checking for ssize_t ourselves.
91188
91189         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91190         Require every macro that gnulib/modules/* suggests for us.
91191         (jm_PREREQ_ADDEXT): New macro.
91192         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91193         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91194
91195         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91196         (gl_PHYSMEM): Use it.
91197         Also check for `table' function.
91198         Check for new headers and functions.
91199         Add check for sys/sysmp.h.
91200         With suggestions from Kaveh Ghazi.
91201         Ignore headers that are present but cannot be compiled.  This
91202         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91203         C 5.4.
91204
91205 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91206
91207         Document merge from coreutils.
91208         * modules/userspec: Depend on posixver.
91209         * modules/strftime: Depend on tzset.
91210
91211 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91212
91213         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91214         rather than tab, after '#' in shell-script copyright notices.
91215         Suggested by Bruno Haible.
91216
91217 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91218
91219         * config/srclist-update: Use three spaces, rather than tab, after '#'
91220         in shell-script copyright notices.  Suggested by Bruno Haible.
91221         Remove unnecessary parenthesization in regular expression.
91222
91223 2003-08-15  Jim Meyering  <jim@meyering.net>
91224
91225         Merge from coreutils.
91226         * lib/xgethostname.c: Include <stdlib.h>.
91227         (xghostname): Don't exit for anything other than memory-related
91228         failure; just return NULL.
91229         * lib/userspec.c: Include "posixver.h".
91230         (parse_user_spec): Accept `.' as a separator only
91231         in pre-POSIX-200112 mode.
91232         * lib/strtoimax.c: Use #elif rather than #else #if.
91233         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91234         Remove function, now that we can rely on a working tzset function.
91235         [!_LIBC]: Ensure that the required autoconf test has been run.
91236         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91237         Use underlying_strftime for %r.
91238         * lib/sha.c: Merge in some clean-up and optimization changes from
91239         glibc.
91240         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91241         Ensure that it is a multiple of 64.
91242         Rearrange loop exit tests so as to avoid performing an
91243         additional fread after encountering an error or EOF.
91244         * lib/realloc.c: Update copyright date.
91245
91246 2003-08-15  Jim Meyering  <jim@meyering.net>
91247         and Paul Eggert  <eggert@twinsun.com>
91248
91249         Merge from coreutils.
91250         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91251         member but strut utmpx does not.  Needed for AIX 4.3.3.
91252         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91253
91254 2003-08-15  Jim Meyering  <jim@meyering.net>
91255         and Paul Eggert  <eggert@cs.ucla.edu>
91256
91257         Merges from coreutils, etc.
91258         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91259         Require gl_FUNC_TZSET_CLOBBER.
91260         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91261         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91262         members.
91263
91264 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91265
91266         Help the merge from coreutils.
91267         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91268         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91269         * m4/tzset.m4: Use it too.
91270
91271 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91272
91273         * modules/tzset: New file.
91274
91275 2003-08-14  Jim Meyering  <jim@meyering.net>
91276
91277         Merges from coreutils.
91278         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91279         variable names, rather than @FNMATCH_H@.
91280         * modules/alloca: Likewise for $(ALLOCA_H).
91281
91282         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91283         the three copies of the literal target, `fnmatch.h'.
91284         * modules/alloca (alloca.h): Likewise.
91285
91286 2003-08-14  Jim Meyering  <jim@meyering.net>
91287
91288         Merge from coreutils.
91289         * m4/tzset.m4: New file.
91290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91291         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91292         otherwise, AIX 5.1 systems would end up using the latter.
91293         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91294         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91295         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91296         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91297
91298 2003-08-14  Jim Meyering  <jim@meyering.net>
91299
91300         Merge from coreutils.
91301         * lib/obstack.h: Whitespace changes.
91302         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91303         and xcalloc return values.
91304         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91305         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91306         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91307         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91308         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91309         error from mntctl.
91310         Use mntctl's return value to drive the entry-processing loop, since
91311         we can't rely on the value of the vmt_length member in the last
91312         entry.  On some systems doing so could result in exhausting
91313         virtual memory.  Based in part on a patch from Mike Jetzer.
91314
91315 2003-08-14  Jim Meyering  <jim@meyering.net>
91316         and Paul Eggert  <eggert@twinsun.com>
91317
91318         Merges from coreutils, plus other fixes.
91319         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91320         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91321         for credits and details.  Thanks to Kaveh Ghazi for helping
91322         to keep these files in sync.
91323         (ARRAY_SIZE): Define it.
91324         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91325         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91326         (memcasecmp): Don't assume size_t fits in unsigned int.
91327         Remove casts and duplicate code.
91328         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91329         (memcpy): Remove definition.
91330         Merge in some clean-up and optimization changes from glibc.
91331         [BLOCKSIZE]: Move definition to top of file.
91332         Ensure that it is a multiple of 64.
91333         Rearrange loop exit tests so as to avoid performing an
91334         additional fread after encountering an error or EOF.
91335         * lib/md5.h (md5_uintptr): Define.
91336         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91337         return to the initial working directory.  Preserve errno
91338         for caller.
91339         * lib/idcache.c: Include "xalloc.h".
91340         (xmalloc, xrealloc): Remove decls.
91341         (getuser): Remove casts no longer required in C89.
91342         * lib/human.c: Include stdio.h, for sprintf.
91343         * lib/group-member.c: Include "xalloc.h".
91344         (xmalloc, xrealloc): Remove decls.
91345         (get_group_info): Remove casts no longer required in C89.
91346         * lib/getusershell.c (readname): Remove casts no longer required in
91347         C89.
91348         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91349         * lib/getline.c: Whitespace fix, from coreutils.
91350
91351 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91352
91353         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91354         Check for isascii.
91355
91356         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91357         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91358         Undo previous (whitespace-only) change.
91359
91360 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91361
91362         * lib/exclude.c: Include <ctype.h>
91363         (IN_CTYPE_DOMAIN): New macro.
91364         (is_space): New fn.
91365         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91366         and empty lines.
91367
91368         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91369         Undo previous (whitespace-only) change.
91370
91371 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91372
91373         * config/srclist-update: Change update back to the old behavior,
91374         leaving whitespace alone.  Use one 'sed' command rather than a
91375         pipeline.
91376         (fixlicense): Now a variable, not a function.
91377         (remove_trailing_blanks): Remove.
91378         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91379         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91380         Undo previous (whitespace-only) change.
91381
91382 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91383
91384         Merge from coreutils.
91385         * modules/euidaccess: Add lib_SOURCES, include for new
91386         file euidaccess.h
91387
91388 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91389
91390         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91391         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91392         Normalize leading white space and remove trailing white space.
91393
91394         Merge from coreutils
91395         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91396
91397         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91398         0.12.1.  These files are now being upgraded automatically by
91399         ../config/srclist-update.
91400
91401 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91402
91403         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91404         Normalize leading white space and remove trailing white space.
91405         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91406         notice, as per ../config/srclist-update.
91407
91408         Merge from coreutils.
91409         * lib/euidaccess.h: New file.
91410         * lib/euidaccess.c: Include it.
91411         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91412         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91413         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91414
91415 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91416
91417         * config/srclist-update: Add copyright notice.
91418         (remove_id_lines, remove_trailing_blanks): New constants.
91419         (fixfile): Use them to normalize spacing a bit in copied files.
91420         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91421         Normalize leading white space and remove trailing white space.
91422
91423         * config/texinfo.tex: Sync with texinfo.
91424
91425         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91426         strtoul.c from libc, to merge coreutils whitespace changes.
91427
91428         * config/srclist.txt: Get the following m4 files from gettext:
91429         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91430         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91431         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91432         wint_t.m4.
91433
91434 2003-08-12  Karl Berry  <karl@gnu.org>
91435
91436         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91437         been made.
91438
91439 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91440
91441         * modules/gnu-source, m4/gnu-source.m4:
91442         Remove; we're assuming Autoconf 2.54 or later now.
91443         Suggested by Bruno Haible.
91444         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91445
91446 2003-08-11  Bruno Haible  <bruno@clisp.org>
91447
91448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91449
91450 2003-08-11  Bruno Haible  <bruno@clisp.org>
91451
91452         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91453         (vasnprintf): Use it instead of wcslen.
91454
91455 2003-08-11  Bruno Haible  <bruno@clisp.org>
91456
91457         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91458         value to ensure that _Bool promotes to int. Use #define for _Bool when
91459         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91460
91461 2003-08-10  Karl Berry  <karl@gnu.org>
91462
91463         * lib/regex.h: update from libc (whitespace fix).
91464
91465 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91466
91467         Merge some files from coreutils.  These changes were
91468         originally made by Jim Meyering.
91469         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91470         many older Unixes require this.
91471         * lib/alloca.c (alloca): Remove cast to argument of free;
91472         no longer needed in C89.
91473         * lib/alloca_.h, regex.h: Fix white space to match
91474         what GNU indent does.
91475
91476 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91477
91478         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91479         apparently Emacs's Unicode mode got confused before my 2003-08-05
91480         checkin.
91481
91482 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91483
91484         * m4/extensions.m4: New file.
91485         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91486         Require gl_USE_SYSTEM_EXTENSIONS.
91487         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91488         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91489
91490 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91491
91492         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91493         * modules/extensions, modules/gnu-source: New files.
91494         * modules/timespec, modules/unlocked-io: Depend on extensions.
91495
91496 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91497
91498         * modules/restrict: New file.
91499         * MODULES.html.sh (func_all_modules): Add restrict.
91500         * modules/regex: Depend on restrict.
91501
91502 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91503
91504         * m4/restrict.m4: New file.
91505         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91506
91507 2003-08-07  Bruno Haible  <bruno@clisp.org>
91508
91509         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91510         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91511
91512 2003-08-07  Bruno Haible  <bruno@clisp.org>
91513
91514         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91515         makes the module 'getndelim2' compatible with the module 'getline'.
91516
91517 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91518
91519         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91520         byte with "\201" to avoid glitches when editing that source file
91521         with multi-gnome-terminal.
91522
91523 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91524
91525         * lib/bumpalloc.h: Remove.
91526
91527 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91528
91529         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91530         * modules/bumpalloc: Remove.
91531
91532 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91533
91534         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91535         GNU coding style.
91536
91537         Merge from coreutils.
91538         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91539         1. From glibc.
91540         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91541         from Karl Berry, implemented by Jim Meyering.
91542         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91543         from Dmitry V. Levin.
91544         Remove anachronistic cast of xrealloc.
91545         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91546         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91547         type. Otherwise, it wouldn't compile with at least /bin/cc on
91548         ymp-cray-unicos9.0.2.X.
91549         Combine two mostly-identical uses of alloca into one.
91550         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91551
91552 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91553
91554         [From Emacs.]
91555
91556         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91557         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91558         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91559         obsolete NLIST_NAME_UNION.
91560         [__GNU__]: Undef BSD and FSCALE.
91561         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91562
91563 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91564
91565         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91566         an enum type, so that it's guaranteed to promote to int.  See:
91567         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91568
91569 2003-08-03  Karl Berry  <karl@gnu.org>
91570
91571         * config/depcomp: update from automake.
91572
91573 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91574
91575         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91576         (strerror): Don't assume that a printable int fits in 14 bytes.
91577
91578 2003-07-31  Bruno Haible  <bruno@clisp.org>
91579
91580         * modules/getpass-gnu: New file.
91581         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91582
91583 2003-07-31  Bruno Haible  <bruno@clisp.org>
91584
91585         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91586
91587 2003-07-24  Karl Berry  <karl@gnu.org>
91588
91589         * config/missing: update from automake.
91590
91591 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91592             Bruno Haible  <bruno@clisp.org>
91593
91594         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91595         * lib/getline.c (getline, getdelim): Likewise.
91596         Remove _GNU_SOURCE define; now it's defined in config.h through
91597         m4/getline.m4.
91598
91599 2003-07-23  Karl Berry  <karl@gnu.org>
91600
91601         * config/config.sub: update from prep.
91602
91603 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91604
91605         * modules/xalloc (Depends-on): Add exitfail.
91606         * modules/xmemcoll: Likewise.
91607
91608 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91609
91610         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91611         over-parenthesization in macros.
91612
91613         Sync with coreutils.
91614
91615         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91616         required by C99.
91617
91618         Use `exit_failure' for xalloc and xmemcoll instead of their own
91619         private exit-failure variables.
91620         * lib/xalloc.h (xalloc_exit_failure): Remove.
91621         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91622         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91623         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91624         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91625         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91626
91627 2003-07-20  Jim Meyering  <jim@meyering.net>
91628
91629         * modules/closeout (Depends-on): Add exitfail.
91630         Suggestion from Bruno Haible.
91631
91632 2003-07-19  Karl Berry  <karl@gnu.org>
91633
91634         * config/config.sub: update from prep.
91635
91636 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91637
91638         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91639         Remove.
91640         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91641         to test that it can stand by itself.  Include "exitfail.h".
91642         Clients should set exit_failure instead.
91643         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91644
91645 2003-07-18  Bruno Haible  <bruno@clisp.org>
91646
91647         * modules/getndelim2: New file.
91648         * modules/getline: Share files with module getndelim2.
91649         * modules/getnline: Depend on getndelim2 instead of sharing files with
91650         it. Add getnline.c to lib_SOURCES.
91651         * MODULES.html.sh (func_all_modules): Add getndelim2.
91652
91653 2003-07-18  Bruno Haible  <bruno@clisp.org>
91654
91655         * m4/getndelim2.m4: New file.
91656         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91657         invoke gl_PREREQ_GETNDELIM2.
91658         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91659         gl_PREREQ_GETNDELIM2.
91660         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91661         gl_GETNDELIM2.
91662
91663 2003-07-18  Bruno Haible  <bruno@clisp.org>
91664
91665         * lib/getndelim2.h: New file.
91666         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91667         getndelim2.h.
91668         (getndelim2): Make non-static. Change return type to ssize_t.
91669         * lib/getline.h: Change argument names.
91670         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91671         * lib/getnline.c: Include getndelim2.h.
91672
91673 2003-07-18  Andreas Schwab  <schwab@suse.de>
91674
91675         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91676
91677 2003-07-17  Karl Berry  <karl@gnu.org>
91678
91679         * config/config.sub: update from prep.
91680
91681 2003-07-17  Bruno Haible  <bruno@clisp.org>
91682
91683         * modules/getnline: New file.
91684         * modules/getline: Add lib/getndelim2.c to source file list.
91685         * MODULES.html.sh (func_all_modules): Add getnline.
91686
91687 2003-07-17  Bruno Haible  <bruno@clisp.org>
91688
91689         * m4/getnline.m4: New file.
91690
91691 2003-07-17  Bruno Haible  <bruno@clisp.org>
91692
91693         * m4/Makefile.am.in: Remove file.
91694         * m4/Makefile.am: Remove file.
91695         * m4/Makefile.in: Remove file.
91696
91697 2003-07-17  Bruno Haible  <bruno@clisp.org>
91698
91699         * lib/getnline.h: New file.
91700         * lib/getnline.c: New file.
91701         * lib/getndelim2.c: New file, extracted from getline.c.
91702         (getndelim2): Renamed from getdelim2, with added nmax argument.
91703         * lib/getline.c: Include getndelim2.c.
91704         (getdelim2): Moved out to getndelim2.c.
91705         (getline, getdelim): Update.
91706
91707 2003-07-17  Bruno Haible  <bruno@clisp.org>
91708
91709         * lib/Makefile.am: Remove file.
91710         * lib/Makefile.in: Remove file.
91711
91712 2003-07-17  Bruno Haible  <bruno@clisp.org>
91713
91714         * configure.in: Remove file.
91715         * Makefile.in: Remove file.
91716
91717 2003-07-17  Bruno Haible  <bruno@clisp.org>
91718
91719         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91720
91721 2003-07-16  Karl Berry  <karl@gnu.org>
91722
91723         * config/srclist-update: was running fixlicense twice, which caused
91724                 texinfo.tex to be nullified for some reason.  Simplify,
91725                 $gplsrc is no longer needed as far as I can see?
91726
91727 2003-07-16  Jim Meyering  <jim@meyering.net>
91728
91729         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91730
91731 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91732
91733         * config/srclist.txt: Get the following files from gettext-runtime/intl
91734         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91735         ref-del.sin.  From Bruno Haible.
91736         * config/srclist-update (fixfile): Change grep pattern again, since the
91737         previous fix didn't work (there was another trailing $).  Use
91738         '[$]' to escape the $s.
91739
91740 2003-07-15  Karl Berry  <karl@gnu.org>
91741
91742         * lib/vasnprintf.c: update from gettext.
91743
91744 2003-07-15  Karl Berry  <karl@gnu.org>
91745
91746         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91747         gets expanded when surrounded by '$'.
91748
91749 2003-07-15  Jim Meyering  <jim@meyering.net>
91750
91751         * modules/save-cwd: Don't depend on error.  From Derek Price.
91752
91753 2003-07-15  Jim Meyering  <jim@meyering.net>
91754
91755         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91756
91757 2003-07-14  Simon Josefsson  <jas@extundo.com>
91758
91759         * modules/mempcpy: New file.
91760         * MODULES.html.sh (func_all_modules): Add mempcpy.
91761
91762 2003-07-14  Simon Josefsson  <jas@extundo.com>
91763
91764         * m4/mempcpy.m4: New file.
91765
91766 2003-07-14  Simon Josefsson  <jas@extundo.com>
91767
91768         * lib/mempcpy.h: New file.
91769         * lib/mempcpy.c: New file.
91770
91771 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91772
91773         * modules/getdate, modules/posixtm: Depend on mktime.
91774
91775 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91776
91777         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91778         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91779         unicodeio.c, unicodeio.h, unlocked-io.h:
91780         Switch from LGPL to GPL.
91781
91782 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91783
91784         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91785         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91786         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91787         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91788         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91789         updated automatically by ../config/srclist-update.  This changes
91790         their license from LPGL to GPL.
91791
91792 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91793
91794         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91795         assumed to refer to the root of the most recent stable gettext version.
91796         * config/srclistvars.sh: Add defaults for eggert.
91797         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91798         Match "This program" as well as "The program".  This is needed
91799         for gettext.
91800
91801 2003-07-14  Jim Meyering  <jim@meyering.net>
91802
91803         Don't emit diagnostics.  Let callers do that.
91804         * lib/save-cwd.c: Don't include "error.h".
91805         (save_cwd): Don't call error.  Ensure that errno is valid
91806         when returning nonzero.
91807
91808         * lib/save-cwd.h (restore_cwd): Update prototype.
91809         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91810         Simplify.  Don't call error upon failure.  Let callers do that.
91811         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91812         when auditing is enabled.  But don't bother updating the #if.
91813
91814 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91815
91816         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91817         it breaks C++ compilation.
91818         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91819
91820 2003-07-10  Simon Josefsson  <jas@extundo.com>
91821
91822         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91823
91824 2003-07-10  Jim Meyering  <jim@meyering.net>
91825
91826         * m4/clock_time.m4: Remove trailing blank.
91827         * m4/intmax_t.m4: Likewise.
91828
91829 2003-07-10  Jim Meyering  <jim@meyering.net>
91830
91831         * lib/vasnprintf.c: Remove trailing blanks.
91832         Make cpp indentation consistent.
91833
91834 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91835
91836         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91837         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91838         Switch from LGPL to GPL.
91839
91840 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91841
91842         * config/srclist.txt: Sort sublists.  Add
91843         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91844         that differ from gnulib for one reason or another; we'd like this list
91845         to be smaller but for now let's document what we have.
91846
91847 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91848
91849         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91850         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91851         and sweeter "eval x=$x".
91852         * config/srclist.txt: Get lib/argp* from glibc.
91853
91854 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91855
91856         * lib/mktime.c: Fix some boundary cases and remove need for floating
91857         point.
91858
91859         Issue a compile-time diagnostic if time_t is floating point, or if
91860         two's complement arithmetic is not in effect, or if arithmetic
91861         right shift does not propagate the sign.  These assumptions were
91862         all in the original code but they weren't checked.
91863
91864         (TIME_T_MIDPOINT, verify): New macros.
91865         (__isleap): Remove; it has integer overflow problems.
91866         (leapyear): New function, without those problems.
91867         (ydhms_tm_diff): Remove; splitting into two parts.
91868         (ydhms_diff): New function, containing the arithmetic part of
91869         the old ydhms_tm_diff function.  Issue a compile-time
91870         diagnostic if we are not using C99 integer division.
91871         Avoid casts when possible.
91872         (guess_time_tm): New function, containing the checking part of
91873         the old ydhms_tm_diff function.  Return the new value, rather than
91874         the difference between it and the old.  Accept a new argument T
91875         so that *T specifies the old value.  Check for overflow in the result.
91876
91877         (__mktime_internal): Use a time_t offset, not a long int offset.
91878         This undoes the 2003-06-04 change, which is no longer needed now
91879         that we have better overflow checking.
91880         (localtime_offset): Likewise.
91881
91882         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91883         and long are 64-bit but int is only 32-bit.
91884         (ydhms_diff): Use long int to store year1 and yday1.
91885         Issue a compile-time diagnostic if long int is not wide enough.
91886
91887         (__mktime_internal): Use long int to store adjusted year and yday.
91888         Use plain C rather than preprocessor commands, if that doesn't
91889         affect efficiency.
91890         Check for overflow (and try to repair) after each probe
91891         rather than checking only at the very end.  This avoids some bugs
91892         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91893         does not equal GMT offset at maximum time).
91894         Use integer to check for overflow rather than floating point; this
91895         is more portable to non-IEEE hosts, and is a tad faster.
91896         When we detect that we are oscillating between two values,
91897         don't check whether tm_isdst has the requested value, since
91898         we already know the answer.  When tm_isdst has the wrong value,
91899         use a different heuristic to find the right one, based on the
91900         extreme values actually observed in practice in tz2003a,
91901         rather than the (overly optimistic) "previous 3 calendar quarters".
91902
91903         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91904         "T const" to accommodate glibc style.
91905         (check_result): Use less-confusing report format.  "long" -> "long int.
91906         (main): Likewise.
91907         Don't loop if the iteration overflows time_t.
91908         Allow a negative step in the iteration.
91909
91910 2003-07-06  Karl Berry  <karl@gnu.org>
91911
91912         * config/depcomp: update from automake.
91913         * config/config.sub: update from prep.
91914
91915 2003-07-03  Karl Berry  <karl@gnu.org>
91916
91917         * config/config.guess: update from prep.
91918
91919 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91920
91921         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91922         xreadlink.c now includes it unconditionally.
91923
91924 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91925
91926         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91927         having it depend on HAVE_SYS_TYPES_H.
91928
91929 2003-07-01  Bruno Haible  <bruno@clisp.org>
91930
91931         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91932         <sys/types.h> should be sufficient.
91933         Reported by Paul Eggert.
91934
91935 2003-06-26  Karl Berry  <karl@gnu.org>
91936
91937         * config/depcomp: update from automake.
91938
91939 2003-06-26  Bruno Haible  <bruno@clisp.org>
91940
91941         * modules/human: Depend on module stdbool.
91942
91943 2003-06-25  Bruno Haible  <bruno@clisp.org>
91944
91945         * modules/readlink: New file.
91946         * modules/xreadlink: Depend on it.
91947         * MODULES.html.sh (func_all_modules): Add readlink.
91948
91949 2003-06-25  Bruno Haible  <bruno@clisp.org>
91950
91951         * m4/readlink.m4: New file.
91952
91953 2003-06-25  Bruno Haible  <bruno@clisp.org>
91954
91955         * lib/readlink.c: New file.
91956
91957 2003-06-22  Karl Berry  <karl@gnu.org>
91958
91959         * config/srclist.txt: update mkinstalldirs from automake.
91960         * config/mkinstalldirs: update.
91961
91962 2003-06-22  Bruno Haible  <bruno@clisp.org>
91963
91964         Portability to mingw32.
91965         * m4/ssize_t.m4: New file, from GNU gettext.
91966         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91967         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91968
91969 2003-06-22  Bruno Haible  <bruno@clisp.org>
91970
91971         * modules/safe-read: Add m4/ssize_t.m4.
91972         * modules/xreadlink: Add m4/ssize_t.m4.
91973
91974 2003-06-20  Bruno Haible  <bruno@clisp.org>
91975
91976         Assume C89, so PARAMS isn't needed.
91977         * lib/unicodeio.h (PARAMS): Remove.
91978         * lib/unicodeio.c: Don't use PARAMS.
91979
91980 2003-06-18  Karl Berry  <karl@gnu.org>
91981
91982         * config/config.{guess,sub}: update from prep.
91983
91984 2003-06-18  Jim Meyering  <jim@meyering.net>
91985
91986         Merge changes from coreutils.
91987         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91988         Remove explicit declarations of xmalloc and realloc.
91989         Include xalloc.h.
91990         (read_utmp): Remove anachronistic cast of xmalloc.
91991
91992 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91993
91994         Assume C89, so PARAMS isn't needed.
91995         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91996         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91997         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91998         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91999         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92000         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92001         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92002         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92003         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92004         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92005         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92006         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92007         no longer needed. Anyway, config.h should always be included before any
92008         other file.
92009
92010 2003-06-11  Simon Josefsson  <jas@extundo.com>
92011
92012         * modules/sysexits: New file.
92013         * MODULES.html.sh (func_all_modules): Add sysexits.
92014
92015 2003-06-11  Simon Josefsson  <jas@extundo.com>
92016
92017         * lib/sysexit_.h: New file.
92018
92019 2003-06-11  Derek Price  <derek@ximbiot.com>
92020
92021         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92022         necessary.
92023
92024 2003-06-11  Bruno Haible  <bruno@clisp.org>
92025
92026         * m4/sysexits.m4: New file.
92027
92028 2003-06-10  Simon Josefsson  <jas@extundo.com>
92029
92030         * lib/argp.h: New file, from glibc.
92031         * lib/argp-ba.c: New file, from glibc.
92032         * lib/argp-eexst.c: New file, from glibc.
92033         * lib/argp-fmtstream.c: New file, from glibc.
92034         * lib/argp-fmtstream.h: New file, from glibc.
92035         * lib/argp-fs-xinl.c: New file, from glibc.
92036         * lib/argp-help.c: New file, from glibc.
92037         * lib/argp-namefrob.h: New file, from glibc.
92038         * lib/argp-parse.c: New file, from glibc.
92039         * lib/argp-pv.c: New file, from glibc.
92040         * lib/argp-pvh.c: New file, from glibc.
92041         * lib/argp-xinl.c: New file, from glibc.
92042
92043 2003-06-10  Simon Josefsson  <jas@extundo.com>
92044
92045         * modules/strchrnul: New file.
92046
92047 2003-06-10  Simon Josefsson  <jas@extundo.com>
92048
92049         * modules/argp: New file.
92050
92051 2003-06-10  Simon Josefsson  <jas@extundo.com>
92052
92053         * m4/strchrnul.m4: New file.
92054
92055 2003-06-10  Simon Josefsson  <jas@extundo.com>
92056
92057         * lib/strchrnul.h: New file.
92058         * lib/strchrnul.c: New file.
92059
92060 2003-06-10  Bruno Haible  <bruno@clisp.org>
92061
92062         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92063
92064 2003-06-07  Karl Berry  <karl@gnu.org>
92065
92066         * config/config.{guess,sub}: update from prep.
92067
92068 2003-06-07  Jim Meyering  <jim@meyering.net>
92069
92070         * modules/strtod: Use $(...) notation, not @...@ for
92071         AC_REPLACE'd variables.
92072         * modules/localcharset: Likewise.
92073
92074 2003-06-07  Jim Meyering  <jim@meyering.net>
92075
92076         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92077         in place of my name in the copyright comment.
92078         Remove definition and uses of __P.
92079
92080         From coreutils.
92081         * lib/stat.c: Don't declare xmalloc explicitly.
92082         Instead, include "xalloc.h".
92083         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92084         xrealloc, and xcalloc return values.
92085         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92086         Improve comment.
92087         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92088
92089 2003-06-07  Bruno Haible  <bruno@clisp.org>
92090
92091         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92092         avoid AC_CONFIG_LINKS.
92093         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92094         fnmatch.h, to avoid AC_CONFIG_LINKS.
92095         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92096
92097 2003-06-07  Bruno Haible  <bruno@clisp.org>
92098
92099         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92100         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92101         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92102         directory.
92103         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92104         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92105         directory.
92106
92107 2003-06-06  Jim Meyering  <jim@meyering.net>
92108
92109         Merge from coreutils.
92110         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92111         Consolidate declarations and initializations of *_base* locals.
92112
92113         Merge from coreutils.
92114         This avoids a core dump on systems without GNU putenv,
92115         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92116         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92117         (unsetenv): New static function, from GNU libc.
92118         (rpl_putenv): Use it.
92119
92120         * lib/modechange.c: Remove trailing blanks.
92121
92122         Merge from coreutils.
92123         * lib/fsusage.c: Remove declaration of statfs.
92124         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92125
92126         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92127
92128 2003-06-06  Jim Meyering  <jim@meyering.net>
92129
92130         * lib/stdbool_.h: Renamed from stdbool.h.in.
92131
92132 2003-06-06  Jim Meyering  <jim@meyering.net>
92133             Bruno Haible  <bruno@clisp.org>
92134
92135         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92136         Adjust Makefile.am snippet not to redirect directly to target.
92137         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92138
92139 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92140
92141         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92142         mismatch, look in future quarters as well as past.  This fixes a
92143         bug when processing fall-backwards gaps immediately after a long
92144         period of daylight-saving time.
92145
92146         * lib/mktime.c: Assume freestanding C89 or better.
92147         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92148         (__P): Remove; not used.
92149         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92150         (mktime, not_equal_tm, print_tm, check_result,
92151         main): Use prototypes.  Use const * where appropriate.
92152         (main): Fix typo in testing code that uncovered by above changes.
92153         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92154
92155 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92156
92157         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92158         locale.h, localeconv.  This merges changes from coreutils.
92159
92160         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92161         It can be removed after the next Autoconf is released.
92162         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92163         needed.
92164
92165 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92166
92167         * lib/mktime.c: Fix Debian bug 177940
92168         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92169         (localtime_offset): Now long int, not time_t, because we want it
92170         to be guaranteed to be signed.  All uses changed.
92171         (__mktime_internal): If overflow would occur when adding offset,
92172         don't add it.
92173
92174         Merge 'human' changes from coreutils.  Rewrite to support
92175         locale-specific notations like thousands separators.
92176         * lib/human.c: Simplify authorship notice.
92177         Include human.h immediately after config.h.
92178         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92179         <limits.h>: Do not include, since human.h does.
92180         (SIZE_MAX, UINTMAX_MAX): New macros.
92181         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92182         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92183         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92184         (power_letter): Renamed from suffixes.
92185         (generate_suffix_backwards): Remove.
92186         (adjust_value): Now takes int style (because of human.h changes)
92187         and long double value (for greater precision on some platforms).
92188         (group_number): New function.
92189         (human_readable): Use it.  Use integer options, not enum.
92190         Put the options before the sizes in the arg list.
92191         Support all the new options.
92192         The old human_readable function has been removed;
92193         use inttostr.h instead.
92194         (human_readable, default_block_size, humblock):
92195         Use uintmax_t, not int, for block sizes.
92196         (human_readable_inexact, block_size_types): Remove.
92197         (block_size_opts): New constant.
92198         (human_options): Renamed from human_block_size, with new signature
92199         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92200         * lib/human.h: Add copyright and authorship notice.
92201         Include <limits.h> and <stdbool.h> unconditionally.
92202         (PARAMS): Remove.  All uses removed.
92203         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92204         (enum human_inexact_style): Remove tag; now a nameless enum.
92205         (human_floor, human_ceiling, human_round_to_even): Now have
92206         values 2, 0, 1 rather than -1, 1, 0.
92207         (human_group_digits, human_suppress_point_zero, human_autoscale,
92208         human_base_1024, human_SI, human_B): New constants.
92209         (human_readable_inexact, human_block_size): Remove.
92210         (human_readable): Size args are now uintmax_t, not int.
92211         (human_options): New decl.
92212
92213         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92214         unnecessary now that we assume C89 or better.  This change
92215         imported from coreutils.
92216
92217         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92218         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92219         in the 2003-05-30 sync from glibc.
92220
92221         .h files should stand alone, but we shouldn't include <sys/types.h>
92222         if we can get away with just <stddef.h>.
92223
92224         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92225         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92226         rather than <sys/types.h>, as we merely need size_t.
92227         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92228         to get size_t.
92229         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92230         Include <stdio.h>, to get FILE.
92231         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92232         memcasecmp.h has included <stddef.h> and all we need is size_t.
92233         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92234         our interface, instead of including <sys/types.h>
92235
92236 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92237
92238         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92239         now, as glibc mktime is buggy on non-glibc systems.
92240
92241 2003-06-03  Karl Berry  <karl@gnu.org>
92242
92243         * config/config.sub: update from prep.
92244
92245 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92246
92247         [from coreutils]
92248         Fix some minor time-related bugs with POSIX time arguments.
92249         Some valid time stamps were being rejected (notably -1, and
92250         time stamps before 1900 on 64-bit hosts).  And some invalid
92251         time stamps were being accepted, e.g. September 31.
92252
92253         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92254         that we can return (time_t) -1 successfully.
92255         * lib/posixtm.c: Likewise.
92256         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92257         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92258         (t): Remove static var.
92259         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92260         of static var.  All uses changed.
92261         (year): Do not reject years before 1900; they can occur with
92262         64-bit time_t.
92263         (posix_time_parse): Do not check for out-of-range components;
92264         that is now the caller's responsibility, since our checks were
92265         only approximations.
92266         (posixtime): Use mktime to check for out-of-range components,
92267         since it knows them exactly.
92268         If mktime returns (time_t) -1, check whether an error actually occurred
92269         by invoking localtime on -1.
92270         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92271         posixtime failures better.
92272         Improve the test data (in comments only).
92273
92274 2003-06-02  Karl Berry  <karl@gnu.org>
92275
92276         * config/mkinstalldirs (version): new variable.
92277         (--version): new option.
92278         (usage): improve message.
92279
92280 2003-05-30  Karl Berry  <karl@gnu.org>
92281
92282         * lib/mktime.c: update from libc.
92283
92284 2003-05-30  Bruno Haible  <bruno@clisp.org>
92285
92286         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92287         * config/config.rpath: Upgrade to gettext-0.12.1.
92288
92289 2003-05-30  Bruno Haible  <bruno@clisp.org>
92290
92291         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92292         * m4/nls.m4: New file, from gettext-0.12.1.
92293         * m4/po.m4: New file, from gettext-0.12.1.
92294         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92295
92296 2003-05-30  Bruno Haible  <bruno@clisp.org>
92297
92298         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92299         * lib/localcharset.h: Likewise.
92300         * lib/localcharset.c: Likewise.
92301
92302 2003-05-29  Karl Berry  <karl@gnu.org>
92303
92304         * config/config.rpath: update from gettext.
92305
92306 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92307
92308         Assume the headers required for C89 freestanding compilers.
92309         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92310         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92311         * m4/human.m4 (gl_HUMAN): Likewise.
92312         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92313         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92314         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92315         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92316         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92317         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92318
92319 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92320
92321         Assume the headers required for C89 freestanding compilers.
92322         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92323         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92324         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92325         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92326         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92327         define, since <limits.h> is guaranteed to do that.
92328         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92329         * lib/exclude.c: Include <stdbool.h> unconditionally.
92330         * lib/tempname.c: Include <stddef.h> unconditionally.
92331         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92332         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92333         <stddef.h> does that.
92334         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92335         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92336         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92337         needed.
92338         * lib/xstrtol.c: Likewise.
92339         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92340         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92341
92342         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92343         warnings on some platforms.
92344
92345         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92346         arbitrarily.
92347
92348 2003-05-26  Jim Meyering  <jim@meyering.net>
92349
92350         Merge in a change from coreutils:
92351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92352         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92353         that condition, rather than `-1' which is slightly misleading.
92354         Change the name of the cache variable to have the gl_ prefix.
92355         Prompted by a patch from Richard Dawe for DJGPP.
92356
92357 2003-05-24  Karl Berry  <karl@gnu.org>
92358
92359         * config/config.guess: update from prep.
92360
92361 2003-05-22  Karl Berry  <karl@gnu.org>
92362
92363         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92364
92365 2003-05-20  Karl Berry  <karl@gnu.org>
92366
92367         * config/config.guess: update from prep.
92368
92369 2003-05-18  Karl Berry  <karl@gnu.org>
92370
92371         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92372         might actually be set by the user.
92373
92374         * config/depcomp, install-sh, mdate-sh: update from automake.
92375
92376 2003-05-17  Bruno Haible  <bruno@clisp.org>
92377
92378         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92379         invalid expansion for AC_EGREP_CPP.
92380         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92381         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92382         Suggested by Akim Demaille <akim@epita.fr> in
92383         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92384
92385 2003-05-12  Jim Meyering  <jim@meyering.net>
92386
92387         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92388         the space-padded-by-default conversion specifiers, %e, %k, %l.
92389
92390 2003-05-12  Bruno Haible  <bruno@clisp.org>
92391
92392         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92393         the string is longer than 4 KB.
92394
92395 2003-05-11  Karl Berry  <karl@gnu.org>
92396
92397         * config/config.{guess,sub}: update from prep.
92398
92399 2003-05-09  Bruno Haible  <bruno@clisp.org>
92400
92401         * modules/error: Add m4/strerror_r.m4 to file list.
92402
92403 2003-05-03  Bruno Haible  <bruno@clisp.org>
92404
92405         Upgrade to Unicode-4.0.
92406         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92407         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92408         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92409         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92410         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92411         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92412         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92413         Change width of U+E0100..U+E01EF from 1 to 0.
92414
92415 2003-04-25  Jim Meyering  <jim@meyering.net>
92416
92417         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92418         of type size_t, not int.
92419
92420 2003-04-25  Bruno Haible  <bruno@clisp.org>
92421
92422         * lib/copy-file.c: Include <stddef.h>, for size_t.
92423
92424 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92425
92426         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92427         code which expansion is under static control.  Patch imported from
92428         Akim Demaille's patch to Bison; see
92429         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92430
92431 2003-04-14  Bruno Haible  <bruno@clisp.org>
92432
92433         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92434
92435 2003-04-11  Jim Meyering  <jim@meyering.net>
92436
92437         Merge changes from Coreutils.
92438
92439         2003-03-22  Jim Meyering  <jim@meyering.net>
92440
92441         * lib/strftime.c (widen): Cast alloca return value to proper type.
92442
92443         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92444
92445         From GNU libc.
92446         * lib/strftime.c (my_strftime): Handle very large width
92447         specifications for numeric values correctly.  Improve checks for
92448         overflow.
92449
92450         2003-01-19  Jim Meyering  <jim@meyering.net>
92451
92452         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92453         definitions.
92454         (nl_get_alt_digit) [! defined my_strftime]: Define.
92455         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92456         _nl_get_alt_digit and _nl_get_walt_digit.
92457
92458         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92459         libc. These changes have no effect outside of _LIBC.
92460
92461 2003-04-10  Bruno Haible  <bruno@clisp.org>
92462
92463         * modules/findprog: New file.
92464         * MODULES.html.sh (func_all_modules): Add it.
92465
92466 2003-04-10  Bruno Haible  <bruno@clisp.org>
92467
92468         * m4/findprog.m4: New file.
92469         * m4/eaccess.m4: New file.
92470
92471 2003-04-10  Bruno Haible  <bruno@clisp.org>
92472
92473         * lib/findprog.h: New file, from GNU gettext.
92474         * lib/findprog.c: New file, from GNU gettext.
92475
92476 2003-04-05  Jim Meyering  <jim@meyering.net>
92477
92478         Merge changes from Coreutils.
92479
92480         * lib/exclude.h (PARAMS): Remove definition and uses.
92481         * lib/exclude.c: Remove uses of `PARAMS'.
92482
92483         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92484         Add test-cases for DOS filenames. Declare program_name.
92485         (main): Set up program_name.  Patch by Rich Dawe.
92486
92487         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92488         error from mntctl.
92489         Use mntctl's return value to drive the entry-processing loop, since
92490         we can't rely on the value of the vmt_length member in the last
92491         entry.  On some systems doing so could result in exhausting
92492         virtual memory.  Based in part on a patch from Mike Jetzer.
92493
92494 2003-04-04  Bruno Haible  <bruno@clisp.org>
92495
92496         * modules/linebreak: New file.
92497         * MODULES.html.sh (func_all_modules): Add it.
92498
92499 2003-04-04  Bruno Haible  <bruno@clisp.org>
92500
92501         * m4/linebreak.m4: New file.
92502
92503 2003-04-04  Bruno Haible  <bruno@clisp.org>
92504
92505         * lib/linebreak.h: New file, from GNU gettext.
92506         * lib/linebreak.c: New file, from GNU gettext with slight
92507         modifications.
92508         * lib/lbrkprop.h: New file, from GNU gettext.
92509
92510 2003-04-03  Bruno Haible  <bruno@clisp.org>
92511
92512         * modules/utf8-ucs4: New file.
92513         * modules/utf16-ucs4: New file.
92514         * modules/ucs4-utf8: New file.
92515         * modules/ucs4-utf16: New file.
92516         * MODULES.html.sh (func_all_modules): Add them.
92517
92518 2003-04-03  Bruno Haible  <bruno@clisp.org>
92519
92520         * m4/utf-ucs4.m4: New file.
92521         * m4/ucs4-utf.m4: New file.
92522
92523 2003-04-03  Bruno Haible  <bruno@clisp.org>
92524
92525         * lib/utf8-ucs4.h: New file, from GNU gettext.
92526         * lib/utf16-ucs4.h: New file, from GNU gettext.
92527         * lib/ucs4-utf8.h: New file, from GNU gettext.
92528         * lib/ucs4-utf16.h: New file, from GNU gettext.
92529
92530 2003-04-02  Bruno Haible  <bruno@clisp.org>
92531
92532         * modules/binary-io: New file.
92533         * MODULES.html.sh (func_all_modules): Add it.
92534
92535 2003-04-02  Bruno Haible  <bruno@clisp.org>
92536
92537         * lib/binary-io.h: New file, from GNU gettext.
92538
92539 2003-04-01  Bruno Haible  <bruno@clisp.org>
92540
92541         * modules/pathname: New file.
92542         * MODULES.html.sh (func_all_modules): Add it.
92543
92544 2003-04-01  Bruno Haible  <bruno@clisp.org>
92545
92546         * lib/pathname.h: New file, from GNU gettext.
92547         * lib/concatpath.c: New file, from GNU gettext.
92548
92549 2003-03-30  Bruno Haible  <bruno@clisp.org>
92550
92551         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92552
92553 2003-03-30  Bruno Haible  <bruno@clisp.org>
92554
92555         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92556         function chown() doesn't exist.
92557
92558 2003-03-28  Bruno Haible  <bruno@clisp.org>
92559
92560         * modules/copy-file: New file.
92561         * MODULES.html.sh (func_all_modules): Add it.
92562
92563 2003-03-28  Bruno Haible  <bruno@clisp.org>
92564
92565         * m4/copy-file.m4: New file.
92566
92567 2003-03-28  Bruno Haible  <bruno@clisp.org>
92568
92569         * lib/copy-file.h: New file, from GNU gettext.
92570         * lib/copy-file.c: New file, from GNU gettext.
92571
92572 2003-03-18  Jim Meyering  <jim@meyering.net>
92573
92574         * lib/quote.c (quote_n): Fix typo in comment.
92575
92576 2003-03-18  Bruno Haible  <bruno@clisp.org>
92577
92578         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92579         checking.
92580         * m4/onceonly_2_57.m4: Likewise.
92581
92582 2003-03-17  Bruno Haible  <bruno@clisp.org>
92583
92584         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92585         (m4_quote): Remove macro.
92586         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92587
92588 2003-03-14  Jim Meyering  <jim@meyering.net>
92589
92590         Merge changes from Coreutils.
92591         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92592         to be const, in order to avoid warnings.
92593         (obstack_room): Likewise.
92594         (obstack_empty_p): Likewise.
92595
92596 2003-03-14  Bruno Haible  <bruno@clisp.org>
92597
92598         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92599         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92600
92601 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92602
92603         Merge changes from Bison.
92604         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92605         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92606         when compiling Bison 1.875's `bitset bset = obstack_alloc
92607         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92608         * lib/hash.c: Include <stdbool.h> unconditionally.
92609
92610 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92611
92612         * m4/onceonly.m4 (m4_quote): New macro.
92613         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92614         Quote AC_FOREACH variable-expansions properly.
92615
92616 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92617
92618         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92619
92620 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92621
92622         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92623         Reported by Bruce Becker; see:
92624         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92625
92626 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92627             Bruno Haible  <bruno@clisp.org>
92628
92629         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92630         Reported by John Hughes, see
92631         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92632
92633 2003-02-20  Bruno Haible  <bruno@clisp.org>
92634
92635         * MODULES.html.sh (func_all_modules): Add poll.
92636
92637 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92638
92639         * modules/poll: New file.
92640
92641 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92642
92643         * lib/poll_.h: New file.
92644         * lib/poll.c: New file.
92645
92646 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92647
92648         * m4/poll.m4: New file.
92649
92650 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92651
92652         * modules/mathl: New file.
92653
92654 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92655
92656         * lib/mathl.h: New file.
92657         * lib/acosl.c: New file.
92658         * lib/asinl.c: New file.
92659         * lib/atanl.c: New file.
92660         * lib/ceill.c: New file.
92661         * lib/cosl.c: New file.
92662         * lib/expl.c: New file.
92663         * lib/floorl.c: New file.
92664         * lib/frexpl.c: New file.
92665         * lib/ldexpl.c: New file.
92666         * lib/logl.c: New file.
92667         * lib/sincosl.c: New file.
92668         * lib/sinl.c: New file.
92669         * lib/sqrtl.c: New file.
92670         * lib/tanl.c: New file.
92671         * lib/trigl.c: New file.
92672         * lib/trigl.h: New file.
92673
92674 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92675
92676         * m4/mathl.m4: New file.
92677
92678 2003-02-18  Bruno Haible  <bruno@clisp.org>
92679
92680         * MODULES.html.sh (func_all_modules): Add mathl.
92681
92682 2003-02-17  Bruno Haible  <bruno@clisp.org>
92683
92684         * modules/mkdtemp: New module.
92685         * MODULES.html.sh (func_all_modules): Add it.
92686
92687 2003-02-17  Bruno Haible  <bruno@clisp.org>
92688
92689         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92690
92691 2003-02-17  Bruno Haible  <bruno@clisp.org>
92692
92693         * lib/mkdtemp.h: New file, from GNU gettext.
92694         * lib/mkdtemp.c: New file, from GNU gettext.
92695
92696 2003-02-02  Jim Meyering  <jim@meyering.net>
92697
92698         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92699         e.g. glibc-2.2.93.
92700
92701 2003-01-31  Bruno Haible  <bruno@clisp.org>
92702
92703         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92704         'rpl_rename'.
92705         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92706         'rpl_strnlen'.
92707         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92708         'rpl_strtod'.
92709         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92710         'rpl_utime'.
92711
92712 2003-01-31  Bruno Haible  <bruno@clisp.org>
92713
92714         * lib/rename.c: #undef rename before defining rpl_rename.
92715         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92716
92717 2003-01-30  Bruno Haible  <bruno@clisp.org>
92718
92719         * modules/vasnprintf, modules/vasprintf: New modules.
92720         * MODULES.html.sh (func_all_modules): Add them.
92721
92722 2003-01-30  Bruno Haible  <bruno@clisp.org>
92723
92724         * m4/signed.m4: New file, from GNU gettext.
92725         * m4/longdouble.m4: New file, from GNU gettext.
92726         * m4/wchar_t.m4: New file, from GNU gettext.
92727         * m4/wint_t.m4: New file, from GNU gettext.
92728         * m4/vasnprintf.m4: New file.
92729         * m4/vasprintf.m4: New file.
92730
92731 2003-01-30  Bruno Haible  <bruno@clisp.org>
92732
92733         * lib/printf-args.h: New file, from GNU gettext.
92734         * lib/printf-args.c: New file, from GNU gettext.
92735         * lib/printf-parse.h: New file, from GNU gettext.
92736         * lib/printf-parse.c: New file, from GNU gettext.
92737         * lib/vasnprintf.h: New file, from GNU gettext.
92738         * lib/vasnprintf.c: New file, from GNU gettext.
92739         * lib/asnprintf.c: New file, from GNU gettext.
92740         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92741         * lib/vasprintf.c: New file, from GNU gettext.
92742         * lib/asprintf.c: New file, from GNU gettext.
92743
92744 2003-01-29  Bruno Haible  <bruno@clisp.org>
92745
92746         * modules/stpncpy: New module.
92747         * MODULES.html.sh (func_all_modules): Add it.
92748
92749 2003-01-29  Bruno Haible  <bruno@clisp.org>
92750
92751         * m4/stpncpy.m4: New file.
92752
92753 2003-01-29  Bruno Haible  <bruno@clisp.org>
92754
92755         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92756         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92757
92758 2003-01-28  Bruno Haible  <bruno@clisp.org>
92759
92760         * modules/c-ctype: New module.
92761         * MODULES.html.sh (func_all_modules): Add it.
92762
92763 2003-01-28  Bruno Haible  <bruno@clisp.org>
92764
92765         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92766         Paul Eggert.
92767         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92768         Paul Eggert.
92769
92770 2003-01-27  Bruno Haible  <bruno@clisp.org>
92771
92772         * modules/xsetenv: New module.
92773         * MODULES.html.sh (func_all_modules): Add it.
92774
92775 2003-01-27  Bruno Haible  <bruno@clisp.org>
92776
92777         * lib/xsetenv.h: New file, from GNU gettext.
92778         * lib/xsetenv.c: New file, from GNU gettext.
92779
92780 2003-01-23  Jim Meyering  <jim@meyering.net>
92781
92782         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92783         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92784
92785 2003-01-23  Bruno Haible  <bruno@clisp.org>
92786
92787         * modules/minmax: New module.
92788         * MODULES.html.sh (func_all_modules): Add it.
92789
92790 2003-01-23  Bruno Haible  <bruno@clisp.org>
92791
92792         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92793         Eggert.
92794
92795 2003-01-22  Bruno Haible  <bruno@clisp.org>
92796
92797         * modules/exit: New module.
92798         * MODULES.html.sh (func_all_modules): Add it.
92799
92800 2003-01-22  Bruno Haible  <bruno@clisp.org>
92801
92802         * lib/exit.h: New file, from GNU gettext.
92803
92804 2003-01-19  Bruno Haible  <bruno@clisp.org>
92805
92806         * gnulib-tool: Recognize option --extract-maintainer.
92807         (func_get_maintainer): New function.
92808         * modules/*: Add Maintainer entry.
92809
92810 2003-01-16  Jim Meyering  <jim@meyering.net>
92811
92812         * m4/regex.m4: The `regex' struct is both input and output.
92813         Initialize it before each use.  Patch by Tim Waugh.
92814
92815 2003-01-16  Bruno Haible  <bruno@clisp.org>
92816
92817         * MODULES.html.sh: Add a table of contents. Add the module name as
92818         leftmost column. Add hyperlinks.
92819
92820 2003-01-15  Bruno Haible  <bruno@clisp.org>
92821
92822         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92823
92824 2003-01-15  Bruno Haible  <bruno@clisp.org>
92825
92826         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92827         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92828         suffix.
92829
92830 2003-01-15  Bruno Haible  <bruno@clisp.org>
92831
92832         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92833
92834 2003-01-15  Bruno Haible  <bruno@clisp.org>
92835
92836         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92837         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92838
92839 2003-01-14  Jim Meyering  <jim@meyering.net>
92840
92841         * lib/same.c (same_name): Tweak a comment.
92842
92843 2003-01-14  Bruno Haible  <bruno@clisp.org>
92844
92845         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92846         when a string comparison is sufficient.
92847
92848 2003-01-14  Bruno Haible  <bruno@clisp.org>
92849
92850         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92851         'unsigned int'.
92852
92853 2003-01-14  Bruno Haible  <bruno@clisp.org>
92854
92855         * lib/hash-pjw.c: Add comment about low quality of this function.
92856
92857 2003-01-13  Bruno Haible  <bruno@clisp.org>
92858
92859         * modules/stpcpy: Distribute lib/stpcpy.h.
92860         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92861
92862 2003-01-13  Bruno Haible  <bruno@clisp.org>
92863
92864         * modules/*: Add a description.
92865         * modules/strpbrk: Fix Makefile.am snippet.
92866         * modules/strtoimax: Fix dependencies.
92867         * modules/strtoumax: Likewise.
92868
92869 2003-01-13  Bruno Haible  <bruno@clisp.org>
92870
92871         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92872         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92873         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92874
92875 2003-01-13  Bruno Haible  <bruno@clisp.org>
92876
92877         * gnulib-tool (func_create_testdir): Store config/* files in the main
92878         directory.
92879         * config.rpath: Move to ...
92880         * config/config.rpath: ... here.
92881         * modules/gettext: Contains config/config.rpath, not config.rpath.
92882         * modules/iconv: Likewise.
92883
92884 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92885
92886         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92887         to avoid collisions with libcurses and libreadline.
92888
92889         * m4/getstr.m4: Remove.
92890         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92891
92892 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92893
92894         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92895         to avoid collisions with libcurses and libreadline.
92896
92897         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92898         * lib/getstr.h, getstr.c: Remove.
92899         * lib/getline.c: Include "getline.h", to check interface.
92900         Move body of old getstr.c here: this defines MIN_CHUNK and
92901         declares getdelim2, which is renamed from getstr.
92902         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92903
92904         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92905         All uses changed.
92906         * lib/linebuffer.h: Likewise.
92907         (readline): Remove backward-compatibility macro.
92908
92909 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92910
92911         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92912         to avoid collisions with libcurses and libreadline.
92913         * getstr: Remove.
92914         * MODULES.html.sh: Remove getstr.
92915         * modules/getline: Depend on unlocked-io, not getstr.
92916
92917 2003-01-12  Jim Meyering  <jim@meyering.net>
92918
92919         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92920
92921 2003-01-10  Bruno Haible  <bruno@clisp.org>
92922
92923         * modules/alloca: Change Makefile.am requirements. Simplify Include
92924         requirements. Add lib/alloca_.h to file list.
92925
92926 2003-01-10  Bruno Haible  <bruno@clisp.org>
92927
92928         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92929
92930 2003-01-10  Bruno Haible  <bruno@clisp.org>
92931
92932         * lib/alloca_.h: New file.
92933         * lib/getdate.y: Unconditionally include alloca.h.
92934         * lib/makepath.c: Likewise.
92935         * lib/setenv.c: Likewise.
92936         * lib/userspec.c: Likewise.
92937
92938 2003-01-09  Karl Berry  <karl@gnu.org>
92939
92940         * MODULES.html.sh: include `dirname $0` in PATH, to find
92941         gnulib-tool.
92942
92943 2003-01-09  Bruno Haible  <bruno@clisp.org>
92944
92945         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92946         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92947
92948 2003-01-09  Bruno Haible  <bruno@clisp.org>
92949
92950         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92951
92952 2003-01-09  Bruno Haible  <bruno@clisp.org>
92953
92954         * lib/stdbool.h.in: New file.
92955
92956 2003-01-09  Bruno Haible  <bruno@clisp.org>
92957
92958         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92959         * MODULES.html.sh: Likewise.
92960
92961 2003-01-08  Jim Meyering  <jim@meyering.net>
92962
92963         * lib/full-write.c: Undefine and define-away `const' after inclusion
92964         of errno.h, not before.  Suggestion from Bruno Haible.
92965
92966 2003-01-08  Bruno Haible  <bruno@clisp.org>
92967
92968         * modules/full-read: Depend on full-write.
92969
92970 2003-01-08  Bruno Haible  <bruno@clisp.org>
92971
92972         * lib/safe-read.c: Include specification header first, to ensure its
92973         selfcontainedness.
92974         * lib/full-write.c: Likewise.
92975
92976 2003-01-07  Jim Meyering  <jim@meyering.net>
92977
92978         * lib/full-write.c: Rework so that it may serve to define full_read,
92979         too.
92980         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92981
92982 2003-01-07  Bruno Haible  <bruno@clisp.org>
92983
92984         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92985         <inttypes.h>.
92986         * lib/xstrtol.h: Likewise.
92987         * lib/xstrtoimax.c: Likewise.
92988         * lib/xstrtoumax.c: Likewise.
92989         * lib/human.h: Likewise.
92990
92991         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92992         on systems that have <inttypes.h> but not <stdint.h>.
92993
92994 2003-01-07  Bruno Haible  <bruno@clisp.org>
92995
92996         * MODULES.html.sh: Add copyright notice.
92997         (missed_files): Omit CVS directory entries.
92998         (func_module): Make it work with sed-3.02.
92999         * MODULES.txt: Remove file.
93000
93001 2003-01-06  Jim Meyering  <jim@meyering.net>
93002
93003         * lib/version-etc.c: Update year in translatable copyright string.
93004
93005 2003-01-03  Karl Berry  <karl@gnu.org>
93006
93007         * config/config.{guess,sub}: update from prep.
93008
93009 2003-01-02  Karl Berry  <karl@gnu.org>
93010
93011         * doc/COPYING.DOC: belatedly updated to 1.2.
93012
93013 2003-01-01  Karl Berry  <karl@gnu.org>
93014
93015         * gnulib-tool (func_verify_module): report module name $module in
93016         error message, not $1.
93017         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93018         be created, only if it doesn't exist.
93019         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93020
93021 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93022
93023         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93024
93025 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93026
93027         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93028         memcmp if strcoll doesn't work.
93029
93030 2002-12-31  Bruno Haible  <bruno@clisp.org>
93031
93032         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93033         nonempty.
93034
93035 2002-12-31  Bruno Haible  <bruno@clisp.org>
93036
93037         * lib/memcoll.c (STRCOLL): New macro.
93038         (memcoll): Use it.
93039
93040 2002-12-31  Bruno Haible  <bruno@clisp.org>
93041
93042         * lib/localcharset.h: New file.
93043         * lib/localcharset.c: Include it.
93044         * lib/unicodeio.c: Likewise.
93045
93046 2002-12-31  Bruno Haible  <bruno@clisp.org>
93047
93048         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93049         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93050
93051 2002-12-31  Bruno Haible  <bruno@clisp.org>
93052
93053         * lib/getline.h: Include <stddef.h>, for size_t.
93054
93055         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93056         * lib/unicodeio.c: Don't include <stddef.h>.
93057
93058 2002-12-31  Bruno Haible  <bruno@clisp.org>
93059
93060         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93061         HAVE_TM_ZONE.
93062
93063 2002-12-24  Karl Berry  <karl@gnu.org>
93064
93065         * config/config.guess: update from prep.
93066
93067 2002-12-24  Bruno Haible  <bruno@clisp.org>
93068
93069         General infrasructure.
93070         * m4/README: Rewritten.
93071         * m4/onceonly.m4: New file.
93072         * m4/onceonly_2_57.m4: New file.
93073
93074         Module atexit.
93075         * m4/atexit.m4: New file.
93076
93077         Module strtod.
93078         * m4/strtod.m4: New file.
93079
93080         Module strtol.
93081         * m4/strtol.m4: New file.
93082
93083         Module strtoul.
93084         * m4/strtoul.m4: New file.
93085
93086         Module memchr.
93087         * m4/memchr.m4: New file.
93088
93089         Module memcmp.
93090         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93091         (jm_FUNC_MEMCMP): Invoke it.
93092
93093         Module memcpy.
93094         * m4/memcpy.m4: New file.
93095
93096         Module memmove.
93097         * m4/memmove.m4: New file.
93098
93099         Module memset.
93100         * m4/memset.m4: New file.
93101
93102         Module strcspn.
93103         * m4/strcspn.m4: New file.
93104
93105         Module strpbrk.
93106         * m4/strpbrk.m4: New file.
93107
93108         Module strstr.
93109         * m4/strstr.m4: New file.
93110
93111         Module strerror.
93112         * m4/strerror.m4: New file.
93113
93114         Module mktime.
93115         * m4/mktime.m4: Renamed from jm-mktime.m4.
93116         (gl_PREREQ_MKTIME): New macro.
93117         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93118
93119         Module malloc.
93120         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93121         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93122         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93123
93124         Module realloc.
93125         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93126         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93127         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93128
93129         Module strftime.
93130         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93131         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93132         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93133         gl_TM_GMTOFF.
93134         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93135
93136         Module xalloc.
93137         * m4/xalloc.m4: New file.
93138
93139         Module alloca.
93140         * m4/alloca.m4: New file.
93141
93142         Module putenv.
93143         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93144         (jm_FUNC_PUTENV): Invoke it.
93145
93146         Module setenv.
93147         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93148         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93149         when invoked twice.
93150         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93151         gt_FUNC_SETENV.
93152
93153         Module memrchr.
93154         * m4/memrchr.m4: New file.
93155
93156         Module stpcpy.
93157         * m4/stpcpy.m4: New file.
93158
93159         Module strcase.
93160         * m4/strcase.m4: New file.
93161
93162         Module strdup.
93163         * m4/strdup.m4: New file.
93164
93165         Module strnlen.
93166         * m4/strnlen.m4: New file.
93167
93168         Module strndup.
93169         * m4/strndup.m4: New file.
93170
93171         Module xstrtod.
93172         * m4/xstrtod.m4: New file.
93173
93174         Module xstrtol.
93175         * m4/xstrtol.m4: New file.
93176
93177         Module getdate.
93178         * m4/getdate.m4: New file.
93179
93180         Module unlocked-io.
93181         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93182         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93183         * m4/jm-glibc-io.m4n: Remove file.
93184
93185         Module long-options.
93186         * m4/long-options.m4: New file.
93187
93188         Module md5.
93189         * m4/md5.m4: New file.
93190
93191         Module sha.
93192         * m4/sha.m4: New file.
93193
93194         Module getstr.
93195         * m4/getstr.m4: New file.
93196
93197         Module getline.
93198         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93199         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93200         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93201         simply getline. Infoke gl_PREREQ_GETLINE.
93202
93203         Module obstack.
93204         * m4/obstack.m4: New file.
93205
93206         Module hash.
93207         * m4/hash.m4: New file.
93208
93209         Module readtokens.
93210         * m4/readtokens.m4: New file.
93211
93212         Module strverscmp.
93213         * m4/strverscmp.m4: New file.
93214
93215         Module stdbool.
93216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93217         OSF/1.
93218
93219         Module strtoll.
93220         * m4/strtoll.m4: New file.
93221
93222         Module strtoull.
93223         * m4/strtoull.m4: New file.
93224
93225         Module strtoimax.
93226         * m4/strtoimax.m4: New file.
93227
93228         Module strtoumax.
93229         * m4/strtoumax.m4: New file.
93230
93231         Module xstrtoimax.
93232         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93233         jm_AC_PREREQ_XSTRTOIMAX.
93234         Moved the strtol prerequisites to strtol.m4.
93235         Moved the strtoll prerequisites to strtoll.m4.
93236         Moved the strtoimax prerequisites to strtoimax.m4.
93237
93238         Module xstrtoumax.
93239         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93240         jm_AC_PREREQ_XSTRTOUMAX.
93241         Moved the strtoul prerequisites to strtoul.m4.
93242         Moved the strtoull prerequisites to strtoull.m4.
93243         Moved the strtoumax prerequisites to strtoumax.m4.
93244
93245         Module chown.
93246         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93247         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93248
93249         Module dup2.
93250         * m4/dup2.m4: New file.
93251
93252         Module ftruncate.
93253         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93254         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93255
93256         Module getgroups.
93257         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93258         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93259
93260         Module gettimeofday.
93261         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93262         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93263         gl_PREREQ_GETTIMEOFDAY.
93264
93265         Module mkdir.
93266         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93267         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93268
93269         Module mkstemp.
93270         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93271         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93272         jm_AC_TYPE_UINTMAX_T.
93273         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93274
93275         Module stat.
93276         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93277         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93278
93279         Module lstat.
93280         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93281         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93282
93283         Module timespec.
93284         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93285         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93286         * m4/st_mtim.m4: Indentation.
93287
93288         Module nanosleep.
93289         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93290         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93291         gl_PREREQ_NANOSLEEP.
93292
93293         Module regex.
93294         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93295         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93296         (gl_REGEX): New macro.
93297
93298         Module rename.
93299         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93300         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93301
93302         Module rmdir.
93303         * m4/rmdir.m4: New file.
93304
93305         Module utime.
93306         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93307         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93308         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93309
93310         Module dirname.
93311         * m4/dirname.m4: New file.
93312
93313         Module getopt.
93314         * m4/getopt.m4: New file.
93315
93316         Module unistd-safer.
93317         * m4/unistd-safer.m4: New file.
93318
93319         Module fnmatch.
93320         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93321         declaration.
93322         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93323         (gl_FUNC_FNMATCH_POSIX): New macro.
93324         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93325         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93326         simply fnmatch.
93327
93328         Module exclude.
93329         * m4/exclude.m4: New file.
93330
93331         Module human.
93332         * m4/human.m4: New file.
93333
93334         Module acl.
93335         * m4/acl.m4: Nop.
93336
93337         Module backupfile.
93338         * m4/backupfile.m4: New file.
93339         * m4/d-ino.m4: Indentation.
93340
93341         Module fsusage.
93342         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93343         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93344         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93345
93346         Module dirfd.
93347         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93348         requirements.
93349
93350         Module euidaccess.
93351         * m4/euidaccess.m4: New file.
93352
93353         Module file-type.
93354         * m4/file-type.m4: New file.
93355
93356         Module fileblocks.
93357         * m4/fileblocks.m4: New file.
93358
93359         Module filemode.
93360         * m4/filemode.m4: New file.
93361
93362         Module isdir.
93363         * m4/isdir.m4: New file.
93364
93365         Module lchown.
93366         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93367         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93368
93369         Module makepath.
93370         * m4/makepath.m4: New file.
93371
93372         Module modechange.
93373         * m4/modechange.m4: New file.
93374
93375         Module mountlist.
93376         * m4/mountlist.m4: New file.
93377         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93378         Indentation.
93379
93380         Module path-concat.
93381         * m4/path-concat.m4: New file.
93382
93383         Module pathmax.
93384         * m4/pathmax.m4: New file.
93385
93386         Module same.
93387         * m4/same.m4: New file.
93388
93389         Module save-cwd.
93390         * m4/save-cwd.m4: New file.
93391
93392         Module savedir.
93393         * m4/savedir.m4: New file.
93394
93395         Module xgetcwd.
93396         * m4/xgetcwd.m4: New file.
93397         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93398
93399         Module xreadlink.
93400         * m4/xreadlink.m4: New file.
93401
93402         Module safe-read.
93403         * m4/safe-read.m4: New file.
93404
93405         Module safe-write.
93406         * m4/safe-write.m4: New file.
93407
93408         Module closeout.
93409         * m4/closeout.m4: New file.
93410
93411         Module stdio-safer.
93412         * m4/stdio-safer.m4: New file.
93413
93414         Module getpass.
93415         * m4/getpass.m4: New file.
93416
93417         Module getugroups.
93418         * m4/getugroups.m4: New file.
93419
93420         Module group-member.
93421         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93422         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93423
93424         Module idcache.
93425         * m4/idcache.m4: New file.
93426
93427         Module userspec.
93428         * m4/userspec.m4: New file.
93429
93430         Module gettime.
93431         * m4/clock_time.m4: New file.
93432         * m4/gettime.m4: New file.
93433
93434         Module settime.
93435         * m4/settime.m4: New file.
93436
93437         Module posixtm.
93438         * m4/posixtm.m4: New file.
93439
93440         Module gethostname.
93441         * m4/gethostname.m4: New file.
93442
93443         Module canon-host.
93444         * m4/canon-host.m4: New file.
93445
93446         Module gettext.
93447         * m4/codeset.m4: New file, from gettext-0.11.5.
93448         * m4/gettext.m4: New file, from gettext-0.11.5.
93449         * m4/glibc21.m4: New file, from gettext-0.11.5.
93450         * m4/iconv.m4: New file, from gettext-0.11.5.
93451         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93452         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93453         * m4/inttypes.m4: New file, from gettext-0.11.5.
93454         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93455         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93456         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93457         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93458         * m4/lib-link.m4: New file, from gettext-0.11.5.
93459         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93460         * m4/progtest.m4: New file, from gettext-0.11.5.
93461         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93462         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93463         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93464
93465         Module localcharset.
93466         * m4/localcharset.m4: New file.
93467
93468         Module hard-locale.
93469         * m4/hard-locale.m4: New file.
93470
93471         Module mbswidth.
93472         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93473         onceonly macros.
93474         * m4/mbrtowc.m4: Add comment.
93475
93476         Module memcasecmp.
93477         * m4/memcasecmp.m4: New file.
93478
93479         Module memcoll.
93480         * m4/memcoll.m4: New file.
93481
93482         Module unicodeio.
93483         * m4/unicodeio.m4: New file.
93484
93485         Module rpmatch.
93486         * m4/rpmatch.m4: New file.
93487
93488         Module yesno.
93489         * m4/yesno.m4: New file.
93490
93491         Module exitfail.
93492         * m4/exitfail.m4: New file.
93493
93494         Module c-stack.
93495         * m4/c-stack.m4 (gl_C_STACK): New macro.
93496         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93497
93498         Module error.
93499         * m4/error.m4 (gl_ERROR): New macro.
93500         (jm_PREREQ_ERROR): Use onceonly macros.
93501
93502         Module fatal.
93503         * m4/fatal.m4: New file.
93504
93505         Module getloadavg.
93506         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93507         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93508
93509         Module getpagesize.
93510         * m4/getpagesize.m4: New file.
93511
93512         Module getusershell.
93513         * m4/getusershell.m4: New file.
93514
93515         Module physmem.
93516         * m4/physmem.m4: New file.
93517
93518         Module posixver.
93519         * m4/posixver.m4: New file.
93520
93521         Module quotearg.
93522         * m4/quotearg.m4: New file.
93523
93524         Module quote.
93525         * m4/quote.m4: New file.
93526
93527         Module readutmp.
93528         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93529
93530         Module sig2str.
93531         * m4/sig2str.m4: New file.
93532
93533         Other.
93534         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93535         ulonglong.m4.
93536         * m4/intmax_t.m4: New file.
93537         * m4/d-type.m4: Indentation.
93538         * m4/jm-macros.m4: Update.
93539         * m4/prereq.m4 (jm_PREREQ): Update.
93540         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93541         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93542         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93543         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93544         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93545         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93546         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93547         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93548         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93549         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93550         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93551         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93552         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93553         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93554         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93555         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93556         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93557         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93558         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93559
93560 2002-12-24  Bruno Haible  <bruno@clisp.org>
93561
93562         * MODULES.txt: Update according to m4/ changes.
93563
93564         Module gettext.
93565         * config.rpath: New file, from gettext-0.11.5.
93566
93567         * modules/*: New module descriptions.
93568         * gnulib-tool: New file.
93569         * MODULES.html.sh: New file.
93570
93571 2002-12-21  Karl Berry  <karl@gnu.org>
93572
93573         * doc/fdl.texi: update to version 1.2.
93574
93575 2002-12-19  Karl Berry  <karl@gnu.org>
93576
93577         * config/config.guess: update from prep.
93578
93579 2002-12-18  Bruno Haible  <bruno@clisp.org>
93580
93581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93582         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93583
93584 2002-12-17  Bruno Haible  <bruno@clisp.org>
93585
93586         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93587         stdlib.h, string.h.
93588
93589 2002-12-17  Bruno Haible  <bruno@clisp.org>
93590
93591         * lib/canon-host.c (strdup): Remove unused declaration.
93592
93593         * lib/fsusage.c: Include full_read.h.
93594         (get_fs_usage): Use full_read instead of safe_read.
93595
93596         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93597
93598 2002-12-12  Karl Berry  <karl@gnu.org>
93599
93600         * config/config.guess: update from prep.
93601
93602 2002-12-11  Bruno Haible  <bruno@clisp.org>
93603
93604         * m4/setenv.m4: New file, from gettext-0.11.5.
93605
93606 2002-12-11  Bruno Haible  <bruno@clisp.org>
93607
93608         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93609         not unsetenv().
93610         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93611         modifications:
93612
93613         2002-12-11  Bruno Haible  <bruno@clisp.org>
93614
93615                 * setenv.c (alloca): Fall back to malloc.
93616                 (freea): New macro.
93617                 (setenv): Use freea() to free memory allocated with alloca().
93618
93619         2002-11-13  Bruno Haible  <bruno@clisp.org>
93620
93621                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93622                 function declarations.
93623                 * unsetenv.c (unsetenv): Likewise.
93624
93625         2002-03-04  Bruno Haible  <bruno@clisp.org>
93626
93627                 Portability to AIX 4.3.3.
93628                 * unsetenv.c: New file, extracted from setenv.c.
93629                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93630
93631         2001-12-20  Bruno Haible  <bruno@clisp.org>
93632
93633                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93634                 use malloc instead. For SunOS 4.
93635
93636         2001-12-11  Bruno Haible  <bruno@clisp.org>
93637
93638                 * setenv.c: Declare alloca.
93639                 (compar_fn_t): New typedef.
93640                 (KNOWN_VALUE, STORE_VALUE): Use it.
93641
93642         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93643         setenv.h.
93644
93645 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93646
93647         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93648         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93649         Choose values that are less likely to collide with system fnmatch
93650         options.
93651         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93652         defined (e.g., a pure POSIX system).
93653         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93654         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93655
93656 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93657
93658         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93659         a pain in practice to deal with generated m4 files.  This change
93660         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93661
93662         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93663         and jm-glibc-io.m4, as they are no longer a special case.
93664         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93665         kludge and the auto-generation stuff.  Check only whether the
93666         functions are declared, not whether they exist, since older hosts
93667         that don't declare the functions can't use the optimization anyway.
93668
93669 2002-12-06  Jim Meyering  <jim@meyering.net>
93670
93671         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93672
93673         Merge in changes from libc's misc/error.c, in preparation
93674         for the merge of gnulib's changes back into libc.
93675
93676         * lib/error.c (_): Define only if not already defined.
93677         Move definition to follow all #include directives.
93678         Include unlocked-io.h only if !_LIBC.
93679         [_LIBC]: Include <libio/libioP.h>.
93680         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93681         (fflush): Tweak definition to use INTUSE.
93682         (putc): Define.
93683
93684 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93685
93686         * lib/alloca.c [defined emacs]: Include "lisp.h".
93687         (xalloc_die) [defined emacs]: New macro.
93688         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93689         [! defined emacs]: Include <xalloc.h>.
93690         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93691         (pointer): Typedef to POINTER_TYPE *.
93692         (malloc): Remove decl; we now always use xmalloc.
93693         (alloca): Use old-style definition, since Emacs needs this.
93694         Check for arithmetic overflow when computing combined size.
93695
93696 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93697
93698         Do not generate unlocked-io.h automatically, since it's easier to
93699         maintain it by hand.
93700
93701         * lib/unlocked-io.h: New file, from GNU diffutils,
93702         but with proper copyright notice and attribution.
93703         * lib/gen-uio: Remove.
93704         * lib/Makefile.am: Add copyright notice.
93705         (libfetish_a_SOURCES): Add unlocked-io.h.
93706         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93707         (DISTCLEANFILES, io_functions): Remove macros.
93708         (EXTRA_DIST): Remove gen_uio.
93709         (unlocked-io.h): Remove rule.
93710
93711 2002-12-04  Jim Meyering  <jim@meyering.net>
93712
93713         Reflect the fact that stat.c and lstat.c are no longer generated.
93714         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93715         (DISTCLEANFILES): Likewise.
93716         (EXTRA_DIST): Likewise.
93717         (all_local): Don't depend on stat.c or lstat.c.
93718         (stat.c, lstat.c): Remove rules.
93719         (EXTRA_DIST): Remove xstat.in.
93720
93721         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93722         * lib/stat.c: New file.  Contents mostly from xstat.in.
93723         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93724         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93725
93726         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93727         too.
93728         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93729
93730 2002-12-03  Jim Meyering  <jim@meyering.net>
93731
93732         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93733         but not semantics, to minimize the differences between these two files.
93734         (safe_read): Change comment to mention SAFE_READ_ERROR.
93735
93736         * lib/safe-read.c (IS_EINTR): Define.
93737         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93738
93739 2002-12-02  Jim Meyering  <jim@meyering.net>
93740
93741         * lib/safe-read.c (EINTR): Define.
93742         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93743         (INT_MAX): Provide fallback.
93744         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93745
93746         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93747
93748 2002-12-02  Bruno Haible  <bruno@clisp.org>
93749
93750         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93751         Define, taken from safe-read.c.
93752         (INT_MAX): Provide fallback.
93753         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93754         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93755
93756         * lib/safe-read.c (EINTR): Remove definition.
93757         (safe_read): Don't use EINTR if it is absent.
93758
93759 2002-12-01  Jim Meyering  <jim@meyering.net>
93760
93761         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93762         zero.
93763         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93764
93765 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93766
93767         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93768         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93769         with `if (! (value < limit)) abort ();', for readability.
93770
93771 2002-11-26  Karl Berry  <karl@gnu.org>
93772
93773         * lib/strdup.c: copy from libc again, with jim's ok.
93774         * lib/.cppi-disable: re-add strdup.c
93775
93776 2002-11-25  Karl Berry  <karl@gnu.org>
93777
93778         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93779         instead of "strtol.c".
93780
93781 2002-11-25  Karl Berry  <karl@gnu.org>
93782
93783         * config/install-sh: update from automake for variable quoting, $0 in
93784         error msgs, etc.
93785
93786         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93787         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93788         entry.
93789
93790 2002-11-25  Jim Meyering  <jim@meyering.net>
93791
93792         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93793
93794 2002-11-24  Karl Berry  <karl@gnu.org>
93795
93796         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93797         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93798
93799 2002-11-24  Jim Meyering  <jim@meyering.net>
93800
93801         Update from coreutils:
93802
93803         * lib/mktime.c: Merge in changes from libc.
93804
93805         Avoid a link-time failure on some Linux systems.
93806         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93807         (otherwise).
93808         (__mon_yday): Declare with the STATIC attribute.
93809         (__mktime_internal): Likewise.
93810         Based on a report from Greg Schafer.
93811
93812 2002-11-23  Jim Meyering  <jim@meyering.net>
93813
93814         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93815         Use `unsigned', not `int', as type of index.
93816
93817         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93818
93819         * lib/fsusage.c: Remove unneeded parentheses around operands of
93820         `defined'.
93821
93822 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93823
93824         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93825         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93826         so that we can be included first.
93827         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93828         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93829         No need to include stddef.h or sys/types.h any more.
93830         Surround local include files with "", not "<>".
93831         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93832         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93833         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93834         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93835         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93836         (ISPRINT): Remove; no longer needed now that we assume C89.
93837
93838         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93839         Preserve errno.
93840
93841         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93842         quotearg_char): Use SIZE_MAX rather than
93843         (size_t) -1 when we are talking about "infinity".
93844
93845         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93846
93847 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93848
93849         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93850         hint that one should use `if (! x) abort ();' rather than `assert
93851         (x);', and anyway it's one less thing to worry about configuring.
93852         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93853         hash_rehash, hash_insert): Use abort rather than assert.
93854
93855 2002-11-22  Bruno Haible  <bruno@clisp.org>
93856
93857         * lib/safe-read.h: Assume C89. Add comments.
93858         (safe_read): Change return type to size_t.
93859         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93860         byte counts > SSIZE_MAX correctly.
93861         * lib/safe-write.h: New file.
93862         * lib/safe-write.c: New file.
93863         * lib/full-read.h: New file.
93864         * lib/full-read.c: New file.
93865         * lib/full-write.h: Assume C89. Add comments.
93866         * lib/full-write.c: Include safe-write.h.
93867         (full_write): Rewritten to use safe_write.
93868         Suggested by Jim Meyering and Paul Eggert.
93869
93870 2002-11-21  Jim Meyering  <jim@meyering.net>
93871
93872         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93873
93874         Merge in changes from the coreutils.
93875
93876         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93877         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93878         <stdint.h>.
93879         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93880         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93881         int.  Work more efficiently if X is the same width as uintmax_t.
93882         Do not compare X to -1, to avoid bogus compiler warning.
93883         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93884         Don't assume that f_frsize and f_bsize are the same type.
93885
93886         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93887         warning on FreeBSD.
93888
93889         * lib/makepath.c (make_path): Restore umask *before* creating the final
93890         component.
93891         (make_path): Minor reformatting.
93892
93893         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93894         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93895         HAVE_MALLOC/HAVE_REALLOC.
93896
93897         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93898         dummy ones.  At least on GNU/Linux systems, `auto' means something
93899         else.
93900         From Michael Stone.
93901
93902 2002-11-21  Bruno Haible  <bruno@clisp.org>
93903
93904         Remove case insensitive option matching.
93905         * lib/argmatch.h (argcasematch): Remove declaration.
93906         (ARGCASEMATCH): Remove macro.
93907         (__xargmatch_internal): Remove case_sensitive argument.
93908         (XARGMATCH): Update.
93909         (XARGCASEMATCH): Remove macro.
93910         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93911         case_sensitive argument.
93912         (argcasematch): Remove function.
93913         (__xargmatch_internal): Remove case_sensitive argument.
93914         (main): Use XARGMATCH instead of XARGCASEMATCH.
93915
93916         * lib/xmalloc.c: Change compile-time error message. Add comment about
93917         required autoconf version.
93918
93919 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93920
93921         Merge argmatch cleanups from Bison.  Assume C89.
93922
93923         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93924         Include stdlib.h, for EXIT_FAILURE.
93925         Always include <string.h>, since we assume C89.
93926         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93927         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93928         Include <stddef.h> instead, since it's all we need for size_t.
93929         (PARAMS): Remove.  All uses removed.
93930         (ARRAY_CARDINALITY): Do not bother to #undef.
93931         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93932         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93933         Remove unnecessary parentheses.
93934         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93935         Insert necessary parentheses.
93936         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93937         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93938
93939 2002-11-19  Bruno Haible  <bruno@clisp.org>
93940
93941         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93942         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93943
93944         * lib/mbswidth.h (PARAMS): Remove macro.
93945         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93946         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93947
93948         * lib/gcd.h (PARAMS): Remove macro.
93949         (gcd): Use ANSI C function declarations.
93950         * lib/gcd.c (gcd): Likewise.
93951
93952 2002-11-15  Bruno Haible  <bruno@clisp.org>
93953
93954         * lib/strcspn.c: Include <stddef.h>.
93955         (strcspn): Use ANSI C function declaration. Change return type to
93956         size_t. Use NULL.
93957         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93958         (strpbrk): Use NULL.
93959         * lib/strpbrk.h (PARAMS): Remove macro.
93960         (strpbrk): Use ANSI C function declaration.
93961         * lib/strstr.c: Don't include <sys/types.h>.
93962         * lib/strstr.h (PARAMS): Remove macro.
93963         (strstr): Use ANSI C function declarations.
93964
93965 2002-11-14  Karl Berry  <karl@gnu.org>
93966
93967         * config/mkinstalldirs: `do' on separate line, instead of
93968         `for var; do'.
93969
93970 2002-11-06  Bruno Haible  <bruno@clisp.org>
93971
93972         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93973         * lib/gcd.c (gcd): Likewise.
93974
93975 2002-11-05  Bruno Haible  <bruno@clisp.org>
93976
93977         * lib/gcd.h: New file, from gettext-0.11.5.
93978         * lib/gcd.c: New file, from gettext-0.11.5.
93979
93980 2002-11-05  Bruno Haible  <bruno@clisp.org>
93981
93982         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93983         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93984         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93985         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93986
93987         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93988         <libintl.h>.
93989         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93990         <libintl.h>.
93991
93992         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93993         * lib/human.c: Include gettext.h instead of <libintl.h>.
93994         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93995         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93996         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93997         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93998         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93999         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94000         (textdomain): Remove definition.
94001         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94002
94003         * lib/long-options.c: Remove include of <libintl.h> and definition of
94004         _.
94005         * lib/same.c: Remove include of <libintl.h> and definition of _.
94006
94007 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94008
94009         * lib/config.charset: A few additions for Solaris.
94010
94011 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94012
94013         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94014         * lib/localcharset.c (locale_charset): Declare as extern "C".
94015
94016 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94017
94018         * lib/config.charset: msdos in uk_UA uses CP1125.
94019
94020 2002-11-04  Bruno Haible  <bruno@clisp.org>
94021
94022         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94023         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94024         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94025         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94026         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94027
94028 2002-11-04  Bruno Haible  <bruno@clisp.org>
94029
94030         * lib/localcharset.c (locale_charset): Don't return an empty string.
94031
94032 2002-11-04  Bruno Haible  <bruno@clisp.org>
94033
94034         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94035         aliases.
94036
94037 2002-11-04  Bruno Haible  <bruno@clisp.org>
94038
94039         * lib/config.charset: Update for newest glibc. Add canonical names
94040         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94041
94042 2002-11-04  Bruno Haible  <bruno@clisp.org>
94043
94044         * lib/config.charset: Add support for NetBSD.
94045
94046 2002-11-04  Bruno Haible  <bruno@clisp.org>
94047
94048         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94049
94050 2002-11-01  Bruno Haible  <bruno@clisp.org>
94051
94052         * configure.in: Add AC_CONFIG_AUX_DIR call.
94053         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94054         test/Makefile.
94055         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94056
94057 2002-09-28  Karl Berry  <karl@gnu.org>
94058
94059         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94060         installed automake until the next release, since changes have been
94061         made.
94062
94063 2002-09-25  Karl Berry  <karl@gnu.org>
94064
94065         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94066         * lib/getopt*: copy from libc/posix.
94067         * lib/gettext.h: copy from gettext.
94068         * lib/.cppi-disable: add strdup.c, gettext.h.
94069
94070 2002-09-25  Karl Berry  <karl@gnu.org>
94071
94072         * config/srclist.txt: enable gettext.h check.
94073         * config/config.{guess,sub}: update from prep.
94074         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94075                 from automake 1.6.3.
94076         See srclist*.
94077
94078 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94079
94080         * regex.c (PATFETCH): Remove the translating fetch.
94081         (PATFETCH_RAW): Rename to PATFETCH.
94082         (set_image_of_range): New fun.
94083         (SET_RANGE_TABLE_WORK_AREA): Use it.
94084         (regex_compile): Don't translate the pattern chars so eagerly.
94085         Only do it when inserting an `exactn' bytecode or when handling
94086         a char-range.
94087         (mutually_exclusive_p): Avoid empty statement.
94088
94089 2002-07-06  Jim Meyering  <meyering@lucent.com>
94090
94091         * m4/README: Don't mention Makefile.am.in.
94092         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94093
94094 2002-07-01  Jim Meyering  <meyering@lucent.com>
94095
94096         * lib/c-stack.c: Include sys/time.h.
94097         From Volker Borchert.
94098
94099 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94100
94101         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94102
94103 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94104
94105         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94106         New macro.  Use it uniformly instead of
94107         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94108         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94109         reported by Vin Shelton.
94110
94111 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94112
94113         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94114         Do not assume SA_SIGINFO behavior.
94115         Bug reported by Jim Meyering on NetBSD 1.5.2.
94116
94117 2002-06-22  Jim Meyering  <meyering@lucent.com>
94118
94119         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94120         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94121
94122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94123         now that configure.ac uses AC_GNU_SOURCE.
94124         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94125         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94126
94127         Update to latest tools.  Suggestions from Paul Eggert.
94128         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94129         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94130         * m4/fnmatch.m4: Likewise.
94131         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94132         to AC_HEADER_STDBOOL
94133
94134 2002-06-22  Jim Meyering  <meyering@lucent.com>
94135
94136         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94137         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94138
94139 2002-06-22  Jim Meyering  <meyering@lucent.com>
94140
94141         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94142
94143         * lib/exitfail.c, exitfail.h: Likewise.
94144         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94145
94146         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94147         of fnmatch.h.
94148         (EXTRA_DIST): Add fnmatch_loop.c.
94149         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94150
94151         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94152         * lib/fnmatch.c: Update from diffutils-2.8.2.
94153         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94154         * lib/fnmatch.h: Remove file.
94155
94156 2002-06-21  Jim Meyering  <meyering@lucent.com>
94157
94158         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94159         * m4/mbrtowc.m4: Likewise.
94160
94161         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94162         * m4/mbswidth.m4: Reflect name change:
94163         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94164         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94165
94166         * m4/lib-link.m4: Update from gettext-0.11.2.
94167         * m4/gettext.m4: Likewise.
94168
94169         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94170         From Alfred M. Szmidt.
94171
94172 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94173
94174         * lib/file-type.h: Report an error if neither S_ISREG nor
94175         S_IFREG is defined, instead of using a test specific to glibc
94176         2.2.  This should be safe, since POSIX requires S_ISREG and
94177         Unix Version 7 had S_IFREG.  We don't need to check for
94178         <sys/types.h> since we don't use any symbols that it defines.
94179
94180 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94181
94182         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94183         $@-t, so that each temporary file name is unique and valid in the first
94184         8 characters, for operation under DOS.
94185
94186 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94187
94188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94189
94190 2002-06-15  Jim Meyering  <meyering@lucent.com>
94191
94192         Work even with DJGPP 2.03, which lacks support for symlinks.
94193         From Richard Dawe.
94194         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94195         is defined.
94196         * lib/lchown.c (S_ISLNK): Likewise.
94197
94198 2002-06-15  Jim Meyering  <meyering@lucent.com>
94199
94200         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94201         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94202         have been included before this file.
94203
94204 2002-06-14  Jim Meyering  <meyering@lucent.com>
94205
94206         * lib/file-type.h: Use the version from diffutils-2.8.2.
94207         * lib/file-type.c: Likewise.
94208
94209 2002-06-07  Jim Meyering  <meyering@lucent.com>
94210
94211         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94212         They're needed at least for NetBSD 1.5.2.
94213         ($statxfs_includes): Include those same headers.
94214         ($statxfs_includes): Include sys/vfs.h if available.
94215         ($statxfs_includes): Likewise for sys/statvfs.h.
94216         Check for the following members in both structs statfs and statvfs:
94217         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94218
94219 2002-06-01  Jim Meyering  <meyering@lucent.com>
94220
94221         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94222         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94223
94224 2002-05-28  Jim Meyering  <meyering@lucent.com>
94225
94226         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94227         Reported by Volker Borchert.
94228
94229 2002-05-27  Jim Meyering  <meyering@lucent.com>
94230
94231         Fix a problem seen only on nonconforming systems whereby ls.c's
94232         use of localtime, and then of gettimeofday would cause trouble:
94233         the localtime call used to initialize rpl_gettimeofday's save
94234         mechanism would clobber ls's current local time information so
94235         that in any long listing the first file would always be listed
94236         with date 1970-01-01.  Analysis by Volker Borchert.
94237
94238         * lib/gettimeofday.c (localtime): Undefine.
94239         (rpl_localtime): New function.
94240
94241 2002-05-27  Jim Meyering  <meyering@lucent.com>
94242
94243         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94244         localtime.
94245
94246         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94247         use the replacement function; it wouldn't resolve at link time.
94248         Reported by Volker Borchert.
94249
94250 2002-05-22  Jim Meyering  <meyering@lucent.com>
94251
94252         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94253         file-type.h.
94254         * lib/file-type.h: New file.
94255         * lib/file-type.c (file_type): New file/function.  Extracted from
94256         diffutils.
94257
94258 2002-04-30  Jim Meyering  <meyering@lucent.com>
94259
94260         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94261
94262 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94263
94264         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94265
94266 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94267
94268         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94269         Do not check for alloca.h (no longer used) or stdbool.h (was never
94270         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94271
94272 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94273
94274         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94275
94276 2002-04-29  Jim Meyering  <meyering@lucent.com>
94277
94278         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94279         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94280         Use AC_FUNC_STRNLEN here instead.
94281
94282         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94283         With autoconf-2.53a, it's part of AC_PROG_CC.
94284
94285 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94286
94287         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94288         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94289
94290 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94291
94292         * lib/sig2str.h, lib/sig2str.c: New files.
94293         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94294
94295 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94296
94297         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94298         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94299         of 127, since 64 is the largest conceivable number for ancient
94300         nonstandard hosts.
94301         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94302
94303 2002-04-28  Jim Meyering  <meyering@lucent.com>
94304
94305         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94306
94307 2002-04-24  Jim Meyering  <meyering@lucent.com>
94308
94309         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94310         (jm_PREREQ): Use it.
94311
94312         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94313         mach/mach.h fcntl.h.
94314         Check for this function: setlocale.
94315
94316 2002-04-24  Jim Meyering  <meyering@lucent.com>
94317
94318         * lib/gettext.h: New file, from Gettext.
94319         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94320         (libfetish_a_SOURCES): Add gettext.h.
94321
94322 2002-04-16  Jim Meyering  <meyering@lucent.com>
94323
94324         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94325         ut_pid, ut_id, ut_exit.
94326
94327 2002-04-16  Jim Meyering  <meyering@lucent.com>
94328
94329         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94330         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94331         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94332
94333 2002-04-12  Jim Meyering  <meyering@lucent.com>
94334
94335         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94336         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94337         existence of the getmntinfo function.  Needed for Darwin 5.3.
94338
94339         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94340         This is necessary at least on Darwin 5.3.
94341
94342         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94343         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94344         strnlen.o in the library, and that makes some versions of ranlib
94345         object.
94346
94347 2002-04-12  Jim Meyering  <meyering@lucent.com>
94348
94349         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94350
94351 2002-04-09  Jim Meyering  <meyering@lucent.com>
94352
94353         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94354         to be more precise.  Rather than saying we're checking whether the
94355         function `works', say what we're testing.
94356         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94357         Reported by Bruno Haible.
94358
94359 2002-03-10  Jim Meyering  <meyering@lucent.com>
94360
94361         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94362         Suggestion from Santiago Vila.
94363
94364 2002-03-08  Jim Meyering  <meyering@lucent.com>
94365
94366         * lib/rename.c: Mention that this wrapper is needed also on
94367         mips-dec-ultrix4.4 systems.
94368
94369 2002-03-02  Jim Meyering  <meyering@lucent.com>
94370
94371         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94372         not HAVE_CLOCK_SETTIME.
94373
94374 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94375
94376         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94377         Check for clock_settime.
94378
94379 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94380
94381         * lib/nanosleep.h: Rename to....
94382         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94383
94384         * lib/gettime.c: New file.
94385         * lib/settime.c: New file.
94386         * lib/stime.c: Remove.
94387
94388         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94389         timespec.h.  Remove nanosleep.h.
94390
94391 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94392
94393         * m4/acl.m4: New file.
94394         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94395         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94396
94397 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94398
94399         * lib/acl.c, lib/acl.h: New files.
94400         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94401
94402 2002-02-24  Jim Meyering  <meyering@lucent.com>
94403
94404         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94405         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94406         cause trouble.  Reported by Nelson Beebe.
94407
94408 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94409
94410         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94411         compilers that don't know that xalloc_die never returns.
94412
94413 2002-02-20  Jim Meyering  <meyering@lucent.com>
94414
94415         * lib/getdate.c: Regenerate using bison-1.33.
94416
94417 2002-02-17  Jim Meyering  <meyering@lucent.com>
94418
94419         * config/config.guess (main): Don't use `head -1'; it's no longer
94420         portable. Use `sed 1q' instead.
94421
94422 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94423
94424         * m4/codeset.m4: Upgrade to gettext-0.11.
94425         * m4/gettext.m4: Upgrade to gettext-0.11.
94426         * m4/glibc21.m4: Upgrade to gettext-0.11.
94427         * m4/iconv.m4: Upgrade to gettext-0.11.
94428         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94429         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94430         * m4/lib-ld.m4: New file, from gettext-0.11.
94431         * m4/lib-link.m4: New file, from gettext-0.11.
94432         * m4/lib-prefix.m4: New file, from gettext-0.11.
94433         * m4/progtest.m4: Upgrade to gettext-0.11.
94434
94435 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94436
94437         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94438         (jm_PREREQ): Use it.
94439
94440 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94441
94442         * lib/posixver.c, lib/posixver.h: New files.
94443         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94444
94445 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94446             Bruno Haible  <bruno@clisp.org>
94447
94448         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94449         (fwrite_success_callback): New declaration.
94450         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94451         print_unicode_char. Call failure callback instead of error.
94452         (fwrite_success_callback): New function.
94453         (exit_failure_callback): New function.
94454         (fallback_failure_callback): New function.
94455         (print_unicode_char): Call unicode_to_mb.
94456
94457 2002-01-26  Jim Meyering  <meyering@lucent.com>
94458
94459         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94460         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94461
94462 2002-01-26  Jim Meyering  <meyering@lucent.com>
94463
94464         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94465
94466 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94467
94468         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94469
94470 2002-01-22  Jim Meyering  <meyering@lucent.com>
94471
94472         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94473         Otherwise, some versions of automake would omit the rule that makes
94474         Makefile from Makefile.in.
94475
94476 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94477
94478         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94479         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94480         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94481         (memcoll): Set errno to zero if there is no error.
94482
94483         * lib/quotearg.c (quotearg_buffer_restyled):
94484         Fix bug with quoting buffers containing NUL when backslashing escapes.
94485         This bug was exposed by the other changes in this patch.
94486         (quotearg_n_options): New arg ARGSIZE.
94487         All callers changed.
94488         (quoting_options_from_style): New function.
94489         (quotearg_n_style): Use it.
94490         (quotearg_n_style_mem): New function.
94491
94492         * lib/quotearg.h (quotearg_n_style_mem): New function.
94493
94494 2002-01-19  Jim Meyering  <meyering@lucent.com>
94495
94496         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94497         Remove useless quotes: DF_PROG="df".
94498         * m4/strnlen.m4: New file.
94499
94500 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94501
94502         * lib/backupfile.c (ISDIGIT): Comment fix.
94503         * lib/getdate.y (ISDIGIT): Likewise.
94504         * lib/posixtm.c (ISDIGIT, year): Likewise.
94505         * lib/strverscmp.c (ISDIGIT): Likewise.
94506         * lib/userspec.c (ISDIGIT): Likewise.
94507
94508 2002-01-16  Jim Meyering  <meyering@lucent.com>
94509
94510         * lib/getdate.y: Add three semicolons, each just before a closing
94511         brace. Bison (as of version 1.31) no longer papers over that mistake.
94512
94513 2002-01-05  Jim Meyering  <meyering@lucent.com>
94514
94515         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94516
94517 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94518
94519         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94520         not silently exit merely because the output buffer happens to
94521         have nothing pending.
94522
94523 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94524
94525         See the big note in ../ChangeLog.
94526         * lib/human.c (suffixes): Prefer K to k for 1024.
94527         (generate_suffix_backwards): New function.
94528         (human_readable_inexact): Use it.
94529         * lib/xstrtol.c (__xstrtol): If there is no number but there
94530         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94531         Accept 'K' as well as 'k'.
94532
94533 2001-12-15  Jim Meyering  <meyering@lucent.com>
94534
94535         * lib/regex.h (__restrict_arr): Update from libc.
94536
94537         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94538         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94539         (STREQ): Define.
94540
94541 2001-12-14  Jim Meyering  <meyering@lucent.com>
94542
94543         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94544         Suggestion from Bruno Haible.
94545
94546 2001-12-10  Jim Meyering  <meyering@lucent.com>
94547
94548         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94549         xrealloc, Instead, include "xalloc.h".
94550         (initbuffer): Don't cast xmalloc return value to char*.
94551         (readline): Reword comment.
94552         Don't cast xrealloc return value to char*
94553         Return NULL, not 0.
94554
94555 2001-12-09  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94558         about `signed and unsigned type in conditional expression'.
94559         * lib/posixtm.c (posix_time_parse): Likewise.
94560
94561         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94562
94563         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94564         to avoid a pedantic warning.
94565
94566         * lib/getstr.c: Don't include assert.h.
94567         (getstr): Remove warning-evoking assertions.
94568         Return -1 if offset parameter is out of bounds.
94569         Change the type of a local from int to size_t.
94570
94571         * lib/strftime.c (my_strftime_localtime_r): Include this function
94572         definition in the `#if ! HAVE_TM_GMTOFF' block.
94573
94574         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94575         Include xalloc.h instead.
94576
94577 2001-12-02  Jim Meyering  <meyering@lucent.com>
94578
94579         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94580         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94581         included.
94582
94583         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94584         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94585
94586 2001-11-30  Akim Demaille  <akim@epita.fr>
94587
94588         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94589         before being defined.
94590
94591 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94592
94593         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94594         First arg is int, not unsigned.
94595         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94596         (SIZE_MAX, UINT_MAX): New macros.
94597         (quotearg_n_options): Abort if N is negative.
94598         Avoid overflow check on hosts where size_t is 64 bits and int
94599         is 32 bits, as overflow is impossible there.
94600         Fix off-by-one typo that caused unnecessary reallocation.
94601
94602 2001-11-27  Jim Meyering  <meyering@lucent.com>
94603
94604         * lib/tempname.c: Merge with version from libc.
94605         * lib/regex.c: Likewise.
94606
94607         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94608         systems for which STDC_HEADERS is 0, it was not included, resulting in
94609         a warning about an integer-to-pointer conversion problem with getenv.
94610         Reported by Volker Borchert.
94611
94612 2001-11-26  Jim Meyering  <meyering@lucent.com>
94613
94614         * lib/gtod.h: Remove file.
94615         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94616         * lib/gettimeofday.c: Don't include gtod.h.
94617         (GTOD_init): Remove function.
94618         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94619         Suggestion from Volker Borchert.
94620
94621 2001-11-23  Jim Meyering  <meyering@lucent.com>
94622
94623         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94624         it.
94625         * lib/hash.c (struct hash_table): Define it here instead.
94626
94627 2001-11-22  Jim Meyering  <meyering@lucent.com>
94628
94629         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94630
94631 2001-11-20  Jim Meyering  <meyering@lucent.com>
94632
94633         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94634         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94635
94636 2001-11-19  Jim Meyering  <meyering@lucent.com>
94637
94638         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94639         directory.  Use "conftestXXXXXX" as the template.
94640         Suggestion from Paul Eggert.
94641
94642         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94643         immediately, so the test doesn't mistakenly hit the max-open-files
94644         limit.
94645
94646 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94647
94648         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94649         (TEMPORARIES): New macro.
94650         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94651         removes an artificial limitation (e.g. HP-UX 10.20, where
94652         TMP_MAX is 17576).
94653
94654 2001-11-18  Jim Meyering  <meyering@lucent.com>
94655
94656         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94657
94658 2001-11-18  Jim Meyering  <meyering@lucent.com>
94659
94660         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94661         on SunOS 4.
94662
94663         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94664         files will be created before anything else.
94665
94666 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94667
94668         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94669         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94670
94671 2001-11-17  Jim Meyering  <meyering@lucent.com>
94672
94673         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94674         Prompted by a report from Bob Proulx.
94675
94676         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94677         Instead, require UTILS_FUNC_MKSTEMP.
94678
94679 2001-11-17  Jim Meyering  <meyering@lucent.com>
94680
94681         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94682         Now, that's done as part of AC_FUNC_STRTOD.
94683
94684 2001-11-17  Jim Meyering  <meyering@lucent.com>
94685
94686         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94687         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94688         rather than group writable.  Patch by Juan F. Codagnone.
94689
94690         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94691         xrealloc, Instead, include "xalloc.h".
94692
94693         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94694         Remove explicit declarations of xmalloc, xrealloc,
94695         and xstrdup.  Instead, include "xalloc.h".
94696
94697         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94698         unlocked-io.h.
94699         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94700         Likewise.
94701         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94702
94703         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94704         Reported by Padraig Brady.
94705
94706         * lib/mkstemp.c: #undef mkstemp.
94707         Include config.h.
94708         (rpl_mkstemp): Rename from mkstemp.
94709         Protoize.
94710
94711 2001-11-16  Jim Meyering  <meyering@lucent.com>
94712
94713         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94714         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94715         determine the amount of total physical memory, use pstat_getstatic.
94716         HPUX-11 doesn't define _SC_PHYS_PAGES.
94717         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94718         If sysconf couldn't be used to determine the amount of available
94719         physical memory, use both pstat_getstatic and pstat_getdynamic.
94720         Based on a patch from Bob Proulx.
94721
94722 2001-11-10  Jim Meyering  <meyering@lucent.com>
94723
94724         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94725         (jm_PREREQ): Use it.
94726
94727 2001-11-09  Jim Meyering  <meyering@lucent.com>
94728
94729         * m4/jm-macros.m4: Require autoconf-2.52f.
94730         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94731         Use these AC_-prefixed names, not the AM_-prefixed ones.
94732
94733         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94734
94735 2001-11-05  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94738
94739 2001-11-04  Jim Meyering  <meyering@lucent.com>
94740
94741         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94742         $DEFS.
94743
94744 2001-11-03  Jim Meyering  <meyering@lucent.com>
94745
94746         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94747         of AC_DEFUN.
94748
94749         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94750         know the name of the variable in the macro definition.
94751
94752 2001-11-03  Jim Meyering  <meyering@lucent.com>
94753
94754         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94755         in argmatch_to_argument call.
94756
94757         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94758         argument.
94759
94760         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94761         e.g., a fault due to an attempt to free a NULL pointer.
94762
94763 2001-11-01  Jim Meyering  <meyering@lucent.com>
94764
94765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94766         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94767
94768 2001-11-01  Jim Meyering  <meyering@lucent.com>
94769
94770         * lib/dirfd.c, lib/dirfd.h: New files.
94771         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94772
94773         * lib/hash.c (hash_print) [TESTING]: Clean up.
94774
94775 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94776
94777         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94778         to avoid a warning if -Wall.
94779
94780 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94781
94782         * README: New file
94783         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94784         (per RMS's instructions, this is now the canonical source)
94785         * lgpl/, gpl/: New directories.
94786
94787 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94788
94789         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94790
94791 2001-10-21  Jim Meyering  <meyering@lucent.com>
94792
94793         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94794         this code would end up calling gettext even in packages built
94795         with --disable-nls.
94796         * lib/getopt.c (_): Likewise.
94797         * lib/regex.c (_): Likewise.
94798
94799 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94800
94801         * m4/error.m4 (jm_PREREQ_ERROR):
94802         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94803         AC_FUNC_STRERROR_R does that.
94804         Check for strerror declaration.
94805
94806         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94807         are supposed to have them these days.
94808         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94809         Merge changes from latest Autoconf CVS.
94810         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94811         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94812         POSIX decided to standardize on the int flavor of strerror_r.
94813
94814 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94815
94816         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94817         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94818         Use strerror_r that is only a macro, even if it is not a function.
94819         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94820         (private_strerror): Use prototypes, not old-style function definition.
94821         (print_errno_message): New function.
94822         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94823         char*-flavored one.
94824         (error_tail, error, error_at_line): Use it.
94825
94826 2001-10-11  Jim Meyering  <meyering@lucent.com>
94827
94828         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94829         and quote_n (1, ... to avoid clobbering a buffer.
94830
94831 2001-10-05  Jim Meyering  <meyering@lucent.com>
94832
94833         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94834         hash-pjw.h.
94835         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94836         * lib/hash-pjw.h: New file.
94837
94838 2001-09-30  Jim Meyering  <meyering@lucent.com>
94839
94840         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94841         `struct fsstat' has the `f_fstypename' member.
94842         Use that to define FS_TYPE, which is now used to make
94843         the getfsstat link test tighter.
94844
94845 2001-09-30  Jim Meyering  <meyering@lucent.com>
94846
94847         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94848         Include <sys/ucred.h>, for Apple Darwin.
94849         Include sys/mount.h and sys/fs_types.h only if available.
94850         (FS_TYPE): Define.
94851         (read_filesystem_list): Use FS_TYPE.
94852
94853 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94854
94855         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94856         a boolean context.
94857
94858 2001-09-29  Jim Meyering  <meyering@lucent.com>
94859
94860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94861         [one-argument getmntent function]): Include stdio.h before mntent.h.
94862         SunOS 4.1.x needs it for the declaration of `FILE'.
94863         Patch by Volker Borchert.
94864
94865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94866         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94867         sys/fs_types.h, and make the link-test for getfsstat guard #include
94868         directives with appropriate #if HAVE_*_H tests so that we can
94869         detect getfsstat on Apple Darwin1.3.7 systems.
94870         Reported by Nelson Beebe.
94871         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94872
94873 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94874
94875         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94876         #defines strtoimax.  Also treat the other strto* functions
94877         like strtoimax.
94878
94879         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94880         Check for strtoul and strtoumax,
94881         as those declarations are made even in the signed case.
94882         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94883         Likewise, for strtol and strtoimax.
94884
94885 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94886
94887         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94888         #defines strtoimax.  Also treat the other strto* functions
94889         like strtoimax.
94890
94891         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94892         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94893         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94894
94895 2001-09-26  Jim Meyering  <meyering@lucent.com>
94896
94897         Most macros in unlocked-io.h had the wrong number of arguments.
94898         * lib/gen-uio: New script.
94899         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94900         * lib/unlocked-io.hin: Remove file.
94901         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94902         rather than trying to embed it here.
94903         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94904         Reported by Padraig Brady.
94905
94906 2001-09-25  Volker Borchert  <bt@teknon.de>
94907
94908         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94909         `result'.
94910
94911 2001-09-24  Jim Meyering  <meyering@lucent.com>
94912
94913         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94914
94915 2001-09-23  Jim Meyering  <meyering@lucent.com>
94916
94917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94918         instead of the mere test for existence of mntent.h.  The latter
94919         would get a false-positive on AIX 3.4 systems.
94920         In the outer getmntent if-block, don't die if neither of the getmntent
94921         tests succeeds.  Instead, just fall through and continue with the
94922         remaining tests.
94923
94924 2001-09-23  Jim Meyering  <meyering@lucent.com>
94925
94926         * lib/mountlist.c: Remove useless parentheses in #if directives.
94927         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94928         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94929
94930 2001-09-22  Jim Meyering  <meyering@lucent.com>
94931
94932         * m4/gettext.m4: New file.  From gettext.
94933         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94934         * m4/progtest.m4: Likewise
94935         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94936         * m4/glibc21.m4: Likewise.
94937
94938         * m4/libintl.m4: Remove.  No longer used.
94939
94940 2001-09-22  Jim Meyering  <meyering@lucent.com>
94941
94942         * lib/localcharset.c: Update from latest gettext.
94943         * lib/config.charset: Likewise.
94944
94945 2001-09-20  Jim Meyering  <meyering@lucent.com>
94946
94947         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94948         strtoimax.
94949         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94950         strtoumax.
94951
94952 2001-09-20  Jim Meyering  <meyering@lucent.com>
94953
94954         * lib/xstrtol.c (strtoimax): Guard declaration with
94955         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94956         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94957         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94958         (strtoumax): Likewise, for completeness (it wasn't necessary).
94959
94960 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94961
94962         * lib/strtoimax.c (HAVE_LONG_LONG):
94963         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94964         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94965         to work around bug in IBM C compiler.
94966
94967 2001-09-17  Jim Meyering  <meyering@lucent.com>
94968
94969         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94970         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94971         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94972         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94973         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94974         whenever the right hand side need not be expanded by the shell.
94975
94976 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94977
94978         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94979         library.  It's not correct, as some older glibcs are buggy.
94980         fnmatch wasn't fixed until glibc 2.2.
94981
94982         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94983         special shell magic here.
94984
94985 2001-09-16  Jim Meyering  <meyering@lucent.com>
94986
94987         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94988         * m4/jm-macros.m4: Require it.
94989
94990 2001-09-16  Jim Meyering  <meyering@lucent.com>
94991
94992         * lib/mkdir.c: New file.
94993
94994 2001-09-15  Jim Meyering  <meyering@lucent.com>
94995
94996         * m4/jm-macros.m4: Check for help2man.
94997
94998 2001-09-11  Jim Meyering  <meyering@lucent.com>
94999
95000         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95001         The body, by Paul Eggert, was moved here from configure.in.
95002         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95003
95004 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95005
95006         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95007         (jm_PREREQ): Use it.
95008
95009 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95010
95011         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95012         Use ssize_t, not int, to store result of readlink.
95013         Check for ssize_t overflow as well as size_t overflow,
95014         as POSIX says the result of readlink is implementation-defined
95015         when ssize_t overflows.
95016         Remove unnecessary cast to char*.
95017         Use free+malloc instead of realloc, as the storage doesn't need
95018         to be preserved and it's clearer and can be more efficient that way.
95019         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95020         * lib/xreadlink.h (xreadlink): Update prototype.
95021
95022 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95023
95024         * lib/xgetcwd.c: Revert some of the previous change; intead,
95025         fix the HAVE_GETCWD_NULL code to behave more like the
95026         !HAVE_GETCWD_NULL code used to.
95027
95028         Include "xalloc.h".
95029         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95030         invoke xalloc_die.
95031
95032 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95033
95034         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95035         sys/param.h, as pathmax.h includes them.
95036
95037 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95038
95039         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95040         (jm_PREREQ_XGETCWD): New macro.
95041
95042         * m4/getcwd.m4: New file.
95043
95044 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95045
95046         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95047         like the HAVE_GETCWD_NULL code.
95048         Include pathmax.h if not HAVE_GETCWD.
95049         Do not include xalloc.h.
95050         (INITIAL_BUFFER_SIZE): New symbol.
95051         Do not use xmalloc / xrealloc, since the caller is responsible for
95052         handling errors.  Preserve errno around `free' during failure.
95053         Do not overrun buffer when using getwd.
95054
95055 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95056
95057         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95058         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95059         getcwd (NULL, 0).
95060
95061 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95062
95063         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95064         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95065         spotted by Jim Meyering.
95066
95067 2001-09-03  Jim Meyering  <meyering@lucent.com>
95068
95069         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95070         failure.
95071
95072 2001-09-02  Jim Meyering  <meyering@lucent.com>
95073
95074         * lib/error.c: Update from GNU libc.
95075
95076 2001-09-01  Jim Meyering  <meyering@lucent.com>
95077
95078         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95079         Used by df.
95080
95081 2001-09-01  Jim Meyering  <meyering@lucent.com>
95082
95083         * lib/xreadlink.c: New file.
95084         * lib/xreadlink.h: New file.
95085         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95086         xreadlink.h.
95087
95088         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95089         doesn't conflict with sparc Solaris 7's definition in
95090         /usr/include/sys/int_types.h.
95091
95092         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95093         files.
95094         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95095         and strncasecmp as r-values.  Unixware didn't have declarations.
95096
95097 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95098
95099         * lib/xstrtol.h: Add copyright notice.
95100         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95101         LONGINT_INVALID_SUFFIX_CHAR.
95102
95103 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95104
95105         * lib/xstrtol.c (strtoimax): New decl.
95106
95107 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95108
95109         * lib/xgetcwd.c: Don't include pathmax.h.
95110         Include stdlib.h and unistd.h if available.
95111         Include xalloc.h.
95112         (xmalloc, xstrdup, free): Remove decls.
95113         (xgetcwd): Don't assume sizes fit in unsigned.
95114         Check for overflow when computing sizes.
95115         Simplify reallocation code.
95116
95117 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95118
95119         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95120         a directory's st_size can have an arbitrary value, so the old
95121         usage could waste an arbitrary amount of memory.  All uses
95122         changed.
95123         * lib/savedir.h: Update prototype.
95124
95125 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95126
95127         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95128
95129         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95130         old strtoimax.c.
95131
95132         Also, make the following further changes to make this file's
95133         configuration more similar to that of strtol.c:
95134         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95135         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95136         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95137         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95138         changed to signed values.
95139
95140         And make the following changes as well:
95141         Fix copyright notice, as 1999 was missing.
95142         (verify): New macro.
95143         (strtoimax): Check sizes at compile-time, not run-time.
95144         Prefer strtol to strtoll if both work.
95145         (main): Remove; it was not that useful and was a pain to maintain.
95146
95147         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95148
95149 2001-08-31  Jim Meyering  <meyering@lucent.com>
95150
95151         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95152         Use an initial, malloc'd, buffer of length 128 rather than
95153         a statically allocated one of length 1024.
95154
95155 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95156
95157         Simplify code, partly by assuming autoconf 2.52 semantics.
95158
95159         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95160
95161         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95162         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95163         All uses removed.
95164         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95165         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95166         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95167         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95168         jm_AC_HEADER_INTTYPES_H.
95169         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95170
95171         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95172
95173         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95174         Quote first arg of AC_DEFUN.
95175         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95176         since they are needed to parse the include file even if we need
95177         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95178         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95179         but with opposite signedness.
95180
95181 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95182
95183         Merge 'exclude' changes from tar 1.13.22.
95184         This fixes one or two unlikely storage allocation overflow bugs,
95185         but doesn't change user-visible behavior otherwise.
95186
95187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95188
95189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95190         (jm_PREREQ_EXCLUDE): New macro.
95191
95192 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95193
95194         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95195         tm to be declared.
95196
95197 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95198
95199         * lib/hash.c: Remove '2001' from copyright notice.
95200
95201 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95202
95203         * lib/full-write.h: New file.
95204         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95205         * lib/full-write.c: Correct credits, as cccp.c no longer
95206         exists and anyway it was so heavily changed from the old cccp
95207         code as to be unrecognizable.  Include full-write.h.
95208         (full_write): Return size_t, with short writes meaning failure.
95209         All callers changed.  This fixes a bug with large buffers
95210         on 64-bit hosts.
95211         * lib/utime.c: Include full-write.h.
95212
95213 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95214
95215         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95216         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95217         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95218         Include if available.
95219         (<xalloc.h>): Include
95220         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95221         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95222         collide with FNM macros.
95223         (struct patopts): New struct.
95224         (struct exclude): Use it, as exclude patterns now come with options.
95225         (new_exclude): Support above changes.
95226         (new_exclude, add_exclude_file):
95227         Initial size must now be a power of two to simplify overflow checking.
95228         (free_exclude, fnmatch_no_wildcards): New function.
95229         (excluded_filename): No longer requires options arg, as the options
95230         are determined by add_exclude.  Now returns bool, not int.
95231         (excluded_filename, add_exclude):
95232         Add support for the fancy new exclusion options.
95233         (add_exclude, add_exclude_file): Now takes int options arg.
95234         Check for arithmetic overflow when computing sizes.
95235         (add_exclude_file): xrealloc might modify errno, so don't
95236         realloc until after errno might be used.
95237
95238         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95239         New macros.
95240         (free_exclude): New decl.
95241         (add_exclude, add_exclude_file): Now takes int options arg.
95242         (excluded_filename): No longer requires options arg, as the options
95243         are determined by add_exclude.  Now returns bool, not int.
95244
95245 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95246
95247         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95248
95249 2001-08-27  Jim Meyering  <meyering@lucent.com>
95250
95251         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95252
95253         * lib/version-etc.c (N_): Remove definition.
95254         Revert most of last change.
95255         Instead, simply don't mark the `Copyright...' string for translation.
95256         Based on advice from Paul Eggert.
95257
95258         * lib/strtoxmax.c: Tweak comment.
95259
95260 2001-08-26  Jim Meyering  <meyering@lucent.com>
95261
95262         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95263
95264         * m4/xstrtoimax.m4: New file.
95265         * m4/xstrtoumax.m4: Add comments explaining why we
95266         AC_REPLACE_FUNCS(strtol).
95267
95268 2001-08-26  Jim Meyering  <meyering@lucent.com>
95269
95270         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95271         of copyright with `%s' so translators don't get an untranslated
95272         message in 2002.
95273         (COPYRIGHT_YEAR): Define.
95274         (version_etc): Use fprintf rather than fputs.
95275         Suggestion from Ulrich Drepper.
95276
95277         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95278
95279         * lib/strtoll.c: New file, from GNU libc.
95280         * lib/xstrtoimax.c: New file.
95281
95282         * lib/xstrtol.h: Add xstrtoimax.
95283         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95284         * lib/strtoimax.c: New file.  Likewise, but first define
95285         STRTOUXMAX_SIGNED.
95286
95287         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95288         ...
95289         * lib/strtoxmax.c: ... then renamed to this.
95290
95291 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95292
95293         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95294         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95295         (jm_AC_TYPE_INTMAX_T): New macro.
95296         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95297
95298         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95299
95300         * m4/longlong.m4: Renamed from ulonglong.m4.
95301         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95302         * m4/uintmax_t.m4: Removed.
95303
95304 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95305
95306         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95307         Port to Solaris 8, where 'sed' requires a space after the 'r'
95308         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95309         Redirect output to $tmp just once.
95310
95311 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95312
95313         * lib/addext.c (<errno.h>): Include.
95314         (errno): Declare if not defined.
95315         (addext): Work correctly when pathconf returns -1 and leaves
95316         errno alone because there is no limit.  Also, work even if
95317         pathconf returns a value greater than SIZE_MAX.
95318
95319 2001-08-12  Jim Meyering  <meyering@lucent.com>
95320
95321         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95322         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95323         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95324         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95325         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95326         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95327         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95328         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95329         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95330         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95331         utime.m4, utimes.m4, xstrtoumax.m4:
95332         Quote the first argument in each use of AC_DEFUN.
95333
95334 2001-08-12  Jim Meyering  <meyering@lucent.com>
95335
95336         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95337         Simply `return getcwd (NULL, 0);'.
95338         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95339         Use 1300 as initial value for length, not PATH_MAX.
95340
95341         * lib/pathmax.h: Clean up cpp syntax.
95342
95343 2001-08-12  Jim Meyering  <meyering@lucent.com>
95344
95345         * lib/gettimeofday.c: New file.
95346         * lib/gtod.h: New file.
95347         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95348
95349 2001-08-05  Jim Meyering  <meyering@lucent.com>
95350
95351         * m4/jm-macros.m4: Require autoconf-2.52.
95352
95353 2001-08-04  Jim Meyering  <meyering@lucent.com>
95354
95355         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95356         stmt, to get in sync with glibc.
95357
95358 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95359
95360         The following changes are from gettext 0.10.39 as maintained by
95361         Bruno Haible.
95362
95363         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95364         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95365         with inverted sense.  All uses changed.
95366
95367         * lib/mbswidth.c: Don't include <limits.h>.
95368         Include <stdlib.h> and <string.h> unconditionally.
95369         (iswcntrl, mbsinit, ISCNTRL): New macros.
95370         (mbsnwidth): Use K&R style function declarations.
95371         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95372         can optimize it when MB_CUR_MAX == 1.
95373         The width of control characters is zero, not 1.
95374
95375 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95376
95377         The following changes are from gettext 0.10.39 as maintained by
95378         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95379
95380         * m4/codeset.m4: Upgrade to serial AM1.
95381         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95382         all uses changed.  Quote first arg of AC_DEFUN.
95383         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95384
95385         * m4/iconv.m4: Upgrade to serial AM2.
95386         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95387         Add --with-libconv-prefix.
95388         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95389         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95390         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95391         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95392         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95393
95394         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95395         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95396         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95397         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95398         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95399         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95400         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95401         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95402         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95403
95404         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95405         string.h any more.
95406
95407         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95408         not the default value.
95409
95410         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95411         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95412         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95413         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95414         Also check for iswcntrl, used for wcwidth fallback.
95415         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95416         to Autoconf 2.13.
95417
95418 2001-08-03  Jim Meyering  <meyering@lucent.com>
95419
95420         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95421         as it was in the original.  Reported by Paul Eggert.
95422
95423 2001-07-16  Jim Meyering  <meyering@lucent.com>
95424
95425         * m4/gettimeofday.m4: New file.
95426         Prompted by a report from Bernhard Baehr.
95427
95428 2001-07-15  Jim Meyering  <meyering@lucent.com>
95429
95430         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95431         stuff. Now it's in ../Makefile.cfg.
95432
95433 2001-07-15  Jim Meyering  <meyering@lucent.com>
95434
95435         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95436         (BUILT_SOURCES): Add unlocked-io.h.
95437         (io_functions): Define.
95438         (unlocked-io.h): New rule.
95439         (DISTCLEANFILES): Add unlocked-io.h.
95440         (all-local): Depend on unlocked-io.h, to ensure it is created.
95441
95442         * lib/unlocked-io.hin: New file
95443
95444         * lib/regex.c: Update from glibc.
95445
95446 2001-07-05  Jim Meyering  <meyering@lucent.com>
95447
95448         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95449         recommendation.
95450         (libfetish_a_SOURCES): Put all .h files here instead.
95451         Remove a thus-exposed (better checks in automake) duplicate and
95452         two unnecessary .h files.
95453
95454 2001-07-04  Jim Meyering  <meyering@lucent.com>
95455
95456         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95457         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95458         distcheck failure.
95459
95460 2001-07-02  Jim Meyering  <meyering@lucent.com>
95461
95462         The following changes were prompted by suggestions from Bruno Haible.
95463
95464         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95465         is now generated.
95466         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95467         definition of EXTRA_DIST.
95468         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95469         ensure that the generated file is created/updated whenever the list
95470         of $(unlocked_functions) is changed.
95471         (jm-glibc-io.m4): New rule.
95472         (unlocked-io.h): New rule -- currently unused.
95473
95474 2001-06-24  Jim Meyering  <meyering@lucent.com>
95475
95476         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95477         unmatched right bracket, rather than kludging it with an extra,
95478         falsely-matching quote in a comment.  Patch by Akim Demaille.
95479
95480 2001-06-11  Jim Meyering  <meyering@lucent.com>
95481
95482         * lib/regex.c: Update from GNU libc.
95483
95484 2001-05-27  Jim Meyering  <meyering@lucent.com>
95485
95486         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95487         Check for ut_type in struct utmp.
95488
95489 2001-05-27  Jim Meyering  <meyering@lucent.com>
95490
95491         * lib/readutmp.h (UT_TYPE): Define.
95492
95493 2001-05-24  Jim Meyering  <meyering@lucent.com>
95494
95495         * lib/argmatch.c: Include "quote.h".
95496         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95497         quote function.  Reported by Göran Uddeborg.
95498
95499 2001-05-22  Jim Meyering  <meyering@lucent.com>
95500
95501         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95502         now that we use the package-supplied version unconditionally.
95503         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95504
95505 2001-05-21  Jim Meyering  <meyering@lucent.com>
95506
95507         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95508         shell syntax errors.
95509
95510 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95511
95512         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95513
95514 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95515
95516         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95517         Don't bother to check library strftime, since
95518         we'll be using our own my_strftime function anyway.
95519         Define my_strftime instead of strftime.
95520
95521 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95522
95523         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95524         which is not yet declared.
95525
95526 2001-05-15  Jim Meyering  <meyering@lucent.com>
95527
95528         * m4/regex.m4: Use proper quoting so brackets appear in the test
95529         program.
95530         Reported by, and with help from, Bruno Haible.
95531
95532 2001-05-13  Jim Meyering  <meyering@lucent.com>
95533
95534         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95535         undefined.
95536
95537 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95538
95539         dirname code cleanup.  base_name now behaves more compatibly
95540         with POSIX basename when given file names that have trailing
95541         slashes, and similarly for dir_name.  Add new primitives
95542         base_len and dir_len.  Put the directory-name-related decls
95543         into dirname.h.
95544
95545         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95546         * lib/backupfile.c (base_name): Likewise.
95547         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95548         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95549         * lib/makepath.c (strip_trailing_slashes): Likewise.
95550         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95551         ISSLASH): Likewise.
95552         * lib/rename.c (strip_trailing_slashes): Likewise.
95553         * lib/same.c (base_name): Likewise.
95554         * lib/stripslash.c (ISSLASH): Likewise.
95555
95556         * lib/addext.c: Include <dirname.h> after size_t is defined.
95557         * lib/backupfile.c: Likewise.
95558
95559         * lib/addext.c (addext): Use base_len to trim redundant
95560         trailing slashes instead of doing it ourselves.
95561         But do not trim the last slash if it is not redundant.
95562
95563         * lib/backupfile.c (find_backup_file_name,
95564         max_backup_version): Use base_len instead of rolling it ourselves.
95565         Handle the case of "" and (on DOS) "C:" correctly.
95566
95567         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95568         needed. Include <string.h>, <dirname.h>.
95569         (base_name): Allow file names ending in slashes, other than names
95570         that are all slashes.  In this case, return the basename followed
95571         by the slashes.  This is more general, and can be used in places
95572         where the original base_name purposely had an assertion failure.
95573         (base_len): New function.
95574
95575         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95576         Do not include <assert.h>; no longer needed.
95577         Include xalloc.h.
95578         (memrchr): Remove decl.
95579         (dir_name_r): Remove.
95580         (dir_len): Renamed from dirlen.  All callers changed.
95581         Rewrite in terms of base_name, for simplicity and consistency.
95582         (dir_name): Never return NULL.  All callers changed.
95583         Do not include <stdlib.h> in test program; no longer needed.
95584         return 0; is fine for test program.
95585
95586         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95587         New macros.
95588         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95589
95590         * lib/path-concat.c (path_concat): Use base_len to compute
95591         base length, not strlen; this means we cannot rely on memcpy
95592         to null-terminate.
95593
95594         * lib/same.c (STREQ): Remove.
95595         (same_name): Handle the case where the basename ends in trailing '/'.
95596
95597         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95598         a slash was stripped.  Do not strip the last slash after a
95599         file system prefix.
95600
95601 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95602
95603         * lib/Makefile.am (libfetish_a_SOURCES):
95604         Add strftime.c, since we now compile it on all hosts.
95605
95606         * lib/strftime.c (my_strftime):
95607         Define to nstrftime if emacs, but only if my_strftime is not defined.
95608         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95609         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95610         Add one more extra argument: a nanoseconds value.
95611         All uses changed.
95612         (ns): New macro.
95613         (my_strftime function): Add %N format.
95614         (emacs_strftimeu): Renamed from emacs_strftime,
95615         with extra ut argument.
95616
95617 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95618
95619         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95620
95621 2001-04-21  Jim Meyering  <meyering@lucent.com>
95622
95623         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95624         doesn't interfere.
95625
95626 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95627
95628         * m4/ftruncate.m4: Check for chsize.
95629         Link with ftruncate.o unconditionally if ftruncate is missing.
95630         This was required when cross-compiling to i586-mingw32msvc.
95631
95632 2001-04-08  Jim Meyering  <meyering@lucent.com>
95633
95634         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95635         recomputed; that's necessary when the offset spans a DST transition.
95636         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95637
95638 2001-04-02  Jim Meyering  <meyering@lucent.com>
95639
95640         * lib/regex.h, regex.c: Update from GNU libc.
95641
95642 2001-03-24  Jim Meyering  <meyering@lucent.com>
95643
95644         * m4/jm-macros.m4: Require autoconf-2.49d.
95645
95646 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95647
95648         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95649
95650 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95651
95652         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95653
95654 2001-03-17  Jim Meyering  <meyering@lucent.com>
95655
95656         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95657         now that the version in autoconf is equivalent.
95658         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95659
95660         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95661         Suggestion from Akim Demaille.
95662
95663         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95664         (jm_PREREQ_TEMPNAME): New function.
95665
95666 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95667
95668         * lib/tempname.c (uint64_t): Define to uintmax_t if
95669         not defined, and if UINT64_MAX is not defined.
95670         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95671         Reported by John David Anglin.
95672
95673 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95674
95675         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95676         resolve alias if codeset is empty.
95677         * lib/config.charset (BeOS): Use wildcard syntax.
95678
95679 2001-03-13  Jim Meyering  <meyering@lucent.com>
95680
95681         * lib/path-concat.c (path_concat)
95682         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95683         concatenating e.g., `C:' and `foo'.
95684         From Bruno Haible.
95685
95686 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95687
95688         * lib/localcharset.c (locale_charset): Don't use
95689         setlocale(LC_CTYPE,NULL). Don't return NULL.
95690         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95691
95692 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95693
95694         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95695         support for DOS/DJGPP.
95696
95697 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95698
95699         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95700         lacks mkstemp.  Compile our own tempname.c if we compile our own
95701         mkstemp.c, as mkstemp relies on tempname.
95702
95703 2001-03-01  Jim Meyering  <meyering@lucent.com>
95704
95705         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95706         AH_VERBATIM really does output its argument verbatim.
95707
95708 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95709
95710         * lib/Makefile.am (libfetish_a_SOURCES):
95711         Add dup-safer.c, fopen-safer.c.
95712         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95713
95714         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95715         * lib/unistd-safer.h: New files.
95716
95717 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95718
95719         The mkstemp replacement is taken from glibc 2.2.2, with some
95720         portability fixes for use outside glibc, as follows:
95721
95722         * lib/tempname.c (struct_stat64): New macro.
95723         (direxists, __gen_tempname): Use it.
95724         This avoids a portability problem with Solaris 8.
95725
95726         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95727         (<stddef.h>, <stdint.h>, <string.h>):
95728         Include only if STDC_HEADERS || _LIBC.
95729         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95730         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95731         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95732         (__set_errno): Define this macro if <errno.h> doesn't.
95733         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95734         Define these macros if <stdio.h> doesn't.
95735         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95736         Define these macros if <sys/stat.h>
95737         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95738         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95739         __xstat64): Define if not _LIBC.
95740         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95741         (__gen_tempname): Invoke gettimeofday only if
95742         HAVE_GETTIMEOFDAY || _LIBC;
95743         otherwise, fall back on plain "time".
95744         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95745
95746         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95747
95748         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95749
95750 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95751
95752         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95753
95754 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95755
95756         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95757         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95758         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95759         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95760
95761 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95762
95763         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95764         Remove workaround macros for hosts that have mbrtowc but not
95765         mbstate_t, as we now insist on proper declarations for both
95766         before using mbrtowc.
95767
95768 2001-02-17  Jim Meyering  <meyering@lucent.com>
95769
95770         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95771         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95772         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95773         UnixWare 7.1.1.
95774
95775         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95776         rather than AC_CACHE_VAL.
95777
95778 2001-02-17  Jim Meyering  <meyering@lucent.com>
95779
95780         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95781         around included file name.
95782
95783         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95784
95785         * lib/strftime.c: Update from GNU libc (the only changes were to
95786         comments).
95787
95788 2001-02-17  Jim Meyering  <meyering@lucent.com>
95789
95790         * lib/regex.c: Update from libc.
95791
95792 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95793
95794         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95795         clash.
95796
95797 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95798
95799         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95800         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95801         Reported by Mark Hounschell via Paul Eggert.
95802
95803 2001-02-07  Jim Meyering  <meyering@lucent.com>
95804
95805         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95806
95807 2001-02-05  Jim Meyering  <meyering@lucent.com>
95808
95809         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95810         it includes the patch required for `large file' support with at least
95811         HP-UX's 10.20 /bin/cc.
95812
95813 2001-02-03  Jim Meyering  <meyering@lucent.com>
95814
95815         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95816         AS_IF, now that it works once again (mysteriously).
95817         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95818
95819 2001-01-30  Jim Meyering  <meyering@lucent.com>
95820
95821         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95822         * m4/chown.m4: Rename conftestchown to conftest.chown.
95823         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95824         s/conftestdir2/conftest.d2/.
95825         * m4/utimes.m4: s/conftestdata/conftest.data/
95826         Inspired by Pavel Roskin's change in autoconf.
95827
95828 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95829
95830         * lib/config.charset: Update for FreeBSD 4.2.
95831
95832 2001-01-27  Jim Meyering  <meyering@lucent.com>
95833
95834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95835         a use of AS_IF.
95836         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95837
95838 2001-01-26  Jim Meyering  <meyering@lucent.com>
95839
95840         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95841         quotearg.c includes it.
95842
95843 2001-01-26  Jim Meyering  <meyering@lucent.com>
95844
95845         * lib/quotearg.c: Include stddef.h.
95846         * lib/quote.c: Include stddef.h.
95847         Reported by Axel Kittenberger.
95848
95849         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95850         line in double quotes so that it evokes a better diagnostic.
95851         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95852         Reported by Axel Kittenberger.
95853
95854 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95855
95856         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95857         as if it was a `charset'.
95858
95859 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95860
95861         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95862         has const.
95863
95864 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95865
95866         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95867         to avoid a warning.  Add back 'const' to inptr.
95868
95869 2001-01-20  Jim Meyering  <meyering@lucent.com>
95870
95871         Be sure that headers are checked before used in code compiled
95872         for the type checks.
95873         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95874         In place of that, invoke jm_CHECK_ALL_TYPES.
95875         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95876         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95877         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95878         The check for ssize_t was mistakenly run before the test for unistd.h.
95879
95880         The configure-time check for stdbool.h was missing.
95881         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95882         (jm_PREREQ_HASH): New function.
95883
95884 2001-01-17  Jim Meyering  <meyering@lucent.com>
95885
95886         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95887         for autoconf-2.49c.
95888         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95889
95890 2001-01-16  Jim Meyering  <meyering@lucent.com>
95891
95892         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95893         From Bruno Haible.
95894
95895 2001-01-14  Jim Meyering  <meyering@lucent.com>
95896
95897         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95898         foo and bar.  Create conftestdir/ in the script, not in the C code.
95899         Remove directories in the script, not in the C code.
95900         Remove conftestdir{,2} before trying to create the directory.
95901         Make the entire configure script fail if the mkdir fails.
95902
95903 2001-01-14  Jim Meyering  <meyering@lucent.com>
95904
95905         * lib/rename.c: New file.  From Volker Borchert.
95906         Include stdlib.h, string.h or strings.h, and xalloc.h.
95907         Use strip_trailing_slashes rather than open-coding it.
95908
95909 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95910
95911         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95912
95913 2001-01-03  Jim Meyering  <meyering@lucent.com>
95914
95915         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95916         of local `inptr' to avoid warning with some system declarations of
95917         iconv.
95918
95919 2001-01-02  Volker Borchert  <bt@teknon.de>
95920
95921         * m4/rename.m4: New file.
95922         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95923
95924 2001-01-01  Jim Meyering  <meyering@lucent.com>
95925
95926         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95927         even on systems with utmpx.h.  It's necessary for the declaration of
95928         utmp's ut_user member.  Reported by Andreas Jaeger.
95929
95930         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95931         available. They are required for the declarations of getgrgid and
95932         getpwuid resp.
95933         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95934         Reported by Andreas Jaeger.
95935
95936 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95937
95938         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95939         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95940         so `make install' also works in VPATH builds.
95941
95942 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95943
95944         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95945         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95946         can be used in subdirectories.
95947
95948 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95949
95950         * lib/modechange.c: Do not assume that mode_t uses the
95951         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95952         the other-execute bit of FOO even if S_IXOTH != 1.
95953
95954         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95955         WOTH, XOTH, ALLM): New macros.
95956         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95957          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95958         Use them.
95959         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95960         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95961         (mode_compile):
95962         No need to use uintmax_t; unsigned long is long enough.
95963         Don't bother to get suffix since we don't use it.
95964
95965 2000-12-26  Jim Meyering  <meyering@lucent.com>
95966
95967         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95968         better with autoheader.
95969
95970 2000-12-24  Jim Meyering  <meyering@lucent.com>
95971
95972         * lib/hash.c (is_prime): Return explicit boolean values.
95973         (hash_get_first): Return NULL to appease Irix5.6's 89.
95974         Reported by Nelson Beebe.
95975
95976 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95977
95978         * lib/localcharset.c (locale_charset): Add support for Win32.
95979
95980 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95981
95982         * lib/physmem.h, lib/physmem.c: New files.
95983
95984         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95985         (noinst_HEADERS): Add physmem.h.
95986
95987         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95988         't' for compatibility with Solaris 8 sort.
95989
95990 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95991
95992         * lib/config.charset: Add support for BeOS.
95993
95994 2000-12-17  Jim Meyering  <meyering@lucent.com>
95995
95996         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95997         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95998
95999 2000-12-16  Jim Meyering  <meyering@lucent.com>
96000
96001         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96002         N and M) would have treated it like `chown N:N FILE'.
96003
96004         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96005
96006 2000-12-16  Jim Meyering  <meyering@lucent.com>
96007
96008         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96009         SHELLS_FILE to a file name that's useful on djgpp systems.
96010         Include stdlib.h.
96011         (ADDITIONAL_DEFAULT_SHELLS): Define.
96012         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96013         Based mostly on a patch from Prashant TR.
96014
96015 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96016
96017         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96018         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96019         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96020
96021 2000-12-08  Andreas Schwab  <schwab@suse.de>
96022
96023         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96024         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96025
96026 2000-12-07  Jim Meyering  <meyering@lucent.com>
96027
96028         * lib/stripslash.c (ISSLASH): Define.
96029         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96030         `/'.
96031         From Prashant TR.
96032
96033         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96034         (dir_name_r): Declare this function as static.
96035         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96036         manifest itself on a name containing a mix of slashes and
96037         backslashes.
96038         Make this function work with names starting with a DOS-style
96039         drive letter and colon prefix.
96040         (dir_name): Append `.' if necessary.
96041         Based mostly on patches from Prashant TR and Eli Zaretskii.
96042
96043         * lib/dirname.h (dir_name_r): Remove prototype.
96044
96045 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96046
96047         * m4/off_t-format.m4: Remove this file.
96048         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96049
96050 2000-12-06  Jim Meyering  <meyering@lucent.com>
96051
96052         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96053         replacement strtoull, we may well need the replacement strtoul, too.
96054         Check for declarations of strtoul and strtoull.
96055         Check for strtol.  Mainly as a cue to cause automake to include
96056         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96057         Check for limits.h -- strtol.c needs it.
96058
96059 2000-12-05  Jim Meyering  <meyering@lucent.com>
96060
96061         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96062
96063 2000-12-04  Jim Meyering  <meyering@lucent.com>
96064
96065         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96066         Also include memory.h, stdlib.h, unistd.h if appropriate.
96067         Reported by Andreas Jaeger (conflicting declaration of malloc).
96068
96069 2000-12-02  Jim Meyering  <meyering@lucent.com>
96070
96071         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96072         * m4/jm-macros.m4 (jm_MACROS): require it.
96073
96074 2000-12-02  Jim Meyering  <meyering@lucent.com>
96075
96076         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96077
96078 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96079
96080         * lib/memrchr.c: Include <config.h> before any system include file.
96081
96082 2000-11-30  Jim Meyering  <meyering@lucent.com>
96083
96084         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96085
96086 2000-11-30  Jim Meyering  <meyering@lucent.com>
96087
96088         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96089
96090 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96091
96092         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96093
96094 2000-11-26  Jim Meyering  <meyering@lucent.com>
96095
96096         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96097
96098 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96099
96100         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96101         size of (size_t) -1; it's not portable.
96102
96103 2000-11-17  Jim Meyering  <meyering@lucent.com>
96104
96105         * lib/strstr.c: Update from GNU libc.
96106
96107 2000-11-17  Akim Demaille  <akim@epita.fr>
96108
96109         * lib/obstack.h: Formatting changes.
96110         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96111         prevent type checking.
96112         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96113         cast the value to (void *): assigning a `foo *' to a `void *'
96114         variable is valid.
96115         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96116
96117 2000-11-16  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96120
96121 2000-11-11  Jim Meyering  <meyering@lucent.com>
96122
96123         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96124
96125 2000-11-10  Jim Meyering  <meyering@lucent.com>
96126
96127         * lib/obstack.h: Update from GNU libc.
96128         * lib/obstack.c: Likewise.
96129
96130 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96131
96132         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96133
96134 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96135
96136         * lib/getusershell.c (setusershell): Use rewind rather than
96137         fseek/fseeko, to avoid configuration hassles with fseeko.
96138         Don't bother opening SHELLS_FILE if shellstream is NULL;
96139         it's not necessary.
96140
96141 2000-11-05  Jim Meyering  <meyering@lucent.com>
96142
96143         * lib/makepath.h (make_dir): Declare.
96144         * lib/makepath.c (make_dir): Remove `static' attribute.
96145         Tweak a comment.
96146
96147 2000-11-04  Jim Meyering  <meyering@lucent.com>
96148
96149         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96150
96151 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96152
96153         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96154         last one in a bucket, advance to the next bucket.
96155
96156 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96157
96158         * lib/fnmatch.c: Do not comment out all the code if we are using
96159         the GNU C library, because in some cases we are replacing buggy
96160         code in the GNU C library itself.
96161
96162 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96163
96164         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96165         (regex_compile): Catch bogus \(\1\).
96166
96167 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96168
96169         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96170         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96171         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96172
96173 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96174
96175         * lib/error.h, getline.h, modechange.h:
96176         Remove "2000" from Copyright line, as the file hasn't been
96177         changed this year other than in the copyright notice.
96178
96179         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96180         was changed this year.
96181
96182 2000-10-29  Jim Meyering  <meyering@lucent.com>
96183
96184         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96185         renaming.
96186         * m4/ls-mntd-fs.m4: Likewise
96187
96188 2000-10-29  Jim Meyering  <meyering@lucent.com>
96189
96190         * lib/xstat.in: Fix grammar in comment.
96191
96192 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96193
96194         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96195         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96196         doesn't define __restrict_arr.
96197
96198 2000-10-28  Jim Meyering  <meyering@lucent.com>
96199
96200         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96201         (jm_PREREQ_MEMCHR): New function.
96202
96203 2000-10-28  Jim Meyering  <meyering@lucent.com>
96204
96205         * lib/memchr.c: Update from libc.
96206         Adjust for portability:
96207         [HAVE_STDLIB_H]: Include stdlib.h.
96208         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96209         Undef __memchr, too.
96210         [!weak_alias]: Define __memchr to memchr.
96211
96212         * lib/regex.c: Update from libc.
96213         * lib/regex.h: Likewise.
96214         * lib/getopt1.c: Likewise.
96215         * lib/memcmp.c: Likewise.
96216
96217         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96218         Avoid using fseek, when possible -- it's broken by design.
96219         Patch by Ulrich Drepper.
96220
96221 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96222
96223         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96224         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96225         Giving in to popular pressure to shut up the compiler with casts.
96226
96227 2000-10-26  Jim Meyering  <meyering@lucent.com>
96228
96229         * lib/strftime.c: Update from libc.
96230
96231 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96232
96233         * regex.c: More `unsigned char' -> `re_char' changes.
96234         Also change several `int' into `re_wchar_t'.
96235         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96236         (PUSH_FAILURE_POINTER): Don't cast any more.
96237         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96238         We want GCC to complain, since this piece of code makes
96239         re_match non-reentrant, which *should* be fixed.
96240         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96241         (EXTEND_BUFFER): Use RETALLOC.
96242         (SET_LIST_BIT): Don't cast.
96243         (re_wchar_t): New type.
96244         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96245         that those two functions will always properly return.
96246         (IMMEDIATE_QUIT_CHECK): Cast to void.
96247         (analyse_first): Use recursion rather than an explicit stack.
96248         (re_compile_fastmap): Can't fail anymore.
96249         (re_search_2): Don't check re_compile_fastmap for failure.
96250         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96251         Now also sets the new value (passed in a new argument).
96252         (re_match_2_internal): Use it.
96253         Also, use a new var `reg' of type size_t when looping through regs
96254         rather than reuse the inappropriate `mcnt'.
96255
96256 2000-10-25  Jim Meyering  <meyering@lucent.com>
96257
96258         * lib/obstack.c: Update from libc.
96259
96260 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96261
96262         * regex.c (regex_compile): Change the way of handling a range from
96263         a char less than 256 to a char not less than 256.
96264
96265 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96266
96267         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96268         NT-Emacs only.
96269         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96270         so that re_search functions only quit when callers expect them to.
96271
96272 2000-10-23  Jim Meyering  <meyering@lucent.com>
96273
96274         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96275         wrong.  That set_locale call must not have any side effects.
96276         From Paul Eggert.
96277
96278 2000-10-22  Jim Meyering  <meyering@lucent.com>
96279
96280         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96281         [CYCLIC]: Remove now-unused definition.
96282
96283         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96284         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96285         Suggestion from Ulrich Drepper.
96286
96287 2000-10-21  Jim Meyering  <meyering@lucent.com>
96288
96289         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96290         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96291         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96292
96293 2000-10-21  Jim Meyering  <meyering@lucent.com>
96294
96295         * lib/dirname.c (memrchr): Declare if necessary.
96296         (dir_name): Remove the restriction that there be no
96297         trailing slashes.  Now, this code skips past them, effectively
96298         ignoring them.
96299         [TEST_DIRNAME] (main): New unit tests.
96300
96301         * lib/memrchr.c: New file from GNU libc.
96302         Undef __memrchr, too.
96303         [!weak_alias]: Define __memrchr to memrchr.
96304         Guard weak_alias use with `#ifdef weak_alias'.
96305
96306 2000-10-21  Jim Meyering  <meyering@lucent.com>
96307
96308         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96309         (dir_name): Use dir_name_r.
96310         * lib/dirname.h (dir_name_r): Declare it.
96311
96312 2000-10-17  Jim Meyering  <meyering@lucent.com>
96313
96314         * lib/quote.h (PARAMS): Define and use.
96315         Reported by Akim Demaille.
96316
96317         * lib/getopt.c: Update from libc.
96318
96319 2000-10-16  Jim Meyering  <meyering@lucent.com>
96320
96321         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96322         setlocale.
96323         From Jan Fedak.
96324
96325 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96326
96327         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96328
96329 2000-09-25  Jim Meyering  <meyering@lucent.com>
96330
96331         * lib/md5.h (rol): Define (from GnuPG).
96332
96333         * lib/sha.c: Give credit (GnuPG) where due.
96334         (M): Use rol rather than open-coding it.
96335         Add a FIXME comment.
96336
96337 2000-09-21  Jim Meyering  <meyering@lucent.com>
96338
96339         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96340         Reported by Michael Stone.
96341
96342 2000-09-20  Jim Meyering  <meyering@lucent.com>
96343
96344         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96345         (noinst_HEADERS): Add sha.h.
96346         Based on code from Scott G. Miller and from GnuPG.
96347
96348 2000-09-18  Jim Meyering  <meyering@lucent.com>
96349
96350         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96351         LIBS. Otherwise, everyone ends up linking with -lelf for some
96352         configurations.
96353         Reported by Mike Stone.
96354
96355 2000-09-15  Jim Meyering  <meyering@lucent.com>
96356
96357         * lib/regex.c: Update from libc.
96358
96359 2000-09-10  Jim Meyering  <meyering@lucent.com>
96360
96361         * lib/getopt.c (_getopt_internal): Update from glibc.
96362
96363 2000-09-09  Jim Meyering  <meyering@lucent.com>
96364
96365         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96366         think it should be used as a general replacement for isascii.
96367         * lib/fnmatch.c: Likewise.
96368         * lib/mbswidth.c: Likewise
96369         * lib/regex.c: Likewise.
96370
96371         Don't use atoi.
96372         * lib/userspec.c: Include sys/param.h and limits.h.
96373         Include xstrtol.h.
96374         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96375         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96376         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96377         UID, GID.  Check range.
96378
96379 2000-09-06  Jim Meyering  <meyering@lucent.com>
96380
96381         * lib/getopt.c (_getopt_internal): Update from glibc.
96382
96383 2000-08-30  Jim Meyering  <meyering@lucent.com>
96384
96385         * lib/strftime.c: Merge in changes from GNU libc.
96386
96387 2000-08-26  Jim Meyering  <meyering@lucent.com>
96388
96389         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96390         * m4/fpending.m4: New file.
96391
96392 2000-08-26  Jim Meyering  <meyering@lucent.com>
96393
96394         * lib/closeout.c: Include "__fpending.h".
96395         (close_stdout_status): Return right away if there's nothing to flush.
96396
96397         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96398         * lib/__fpending.c: New file.
96399         * lib/__fpending.h: New file.
96400
96401 2000-08-20  Jim Meyering  <meyering@lucent.com>
96402
96403         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96404         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96405         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96406
96407 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96408
96409         Improve fileutils installation on systems where running
96410         programs (like install) can't be unlinked.
96411         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96412         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96413
96414 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96415
96416         Standardize on "memory exhausted" instead of "Memory exhausted"
96417         or "virtual memory exhausted".
96418         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96419         "virtual memory exhausted".
96420         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96421         our own message.
96422         * lib/userspec.c (parse_user_spec): Likewise.
96423         * lib/bumpalloc.h: comment fix
96424         * lib/same.c, userspec.c: Include xalloc.h.
96425
96426         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96427         not char *const and pointing to a constant array.
96428         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96429         (xrealloc): Comment fix.
96430
96431         * lib/userspec.c (parse_user_spec):
96432         Don't translate a message until just before returning,
96433         to avoid unnecessary translation.
96434
96435 2000-08-07  Jim Meyering  <meyering@lucent.com>
96436
96437         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96438         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96439         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96440         getgroups.c, gethostname.c, getopt.h, group-member.c,
96441         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96442         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96443         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96444         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96445         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96446         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96447         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96448         yesno.c: Back out Copyright date changes for each file with no change
96449         this year.  This eases coordination with other programs using the same
96450         source code modules.  From Paul Eggert.
96451
96452 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96453
96454         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96455         not char, for compatibility with glibc 2.1.3 strftime.c.
96456
96457 2000-08-03  Greg McGary  <greg@mcgary.org>
96458
96459         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96460         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96461         (EXTEND_BUFFER): Use them.
96462
96463 2000-08-01  Jim Meyering  <meyering@lucent.com>
96464
96465         * lib/dirname.c (ISSLASH): Define.
96466         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96467         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96468         both `\' and `/' may be use as path separators.
96469         Based on a patch from Prashant TR.
96470
96471 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96472
96473         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96474         slot vector a constant, since it might get modified.
96475
96476 2000-07-31  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/xmalloc.c: Use `virtual memory exhausted', not
96479         `Memory exhausted'.
96480         * lib/obstack.c (print_and_abort): Likewise.
96481
96482 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96483
96484         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96485         buffer, so that the caller can always quote one small
96486         component of a "memory exhausted" message in slot 0.
96487         From a suggestion by Jim Meyering.
96488
96489 2000-07-30  Jim Meyering  <meyering@lucent.com>
96490
96491         * lib/makepath.c (make_path): Quote the other instance, too.
96492
96493         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96494         (STATIC_BUF_SIZE): Define.
96495         (quotearg_n_options): Use only statically allocated storage when
96496         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96497         than STATIC_BUF_SIZE.
96498
96499 2000-07-29  Jim Meyering  <meyering@lucent.com>
96500
96501         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96502         * lib/dirname.c (dir_name): Likewise.
96503
96504         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96505         `/'.
96506
96507         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96508         (dir_name): Assert that there are no trailing slashes.
96509
96510 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96511
96512         * lib/mbswidth.h (mbswidth): Add a flags argument.
96513         (mbswidth): New declaration.
96514         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96515         * lib/mbswidth.c (mbswidth): Add a flags argument.
96516         (mbsnwidth): New function.
96517
96518 2000-07-24  Jim Meyering  <meyering@lucent.com>
96519
96520         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96521
96522 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96523
96524         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96525
96526 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96527
96528         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96529         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96530         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96531         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96532         invoke multibyte primitives.
96533
96534 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96535
96536         * lib/quotearg.c:
96537         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96538         so that mbstate_t is always defined.
96539
96540         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96541         be 1 in at least one GCC installation, and this configuration
96542         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96543         performance on hosts that have mbrtowc but have only unibyte
96544         locales, but I assume these hosts are rare.
96545
96546 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96547
96548         * lib/mbswidth.c (_XOPEN_SOURCE):
96549         Don't define; this causes problems on Solaris 7.
96550         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96551
96552 2000-07-23  Jim Meyering  <meyering@lucent.com>
96553
96554         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96555         too: getgrgid, getpwuid, getuid.
96556
96557 2000-07-23  Jim Meyering  <meyering@lucent.com>
96558
96559         * lib/basename.c (base_name): Add an assertion.
96560
96561 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96562
96563         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96564         shadow its mbsinit function.
96565
96566 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96567
96568         * lib/mbswidth.h: New file.
96569         * lib/mbswidth.c: New file.
96570         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96571         (noinst_HEADERS): Add mbswidth.h.
96572
96573 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96574
96575         * lib/config.charset: Add support for FreeBSD. Improve support for
96576         HP-UX and IRIX 6.
96577
96578 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96579
96580         * m4/mbswidth.m4: New file.
96581         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96582
96583 2000-07-15  Jim Meyering  <meyering@lucent.com>
96584
96585         * lib/makepath.c: Include quote.h.
96586         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96587         corresponding argument in a `quote (...)' call.
96588         Give better diagnostics.
96589
96590         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96591         (noinst_HEADERS): Add quote.h.
96592
96593         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96594         from tar's src/misc.c.
96595         * lib/quote.h: New file.  Prototypes for same.
96596
96597 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96598
96599         From a suggestion by Bruno Haible.
96600         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96601         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96602         to decide whether to define the BeOS workaround macro;
96603         this adjusts to the change to AC_MBSTATE_T.
96604
96605 2000-07-14  Jim Meyering  <meyering@lucent.com>
96606
96607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96608         jm_AC_TYPE_UINTMAX_T.
96609
96610 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96611
96612         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96613
96614         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96615         quotearg_buffer_restyled): Add support for
96616         clocale_quoting_style.  Undo previous change to
96617         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96618         and "{RIGHT QUOTATION MARK}" msgids.
96619
96620 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96621
96622         From a suggestion by Bruno Haible.
96623         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96624         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96625         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96626         and mbstate_t, to a single-part test that simply defines mbstate_t.
96627         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96628         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96629
96630 2000-07-10  Jim Meyering  <meyering@lucent.com>
96631
96632         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96633
96634         * m4/gnu-source.m4: Output to confdefs.h directly.
96635         Suggestion from Akim Demaille.
96636
96637 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96638
96639         The old behavior of quoting `like this' doesn't look good with
96640         newer, ISO-style fonts.  See:
96641         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96642
96643         Instead, quote "like this" by default.  Let the translator
96644         tailor the locale-specific quoting behavior by providing
96645         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96646
96647         * lib/quotearg.c (N_): New macro.
96648         (gettext_default): New function.
96649         (quotearg_buffer_restyled): Use
96650         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96651         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96652
96653 2000-07-09  Jim Meyering  <meyering@lucent.com>
96654
96655         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96656         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96657
96658         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96660
96661 2000-07-09  Jim Meyering  <meyering@lucent.com>
96662
96663         * lib/Most files: Update copyright dates to include 2000.
96664
96665 2000-07-08  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96668         if not defined.
96669         (xgethostname): Remove now-unnecessary #ifdef.
96670         Move declaration of `err' into loop where it's used.
96671
96672 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96673         and Bruno Haible  <haible@clisp.cons.org>
96674
96675         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96676         only if the test for an object-type mbstate_t fails.  This
96677         prevents us from mistakenly reporting that mbstate_t is a
96678         system object type after we "#define mbstate_t int" to work
96679         around its lack.
96680
96681 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96682         and Bruno Haible  <haible@clisp.cons.org>
96683
96684         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96685
96686 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96687
96688         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96689         to strerror_r.
96690         Include <ctype.h> for use of isalpha.
96691
96692 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96693
96694         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96695         by allocating a larger buffer. Test the gethostname return value for
96696         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96697         returns an error and ENAMETOOLONG isn't defined.
96698
96699 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96700
96701         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96702         dimension.
96703
96704 2000-07-04  Jim Meyering  <meyering@lucent.com>
96705
96706         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96707         of the deprecated AC_CHECKING.
96708
96709 2000-07-04  Jim Meyering  <meyering@lucent.com>
96710
96711         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96712         Reported by Bruno Haible.
96713
96714 2000-07-04  Jim Meyering  <meyering@lucent.com>
96715
96716         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96717         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96718         lacks mbrtowc.
96719
96720 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96721
96722         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96723         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96724
96725 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96726         and Bruno Haible  <haible@clisp.cons.org>
96727
96728         * lib/quotearg.c (mbrtowc):
96729         Assign to *pwc, and return 1 only if result is nonzero.
96730         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96731
96732 2000-07-03  Jim Meyering  <meyering@lucent.com>
96733
96734         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96735
96736 2000-07-03  Jim Meyering  <meyering@lucent.com>
96737
96738         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96739         This is necessary to get a definition of e.g., UTMP_FILE on
96740         HP-UX 10.20.
96741         From Bob Proulx.
96742
96743 2000-07-02  Jim Meyering  <meyering@lucent.com>
96744
96745         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96746
96747         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96748         AC_LIBOBJ(function_name).
96749         * m4/chown.m4: Likewise.
96750         * m4/fnmatch.m4: Likewise.
96751         * m4/ftruncate.m4: Likewise.
96752         * m4/getgroups.m4: Likewise.
96753         * m4/getline.m4: Likewise.
96754         * m4/group-member.m4: Likewise.
96755         * m4/jm-macros.m4: Likewise.
96756         * m4/lstat.m4: Likewise.
96757         * m4/malloc.m4: Likewise.
96758         * m4/memcmp.m4: Likewise.
96759         * m4/nanosleep.m4: Likewise.
96760         * m4/putenv.m4: Likewise.
96761         * m4/realloc.m4: Likewise.
96762         * m4/regex.m4: Likewise.
96763         * m4/stat.m4: Likewise.
96764         * m4/strftime.m4: Likewise.
96765
96766 2000-07-02  Jim Meyering  <meyering@lucent.com>
96767
96768         * lib/quotearg.c (mbstate_t): Don't define here.
96769
96770 2000-07-02  Jim Meyering  <meyering@lucent.com>
96771
96772         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96773
96774 2000-07-01  Jim Meyering  <meyering@lucent.com>
96775
96776         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96777
96778 2000-07-01  Jim Meyering  <meyering@lucent.com>
96779
96780         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96781         problem.
96782
96783 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96784
96785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96786         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96787
96788 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96789
96790         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96791         per change in ../m4/ls-mntd-fs.m4.
96792         (read_filesystem_list): Ignore symbolic links.
96793
96794 2000-06-29  Jim Meyering  <meyering@lucent.com>
96795
96796         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96797         for declaration of strcmp.
96798
96799         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96800
96801         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96802         Avoid warning by casting result to `char *' to remove `const'.
96803
96804 2000-06-28  Jim Meyering  <meyering@lucent.com>
96805
96806         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96807         included by quotearg.c, for which we perform this test.  From
96808         Bruno Haible.
96809
96810 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96811
96812         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96813         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96814         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96815
96816 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96817
96818         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96819
96820 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96821
96822         savedir now sets errno on failure and invokes xmalloc to get memory.
96823         Fix a couple of other minor bugs while we're at it.
96824
96825         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96826         (NAMLEN): Remove macro.
96827         (malloc, realloc): Remove decls.
96828         (stpcpy): Likewise.
96829         ("xalloc.h"): Include.
96830         (NAME_SIZE_DEFAULT): New macro.
96831         (savedir): Use xmalloc / xrealloc to allocate memory.
96832         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96833         Skip "" directory entries.
96834         Use strlen to calculate directory entry length, since the old method
96835         is rarely used these days and isn't worth supporting.
96836         Don't use a pointer after freeing it.
96837         Check for integer overflow when calculating allocation size.
96838         Use memcpy to copy entries, instead of stpcpy.
96839         Set errno properly when returning NULL.
96840         Check for readdir error.
96841
96842 2000-06-26  Jim Meyering  <meyering@lucent.com>
96843
96844         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96845
96846 2000-06-25  Jim Meyering  <meyering@lucent.com>
96847
96848         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96849         Linux header bug when _XOPEN_SOURCE is defined to 500.
96850
96851 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96852
96853         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96854         deficiency.
96855
96856 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96857
96858         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96859         Include xalloc.h.
96860         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96861
96862 2000-06-24  Jim Meyering  <meyering@lucent.com>
96863
96864         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96865         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96866         for which strerror does return char*, but which lacks a conveniently
96867         accessible declaration of the function.  If the compile-test says
96868         strerror_r doesn't work, then resort to a `run'-test that works on
96869         BeOS and segfaults on DEC Unix.
96870
96871 2000-06-24  Jim Meyering  <meyering@lucent.com>
96872
96873         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96874
96875 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96876
96877         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96878         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96879
96880 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96881
96882         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96883         (mbrtowc, mbstate_t): Define substitutes if
96884         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96885         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96886         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96887
96888 2000-06-23  Jim Meyering  <meyering@lucent.com>
96889
96890         * m4/afs.m4: Add missing AC_MSG_RESULT.
96891         Reported by Bruno Haible.
96892
96893         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96894         Suggestion from Bruno Haible.
96895
96896 2000-06-23  Jim Meyering  <meyering@lucent.com>
96897
96898         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96899
96900 2000-06-21  Jim Meyering  <meyering@lucent.com>
96901
96902         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96903
96904 2000-06-21  Jim Meyering  <meyering@lucent.com>
96905
96906         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96907         (noinst_HEADERS): Add getstr.h.
96908
96909         * lib/getline.c (getstr): Move into a separate file.
96910         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96911         the following changes: new parameter, delim2; both delim[12]
96912         parameters have type `int', not `char'.  The latter would lose
96913         with 8-bit delimiters.
96914         * lib/getstr.h: New file.
96915
96916 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96917
96918         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96919         than 1024, return a memory chunk of least possible size, instead
96920         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96921         Use free/xmalloc instead of xrealloc to avoid copying for very long
96922         paths.
96923
96924 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96925
96926         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96927         the empty string.
96928
96929 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96930
96931         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96932         address, not strdup.  Include <stdlib.h> and don't declare free().
96933
96934 2000-06-19  Jim Meyering  <meyering@lucent.com>
96935
96936         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96937
96938 2000-06-18  Jim Meyering  <meyering@lucent.com>
96939
96940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96941
96942         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96943         `checking whether...' message to be consistent with that of the
96944         lstat test.
96945
96946 2000-06-18  Jim Meyering  <meyering@lucent.com>
96947
96948         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96949         Besides, these days every porting target provides a mkdir function.
96950
96951         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96952         needed. (this snippet comes from src/system.h).
96953
96954 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96955
96956         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96957
96958 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96959
96960         * lib/human.c (adjust_value): New function.
96961         (human_readable_inexact): Apply rounding style even when
96962         printing approximate values.
96963
96964 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96965
96966         * lib/human.c (human_readable_inexact): Allow an input block
96967         size that is not a multiple of the output block size, and vice versa.
96968         Reported by Piergiorgio Sartor.
96969
96970 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96971
96972         * lib/getdate.y (get_date): Apply relative times after time
96973         zone indicator, not before.  Reported by Todd A. Jacobs.
96974
96975 2000-06-13  Jim Meyering  <meyering@lucent.com>
96976
96977         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96978
96979         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96980
96981 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96982
96983         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96984
96985 2000-06-12  Jim Meyering  <meyering@lucent.com>
96986
96987         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96988         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96989         optional argument.
96990         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96991         the optional argument, `lib'.
96992
96993 2000-06-08  Jim Meyering  <meyering@lucent.com>
96994
96995         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96996
96997 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96998
96999         Rewrite largefile configuration so that we don't need to run
97000         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97001         AC_CANONICAL_HOST in configure.in -- jmm]
97002
97003         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97004         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97005         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97006         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97007         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97008         All uses changed.
97009         Instead of inspecting the output of getconf, try to compile the
97010         test program without and with the macro definition.
97011         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97012         for getconf.  Instead, check for the needed flags by compiling
97013         test programs.
97014
97015 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97016
97017         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97018
97019 2000-06-04  Jim Meyering  <meyering@lucent.com>
97020
97021         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97022         SunOS 4.1.4 for which gid_t is an unsigned type.
97023
97024 2000-06-03  Jim Meyering  <meyering@lucent.com>
97025
97026         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97027         now that autoconf requires that.
97028
97029         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97030         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97031         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97032
97033 2000-06-03  Jim Meyering  <meyering@lucent.com>
97034
97035         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97036
97037 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97038
97039         * m4/glibc21.m4: New file.
97040         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97041
97042 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97043
97044         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97045         newer, don't install charset.alias.
97046         * lib/config.charset: Change the Linux/glibc rules so they become empty
97047         on glibc-2.1 or newer.
97048
97049 2000-06-02  Jim Meyering  <meyering@lucent.com>
97050
97051         * lib/mountlist.c: Back out last change.  Instead, do this...
97052         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97053         me_dummy member using the same `ignore'-testing code.
97054         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97055         fs_type strings.
97056         From Mark D. Roth.
97057
97058 2000-05-29  Jim Meyering  <meyering@lucent.com>
97059
97060         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97061         mounts with the `ignore' attribute.  Based on a patch from
97062         Mark D. Roth.
97063
97064 2000-05-28  Jim Meyering  <meyering@lucent.com>
97065
97066         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97067         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97068         * m4/stat.m4: Likewise.
97069         * m4/lstat.m4: Likewise.
97070         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97071
97072         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97073         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97074
97075 2000-05-26  Jim Meyering  <meyering@lucent.com>
97076
97077         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97078
97079 2000-05-24  Jim Meyering  <meyering@lucent.com>
97080
97081         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97082         autoconf requires that.
97083         * m4/lib-check.m4: Likewise.
97084         * m4/jm-macros.m4: Likewise.
97085         * m4/strftime.m4: Likewise.
97086
97087         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97088         AC_CHECK_DECLS, now that autoconf requires that.
97089
97090 2000-05-22  Jim Meyering  <meyering@lucent.com>
97091
97092         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97093         * m4/lstat.m4: Likewise.
97094
97095 2000-05-22  Jim Meyering  <meyering@lucent.com>
97096
97097         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97098
97099 2000-05-20  Jim Meyering  <meyering@lucent.com>
97100
97101         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97102         (jm_PREREQ): Use it.
97103
97104 2000-05-18  Jim Meyering  <meyering@lucent.com>
97105
97106         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97107         back, too, since it may have been modified by allocate_entry.
97108         (hash_delete): Rewrite to use neither the assignment operator
97109         nor the comma operator in an if-expression.
97110
97111 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97112
97113         * lib/closeout.c:
97114         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97115         Remove; no longer needed.
97116         "quotearg.h": Add include.
97117         (file_name): Do not bother to explicitly initialize to NULL; it's less
97118         efficient on some hosts.
97119         (close_stdout_status): Remove test as to whether stdout was already
97120         closed; it breaks for the case "echo x | sort >&-".
97121         Quote file name colons.
97122         Do not assume that _("write error") lacks format strings.
97123
97124 2000-05-15  Jim Meyering  <meyering@lucent.com>
97125
97126         * lib/version-etc.c (version_etc_copyright): Update the copyright
97127         string used in all --version output.
97128
97129 2000-05-14  Jim Meyering  <meyering@lucent.com>
97130
97131         * lib/closeout.c (close_stdout_set_file_name): New function.
97132         (close_stdout_status): Use new file-scoped global.
97133         Return right away if fstat says the stdout file descriptor is invalid.
97134         * lib/closeout.h (close_stdout_set_file_name): Declare.
97135
97136 2000-05-10  Jim Meyering  <meyering@lucent.com>
97137
97138         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97139         (close_stdout_set_status): New function.
97140         * lib/closeout.h (close_stdout_set_status): Declare.
97141
97142 2000-05-09  Jim Meyering  <meyering@lucent.com>
97143
97144         * m4/gettext.m4: Rename this...
97145         * m4/libintl.m4: ...to this.
97146
97147 2000-05-08  Jim Meyering  <meyering@lucent.com>
97148
97149         * lib/long-options.c: Don't include closeout.h.
97150         (parse_long_options): Don't call close_stdout for --version.
97151
97152 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97153
97154         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97155         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97156         2.1.3 bug.  This avoids a clash when files like regex.c define
97157         _GNU_SOURCE.
97158
97159 2000-05-06  Jim Meyering  <meyering@lucent.com>
97160
97161         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97162         (AC_REPLACE_FUNCS): Add strnlen.
97163
97164         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97165         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97166
97167         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97168         AC_SEARCH_LIBS call for nanosleep.
97169         (LIB_NANOSLEEP): Set and AC_SUBST.
97170
97171 2000-05-06  Jim Meyering  <meyering@lucent.com>
97172
97173         * lib/strnlen.c: Undefine __strnlen and strnlen.
97174         [!weak_alias]: Define __strnlen to strnlen.
97175
97176         * lib/atexit.c: New file, from libiberty.
97177
97178 2000-05-06  Jim Meyering  <meyering@lucent.com>
97179
97180         * lib/closeout.c (close_stdout_status): Also check for errors on the
97181         stderr stream.
97182
97183 2000-05-05  Jim Meyering  <meyering@lucent.com>
97184
97185         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97186         AC_SEARCH_LIBS call for clock_gettime.
97187         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97188
97189         * m4/search-libs.m4: Update from autoconf.
97190
97191         su doesn't work on Solaris 2.6.
97192         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97193         <shadow.h>.  Reported by Dragos Harabor.
97194
97195 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97196
97197         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97198         memcpy instead of xmalloc, xrealloc, path_concat.
97199         (locale_charset): Treat empty environment variables as absent.
97200         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97201
97202 2000-05-04  Jim Meyering  <meyering@lucent.com>
97203
97204         * lib/getopt.c: Update from glibc.
97205         * lib/obstack.c: Likewise.
97206         * lib/obstack.h: Likewise.
97207         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97208         file
97209
97210         * lib/regex.h: Likewise.
97211         * lib/strndup.c: Likewise.
97212         * lib/strnlen.c: New file, from glibc.
97213
97214 2000-05-03  Jim Meyering  <meyering@lucent.com>
97215
97216         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97217
97218 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97219
97220         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97221         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97222         compile-time test, rather than inspecting host and OS, to
97223         decide whether to define _LARGEFILE_SOURCE.
97224
97225 2000-05-01  Jim Meyering  <meyering@lucent.com>
97226
97227         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97228
97229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97230         Based on a patch from Bruno Haible.
97231
97232 2000-05-01  Jim Meyering  <meyering@lucent.com>
97233
97234         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97235
97236 2000-04-29  Jim Meyering  <meyering@lucent.com>
97237
97238         * lib/path-concat.c: Declare strdup only if it's not defined.
97239         * lib/canon-host.c: Likewise.
97240
97241 2000-04-28  Jim Meyering  <meyering@lucent.com>
97242
97243         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97244         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97245         is included first, then limits.h is included by locale.h by libintl.h.
97246         From John David Anglin.
97247
97248 2000-04-25  Jim Meyering  <meyering@lucent.com>
97249
97250         * lib/makepath.c (S_IRWXUGO): Define.
97251         (make_path): Always perform explicit chmod if MODE specifies any
97252         of the `special' permission bits.  Prompted by a bug report against
97253         install from Mate Wierdl and Joost van Baal.
97254
97255 2000-04-18  Jim Meyering  <meyering@lucent.com>
97256
97257         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97258         (jm_PREREQ): Use it.
97259
97260 2000-04-18  Jim Meyering  <meyering@lucent.com>
97261
97262         * lib/README: New file.
97263
97264         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97265         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97266
97267 2000-04-17  Jim Meyering  <meyering@lucent.com>
97268
97269         Get it right :-)
97270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97271         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97272         Suggestion from Akim Demaille.
97273
97274 2000-04-17  Jim Meyering  <meyering@lucent.com>
97275
97276         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97277         the definition of it to rpl_strftime also defined-away the system's
97278         declaration.
97279
97280 2000-04-15  Jim Meyering  <meyering@lucent.com>
97281
97282         Use `C' to denote so-called `contiguous' files, the same way
97283         that tar does.
97284         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97285         (ftypelet): Use S_ISCTG.
97286         From Michael Deutschmann.
97287
97288 2000-04-14  Jim Meyering  <meyering@lucent.com>
97289
97290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97291         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97292         clobbered.
97293
97294 2000-04-14  Jim Meyering  <meyering@lucent.com>
97295
97296         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97297
97298 2000-04-13  Jim Meyering  <meyering@lucent.com>
97299
97300         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97301         AH_VERBATIM to insert required #ifndef into config.h.in.
97302         Suggestion from Akim Demaille.
97303
97304 2000-04-12  Jim Meyering  <meyering@lucent.com>
97305
97306         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97307         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97308         Christian Krackowizer.
97309
97310         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97311         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97312         (AC_SYS_LARGEFILE): Require.
97313         (AM_C_PROTOTYPES): Require.
97314
97315 2000-04-08  Jim Meyering  <meyering@lucent.com>
97316
97317         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97318         names don't conflict.  Reported by Eli Zaretskii.
97319
97320 2000-04-07  Jim Meyering  <meyering@lucent.com>
97321
97322         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97323         sys/types.h, to work around system header problems on AIX 3.2.5.
97324         From Bruno Haible.
97325
97326 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97327
97328         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97329         bug.  Deal with the different error behavior of Irix iconv.
97330
97331 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97332
97333         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97334         IRIX if the installer said otherwise.
97335
97336 2000-04-05  Jim Meyering  <meyering@lucent.com>
97337
97338         Portability tweaks required for ultrix4.3.
97339         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97340         (jm_CHECK_DECLS): Add getutent to the list of functions.
97341         (_jm_DECL_HEADERS): Add utmpx.h.
97342         From John David Anglin.
97343
97344         * m4/strftime.m4: Back out the 2000-04-02 change.
97345         Instead of that change, simply undefine putenv in the test program.
97346
97347 2000-04-05  Jim Meyering  <meyering@lucent.com>
97348
97349         Portability tweaks required for ultrix4.3.
97350         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97351         getutent.
97352         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97353         * lib/canon-host.c: Declare strdup.
97354         * lib/path-concat.c: Likewise.
97355         From John David Anglin.
97356
97357 2000-04-04  Jim Meyering  <meyering@lucent.com>
97358
97359         Be more DOS 8.3-friendly.
97360         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97361         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97362         * lib/Makefile.am: Reflect renaming.
97363         Reported by Eli Zaretskii.
97364
97365         Use a temporary file name that won't clash with `charset.alias'
97366         in the DOS 8.3 name space.
97367         * lib/Makefile.am (charset_tmp): Define.
97368         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97369         (uninstall-local): Likewise.
97370         Reported by Eli Zaretskii.
97371
97372 2000-04-03  Jim Meyering  <meyering@lucent.com>
97373
97374         * m4/gettext.m4: Fix typo in comment.
97375
97376         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97377         textutils/configure.in).  Suggestion from Paul Eggert.
97378         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97379
97380 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97381
97382         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97383         variable in the shell rather than using putenv, which isn't
97384         portable.  This avoids the configure-time inter-test dependency
97385         on the potentially-renamed putenv function.
97386
97387 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97388
97389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97390         before checking struct stat.st_blksize, so that
97391         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97392
97393 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97394
97395         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97396         since strftime.c uses HAVE_STRFTIME to decide whether to use
97397         the underlying strftime.
97398
97399 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97400
97401         * lib/time/strftime.c (my_strftime): Make sure we call the system
97402         strftime, not ourselves, when invoking the underlying strftime.
97403
97404 2000-03-24  Jim Meyering  <meyering@lucent.com>
97405
97406         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97407         (charset_alias): Define.
97408         (install-exec-local): Factor out common code.
97409         (uninstall-local): Split lines longer than 80.
97410         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97411         (SUFFIXES): Define.
97412         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97413         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97414
97415 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97416
97417         * lib/config.charset: Output a line containing "Packages using this
97418         file".
97419         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97420         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97421         ref-del.sed): New rules.
97422
97423 2000-03-17  Jim Meyering  <meyering@lucent.com>
97424
97425         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97426         Otherwise, include <strings.h>
97427
97428 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97429
97430         * lib/unicodeio.c (utf8_wctomb): New function.
97431         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97432         format instead of in UCS-4 with platform dependent endianness.
97433
97434 2000-03-10  Jim Meyering  <meyering@lucent.com>
97435
97436         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97437         From Marco Franzen.
97438
97439 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97440
97441         * lib/savedir.c (savedir): Work even if directory size is
97442         negative; this can happen with some screwy NFS configurations.
97443
97444 2000-03-06  Jim Meyering  <meyering@lucent.com>
97445
97446         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97447         if it's NULL (because we ran out of memory).  From Bruno Haible.
97448
97449 2000-03-05  Jim Meyering  <meyering@lucent.com>
97450
97451         * lib/localcharset.c ("path-concat.h"): Include.
97452         (get_charset_aliases): Use path_concat instead of ANSI string
97453         concatenation.
97454
97455         * lib/unicodeio.h (PARAMS): Define.
97456         Use it to guard prototype.
97457
97458 2000-03-04  Jim Meyering  <meyering@lucent.com>
97459
97460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97461         for lib/localcharset.c.
97462
97463 2000-03-04  Jim Meyering  <meyering@lucent.com>
97464
97465         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97466         installing into it.
97467         (uninstall-local): Uncomment this rule so `make distcheck' works
97468         once again.
97469
97470         * lib/unicodeio.c (<errno.h>): Include it.
97471         (errno): Declare if not defined.
97472
97473         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97474
97475         * lib/config.charset: New version, incorporating remarks from a linux
97476         i18n mailing list.  From Bruno Haible.
97477
97478 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97479
97480         * m4/codeset.m4: New file.
97481         * m4/iconv.m4: New file.
97482         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97483
97484 2000-03-03  Jim Meyering  <meyering@lucent.com>
97485
97486         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97487
97488 2000-03-02  Jim Meyering  <meyering@lucent.com>
97489
97490         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97491         the messages come out on separate lines.
97492
97493         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97494         rather than jm_CHECK_DECLARATIONS.
97495         * m4/decl.m4: Remove now-unused file.
97496
97497         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97498         geteuid.
97499
97500 2000-03-02  Jim Meyering  <meyering@lucent.com>
97501
97502         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97503
97504 2000-03-01  Jim Meyering  <meyering@lucent.com>
97505
97506         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97507         * lib/unicodeio.c: Likewise.
97508
97509 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97510
97511         * lib/config.charset: New file.
97512         * lib/localcharset.c: New file.
97513         * lib/unicodeio.h, lib/unicodeio.c: New files.
97514         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97515         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97516         (noinst_HEADERS): Add unicodeio.h.
97517         (all-local, install-exec-local, charset.alias): New targets.
97518
97519 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97520
97521         * lib/quotearg.c (ALERT_CHAR): New macro.
97522         (quotearg_buffer_restyled): Use it.
97523
97524 2000-02-27  Jim Meyering  <meyering@lucent.com>
97525
97526         * m4/check-decl.m4: Add getenv to the list.
97527
97528 2000-02-27  Jim Meyering  <meyering@lucent.com>
97529
97530         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97531         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97532
97533         * lib/backupfile.c: Guard inclusion of stdlib.h with
97534         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97535         Declare malloc if needed.
97536
97537         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97538         `#ifndef HAVE_DECL..'
97539         now that autoconf always defines the HAVE_DECL_ symbols.
97540         * lib/human.c: Likewise.
97541         * lib/same.c: Likewise.
97542         * lib/strtoumax.c: Likewise.
97543
97544         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97545         declaration check was not run.
97546         * lib/hash.c: Likewise.
97547         * lib/human.c: Likewise.
97548         * lib/same.c: Likewise.
97549         * lib/strtoumax.c: Likewise.
97550
97551         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97552         `.', then first look up the entire `.'-containing string as a login
97553         name.
97554
97555 2000-02-23  Jim Meyering  <meyering@lucent.com>
97556
97557         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97558         in place of my hack.
97559
97560 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97561
97562         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97563         (textint): New typedef.
97564         (parser_control): Member year changed from int to textint.
97565         All uses changed.
97566         (YYSTYPE): Removed; replaced by %union with int and textint members.
97567         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97568         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97569         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97570         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97571         (date, number, to_year): Use width of number in digits, not its value,
97572         to determine whether it's a 2-digit year, or a 2-digit time.
97573         (yylex): Store number of digits of numeric tokens.
97574         Reported by John Kendall.
97575
97576         (parser_control): Changed from struct parser_control to typedef (for
97577         consistency).  All uses changed.
97578
97579         (tID): Removed; not used.
97580         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97581
97582 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97583
97584         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97585         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97586
97587 2000-02-12  Jim Meyering  <meyering@lucent.com>
97588
97589         * lib/userspec.c (ISDIGIT): Define it.
97590         (isdigit): Remove definition.
97591         (is_number): Use ISDIGIT, not isdigit.
97592         <libintl.h>: Include.
97593         (_ and N_): Define.
97594         (parse_user_spec): Mark translatable strings.
97595
97596 2000-02-10  Jim Meyering  <meyering@lucent.com>
97597
97598         With these changes, nanosleep.[ch] are finally enough like the other
97599         lib/* replacement files to compile on a few more losing systems.
97600
97601         * lib/nanosleep.h: Don't include config.h.
97602         Remove prototype from declaration of nanosleep.
97603         (PARAMS): Remove now-unneeded definition.
97604         * lib/nanosleep.c: #undef nanosleep.
97605         (rpl_nanosleep): Rename from nanosleep.
97606
97607 2000-02-10  Jim Meyering  <meyering@lucent.com>
97608
97609         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97610         gnu_nanosleep to rpl_nanosleep.
97611
97612 2000-02-09  Jim Meyering  <meyering@lucent.com>
97613
97614         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97615         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97616
97617 2000-02-08  Akim Demaille  <akim@epita.fr>
97618
97619         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97620         `[' and `]' and remove uses of `changequote'.
97621         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97622         (AC_SYS_LARGEFILE): Likewise.
97623         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97624         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97625         of changequote.
97626         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97627         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97628         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97630
97631 2000-02-05  Jim Meyering  <meyering@lucent.com>
97632
97633         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97634         Remove explicit use of AC_HEADER_TIME.  It is required by
97635         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97636         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97637         in autoconf whereby the expansion of the latter ended up preceding
97638         the expansion of its prerequisite, AC_HEADER_TIME.
97639         Reported by Volker Borchert.
97640
97641 2000-02-03  Jim Meyering  <meyering@lucent.com>
97642
97643         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97644
97645 2000-02-03  Jim Meyering  <meyering@lucent.com>
97646
97647         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97648         rather than with `#if HAVE_UTMPNAME'.
97649
97650 2000-02-02  Jim Meyering  <meyering@lucent.com>
97651
97652         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97653         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97654         Reported by Eli Zaretskii.
97655
97656 2000-02-01  Jim Meyering  <meyering@lucent.com>
97657
97658         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97659
97660 2000-01-31  Jim Meyering  <meyering@lucent.com>
97661
97662         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97663         functions.  Add the time.h and sys/time.h headers along with the
97664         AC_REQUIRE'ment of AC_HEADER_TIME.
97665
97666 2000-01-31  Jim Meyering  <meyering@lucent.com>
97667
97668         * lib/nanosleep.h (nanosleep): Guard declaration with
97669         `#if ! HAVE_DECL_NANOSLEEP'.
97670         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97671         the declaration in that vendor's sys/timers.h.
97672         Reported by Christian Krackowizer.
97673
97674         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97675         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97676         (ISPRINT): Likewise.
97677         Reported by Tom Tromey.
97678
97679 2000-01-30  Jim Meyering  <meyering@lucent.com>
97680
97681         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97682
97683         * m4/prereq.m4 (utmp_includes): Define.
97684         Check for ut_user and ut_name members in both struct utmpx
97685         and struct utmp.
97686
97687 2000-01-30  Jim Meyering  <meyering@lucent.com>
97688
97689         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97690         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97691         header files where only utmpx.ut_user is declared.
97692
97693         * lib/readutmp.h (UT_USER): Define.
97694
97695 2000-01-29  Jim Meyering  <meyering@lucent.com>
97696
97697         * m4/lib-check.m4: New file containing library-related checks from
97698         fileutils and sh-utils (textutils had none).
97699
97700 2000-01-28  Jim Meyering  <meyering@lucent.com>
97701
97702         * m4/perl.m4: Change format of warning message to look more like that
97703         from the missing script.  Suggestion from François Pinard.
97704
97705 2000-01-25  Jim Meyering  <meyering@lucent.com>
97706
97707         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97708         well as time.h in the compile check.
97709         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97710         Fix typo in cross-compiling case: s/yes/no/.
97711
97712 2000-01-23  Jim Meyering  <meyering@lucent.com>
97713
97714         * m4/jm-macros.m4: Move df-related tests here from
97715         fileutils/configure.in
97716
97717         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97718         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97719
97720         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97721         s/space/ac_fsusage_space/.
97722         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97723
97724         * m4/ftruncate.m4: New file (derived from part of
97725         fileutils/configure.in).
97726         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97727         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97728
97729         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97730         AC_SUBST these here, rather than just in sh-util/configure.in, so
97731         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97732         all the same.
97733         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97734         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97735         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97736         (AC_SUBST(POW_LIBM)): Likewise.
97737         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97738
97739 2000-01-23  Jim Meyering  <meyering@lucent.com>
97740
97741         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97742         obstack.c.
97743
97744 2000-01-22  Jim Meyering  <meyering@lucent.com>
97745
97746         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97747
97748         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97749
97750         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97751         configure.in
97752         (AC_CHECK_HEADERS): Likewise for sh-utils.
97753         (AC_CHECK_HEADERS): Likewise for textutils.
97754         Merge the three lists of headers.
97755
97756         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97757         from fileutils' configure.in.
97758
97759         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97760         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97761         check-decl.m4.
97762
97763         * m4/check-decl.m4: Use #if rather than #ifdef.
97764         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97765         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97766         (_jm_DECL_HEADERS): Define new function.
97767         (jm_CHECK_DECLARATIONS): Require it.
97768
97769 2000-01-22  Jim Meyering  <meyering@lucent.com>
97770
97771         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97772         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97773         Required for some AIX systems.  Reported by Christian Krackowizer.
97774         [TESTING] (main): New function.
97775
97776         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97777         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97778         letters.
97779
97780         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97781         iswprint.
97782
97783         * lib/strverscmp.c (ISDIGIT): Define.
97784         (strverscmp): Use ISDIGIT, not isdigit.
97785
97786 2000-01-19  Jim Meyering  <meyering@lucent.com>
97787
97788         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97789         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97790         defines `struct timespec' in <sys/time.h>
97791
97792         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97793         Thanks to Akim for explaining.
97794
97795 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97796
97797         * lib/nanosleep.c (nanosleep):
97798         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97799         POSIX.1 doesn't require SA_INTERRUPT and some systems
97800         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97801         it's been part of POSIX.1 since day 1 (in 1988).
97802
97803 2000-01-17  Jim Meyering  <meyering@lucent.com>
97804
97805         * lib/interlock: Remove unused file.  Reported by François Pinard.
97806
97807 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97808
97809         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97810         alert, backslash, formfeed, and vertical tab unnecessarily in
97811         shell quoting style.
97812
97813 2000-01-16  Jim Meyering  <meyering@lucent.com>
97814
97815         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97816         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97817         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97818         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97819
97820 2000-01-16  Jim Meyering  <meyering@lucent.com>
97821
97822         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97823         because the latter didn't work.
97824
97825 2000-01-15  Jim Meyering  <meyering@lucent.com>
97826
97827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97828         (AC_REPLACE_FUNCS): Add memcpy and memset.
97829         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97830         Add strpbrk.
97831         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97832
97833 2000-01-12  Jim Meyering  <meyering@lucent.com>
97834
97835         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97836         (jm_PREREQ): Use it.
97837         (jm_PREREQ_READUTMP): New macro.
97838         (jm_PREREQ): Use it.
97839
97840 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97841
97842         Quote multibyte characters correctly.
97843         * m4/c-bs-a.m4: New file.
97844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97845         (jm_PREREQ): Use it.
97846
97847 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97848
97849         * m4/uintmax_t.m4: Port to autoconf 2.13.
97850
97851 2000-01-08  Jim Meyering  <meyering@ascend.com>
97852
97853         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97854         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97855
97856 2000-01-04  Jim Meyering  <meyering@ascend.com>
97857
97858         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97859         jm_STRUCT_DIRENT_D_TYPE.
97860         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97861         jm_STRUCT_DIRENT_D_INO.
97862         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97863         jm_STRUCT_UTIMBUF.
97864         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97865         renamings.
97866         * m4/utime.m4: Likewise.
97867
97868         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97869         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97870
97871 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97872
97873         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97874         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97875
97876 2000-01-02  Jim Meyering  <meyering@ascend.com>
97877
97878         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97879         remember if this is necessary.
97880
97881 1999-12-26  Jim Meyering  <meyering@ascend.com>
97882
97883         * m4/jm-macros.m4: Use it here.
97884         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97885
97886 1999-12-23  Jim Meyering  <meyering@ascend.com>
97887
97888         * m4/jm-macros.m4: Check for clock_gettime (moved from
97889         fileutils/configure.in)
97890         Check for gettimeofday.
97891
97892 1999-12-20  Jim Meyering  <meyering@ascend.com>
97893
97894         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97895         autoconf-2.14a-1999-12-20.
97896
97897 1999-12-19  Jim Meyering  <meyering@ascend.com>
97898
97899         * m4/lstat-slash.m4: New file.
97900         * m4/jm-macros.m4: Use the new macro:
97901         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97902
97903 1999-12-07  Jim Meyering  <meyering@ascend.com>
97904
97905         * m4/perl.m4: Require that File::Compare be available, too.
97906         Too many systems seem to lack it.
97907
97908         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97909         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97910
97911 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97912
97913         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97914         problem with the QNX 4.25 shell, which doesn't propagate exit
97915         status of failed commands inside shell assignments.
97916
97917 1999-11-17  Jim Meyering  <meyering@ascend.com>
97918
97919         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97920
97921 1999-11-07  Jim Meyering  <meyering@ascend.com>
97922
97923         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97924
97925 1999-11-06  Jim Meyering  <meyering@ascend.com>
97926
97927         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97928         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97929
97930 1999-11-05  Jim Meyering  <meyering@ascend.com>
97931
97932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97933         configure.in of textutils, fileutils, and sh-utils into this one
97934         (shared between those packages) file.
97935         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97936         AC_STRUCT_ST_BLKSIZE.
97937
97938 1999-11-03  Jim Meyering  <meyering@ascend.com>
97939
97940         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97941         of AC_CHECK_TYPE checks includes unistd.h.
97942         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97943         Suggestion from Akim Demaille.
97944
97945 1999-10-30  Jim Meyering  <meyering@ascend.com>
97946
97947         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97948         m4-quoted string.
97949         * m4/ls-mntd-fs.m4: Likewise.
97950         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97951         * m4/jm-winsz1.m4: Likewise.
97952
97953         * m4/const.m4: Remove file, since the fix made it into the experimental
97954         version of autoconf.
97955         * m4/mktime.m4: Likewise.
97956
97957         * m4/check-type.m4: Remove file, now that the latest version of
97958         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97959
97960         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97961         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97962         AC_CHECK_TYPE.
97963
97964 1999-10-04  Jim Meyering  <meyering@ascend.com>
97965
97966         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97967
97968 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97969
97970         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97971         2.95.1 bug with HP-UX 10.20.
97972
97973 1999-09-17  Jim Meyering  <meyering@ascend.com>
97974
97975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97976         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97977         due to missing strdup (against sh-utils-2.0).
97978
97979 1999-08-29  Jim Meyering  <meyering@ascend.com>
97980
97981         * m4/jm-macros.m4: Require jm_BISON.
97982         * m4/bison.m4: New file.
97983
97984 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97985
97986         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97987         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97988
97989 1999-08-05  Jim Meyering  <meyering@ascend.com>
97990
97991         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97992         to avoid conflicts with `conftest' on 8+3 filesystems.
97993         Suggestion from Eli Zaretskii.
97994
97995 1999-08-04  Jim Meyering  <meyering@ascend.com>
97996
97997         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97998         fileutils and sh-utils (textutils's getline test was inadequate).
97999         (AM_FUNC_GETLINE): Run this test.
98000         (AC_CHECK_FUNCS): Check for getdelim.
98001         Reported by Bob Proulx.
98002
98003 1999-08-02  Jim Meyering  <meyering@ascend.com>
98004
98005         * m4/jm-macros.m4: Add a comment.
98006
98007 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98008
98009         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98010         <inttypes.h> defines strtoumax as a macro (and not as a
98011         function).
98012
98013 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98014
98015         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98016         that we can shift, multiply and divide unsigned long long
98017         values; Ultrix cc can't do it.
98018
98019 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98020
98021         * m4/mktime.m4: New file, which is a preview of what should appear
98022         in the next public autoconf release.
98023
98024 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98025
98026         * m4/lfs.m4: Remove this file.
98027         * m4/largefile.m4: New file.  It contains the old contents of
98028         lfs.m4, except that all names with prefix AC_LFS have been
98029         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98030         compatible with future autoconf versions.  Also, some minor m4
98031         quoting problems have been fixed.
98032
98033 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98034
98035         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98036         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98037         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98038         and simplify the shell code.
98039
98040 1999-08-01  Jim Meyering  <meyering@ascend.com>
98041
98042         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98043         m4.
98044
98045 1999-07-20  Jim Meyering  <meyering@ascend.com>
98046
98047         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98048
98049 1999-07-15  Jim Meyering  <meyering@ascend.com>
98050
98051         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98052
98053 1999-05-22  Jim Meyering  <meyering@ascend.com>
98054
98055         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98056
98057 1999-05-20  Jim Meyering  <meyering@ascend.com>
98058
98059         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98060         Add a colon after each `then' in case $4 is empty.
98061
98062 1999-05-16  Jim Meyering  <meyering@ascend.com>
98063
98064         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98065
98066 1999-05-10  Jim Meyering  <meyering@ascend.com>
98067
98068         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98069
98070         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98071         AC_FUNC_MKTIME.
98072
98073 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98074
98075         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98076
98077 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98078
98079         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98080         not CPPFLAGS, so that linking works correctly in IRIX.
98081
98082 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98083
98084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98085
98086 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98087
98088         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98089         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98090         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98091         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98092         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98093
98094         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98095
98096 1999-04-20  Jim Meyering  <meyering@ascend.com>
98097
98098         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98099         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98100         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98101
98102 1999-04-18  Jim Meyering  <meyering@ascend.com>
98103
98104         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98105         * m4/jm-macros.m4: Use it.
98106
98107 1999-04-06  Jim Meyering  <meyering@ascend.com>
98108
98109         * m4/strftime.m4: Remove test for %f.
98110
98111 1999-03-29  Jim Meyering  <meyering@ascend.com>
98112
98113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98114         superset of the AC_TYPE_* checks in the textutils, fileutils,
98115         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98116         AC_TYPE_PID_T.
98117
98118 1999-03-28  Jim Meyering  <meyering@ascend.com>
98119
98120         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98121         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98122         replaced e.g., in the *.sh files of the sh-utils.
98123
98124 1999-03-20  Jim Meyering  <meyering@ascend.com>
98125
98126         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98127         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98128         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98129
98130 1999-03-19  Jim Meyering  <meyering@ascend.com>
98131
98132         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98133
98134 1999-03-12  Jim Meyering  <meyering@ascend.com>
98135
98136         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98137
98138 1999-03-07  Jim Meyering  <meyering@ascend.com>
98139
98140         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98141         declared.
98142
98143 1999-02-17  Jim Meyering  <meyering@ascend.com>
98144
98145         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98146         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98147
98148 1999-02-07  Jim Meyering  <meyering@ascend.com>
98149
98150         * m4/group-member.m4: New file -- extracted from sh-utils'
98151         configure.in.
98152
98153         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98154         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98155
98156 1999-02-06  Jim Meyering  <meyering@ascend.com>
98157
98158         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98159         * m4/fnmatch.m4: Likewise.
98160         * m4/getgroups.m4: Likewise.
98161         * m4/lstat.m4: Likewise.
98162         * m4/malloc.m4: Likewise.
98163         * m4/putenv.m4: Likewise.
98164         * m4/realloc.m4: Likewise.
98165         * m4/regex.m4: Likewise.
98166         * m4/stat.m4: Likewise.
98167         * m4/strftime.m4: Likewise.
98168         Suggestion from Alain Magloire.
98169
98170         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98171         * m4/fnmatch.m4: Likewise.
98172         * m4/getgroups.m4: Likewise.
98173         * m4/getline.m4: Likewise.
98174         * m4/lstat.m4: Likewise.
98175         * m4/malloc.m4: Likewise.
98176         * m4/memcmp.m4: Likewise.
98177         * m4/putenv.m4: Likewise.
98178         * m4/realloc.m4: Likewise.
98179         * m4/regex.m4: Likewise.
98180         * m4/stat.m4: Likewise.
98181         * m4/strftime.m4: Likewise.
98182         Suggestion from Alain Magloire.
98183
98184         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98185         an argument.
98186
98187         * m4/regex.m4: Add a run-time Test for proper operation of
98188         re_compile_pattern.
98189
98190 1999-01-31  Jim Meyering  <meyering@ascend.com>
98191
98192         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98193
98194 1999-01-30  Jim Meyering  <meyering@ascend.com>
98195
98196         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98197
98198         * m4/jm-mktime.m4: Make this a wrapper around the official
98199         AM_FUNC_MKTIME rather than my private copy, now that the official one
98200         is up to date.
98201         * m4/mktime.m4: Remove file.
98202
98203         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98204         * m4/uptime.m4: Likewise.
98205         * m4/uintmax_t.m4: Likewise.
98206
98207 1999-01-28  Jim Meyering  <meyering@ascend.com>
98208
98209         * m4/jm-macros.m4: Use jm_AFS.
98210         * m4/afs.m4: New file (from fileutils' configure.in).
98211
98212         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98213         * m4/chown.m4: Likewise.
98214         * m4/d-ino.m4: Likewise.
98215         * m4/d-type.m4: Likewise.
98216         * m4/fnmatch.m4: Likewise.
98217         * m4/getgroups.m4: Likewise.
98218         * m4/gettext.m4: Likewise.
98219         * m4/jm-mktime.m4: Likewise.
98220         * m4/jm-winsz2.m4: Likewise.
98221         * m4/lcmessage.m4: Likewise.
98222         * m4/ls-mntd-fs.m4: Likewise.
98223         * m4/malloc.m4: Likewise.
98224         * m4/memcmp.m4: Likewise.
98225         * m4/putenv.m4: Likewise.
98226         * m4/realloc.m4: Likewise.
98227         * m4/st_mtim.m4: Likewise.
98228         * m4/strftime.m4: Likewise.
98229
98230 1999-01-16  Jim Meyering  <meyering@ascend.com>
98231
98232         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98233         (ARGMATCH_DIE_DECL): Define.
98234
98235 1999-01-12  Jim Meyering  <meyering@ascend.com>
98236
98237         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98238         Reported by Lars Hecking.
98239
98240 1999-01-10  Jim Meyering  <meyering@ascend.com>
98241
98242         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98243         gross kludge.
98244         * m4/inttypes_h.m4: Likewise.
98245         * m4/lstat.m4: Likewise.
98246         * m4/malloc.m4: Likewise.
98247         * m4/readdir.m4: Likewise.
98248         * m4/realloc.m4: Likewise.
98249         * m4/st_dm_mode.m4: Likewise.
98250         * m4/stat.m4: Likewise.
98251         * m4/utimbuf.m4: Likewise.
98252         * m4/utimes.m4: Likewise.
98253
98254         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98255         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98256         comments in config.h.in are meaningful.
98257
98258         * m4/jm-macros.m4: Require autoconf-2.13 here.
98259
98260         * m4/regex.m4: By default, don't use the included regex.c on systems
98261         with glibc 2.  Suggestion from Uli Drepper.
98262
98263 1999-01-02  Jim Meyering  <meyering@ascend.com>
98264
98265         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98266
98267 1998-12-18  Jim Meyering  <meyering@ascend.com>
98268
98269         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98270         Based on a suggestion from Lars Hecking.
98271
98272 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98273
98274         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98275
98276 1998-11-16  Jim Meyering  <meyering@ascend.com>
98277
98278         * m4/lfs.m4: Double-quote the `uname...` expression.
98279
98280 1998-11-14  Jim Meyering  <meyering@ascend.com>
98281
98282         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98283         * m4/stat.m4: Likewise.
98284
98285 1998-11-03  Jim Meyering  <meyering@ascend.com>
98286
98287         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98288         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98289
98290 1998-10-18  Jim Meyering  <meyering@ascend.com>
98291
98292         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98293
98294 1998-10-17  Jim Meyering  <meyering@ascend.com>
98295
98296         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98297         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98298         calls for those previously hard-coded headers.  Instead, take a new
98299         parameter.
98300         (jm_CHECK_DECLARATIONS): Reflect interface change.
98301         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98302         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98303
98304         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98305
98306 1998-10-14  Jim Meyering  <meyering@ascend.com>
98307
98308         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98309         instead of "TZ=America/Vancouver".  From Paul Eggert.
98310
98311 1998-10-11  Jim Meyering  <meyering@ascend.com>
98312
98313         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98314         This adds a test for a recently added compatibility fix for mktime.c.
98315         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98316
98317 1998-09-27  Jim Meyering  <meyering@ascend.com>
98318
98319         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98320
98321         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98322         ../configure.in, including a change from Gordon Matzigkeit to allow
98323         cross-compiling for the Hurd.
98324
98325         * m4/glibc.m4: New file/macro to test for the GNU C Library
98326         versions 1 and 2.  From Gordon Matzigkeit.
98327         Indent.
98328
98329 1998-09-21  Jim Meyering  <meyering@ascend.com>
98330
98331         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98332
98333 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98334
98335         Port nanosecond-resolution times to UnixWare 2.1.2 and
98336         pedantic Solaris 2.6.
98337
98338         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98339         AC_STRUCT_ST_MTIM.
98340         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98341         Generate name of ns member, instead of just 1 or undef.
98342         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98343
98344 1998-08-15  Jim Meyering  <meyering@ascend.com>
98345
98346         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98347         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98348         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98349         instead of jm_TYPE_SSIZE_T.
98350
98351 1998-08-12  Jim Meyering  <meyering@ascend.com>
98352
98353         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98354
98355 1998-08-02  Jim Meyering  <meyering@ascend.com>
98356
98357         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98358         in acconfig.h manually.
98359
98360 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98361
98362         * m4/st_mtim.m4: New file.
98363
98364 1998-07-28  Jim Meyering  <meyering@ascend.com>
98365
98366         * m4/utimes.m4: Undef stat.
98367
98368 1998-07-25  Jim Meyering  <meyering@ascend.com>
98369
98370         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98371         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98372
98373 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98374
98375         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98376         uid and gid actually remain unchanged.
98377
98378 1998-07-07  Jim Meyering  <meyering@ascend.com>
98379
98380         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98381
98382 1998-07-04  Jim Meyering  <meyering@ascend.com>
98383
98384         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98385         to prove that this macro can be used in packages without regex.c.
98386
98387 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98388
98389         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98390         is to be used.
98391
98392 1998-07-03  Jim Meyering  <meyering@ascend.com>
98393
98394         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98395
98396         * m4/gettext.m4: New file -- from gettext-0.10.35.
98397         * m4/lcmessage.m4: Likewise.
98398         * m4/progtest.m4: Likewise.
98399
98400         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98401         * m4/jm-macros.m4: Require the new macro.
98402
98403 1998-06-29  Jim Meyering  <meyering@ascend.com>
98404
98405         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98406         for the definition of NGROUPS (used in a system header included
98407         by sys/mount.h).
98408
98409 1998-06-28  Jim Meyering  <meyering@ascend.com>
98410
98411         * m4/ls-mntd-fs.m4: New file.
98412         * m4/fstypename.m4: New file.
98413
98414         * m4/jm-macros.m4: Require the new macro.
98415         * m4/jm-glibc-io.m4: New file.
98416
98417 1998-05-19  Jim Meyering  <meyering@ascend.com>
98418
98419         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98420         * m4/lchown.m4: New file.
98421
98422         * m4/Makefile.am.in: New file.
98423         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98424
98425 1998-05-14  Jim Meyering  <meyering@ascend.com>
98426
98427         * m4/Makefile.am (EXTRA_DIST): Add them.
98428         * m4/jm-macros.m4: New file.
98429         * m4/utimbuf.m4: New file.
98430
98431 1998-05-12  Jim Meyering  <meyering@ascend.com>
98432
98433         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98434
98435 1998-05-11  Jim Meyering  <meyering@ascend.com>
98436
98437         * m4/isc-posix.m4: New file.
98438
98439 1998-05-10  Jim Meyering  <meyering@ascend.com>
98440
98441         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98442
98443 1998-05-09  Jim Meyering  <meyering@ascend.com>
98444
98445         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98446         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98447         with automake.
98448
98449         * m4/ssize_t.m4: New file.
98450         * m4/mktime.m4: Remove file -- the new automake has this now.
98451
98452 1998-04-26  Jim Meyering  <meyering@ascend.com>
98453
98454         * m4/assert.m4: New file.
98455         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98456
98457 1998-04-05  Jim Meyering  <meyering@ascend.com>
98458
98459         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98460         (jm_PREREQ): Use it here.
98461
98462 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98463
98464         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98465         in acconfig.h.
98466
98467 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98468
98469         * m4/prereq.m4: New file.
98470         * m4/error.m4: New file.
98471         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98472
98473 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98474
98475         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98476         cache-check for the same variable -- that defeated the purpose of
98477         the test; the test program was never run.  This was a problem only
98478         on systems with losing getline functions -- HP-UX 10.20 is one.
98479         Reported by Bjorn Helgaas.
98480
98481 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98482
98483         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98484
98485 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98486
98487         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98488
98489         * m4/const.m4: New file.  Use an initializer in this declaration
98490         typedef int charset[2]; const charset x;
98491         Reported by Bob Glickstein.
98492
98493 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98494
98495         * m4/chown.m4: Fix reversed types on -1 args to chown.
98496         From Kaveh Ghazi.
98497
98498 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98499
98500         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98501         Add lseek and memchr.
98502
98503         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98504         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98505         have a 20-character limit on names.
98506
98507 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98508
98509         * m4/inttypes_h.m4: New file.
98510         * m4/uintmax_t.m4: New file.
98511         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98512
98513
98514         -----
98515
98516         Local Variables:
98517         coding: utf-8
98518         End:
98519
98520         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98521
98522         Copying and distribution of this file, with or without
98523         modification, are permitted provided the copyright notice
98524         and this notice are preserved.